/* Greywatch website (version 2; version 1 is the git tag website-v1): a cinematic fantasy page. Alternating leather and night bands with torn edges,
   framed scenes with bronze corners, light serif display type. No scripts, external fonts or trackers. 4px grid. */
:root {
  --ink: #0b1218; --night: #0f1b24; --night-2: #132430; --leather: #2b2118; --leather-2: #3a2c1f;
  --ivory: #ece6d6; --ivory-dim: rgba(236, 230, 214, .8); --ivory-faint: rgba(236, 230, 214, .62);
  --bronze: #b89b6a; --bronze-bright: #dcc38f; --bronze-deep: #7d6440;
  --hairline: rgba(220, 195, 143, .22);
  --serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "Cascadia Mono", Consolas, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* Background scenes live here, not in style attributes: the site's security policy blocks inline styles. */
  --hero: url("/assets/shots/hero.webp");
  --cta: url("/assets/shots/rivermeet.webp");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--ink); color: var(--ivory); font: 17px/1.65 var(--sans); }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--bronze-bright); }
:focus-visible { outline: 2px solid var(--bronze-bright); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0 0 16px; color: var(--ivory); }
h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); }
h2 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 16px; color: var(--ivory-dim); }
.kicker { font-family: var(--serif); text-transform: uppercase; letter-spacing: .22em; font-size: .85rem; color: var(--bronze-bright); margin-bottom: 12px; }
.fine { font-size: .85rem; color: var(--ivory-faint); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.intro { max-width: 680px; margin: 0 auto 16px; font-size: 1.1rem; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 30; padding: 12px 16px; border-radius: 8px; background: var(--ivory); color: var(--ink); text-decoration: none; }
.skip:focus { top: 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 24px; background: rgba(11, 18, 24, .94); border-bottom: 1px solid var(--hairline); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ivory); font-family: var(--serif); font-size: 1.25rem; letter-spacing: .12em; text-transform: uppercase; }
.top nav { display: flex; align-items: center; gap: 20px; }
.top nav a:not(.btn) { color: var(--ivory-dim); text-decoration: none; font-size: .95rem; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; transition: color .15s var(--ease); }
.top nav a:not(.btn):hover { color: var(--ivory); }

/* Buttons: bronze plates with a fine inner rule */
.btn { position: relative; display: inline-block; min-width: 220px; padding: 14px 28px; text-align: center; text-decoration: none;
  font-family: var(--serif); font-size: 1.05rem; letter-spacing: .04em; color: #1a130b !important;
  background: linear-gradient(180deg, var(--bronze-bright), var(--bronze)); border: 1px solid #f0dcb0; border-radius: 4px;
  box-shadow: inset 0 0 0 3px rgba(26, 19, 11, .18), 0 2px 8px rgba(0, 0, 0, .35);
  transition: filter .15s var(--ease), transform .1s var(--ease); }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn-ghost { background: rgba(11, 18, 24, .55); color: var(--ivory) !important; border-color: var(--bronze); box-shadow: inset 0 0 0 3px rgba(220, 195, 143, .08); }
.btn-small { min-width: 0; padding: 8px 18px; font-size: .95rem; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 32px 0 16px; }

/* Hero */
.hero { position: relative; min-height: 94vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 96px 0 120px;
  background: radial-gradient(ellipse at 50% 45%, rgba(11,18,24,.35) 0%, rgba(11,18,24,.72) 60%, rgba(11,18,24,.92) 100%),
              linear-gradient(180deg, rgba(11,18,24,.1), rgba(11,18,24,.6) 80%, var(--leather) 100%), var(--hero) center/cover no-repeat; }
.hero-inner { max-width: 880px; padding: 0 24px; }
.lockup { width: 200px; margin: 0 auto 16px; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .6)); }
.lockup-small { width: 120px; }
.hero h1 { text-shadow: 0 2px 16px rgba(0, 0, 0, .55); }
.lede { font-size: 1.2rem; color: var(--ivory); max-width: 640px; margin: 0 auto; }

/* Bands and torn edges */
.band { position: relative; padding: 112px 0 96px; }
.leather { background:
  radial-gradient(ellipse at 20% 10%, rgba(255, 220, 160, .06), transparent 55%),
  radial-gradient(ellipse at 85% 80%, rgba(0, 0, 0, .28), transparent 60%),
  linear-gradient(180deg, var(--leather-2), var(--leather)); }
.night { background:
  radial-gradient(ellipse at 50% 0%, rgba(120, 170, 190, .08), transparent 60%),
  linear-gradient(180deg, var(--night-2), var(--night)); }
