/* Glyphwake site. Concept B: carved dark wood, gilt, deep green-black panels, parchment. */
:root {
  --bg: #140d09;
  --wood: #2a1a10;
  --wood-dark: #1b110b;
  --panel: #101812;
  --panel-edge: #2c3a2c;
  --gold: #c9a24d;
  --gold-bright: #f0cd78;
  --gold-dim: #8a6a2c;
  --text: #ecdfc6;
  --text-dim: #c3b394;
  --parchment: #ead9b3;
  --parchment-dark: #d9c294;
  --ink: #2b1d12;
  --ink-soft: #5a4128;
  --glyph: #7fe3e8;
  --radius: 6px;
  --head: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --body: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 50% -10%, rgba(201, 162, 77, 0.10), transparent 60%),
    repeating-linear-gradient(93deg, rgba(255, 220, 170, 0.018) 0 2px, transparent 2px 9px),
    linear-gradient(180deg, var(--wood-dark), var(--bg) 40%);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.1875rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold-bright); text-underline-offset: 0.18em; }
a:hover { color: #fff1c9; }

:focus-visible {
  outline: 3px solid var(--glyph);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--gold); color: var(--ink); padding: 0.5rem 1rem;
  font-family: var(--head); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 1rem; }

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.6rem, 9vw, 5.2rem); letter-spacing: 0.08em; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); margin-inline: auto; }

