/* ==========================================================================
   Normal Shoes — Criterion-inspired minimalist stylesheet
   ========================================================================== */

:root {
  --ink: #111111;
  --paper: #ffffff;
  --paper-dim: #f5f4f2;
  --line: #dcdad5;
  --muted: #6b6b68;
  --accent: #111111;
  --header-bg: rgba(255, 255, 255, 0.92);
  --max: 1180px;
  --gutter: 6vw;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* ---- Decorative pastel palette (geometric shapes) ---- */
  --shape-pink: #f4d8de;
  --shape-mint: #d7ecdf;
  --shape-butter: #faedc4;
  --shape-lavender: #e3ddf4;
  --shape-sky: #d8ebf6;
}

/* ---- Dark theme ---------------------------------------------------------
   Toggled by setting data-theme="dark" on <html> (see script.js). The
   attribute is set as early as possible via an inline head script so the
   correct theme paints immediately, with no flash of the wrong theme. */
:root[data-theme="dark"] {
  --ink: #f2f1ec;
  --paper: #121212;
  --paper-dim: #1b1b19;
  --line: #34332f;
  --muted: #9c9b94;
  --accent: #f2f1ec;
  --header-bg: rgba(18, 18, 18, 0.88);

  --shape-pink: #3f2a30;
  --shape-mint: #223129;
  --shape-butter: #40381f;
  --shape-lavender: #2c2740;
  --shape-sky: #1f303c;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  transition: background-color 0.25s ease, color 0.25s ease;
}

.site-header,
.site-header::before,
.btn,
.field input,
.field select,
.field textarea,
.feature,
.pillar,
.split .panel,
.form-success {
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

/* <picture> wrappers (WebP + JPEG fallback) shouldn't add a layout box, so
   existing rules like ".panel-image img { height: 100% }" keep working. */
picture { display: contents; }

a { color: inherit; text-decoration: none; }

.logo-link { transition: opacity 0.2s ease; }
.logo-link:hover,
.logo-link:focus-visible { opacity: 0.7; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---- Header / Nav ---------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
}

/* Blur layer lives on a pseudo-element rather than the header itself,
   because backdrop-filter on the header would make it the containing
   block for position:fixed descendants (like the mobile nav panel)
   and break their sizing. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(8px);
  z-index: -1;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo .mirror {
  display: inline-block;
  transform: scaleX(-1);
}

/* ---- Logo mark (wordmark image) --------------------------------------- */

.logo-mark {
  display: inline-flex;
  align-items: center;
}

.logo-mark .logo-img {
  display: block;
  width: auto;
  height: 62px;
}

.foot-logo.logo-mark .logo-img {
  height: 44px;
}

/* The wordmark is black ink on transparent; flip it to white in dark mode. */
:root[data-theme="dark"] .logo-img {
  filter: invert(1);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.main-nav a:hover { border-color: var(--ink); }

.main-nav a.is-active { border-color: var(--ink); }

.nav-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
}

/* ---- Theme toggle -------------------------------------------------- */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink);
  margin-left: clamp(1rem, 2vw, 1.75rem);
  flex-shrink: 0;
}

.theme-toggle:hover { border-color: var(--ink); }

.theme-toggle svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---- Nav overlay ---------------------------------------------------------
   The hamburger + full-screen dropdown is used at every screen size, not
   just mobile — .nav-toggle is the only way to open .main-nav. */

.main-nav {
  position: fixed;
  inset: 84px 0 0 0;
  background: var(--paper);
  transform: translateY(-100%);
  transition: transform 0.3s ease, visibility 0.3s ease;
  padding: 2.5rem var(--gutter);
  border-top: 1px solid var(--line);
  visibility: hidden;
  pointer-events: none;
}

.main-nav.is-open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.main-nav ul {
  flex-direction: column;
  gap: 1.75rem;
}

.main-nav a { font-size: 0.95rem; }

/* ---- Buttons ----------------------------------------------------------- */

.btn {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.95rem 2rem;
  border: 1px solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover { background: #3a3a38; }

.btn-secondary {
  background: transparent;
  color: var(--ink);
}

.btn-secondary:hover { background: var(--ink); color: var(--paper); }

.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- Hero ---------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 12vh, 8rem) 0 clamp(3rem, 8vh, 5rem);
  border-bottom: 1px solid var(--line);
}

