/* ==================================================================
   SHADLANDS THEME
   Every colour, font and spacing value lives in :root below.
   Change these to restyle the whole site in one place.
   ================================================================== */
:root {
  /* Palette: blued steel, bone, oxblood heraldry, gilt */
  --iron: #1B1F24;        /* page background */
  --iron-2: #252B32;      /* raised panels */
  --iron-3: #323A43;      /* borders on dark */
  --steel: #9AA6B1;       /* secondary text on dark */
  --bone: #ECE6D9;        /* main text on dark */
  --linen: #E7E2D6;       /* light reading panels */
  --ink: #1F1C18;         /* text on light */
  --ink-soft: #4A443B;
  --oxblood: #8E231C;     /* primary buttons */
  --oxblood-hi: #A92C23;
  --gilt: #C9A44C;        /* rules, focus, highlights */
  --gilt-soft: #8F7536;

  /* Type */
  --font-display: "Grenze Gotisch", "UnifrakturMaguntia", Georgia, serif;
  --font-body: "Alegreya", Georgia, "Times New Roman", serif;
  --step--1: 0.9rem;
  --step-0: 1.125rem;
  --step-1: 1.35rem;
  --step-2: 1.75rem;
  --step-3: 2.4rem;
  --step-4: clamp(3rem, 9vw, 6.5rem);

  /* Space */
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(3rem, 8vw, 6rem);
  --measure: 68ch;
  --wide: 72rem;
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--iron);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gilt); text-underline-offset: 3px; }
a:hover { color: #E0C26F; }
:focus-visible { outline: 3px solid var(--gilt); outline-offset: 3px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h1, .display { font-family: var(--font-display); font-weight: 700; letter-spacing: .01em; }
h2 { font-size: var(--step-3); font-family: var(--font-display); font-weight: 500; }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.measure { max-width: var(--measure); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--gilt); color: var(--iron); padding: .5rem 1rem; z-index: 10; }
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--iron-3); background: var(--iron); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--bone); text-decoration: none; font-family: var(--font-display); font-size: 1.6rem; }
.brand img { width: 34px; height: 38px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--iron-3); color: var(--bone); font: inherit; padding: .35rem .8rem; border-radius: var(--radius); cursor: pointer; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.site-nav a { display: block; padding: .5rem .75rem; color: var(--bone); text-decoration: none; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--gilt); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--oxblood-hi); color: var(--gilt); }
@media (max-width: 52rem) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; inset: 100% 0 auto 0; background: var(--iron-2); border-bottom: 1px solid var(--iron-3); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: .5rem var(--gutter) 1rem; }
  .site-nav a { padding: .75rem 0; border-bottom: 1px solid var(--iron-3); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--oxblood-hi); }
}

/* ---------- Hero: the one bold moment ---------- */
.hero { padding: var(--section) 0 calc(var(--section) * .6); overflow: hidden; }
.hero h1 { font-size: var(--step-4); margin: 0; line-height: .95; color: var(--bone); }
.hero .lede { font-size: var(--step-1); color: var(--steel); max-width: 34ch; margin-top: 1rem; font-style: italic; }
.blade { display: block; width: 100%; height: 28px; margin: 1.25rem 0 0; }
.blade .edge { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 1.1s cubic-bezier(.6,0,.2,1) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .blade .edge { animation: none; stroke-dashoffset: 0; } }

.page-head { padding: calc(var(--section) * .7) 0 1.5rem; }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin: 0; }
.page-head .lede { color: var(--steel); font-style: italic; font-size: var(--step-1); margin: .5rem 0 0; }

.section { padding: var(--section) 0; }
.section + .section { padding-top: 0; }
.page-head + .section, .hero + .section { padding-top: 1rem; }
.past { margin-top: 2.5rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font: inherit; font-weight: 700; padding: .7rem 1.4rem; border-radius: var(--radius); border: 2px solid var(--oxblood); background: var(--oxblood); color: var(--bone); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--oxblood-hi); border-color: var(--oxblood-hi); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--gilt-soft); color: var(--bone); }
.btn-ghost:hover { background: var(--iron-2); border-color: var(--gilt); color: var(--gilt); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Video frame ---------- */
.video-frame { position: relative; border: 1px solid var(--gilt-soft); padding: .6rem; background: var(--iron-2); }
.video-frame::before, .video-frame::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--gilt); top: -5px; left: -5px; }
.video-frame::after { left: auto; right: -5px; }
.video { position: relative; aspect-ratio: 16 / 9; background: #0f1215; overflow: hidden; }
.video iframe, .video img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video button { position: absolute; inset: 0; width: 100%; background: none; border: 0; cursor: pointer; padding: 0; }
.video .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 54px; background: var(--oxblood); border-radius: 10px; display: grid; place-items: center; }
.video .play::after { content: ""; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }
.video button:hover .play, .video button:focus-visible .play { background: var(--oxblood-hi); }
.video-empty { display: grid; place-items: center; text-align: center; color: var(--steel); padding: 2rem; height: 100%; position: absolute; inset: 0; }
.video-note { color: var(--steel); font-size: var(--step--1); margin-top: .6rem; }

.home-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 60rem) { .home-grid { grid-template-columns: 1.4fr 1fr; } }

.soon-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 60rem) { .soon-grid { grid-template-columns: 1fr 24rem; } }