/* Header bar: carved wood with a gilt rule beneath. */
.bar {
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.14) 0 3px, transparent 3px 11px),
    linear-gradient(180deg, #3a2414, var(--wood));
  border-bottom: 2px solid var(--gold-dim);
  box-shadow: 0 1px 0 rgba(240, 205, 120, 0.25), 0 6px 18px rgba(0, 0, 0, 0.45);
}
.bar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 0.7rem; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--head); font-weight: 700; font-size: 1.25rem;
  letter-spacing: 0.1em; color: var(--gold-bright); text-decoration: none;
}
.brand img { width: 32px; height: 32px; }
.bar nav ul { list-style: none; display: flex; gap: 0.25rem 1.2rem; margin: 0; padding: 0; flex-wrap: wrap; }
.bar nav a {
  font-family: var(--head); font-size: 0.9rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text); text-decoration: none;
  padding: 0.3rem 0;
}
.bar nav a:hover, .bar nav a[aria-current="page"] { color: var(--gold-bright); border-bottom: 1px solid var(--gold); }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero picture, .hero .hero-img { position: absolute; inset: 0; z-index: -2; }
.hero .hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 13, 9, 0.35) 0%, rgba(20, 13, 9, 0.55) 55%, var(--bg) 100%),
    radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.55) 80%);
}
.hero-inner {
  min-height: min(82vh, 760px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 5rem 0 4rem;
}
.hero h1 {
  margin-bottom: 0.15em;
  text-shadow: 0 2px 0 #3a2410, 0 0 28px rgba(240, 205, 120, 0.35), 0 4px 24px rgba(0, 0, 0, 0.8);
}
.rule {
  width: min(320px, 70%); height: 14px; margin: 0.4rem auto 1.2rem;
  background:
    radial-gradient(circle, var(--gold-bright) 0 3px, transparent 3.5px) center / 14px 14px no-repeat,
    linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent) center / 100% 1px no-repeat;
}
.pitch {
  font-size: clamp(1.2rem, 3.2vw, 1.55rem); max-width: 34ch; margin: 0 auto 2rem;
  color: #fbf1dc; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

/* Badge: gilt-framed plate. The store link goes in #store-link. */
.badge-area { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.plate {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.8rem 1.4rem;
  background: linear-gradient(180deg, #1a2419, var(--panel));
  border: 1px solid var(--gold);
  outline: 1px solid rgba(201, 162, 77, 0.35); outline-offset: 4px;
  border-radius: var(--radius);
  font-family: var(--head); letter-spacing: 0.08em; color: var(--gold-bright);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}
.plate small { display: block; font-size: 0.72rem; color: var(--text-dim); letter-spacing: 0.18em; text-transform: uppercase; }
.plate strong { display: block; font-size: 1.2rem; }
.store-link:empty { display: none; }
.store-link a {
  display: inline-block; padding: 0.7rem 1.4rem; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: var(--ink); font-family: var(--head); font-weight: 700; text-decoration: none; letter-spacing: 0.06em;
}

/* Sections */
section { padding: 4rem 0; }
.section-head { text-align: center; margin-bottom: 2.4rem; }
.section-head p { color: var(--text-dim); margin: 0; }

/* Framed panel: deep green-black with a gilt double edge and corner studs. */
.panel {
  position: relative;
  background: linear-gradient(180deg, #142017, var(--panel));
  border: 1px solid var(--gold-dim);
  box-shadow: inset 0 0 0 4px var(--panel), inset 0 0 0 5px rgba(201, 162, 77, 0.35), 0 10px 30px rgba(0, 0, 0, 0.5);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.4rem;
}
.panel::before, .panel::after {
  content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff1c9, var(--gold) 55%, #6b4f1e);
  top: -5px; left: -5px;
}
.panel::after { left: auto; right: -5px; }

.features { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.feature h3 { display: flex; align-items: center; gap: 0.6rem; }
.feature h3 svg { flex: none; width: 28px; height: 28px; color: var(--gold); }
.feature p { margin: 0; color: var(--text); }

/* Gallery */
.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin: 0; padding: 0; list-style: none; }
.gallery figure { margin: 0; }
.gallery a {
  display: block; border: 1px solid var(--gold-dim); border-radius: var(--radius); overflow: hidden;
  background: #000; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.gallery img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.03); }
.gallery figcaption { font-size: 0.98rem; color: var(--text-dim); padding: 0.5rem 0.2rem 0; }

/* Lightbox (progressive enhancement; links open the full image without JS). */
.lightbox {
  border: 1px solid var(--gold); border-radius: var(--radius); padding: 0; background: #000;
  width: min(1600px, 96vw); max-width: 96vw; max-height: 94vh; color: var(--text);
}
.lightbox::backdrop { background: rgba(8, 5, 3, 0.88); }
.lightbox img { width: 100%; height: auto; max-height: 84vh; object-fit: contain; }
.lightbox p { margin: 0; padding: 0.6rem 1rem; font-size: 1rem; color: var(--text-dim); background: var(--panel); }
.lightbox button {
  position: absolute; top: 0.5rem; right: 0.5rem;
  font: 700 1rem var(--head); color: var(--ink); background: var(--gold-bright);
  border: 0; border-radius: var(--radius); padding: 0.4rem 0.8rem; cursor: pointer;
}

/* Requirements */
.reqs { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.req { text-align: center; }
.req small { display: block; font-family: var(--head); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); }
.req strong { display: block; font-family: var(--head); color: var(--gold-bright); font-size: 1.15rem; margin-top: 0.3rem; }
.req span { display: block; font-size: 0.98rem; color: var(--text-dim); margin-top: 0.3rem; }

/* Parchment for long text */
.parchment {
  position: relative;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255, 255, 255, 0.35), transparent 50%),
    radial-gradient(ellipse at 85% 90%, rgba(120, 80, 30, 0.18), transparent 55%),
    linear-gradient(180deg, var(--parchment), var(--parchment-dark));
  color: var(--ink);
  border: 1px solid var(--gold-dim);
  outline: 2px solid #3a2414; outline-offset: 6px;
  border-radius: 3px;
  box-shadow: 0 0 0 8px var(--wood), 0 0 0 9px var(--gold-dim), 0 18px 40px rgba(0, 0, 0, 0.6), inset 0 0 60px rgba(110, 70, 25, 0.25);
  padding: clamp(1.4rem, 5vw, 3rem);
  margin: 3rem auto;
}
.parchment h1, .parchment h2, .parchment h3 { color: #4a2f14; text-shadow: none; }
.parchment h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); text-align: center; }
.parchment h2 { font-size: 1.35rem; margin-top: 1.8em; border-bottom: 1px solid rgba(90, 65, 40, 0.35); padding-bottom: 0.25em; }
.parchment a { color: #6b3d0a; font-weight: 600; }
.parchment a:hover { color: #3b1f04; }
.parchment .meta { text-align: center; color: var(--ink-soft); font-style: italic; margin-top: -0.4em; }
.parchment ul, .parchment ol { padding-left: 1.3em; }
.parchment li { margin: 0.3em 0; }
.parchment .lede { font-size: 1.25rem; }
.placeholder {
  font-style: italic; color: var(--ink-soft);
  border-bottom: 1px dashed rgba(90, 65, 40, 0.6);
}

/* Press fact sheet */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.4rem; margin: 0 0 1.6rem; }
.facts dt { font-family: var(--head); font-weight: 700; color: #4a2f14; font-size: 0.95rem; letter-spacing: 0.06em; padding-top: 0.15em; }
.facts dd { margin: 0; }
.press-shots { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin: 1rem 0 0; padding: 0; list-style: none; }
.press-shots figure { margin: 0; }
.press-shots img { border: 1px solid var(--gold-dim); border-radius: 3px; }
.press-shots figcaption { font-size: 0.95rem; color: var(--ink-soft); margin-top: 0.3rem; }

/* Footer */
footer {
  margin-top: 2rem;
  background: linear-gradient(180deg, var(--wood), var(--wood-dark));
  border-top: 2px solid var(--gold-dim);
  box-shadow: inset 0 1px 0 rgba(240, 205, 120, 0.2);
  padding: 2rem 0 2.4rem; font-size: 1rem; color: var(--text-dim);
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin: 0; padding: 0; }
footer a { font-family: var(--head); letter-spacing: 0.06em; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer p { margin: 0; }
.studio-name:empty { display: none; }
.fineprint { flex-basis: 100%; font-size: 0.9rem; }

.center { text-align: center; }
.btn {
  display: inline-block; padding: 0.7rem 1.4rem; border-radius: var(--radius);
  border: 1px solid var(--gold); color: var(--gold-bright); text-decoration: none;
  font-family: var(--head); letter-spacing: 0.06em;
}
.btn:hover { background: rgba(201, 162, 77, 0.12); }

@media (max-width: 860px) {
  .bar .wrap { justify-content: center; gap: 0.4rem; }
  .bar nav ul { justify-content: center; gap: 0.2rem 1rem; }
  .bar nav a { font-size: 0.82rem; }
}

@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  section { padding: 3rem 0; }
  .facts { grid-template-columns: 1fr; gap: 0.1rem; }
  .facts dd { margin-bottom: 0.6rem; }
  .parchment { box-shadow: 0 0 0 5px var(--wood), 0 0 0 6px var(--gold-dim), 0 12px 30px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(110, 70, 25, 0.25); outline-offset: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