.hero .wrap.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero .wrap.hero-inner { grid-template-columns: 1fr; }
}

.hero-showcase {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
}

.hero-showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero .eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.08;
  margin: 0 0 1.75rem;
  max-width: 16ch;
}

.hero p.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 2.5rem;
}

/* ---- Sections ---------------------------------------------------------- */

section { padding: clamp(3.5rem, 8vh, 6rem) 0; }

.feature-banner {
  position: relative;
  margin: 0;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
}

.feature-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-banner figcaption {
  position: absolute;
  left: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  background: rgba(17, 17, 17, 0.82);
  color: var(--paper);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3.2vw, 2.1rem);
  padding: 0.75rem 1.25rem;
}

@media (max-width: 700px) {
  .feature-banner { aspect-ratio: 4 / 3; }
}

.section-border { border-bottom: 1px solid var(--line); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0;
}

.section-head .num {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---- Feature grid -------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}

.feature {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.feature .mark {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  display: block;
}

.feature h3 {
  font-size: 1.05rem;
  margin: 0 0 0.6rem;
  font-weight: 600;
}

.feature p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}

/* ---- Editorial / about blocks --------------------------------------- */

.editorial {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

@media (max-width: 820px) {
  .editorial { grid-template-columns: 1fr; }
}

.editorial h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0;
  position: sticky;
  top: 110px;
}

.editorial .body p {
  font-size: 1.05rem;
  max-width: 62ch;
}

.editorial .body p + p { margin-top: 1.2rem; }

.pillars {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem 2.5rem;
}

.pillar {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.pillar .index {
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--muted);
}

.pillar h3 {
  margin: 0.5rem 0 0.5rem;
  font-size: 1.1rem;
}

.pillar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---- Archive ------------------------------------------------------------ */

.archive-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 280px));
  gap: 2.5rem;
}

.archive-card {
  display: block;
  color: inherit;
}

.archive-card-image {
  margin: 0 0 1rem;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
}

.archive-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.archive-card:hover .archive-card-image img,
.archive-card:focus-visible .archive-card-image img {
  transform: scale(1.04);
}

.archive-card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0 0 0.3rem;
}

.archive-card .archive-year {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-gallery {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.archive-gallery figure {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
}

.archive-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Package tier cards ------------------------------------------------ */

.tier-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.tier-card {
  border: 1px solid var(--line);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
}

.tier-card.tier-featured {
  border: 2px solid var(--ink);
}

.tier-card .tier-photo {
  margin: -2.5rem -2rem 1.75rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: block;
}

.tier-card .tier-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tier-card .eyebrow { margin-bottom: 0.75rem; }

.tier-card h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin: 0 0 0.6rem;
}

.tier-card .tier-tagline {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1.75rem;
}

.tier-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tier-card li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.92rem;
  color: var(--ink);
}

.tier-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 1px;
  background: var(--ink);
}

.tier-card .cta-row { margin-top: auto; }

/* ---- Quote / statement banner ---------------------------------------- */

.statement {
  background: var(--paper-dim);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.statement blockquote {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  line-height: 1.4;
  max-width: 34ch;
}

.statement cite {
  display: block;
  margin-top: 1.5rem;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- Pre-order banner ---------------------------------------------------- */

.preorder-banner {
  background: var(--paper-dim);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.preorder-banner p.eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.preorder-btn {
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 2rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s ease;
}

.preorder-btn:hover,
.preorder-btn:focus-visible {
  background: #3a3a38;
}

.preorder-btn img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: block;
  flex-shrink: 0;
}

.preorder-btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  cursor: pointer;
}

.preorder-btn-outline:hover,
.preorder-btn-outline:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

/* ---- Disclaimer dialog -------------------------------------------------- */

dialog.disclaimer-dialog {
  max-width: 460px;
  width: calc(100% - 2.5rem);
  padding: 2.25rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

dialog.disclaimer-dialog::backdrop {
  background: rgba(17, 17, 17, 0.55);
}

dialog.disclaimer-dialog h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0 0 1rem;
}

dialog.disclaimer-dialog p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1.75rem;
}

dialog.disclaimer-dialog .dialog-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