/* ---------- Reading panel (light, manuscript) ---------- */
.folio { background: var(--linen); color: var(--ink); padding: clamp(1.5rem, 5vw, 3.5rem); border-radius: var(--radius); box-shadow: inset 0 0 0 1px #CFC7B5, inset 0 0 0 6px var(--linen), inset 0 0 0 7px #CFC7B5; }
.folio a { color: var(--oxblood); }
.folio h2, .folio h3 { color: var(--ink); }
.folio .meta { color: var(--ink-soft); font-style: italic; }
.rich.drop > p:first-of-type::first-letter { float: left; font-family: var(--font-display); font-size: 3.6em; line-height: .8; padding: .08em .1em 0 0; color: var(--oxblood); }
.rich img { margin: 1rem 0; }

.policy h3 { margin-top: 1.6em; }
.policy table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: var(--step--1); }
.policy th, .policy td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid #CFC7B5; vertical-align: top; }

/* ---------- Store ---------- */
.ware-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); }
.ware { display: flex; flex-direction: column; background: var(--iron-2); border: 1px solid var(--iron-3); }
.ware-img { aspect-ratio: 4 / 3; background: #14181c; display: grid; place-items: center; overflow: hidden; }
.ware-img img { width: 100%; height: 100%; object-fit: cover; }
.ware-img img.placeholder { width: 56px; height: auto; object-fit: contain; opacity: .4; }
.ware-body { padding: 1.1rem 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.ware h3 { margin: 0; font-size: var(--step-1); }
.ware .seller { color: var(--steel); font-size: var(--step--1); margin: 0; }
.ware .desc { margin: .25rem 0 .5rem; flex: 1; }
.ware .row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.ware .price { font-weight: 700; color: var(--gilt); font-size: var(--step-1); }

/* ---------- Memberships: pennants ---------- */
.pennants { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); align-items: start; }
.pennant { background: var(--iron-2); border-top: 6px solid var(--steel); padding: 1.75rem 1.5rem 3.5rem; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 2rem), 0 100%); }
.pennant.highlight { background: var(--oxblood); border-top-color: var(--gilt); }
.pennant h3 { font-family: var(--font-display); font-size: var(--step-3); font-weight: 500; margin: 0; }
.pennant .tagline { color: var(--steel); font-style: italic; margin: 0 0 1rem; }
.pennant.highlight .tagline { color: #EBD3CC; }
.pennant .cost { font-size: var(--step-2); font-weight: 700; margin: 0; }
.pennant .cost small { font-size: var(--step--1); font-weight: 400; color: var(--steel); }
.pennant.highlight .cost small { color: #EBD3CC; }
.pennant ul { padding-left: 1.1rem; margin: 1rem 0 1.5rem; }
.pennant li { margin-bottom: .35rem; }
.pennant.highlight .btn { background: var(--bone); border-color: var(--bone); color: var(--oxblood); }
.badge { display: inline-block; font-size: var(--step--1); background: var(--gilt); color: var(--iron); padding: .1rem .55rem; border-radius: var(--radius); font-weight: 700; margin-bottom: .75rem; }

/* ---------- Newsletter ---------- */
.news-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 62rem) { .news-grid { grid-template-columns: minmax(0, 1fr) 21rem; align-items: start; } }
.issue-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--iron-3); }
.issue-list li { border-bottom: 1px solid var(--iron-3); }
.issue-list a { display: block; padding: .8rem 0; color: var(--bone); text-decoration: none; }
.issue-list a:hover, .issue-list a[aria-current="true"] { color: var(--gilt); }
.issue-list .when { display: block; color: var(--steel); font-size: var(--step--1); }

/* ---------- Forms ---------- */
.panel { background: var(--iron-2); border: 1px solid var(--iron-3); padding: clamp(1.25rem, 4vw, 2rem); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; margin-bottom: .3rem; font-weight: 500; }
.field .opt { color: var(--steel); font-weight: 400; font-size: var(--step--1); }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; font: inherit; color: var(--bone); background: var(--iron); border: 1px solid #4A5560; border-radius: var(--radius); padding: .65rem .75rem;
}
textarea { min-height: 9rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--gilt); }
fieldset.choices { border: 0; padding: 0; margin: 0 0 1.1rem; }
fieldset.choices legend { font-weight: 500; margin-bottom: .4rem; padding: 0; }
.choices .check { margin-bottom: .45rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .3rem; accent-color: var(--oxblood); flex: none; }
.error { color: #F2A99F; font-size: var(--step--1); margin: .3rem 0 0; }
.form-status { margin-top: 1rem; }
.form-status.ok { color: var(--bone); border-left: 4px solid var(--gilt); padding-left: .8rem; }
.form-status.bad { color: #F2A99F; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fine { color: var(--steel); font-size: var(--step--1); }

/* ---------- States ---------- */
.skeleton { background: linear-gradient(90deg, var(--iron-2), var(--iron-3), var(--iron-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; min-height: 1.2em; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }
.notice { color: var(--steel); border: 1px dashed var(--iron-3); padding: 1.25rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--iron-3); margin-top: var(--section); padding: 2.5rem 0; color: var(--steel); font-size: var(--step--1); }
.site-footer .cols { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.site-footer h2 { font-family: var(--font-body); font-size: var(--step-0); color: var(--bone); margin-bottom: .5rem; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { color: var(--steel); }
.site-footer a:hover { color: var(--gilt); }
.site-footer .legal { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--iron-3); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }