/* Gunpowder Studios typography. Change fonts and text sizes here, for every page.
   Fraunces and Figtree are free under the SIL Open Font License (see the fonts folder). */
@font-face{font-family:"Figtree";font-style:normal;font-weight:300 900;font-display:swap;src:url("fonts/figtree-latin-wght-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Fraunces";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/fraunces-latin-400-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Fraunces";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/fraunces-latin-700-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Figtree";font-style:normal;font-weight:300 900;font-display:swap;src:url("fonts/figtree-latin-ext-wght-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Fraunces";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/fraunces-latin-ext-400-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Fraunces";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/fraunces-latin-ext-700-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* ---------- Which font goes where ---------- */
/* Figtree looks small for its size, so font-size-adjust draws it about 7% larger,
   which keeps menus and buttons as easy to read as before. Headings are left as set. */
body{font-family:"Figtree",system-ui,-apple-system,"Segoe UI",sans-serif;font-size-adjust:.535}
h1,h2,h3,h4,.mission,.quote,.play-card strong,.site-footer :is(h2,h3,#_){font-family:"Fraunces",Georgia,serif;font-size-adjust:none}

/* ---------- Headings ----------
   ":is(...,#_)" lets these rules win over the older styles inside each page,
   while sizes you set by hand in the editor still win over these. */
main :is(h1,h2,h3,.slide-title,#_){font-weight:700;line-height:1.1;letter-spacing:-.015em;text-wrap:balance}
/* Sections added in the editor: same heading font as everywhere else */
main .gs-section :is(h2,#_){font-family:"Fraunces",Georgia,serif}
/* Page title: 42px on phones, 80px on desktop */
main :is(h1,.slide-title,#_){font-size:clamp(2.625rem,1.54rem + 4.27vw,5rem);margin:0;max-width:900px}
/* Longer page titles: add class="long-title" so they sit on fewer lines */
main :is(h1.long-title,#_){font-size:clamp(1.875rem,9.3vw,3.75rem)}
@media (min-width:901px){main :is(h1.long-title,#_){font-size:clamp(3rem,5vw,3.875rem)}}
/* Section heading: 32px to 52px */
main :is(h2,#_){font-size:clamp(2rem,1.43rem + 2.25vw,3.25rem)}
/* Card heading: 23px to 30px */
main :is(h3,#_){font-size:clamp(1.4375rem,1.24rem + .79vw,1.875rem)}
/* Small cards: 22px to 26px */
main :is(.step,.game-card,.app) :is(h2,h3,#_){font-size:clamp(1.375rem,1.26rem + .45vw,1.625rem)}
/* Large picture tiles and panels: 28px to 40px */
main :is(.feature,.range-card,.shop-panel,.upcoming-copy) :is(h3,#_),main .info-card :is(h2,#_){font-size:clamp(1.75rem,1.41rem + 1.35vw,2.5rem)}

/* ---------- Reading text ---------- */
main .mission,main .quote{font-weight:400}
main :where(p,li){line-height:1.65;text-wrap:pretty}
:where(main p){max-width:68ch}
main :is(.eyebrow,.kicker,dt,#_){font-size:.8125rem}
main .fact :is(span,#_){font-size:.9375rem}
main .game-card-body :is(span,#_){font-size:1rem}

/* Paragraph sizes. Body text 18px */
main :is(p,li,dd,address,#_):not(.mission,.quote){font-size:1.125rem}
/* Cards and footer 17px */
main :is(.step,.game-card,.card,.adventure-card,.connect-card,.world-card,.app,.feature,.range-card) :is(p,li,#_):not(.mission,.quote){font-size:1.0625rem}
.site-footer :is(p,a,#_){font-size:1.0625rem}
.site-footer :is(.copyright,#_),.site-footer :is(.copyright,#_) :is(p,a){font-size:.875rem}
/* Introduction under each main headline: 20px on phones, 22px on desktop */
main :is(.hero,.hero-slide,.intro-hero) :is(p,#_):not(.mission,.quote){font-size:clamp(1.25rem,1.8vw,1.375rem)}
main .hero :is(p.sub,#_):not(.mission,.quote){font-size:1.125rem}
@media (max-width:480px){main :is(.eyebrow,.kicker,#_){letter-spacing:.1em}}

/* ---------- Easier-to-read colours ---------- */
main :is(.more,.connect,.worlds) .section-head :is(p,#_){color:#665c4d}
main .callout-card :is(strong,#_){color:#8f4d00}
main .more .card :is(span,#_){color:#8a5610}

/* Contact page: size the email address to fit its box, so phones don't scroll sideways */
main .info-card:has(h3 a[href^="mailto:"]){container-type:inline-size;min-width:0}
main .info-card h3 a[href^="mailto:"]{font-size:min(1em,6.5cqi);overflow-wrap:anywhere}

/* The small game name above each main headline is part of the heading */
main h1 :is(.eyebrow,#_){font-family:"Figtree",system-ui,sans-serif;font-size-adjust:.535;line-height:1.55;text-wrap:wrap}
/* Pictures state their size in the page (stops jumping while loading) but still scale */
:where(img[width][height]){height:auto}

/* ---------- Space between sections ----------
   Change --section-space to make every page roomier or tighter. */
:root{--section-space:3rem}
@media (max-width:720px){:root{--section-space:2.25rem}}
html main>section:not(.hero,.hero-slider,.table-view){padding-block:var(--section-space)}
/* Top banners: no extra padding around them, and less space under their contents */
html main>section.hero:has(>.hero-grid){padding-block:0}
html main>section.hero:not(:has(.hero-slide))>.hero-grid{padding-bottom:var(--section-space)}
html main>section.intro-hero{padding-top:2.5rem}

/* ---------- Section colours and background pictures (chosen in the editor) ----------
   data-gs-colour="dark" or "cream" repaints a section; data-gs-picture adds a faded photo behind it.
   Shop and download buttons keep their own colours. */
html main>section[data-gs-colour]:is(*,#_#_){--gs-back:#f8f1e4;--gs-text:#2c261d;--gs-head:#17120e;--gs-accent:#7d4d10;--gs-link:#8c1f19;--gs-card:#fffaf0;--gs-line:rgba(23,21,17,.16);--gs-wash:rgba(248,241,228,.8);--gs-glow:rgba(248,241,228,.95);
 background-color:var(--gs-back);background-image:none;color:var(--gs-text)!important}
html main>section[data-gs-colour=dark]:is(*,#_#_){--gs-back:var(--gs-dark,#17120e);--gs-text:#ece3d3;--gs-head:#fff6e6;--gs-accent:#e8bd68;--gs-link:#ffd48a;--gs-card:rgba(255,255,255,.07);--gs-line:rgba(255,255,255,.18);--gs-wash:rgba(12,9,7,.7);--gs-glow:rgba(0,0,0,.85)}
html main>section[data-gs-picture]:is(*,#_#_){background-size:cover;background-position:center;background-repeat:no-repeat}
html main>section[data-gs-picture][data-gs-fade=faint]:is(*,#_#_){--gs-wash:rgba(248,241,228,.9)}
html main>section[data-gs-picture][data-gs-fade=strong]:is(*,#_#_){--gs-wash:rgba(248,241,228,.55)}
html main>section[data-gs-picture][data-gs-colour=dark]:is(*,#_#_){--gs-card:rgba(12,9,7,.68)}
html main>section[data-gs-picture][data-gs-colour=dark][data-gs-fade=faint]:is(*,#_#_){--gs-wash:rgba(12,9,7,.85)}
html main>section[data-gs-picture][data-gs-colour=dark][data-gs-fade=strong]:is(*,#_#_){--gs-wash:rgba(12,9,7,.45)}
html main>section[data-gs-colour]:is(*,#_#_)::before,html main>section[data-gs-colour]:is(*,#_#_)::after{content:none!important}
/* A colour of your own: the words turn white or near-black, whichever reads better on it. */
html main>section[data-gs-custom]:is(*,#_#_#_){--gs-back:var(--gs-custom);--gs-text:#0f0b08;--gs-head:#0f0b08;--gs-accent:#0f0b08;--gs-link:#0f0b08;--gs-glow:var(--gs-custom);--gs-wash:color-mix(in srgb,var(--gs-custom) 76%,transparent)}
html main>section[data-gs-custom][data-gs-colour=dark]:is(*,#_#_#_){--gs-text:#fff;--gs-head:#fff;--gs-accent:#fff;--gs-link:#fff}
html main>section[data-gs-custom][data-gs-fade=faint]:is(*,#_#_#_){--gs-wash:color-mix(in srgb,var(--gs-custom) 88%,transparent)}
html main>section[data-gs-custom][data-gs-fade=strong]:is(*,#_#_#_){--gs-wash:color-mix(in srgb,var(--gs-custom) 50%,transparent)}
main>section[data-gs-custom] p a:not(.btn,.pill){text-decoration:underline}
main>section[data-gs-colour] :is(.fact,.world-card,.callout-card,.card,.upcoming-game,.info-card,.shop-panel,.app,.step,.range-card,.adventure-card,.connect-card,.game-card){background:var(--gs-card)!important;border-color:var(--gs-line)!important}
/* Words follow the section, except on buttons and on the picture tiles, which keep their own colours. */
main>section[data-gs-colour] :not(:is(.btn,.pill,.app-link,.upcoming-link,.upcoming-release,.nav-cta,.step>b,.page-buttons a,.feature,button,svg),:is(.btn,.pill,.app-link,.upcoming-link,.upcoming-release,.nav-cta,.page-buttons a,.feature,button,svg) *){color:var(--gs-text)!important}
main>section[data-gs-colour] :is(h1,h2,h3,h4,h5,h6,h1 *,h2 *,h3 *,h4 *,strong,.tick,#_):not(.feature *){color:var(--gs-head)!important}
main>section[data-gs-colour] :is(.eyebrow,.kicker,.chron-no,.eyebrow *,#_#_):not(.feature *){color:var(--gs-accent)!important}
main>section[data-gs-colour] a:not(.btn,.pill,.app-link,.upcoming-link,.nav-cta,.page-buttons a,.feature):is(*,#_#_#_){color:var(--gs-link)!important}
main>section[data-gs-colour] :is(.btn-outline,.btn-secondary,.page-buttons a.outline,#_#_#_#_){color:var(--gs-head)!important;background:transparent!important;border-color:var(--gs-head)!important}
main>section[data-gs-colour] .gallery-item{color:#f6ead6!important}
main>section[data-gs-picture]:not([data-gs-fade=faint]) :is(h1,h2,h3,p,.eyebrow):not(.feature *){text-shadow:0 0 10px var(--gs-glow),0 0 3px var(--gs-glow)}

/* ---------- Field-note panels (APOC) ----------
   A <div class="field-card"> holding a small label, a heading and a paragraph.
   The numbers add themselves, and bold words show in yellow. */
@font-face{font-family:"Stardos Stencil";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/stardos-stencil-latin-700-normal.woff2") format("woff2")}
@font-face{font-family:"Courier Prime";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/courier-prime-latin-400-normal.woff2") format("woff2")}
@font-face{font-family:"Courier Prime";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/courier-prime-latin-700-normal.woff2") format("woff2")}
main .world-grid.field-notes{grid-template-columns:repeat(4,minmax(0,1fr));gap:1.4rem;counter-reset:field}
@media (max-width:1080px){main .world-grid.field-notes{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:620px){main .world-grid.field-notes{grid-template-columns:minmax(0,1fr)}}
main .field-card{position:relative;min-width:0;padding:3.75rem 1.875rem 2.5rem;border:1px solid #4a4b44;border-radius:6px;counter-increment:field;color:#dcdcd5;font-size-adjust:none;text-align:left;
 background:repeating-linear-gradient(135deg,#dfbf45 0 12px,#171814 12px 24px) top/100% 13px no-repeat,linear-gradient(180deg,#2b2d27,#1f201b);box-shadow:inset 0 0 28px rgba(0,0,0,.28),0 12px 32px rgba(0,0,0,.28)}
main .field-card::before{content:"";position:absolute;inset:8px;border:1px dashed rgba(255,255,255,.13);pointer-events:none}
main .field-card::after{content:counter(field,decimal-leading-zero);position:absolute;top:25px;right:22px;width:35px;height:34px;display:grid;place-items:center;background:#dfbf45;color:#141510;font:700 .875rem/1 "Courier Prime","Courier New",monospace;transform:rotate(2deg)}
main .field-card :is(h3,p,strong,#_){font-size-adjust:none;max-width:none}
main .field-card :is(h3,#_){font-family:"Stardos Stencil","Stencil",Georgia,serif;font-size:1.875rem;font-weight:700;line-height:1.08;letter-spacing:0;text-transform:uppercase;color:#fff;margin:0 0 1.25rem;overflow-wrap:break-word}
main .field-card :is(p,#_):not(.mission,.quote){font-family:"Courier Prime","Courier New",monospace;font-size:1.0625rem;line-height:1.5;color:#dcdcd5;margin:0;text-wrap:pretty}
main .field-card :is(p.field-label,#_):not(.mission,.quote){font-size:.75rem;font-weight:700;line-height:1.4;letter-spacing:.2em;text-transform:uppercase;color:#cdb54f;margin:0 0 1.4rem}
main .field-card :is(strong,b,#_){color:#dfbf45;font-weight:700}
/* The panels keep their own colours when the section colour is changed */
@media screen{
 main>section[data-gs-colour] .field-card:is(*,#_#_#_#_),main>section[data-gs-colour] .field-card:is(*,#_#_#_#_) p{color:#dcdcd5!important}
 main>section[data-gs-colour] .field-card:is(*,#_#_#_#_) h3{color:#fff!important}
 main>section[data-gs-colour] .field-card:is(*,#_#_#_#_) p.field-label{color:#cdb54f!important}
 main>section[data-gs-colour] .field-card:is(*,#_#_#_#_) :is(strong,b){color:#dfbf45!important}
 main>section[data-gs-picture] .field-card:is(*,#_#_#_#_) :is(h3,p){text-shadow:none!important}
}
@media print{main .field-card{background:#fff;border-color:#999}main .field-card::before,main .field-card::after{content:none}}