dialog.preorder-dialog {
  max-width: 580px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

dialog.preorder-dialog .form-grid {
  gap: 1.5rem 1.5rem;
}

dialog.preorder-dialog .form-success {
  margin-top: 1.25rem;
}

/* ---- Hastings Rocks page extras --------------------------------------- */

.keep-physical {
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 3.6vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
}

.submit-intro {
  max-width: 62ch;
  margin: 0 0 2.25rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink);
}

/* ---- Form -------------------------------------------------------------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 2rem;
  max-width: 760px;
}

.form-grid .full { grid-column: 1 / -1; }

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}

.field label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  padding: 0.6rem 0.1rem;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.field textarea { resize: vertical; min-height: 120px; }

.form-note {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 50ch;
}

.form-success {
  display: none;
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--ink);
  font-size: 0.95rem;
}

.form-success.is-visible { display: block; }

.contact-strip {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact-strip .item .label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.contact-strip .item .value {
  font-family: var(--serif);
  font-size: 1.15rem;
}

/* ---- Footer -------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-footer .foot-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
}

.site-footer .foot-links {
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.85rem;
  column-gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer .foot-links a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer .foot-links a:hover { color: var(--ink); }

.site-footer .copyright {
  font-size: 0.78rem;
  color: var(--muted);
  width: 100%;
  margin-top: 1rem;
}

/* ---- Utility -------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
}

.split .panel {
  aspect-ratio: 4 / 3;
  background: var(--paper-dim);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 2rem;
}

.split .panel-image {
  margin: 0;
  padding: 0;
  display: block;
  overflow: hidden;
}

.split .panel-image img,
.split .panel-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.split .panel-image figcaption {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  background: rgba(17, 17, 17, 0.82);
  color: var(--paper);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 0.9rem;
}

.split .panel-image {
  position: relative;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 10vh, 6rem) 0 clamp(2.5rem, 6vh, 4rem);
  border-bottom: 1px solid var(--line);
}

.page-hero .wrap { position: relative; z-index: 1; }

/* ---- Decorative geometric shapes ----------------------------------------
   Purely decorative, low-opacity pastel shapes used to add a little colour
   and texture to hero banners. Non-interactive and safely ignorable —
   delete a .deco-shapes block from any page without affecting layout. */

.deco-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.deco-shape {
  position: absolute;
  opacity: 0.6;
}

.deco-circle { border-radius: 50%; }

.deco-ring {
  background: transparent;
  border-radius: 50%;
  border-width: 10px;
  border-style: solid;
}

.deco-triangle {
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.deco-pink { background: var(--shape-pink); }
.deco-mint { background: var(--shape-mint); }
.deco-butter { background: var(--shape-butter); }
.deco-lavender { background: var(--shape-lavender); }
.deco-sky { background: var(--shape-sky); }

.deco-ring.deco-pink { border-color: var(--shape-pink); }
.deco-ring.deco-mint { border-color: var(--shape-mint); }
.deco-ring.deco-butter { border-color: var(--shape-butter); }
.deco-ring.deco-lavender { border-color: var(--shape-lavender); }
.deco-ring.deco-sky { border-color: var(--shape-sky); }

@media (max-width: 640px) {
  .deco-shape { transform: scale(0.7); }
}

.page-hero .eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.page-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin: 0 0 1.5rem;
  max-width: 20ch;
}

.page-hero p.lede {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--muted);
  max-width: 52ch;
  margin: 0;
}

/* ---- Festival partner pages -------------------------------------------- */

.festival-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin-bottom: 1.75rem;
}

/* ---- Form status, consent & order details ----------------------------- */

dialog.preorder-dialog [hidden],
.form-grid[hidden],
.form-note[hidden],
.order-details[hidden] { display: none !important; }

.pay-now { margin: 0 0 1.75rem; }

.pay-now .btn { cursor: pointer; width: 100%; }