.edge-top::before { content: ""; position: absolute; left: 0; right: 0; top: -23px; height: 24px; background: inherit;
  clip-path: polygon(0 100%, 0 60%, 4% 40%, 9% 70%, 14% 35%, 19% 60%, 25% 30%, 31% 65%, 36% 45%, 42% 75%, 48% 35%, 54% 60%, 59% 30%, 65% 70%, 71% 40%, 77% 65%, 82% 30%, 88% 60%, 93% 40%, 97% 70%, 100% 50%, 100% 100%); }
.leather.edge-top::before { background: var(--leather-2); }
.night.edge-top::before { background: var(--night-2); }

/* Ornamental frames: hairline border, bronze corner brackets */
.frame { position: relative; margin: 0; padding: 8px; background: rgba(0, 0, 0, .35); border: 1px solid var(--hairline); border-radius: 2px; display: block; }
.frame::before, .frame::after { content: ""; position: absolute; width: 28px; height: 28px; pointer-events: none; border-color: var(--bronze-bright); border-style: solid; }
.frame::before { top: -3px; left: -3px; border-width: 2px 0 0 2px; }
.frame::after { bottom: -3px; right: -3px; border-width: 0 2px 2px 0; }
.frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Text and media rows */
.row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; margin-top: 48px; }
.row:first-child { margin-top: 0; }
.row-flip .row-text { order: 2; }
.row-text h2 { font-size: clamp(2.5rem, 5vw, 4rem); }

/* Region tabs (radio buttons and labels, no script) */
.tabs { margin-top: 40px; }
.tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.tab-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 32px; border-bottom: 1px solid var(--hairline); margin-bottom: 40px; }
.tab-list label { cursor: pointer; font-family: var(--serif); font-size: 1.2rem; color: var(--ivory-faint); padding: 12px 4px; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s var(--ease), border-color .15s var(--ease); }
.tab-list label:hover { color: var(--ivory); }
.panel { display: none; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
#r-kindlevale:checked ~ .panels .p-kindlevale, #r-hearthmoor:checked ~ .panels .p-hearthmoor,
#r-depths:checked ~ .panels .p-depths, #r-crownbreak:checked ~ .panels .p-crownbreak { display: grid; }
#r-kindlevale:checked ~ .tab-list [for="r-kindlevale"], #r-hearthmoor:checked ~ .tab-list [for="r-hearthmoor"],
#r-depths:checked ~ .tab-list [for="r-depths"], #r-crownbreak:checked ~ .tab-list [for="r-crownbreak"] { color: var(--bronze-bright); border-bottom-color: var(--bronze-bright); }
#r-kindlevale:focus-visible ~ .tab-list [for="r-kindlevale"], #r-hearthmoor:focus-visible ~ .tab-list [for="r-hearthmoor"],
#r-depths:focus-visible ~ .tab-list [for="r-depths"], #r-crownbreak:focus-visible ~ .tab-list [for="r-crownbreak"] { outline: 2px solid var(--bronze-bright); outline-offset: 4px; }
.band-tag { font-family: var(--mono); font-size: .85rem; color: var(--bronze); margin: 0 0 8px; font-variant-numeric: tabular-nums; }

/* Classes */
.classes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
.class-card { text-align: center; }
.class-card .frame { margin-bottom: 24px; }
.class-card img { aspect-ratio: 4 / 5; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.gallery .frame:first-child { grid-column: span 2; grid-row: span 2; }
.gallery .frame:first-child img { aspect-ratio: auto; height: 100%; }
.gallery .frame { transition: border-color .15s var(--ease); }
.gallery .frame:hover { border-color: var(--bronze); }

/* Download */
.cta { background:
  linear-gradient(180deg, rgba(15, 27, 36, .9), rgba(15, 27, 36, .96)), var(--cta) center/cover no-repeat; }
.steps { text-align: left; max-width: 620px; margin: 32px auto 0; padding-left: 20px; color: var(--ivory-dim); }
.steps li { margin-bottom: 12px; }
.steps strong { color: var(--ivory); font-weight: 500; }
.steps em { font-style: normal; color: var(--ivory); }

/* FAQ */
details { border-top: 1px solid var(--hairline); padding: 20px 0; }
details:last-of-type { border-bottom: 1px solid var(--hairline); }
summary { cursor: pointer; font-family: var(--serif); font-size: 1.3rem; color: var(--ivory); }
details p { margin: 12px 0 0; }

/* Footer */
.foot { padding: 48px 0; background: var(--ink); border-top: 1px solid var(--hairline); }
.foot-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.foot .fine { margin: 0; }

@media (max-width: 900px) {
  .row, .panel { grid-template-columns: 1fr; gap: 32px; }
  .row-flip .row-text { order: 0; }
  .classes { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .class-card img { aspect-ratio: 16 / 9; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .top nav a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .band { padding: 80px 0 64px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .frame:first-child { grid-column: auto; grid-row: auto; }
  .gallery .frame:first-child img { aspect-ratio: 16 / 9; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { min-width: 0; width: 100%; }
  .lockup { width: 140px; }
  .top .btn-ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
