/* Shared chrome for the map pages (village.html, explore/, explore-port-selby/).
   Tokens, announcement bar, frosted nav, phone sheet, buttons and footer are
   copied from the homepage / world pages so these pages read as the same site.
   World accent: Thornhaven honey by default; body.w-dragons switches to teal. */
:root {
  color-scheme: dark;
  --sc-canvas: #08080a; --sc-surface: #121317;
  --sc-ink: #e2e3e9; --sc-ink-soft: #9194a1;
  --sc-accent: #E3AE62; --sc-accent-ink: #08080a;
  --sc-font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sc-font-text: "Inter", system-ui, sans-serif;
  --head: #ffffff;
  --card: #0d0e11; --card-2: #121317;
  --line: #1c1d22; --line-2: #2e3038;
  --mute: #9194a1; --dim: #5e616e; --silver: #c7c9d1;
  --cream: #F6EBD6; --honey: #E3AE62; --honey-2: #F0C27E;
  --teal: #8CC5BE; --moon: #F4EBD2;
  --world: var(--honey); --world-2: var(--honey-2);
  --gild: linear-gradient(103deg, rgb(174 147 87 / 0), rgb(174 147 87) 18%, rgb(255 240 204) 45%, rgb(174 147 87) 72%, rgb(189 157 79 / 0));
  --ease: cubic-bezier(.22, 1, .36, 1);
  --maxw: 1216px;
  --pad: clamp(20px, 5vw, 56px);
}
body.w-dragons { --world: var(--teal); --world-2: #A9E0D8; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sc-font-text); font-weight: 400; font-size: 17px; line-height: 1.55; color: var(--sc-ink);
       background: var(--sc-canvas); letter-spacing: -0.006em; overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, select { font: inherit; color: inherit; }
button, a, select, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
h1, h2, h3 { font-family: var(--sc-font-display); font-weight: 400; color: var(--head); margin: 0; letter-spacing: .005em; text-wrap: balance; }
h1 em, h2 em, h3 em { font-style: italic; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.eyebrow { font-size: 13px; line-height: 1.3; font-weight: 500; letter-spacing: .02em; color: var(--world); margin: 0; text-transform: none; }
.lede { font-size: clamp(17px, 1.1rem + .2vw, 20px); line-height: 1.45; color: var(--silver); font-weight: 300; }
.vh, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; }

/* buttons (homepage) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px;
       border-radius: 9999px; font: 500 14px/1 var(--sc-font-text); white-space: nowrap; cursor: pointer; border: 0;
       transition: transform 140ms var(--ease), background 180ms var(--ease), color 180ms var(--ease), box-shadow 180ms var(--ease); }
.btn:active { transform: scale(.97); }
.btn--white { background: #fff; color: #08080a; }
.btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
@media (hover: hover) and (pointer: fine) {
  .btn--white:hover { background: #e9e6df; }
  .btn--ghost:hover { box-shadow: inset 0 0 0 1px #777a88; }
}
.btn:focus-visible, a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--world); outline-offset: 3px; }
.arrow { display: inline-block; transition: transform 200ms var(--ease); }
a:hover .arrow { transform: translateX(3px); }

/* chrome (homepage, verbatim) */
.announce { position: relative; z-index: 61; height: 36px; display: flex; align-items: center; justify-content: center; gap: 10px;
            font-size: 13px; color: var(--silver); background: #050506; border-bottom: 1px solid var(--line); padding: 0 16px; }
.announce b { font-weight: 500; color: #fff; }
.announce a { color: var(--sc-accent); white-space: nowrap; }
.announce .shine { background: var(--gild); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 500;
                   animation: shine 6s linear infinite; }
@keyframes shine { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .announce .shine { animation: none; color: var(--sc-accent); background: none; } }
@media (max-width: 520px) { .announce { font-size: 12px; gap: 8px; } .announce .shine { display: none; } }
.nav { position: sticky; top: 0; z-index: 60; transition: background 300ms var(--ease), box-shadow 300ms var(--ease), backdrop-filter 300ms; }
.nav.solid { background: rgb(8 8 10 / .72); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.nav__in { height: 64px; display: flex; align-items: center; gap: 28px; }
.mark { font-family: var(--sc-font-display); font-size: 26px; color: #fff; letter-spacing: .005em; white-space: nowrap; }
.mark i { color: #cc9166; }
.nav__links { display: flex; gap: 26px; margin: 0 auto; font-size: 14px; color: var(--mute); }
.nav__links a { transition: color 160ms; padding: 6px 0; }
.nav__links a:hover, .nav__links a:focus-visible { color: #fff; }
.nav__links a[aria-current] { color: #fff; box-shadow: inset 0 -1px 0 var(--world); }
.nav__cta { display: flex; gap: 10px; }
.nav__cta .btn { height: 38px; padding: 0 18px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 9999px; border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: #fff; cursor: pointer; }
.sheet { display: none; }
@media (max-width: 980px) {
  .nav__links, .nav__cta { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
  .sheet { position: fixed; inset: 100px 12px auto 12px; z-index: 59; display: grid; gap: 4px; padding: 14px; border-radius: 14px; background: rgb(14 15 18 / .96);
           -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 0 0 1px var(--line-2), 0 30px 60px -20px #000;
           max-height: calc(100svh - 112px); overflow: auto;
           opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
  .sheet.open { opacity: 1; transform: none; pointer-events: auto; }
  .sheet a { padding: 12px 10px; border-radius: 8px; font-size: 16px; color: var(--silver); }
  .sheet a[aria-current] { color: #fff; background: var(--card-2); }
  .sheet a:hover { background: var(--card-2); color: #fff; }
  .sheet .btn { margin-top: 8px; color: #08080a; }
  .sheet .btn:hover { color: #08080a; background: #e9e6df; }
}

/* breadcrumb row inside the world (map pages only) */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 13px; color: var(--dim); }
.crumbs a { color: var(--mute); padding: 10px 2px; transition: color 160ms; }
.crumbs a:hover { color: #fff; }
.crumbs a[aria-current] { color: var(--world); }
.crumbs span[aria-hidden] { color: var(--line-2); }

/* footer (homepage) */
.foot { border-top: 1px solid var(--line); padding: 64px 0 40px; font-size: 14px; background: var(--sc-canvas); }
.foot__grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot h4 { margin: 0 0 14px; font-size: 13px; font-weight: 500; color: #fff; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { color: var(--mute); transition: color 160ms; }
.foot a:hover { color: #fff; }
.foot__base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: var(--dim); font-size: 13px; }
.foot__base a { color: var(--mute); }
.foot .mark { font-size: 30px; }
.foot__blurb { margin-top: 12px; color: var(--mute); max-width: 22em; }
@media (max-width: 860px) {
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__grid > :first-child { grid-column: 1 / -1; }
  .foot ul a { display: inline-block; padding: 4px 0; }
}