.pay-now .pay-note {
  margin: 0.75rem 0 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.pay-now .pay-or {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

#hriff-checkout { min-height: 120px; }

#hriff-pay-error,
#arch-pay-error { margin: 1rem 0 1.75rem; }

.form-error {
  display: none;
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid #b3261e;
  color: var(--ink);
  font-size: 0.95rem;
}

.form-error.is-visible { display: block; }

.form-error a,
.form-note a,
.order-details a,
.preorder-terms a,
.consent-field a,
.business-details a,
.classification-note a,
.declaration-intro a { text-decoration: underline; }

.consent-field label.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  margin: 0;
  cursor: pointer;
}

.consent-field input[type="checkbox"],
.consent-field input[type="radio"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 0.15rem 0 0;
  padding: 0;
  accent-color: var(--ink);
}

.order-details {
  max-width: 760px;
  margin: 0 0 2.25rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  background: var(--paper-dim);
  font-size: 0.95rem;
}

.order-details dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1.25rem;
  margin: 0 0 1rem;
}

.order-details dt {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  align-self: baseline;
}

.order-details dd { margin: 0; }

.order-details p { margin: 0.5rem 0 0; color: var(--muted); }

dialog.preorder-dialog .order-details { margin-bottom: 1.5rem; }

.preorder-terms {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

dialog.disclaimer-dialog .consent-field { margin: 0 0 1.75rem; }

.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ---- Footer business details ------------------------------------------- */

.site-footer .business-details {
  font-size: 0.78rem;
  color: var(--muted);
  width: 100%;
  margin: 0.5rem 0 0;
}

.site-footer .business-details + .copyright { margin-top: 0.25rem; }

.site-footer .classification-note {
  font-size: 0.78rem;
  color: var(--muted);
  width: 100%;
  margin: 0;
}

.site-footer .classification-note + .copyright { margin-top: 0.25rem; }

/* ---- Legal pages (privacy / terms) -------------------------------------- */

.legal {
  max-width: 72ch;
}

.legal h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin: 2.75rem 0 0.85rem;
}

.legal h2:first-child { margin-top: 0; }

.legal h3 {
  font-size: 1.02rem;
  margin: 1.75rem 0 0.5rem;
}

.legal p,
.legal li { font-size: 1rem; }

.legal ul { padding-left: 1.25rem; }

.legal li + li { margin-top: 0.4rem; }

.legal a { text-decoration: underline; }

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.92rem;
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.75rem 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.legal th {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 600px) {
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; }
  .legal thead { display: none; }
  .legal td { border-bottom: none; padding: 0.2rem 0; }
  .legal tr { border-bottom: 1px solid var(--line); padding: 0.75rem 0; }
  .legal td:first-child { font-weight: 600; }
}

.legal .updated {
  font-size: 0.85rem;
  color: var(--muted);
}

dialog.disclaimer-dialog .order-details p { margin: 0.5rem 0 0; }
dialog.disclaimer-dialog .order-details p + p { margin-top: 0.75rem; }

/* ---- Contact: BBFC statement & order declaration ------------------------ */

:root { --error: #b3261e; }
:root[data-theme="dark"] { --error: #ff8a80; }

.form-grid fieldset {
  border: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.choice-group legend,
.declaration-group legend {
  padding: 0;
}

.choice-group legend {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
}

.bbfc-statement {
  padding: 2.5rem 0 0;
  border-top: 1px solid var(--line);
}

.bbfc-statement .section-head { margin-bottom: 1.25rem; }

.bbfc-statement p {
  font-size: 1.05rem;
  max-width: 62ch;
  margin: 0;
}

.bbfc-statement p + p { margin-top: 1.2rem; }

.declaration[hidden] { display: none !important; }

.declaration {
  display: grid;
  gap: 2.25rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.declaration-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  margin: 0;
}

.declaration-title + .declaration-intro { margin-top: -1.5rem; }

.declaration-intro,
.declaration-hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 62ch;
}

.declaration-group > legend {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
}

.declaration-group .form-grid { gap: 1.75rem 2rem; }

.choice-list > .consent-field + .consent-field,
.choice-list > .declaration-hint + .consent-field { margin-top: 0.9rem; }

.choice-list > .declaration-hint { margin-bottom: 0.25rem; }

.declaration-group > .form-grid + .declaration-hint { margin-top: 1.25rem; }

.retail-notice p {
  margin: 1.25rem 0 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  background: var(--paper-dim);
  font-size: 0.92rem;
  max-width: 62ch;
}

.retail-notice + .consent-field { margin-top: 1rem; }

.field-error {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--error);
}

.field-error[hidden] { display: none; }

.field input[aria-invalid="true"] { border-bottom-color: var(--error); }
