/* NewVista — Blue-Hour Pane · Premium 2026 */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500&family=Newsreader:ital,opsz,wght@0,6..72,600;0,6..72,700;1,6..72,400&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&display=swap');

:root {
  --ink-teal: #141A1C;
  --deep-pine: #1D2B2C;
  --warm-bone: #EDE7DB;
  --warm-bone-light: #F5F0E8;
  --lit-copper: #B96A3D;
  --lit-copper-light: #D4895E;
  --dusty-verdigris: #3E7C7A;
  --ash-stone: #6B6E72;
  --white: #FFFFFF;

  /* WCAG AA+ contrast tokens */
  --text-on-light: #141A1C;
  --text-on-dark: #EDE7DB;
  --text-muted-light: #3D4548;
  --text-muted-dark: #C8C0B4;
  --accent-on-light: #8F4528;
  --accent-on-dark: #F0B896;
  --btn-primary-bg: #9A5530;
  --btn-primary-hover: #7D4526;

  --measure: min(68ch, 100%);
  --max-width: 1200px;
  --section-pad: clamp(4.5rem, 7vw, 6.5rem);
  --section-pad-sm: clamp(3rem, 5vw, 4.5rem);
  --section-pad-top: clamp(1.5rem, 3vw, 2.25rem);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --shadow-xs: 0 2px 8px rgba(20, 26, 28, 0.06);
  --shadow-soft: 0 8px 32px rgba(20, 26, 28, 0.1);
  --shadow-md: 0 16px 48px rgba(20, 26, 28, 0.12);
  --shadow-lift: 0 24px 64px rgba(20, 26, 28, 0.16);
  --shadow-glow: 0 0 0 3px rgba(185, 106, 61, 0.2);
  --pane-glow: 0 0 80px rgba(185, 106, 61, 0.1);

  --hairline: 1px solid rgba(185, 106, 61, 0.22);
  --hairline-light: 1px solid rgba(237, 231, 219, 0.14);
  --glass: rgba(237, 231, 219, 0.85);
  --glass-dark: rgba(20, 26, 28, 0.92);

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  margin: 0;
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: clamp(17px, 1.05vw, 19px);
  line-height: 1.72;
  color: var(--text-on-light);
  background: var(--warm-bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-on-light);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color var(--transition-fast);
}

a:hover { color: var(--lit-copper); }

/* ── Surfaces ── */
.surface-bone {
  background: var(--warm-bone);
  color: var(--text-on-light);
}

.surface-ink {
  background: var(--ink-teal);
  color: var(--text-on-dark);
}

.surface-verd {
  background: linear-gradient(135deg, var(--dusty-verdigris) 0%, #356865 100%);
  color: var(--text-on-dark);
}

.surface-copper {
  background: linear-gradient(135deg, var(--lit-copper) 0%, #A05A32 100%);
  color: var(--text-on-dark);
}

.surface-bone::selection,
.surface-ink::selection,
.surface-verd::selection,
.surface-copper::selection {
  background: var(--lit-copper);
  color: var(--text-on-dark);
}

.surface-bone a:not(.btn) { color: var(--accent-on-light); }
.surface-bone a:not(.btn):hover { color: var(--lit-copper); }

.surface-ink a:not(.btn),
.surface-verd a:not(.btn),
.surface-copper a:not(.btn) {
  color: var(--accent-on-dark);
}

.surface-ink a:not(.btn):hover,
.surface-verd a:not(.btn):hover,
.surface-copper a:not(.btn):hover {
  color: var(--warm-bone);
}

/* Grain overlay */
.surface-bone.has-grain { position: relative; }

.surface-bone.has-grain::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.surface-bone.has-grain > *:not(.cookie-banner):not(.cookie-modal):not(.sightline-track) {
  position: relative;
  z-index: 1;
}

/* Sightline scroll indicator */
.sightline-track {
  position: fixed;
  left: 0;
  top: 0;
  width: 3px;
  height: 100vh;
  background: rgba(185, 106, 61, 0.12);
  z-index: 900;
  pointer-events: none;
}

.sightline-fill {
  width: 100%;
  height: 0;
  background: linear-gradient(to bottom, var(--lit-copper), var(--dusty-verdigris));
  border-radius: 0 2px 2px 0;
  transition: height 0.08s linear;
}

/* ── Layout ── */
.wrap {
  width: min(var(--max-width), 92vw);
  margin-inline: auto;
  padding-left: clamp(1rem, 2vw, 0);
  padding-right: clamp(1rem, 2vw, 0);
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 800;
  padding: 0;
  border-bottom: var(--hairline);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  transition: box-shadow var(--transition);
}

.site-header:hover,
.site-header.is-scrolled {
  box-shadow: var(--shadow-xs);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.logo {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text-on-light);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: opacity var(--transition-fast);
}

.logo:hover { opacity: 0.85; color: var(--text-on-light); }
.logo span { color: var(--accent-on-light); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-light);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  transition:
    background var(--transition-fast),
    color var(--transition-fast);
}

.site-nav a:hover {
  background: rgba(185, 106, 61, 0.1);
  color: var(--accent-on-light);
}

/* ── Typography ── */
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-on-light);
  margin: 0 0 1.1rem;
}

.surface-ink .eyebrow,
.surface-verd .eyebrow,
.surface-copper .eyebrow {
  color: var(--text-muted-dark);
}

h1, h2, h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.75rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 600;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 600;
  margin-bottom: 0.65rem;
  line-height: 1.25;
}

.prose {
  max-width: var(--measure);
}

.prose p { margin: 0 0 1.35em; }
.prose p:last-child { margin-bottom: 0; }

.prose h2 {
  margin-top: 2.5rem;
  padding-top: 0.5rem;
}

.disclaimer-box {
  margin-top: 3rem;
  padding: 1.75rem 2rem;
  border-left: 4px solid var(--lit-copper);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 1rem;
  line-height: 1.72;
  background: rgba(185, 106, 61, 0.1);
  color: var(--text-on-light);
  box-shadow: var(--shadow-xs);
  max-width: var(--measure);
}

.disclaimer-box p { margin: 0; }

.dateline {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-muted-light);
  margin-bottom: 2rem;
}

.surface-ink .dateline,
.surface-verd .dateline { color: var(--text-muted-dark); }

.copper-accent { color: var(--accent-on-light); }

.surface-ink .copper-accent,
.surface-verd .copper-accent,
.more-strip .copper-accent {
  color: var(--accent-on-dark);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 1.75rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition-fast);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--white);
  border-color: var(--btn-primary-bg);
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
  border-color: var(--btn-primary-hover);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.surface-bone .btn-secondary:hover {
  background: rgba(20, 26, 28, 0.06);
}

.surface-ink .btn-secondary,
.surface-verd .btn-secondary,
.more-strip .btn-secondary {
  color: var(--text-on-dark);
  border-color: rgba(237, 231, 219, 0.55);
}

.surface-ink .btn-secondary:hover,
.surface-verd .btn-secondary:hover,
.more-strip .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* ── Hero ── */
.hero {
  padding: var(--section-pad-top) 0 var(--section-pad);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 55%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(62, 124, 122, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.hero-copy {
  max-width: 40ch;
}

.hero-copy p {
  color: var(--text-muted-light);
}

.hero-image-wrap {
  position: relative;
}

.hero-image-wrap::before {
  content: '';
  position: absolute;
  left: -16px;
  bottom: -16px;
  width: 4px;
  height: 55%;
  background: linear-gradient(to top, var(--lit-copper), var(--dusty-verdigris));
  border-radius: 2px;
  z-index: 2;
}

.hero-image-wrap::after {
  content: '';
  position: absolute;
  inset: -8px;
  border: var(--hairline);
  border-radius: calc(var(--radius-lg) + 4px);
  z-index: 0;
  opacity: 0.5;
}

.hero-photo {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md), var(--pane-glow);
  border: var(--hairline);
  transition: transform 10s ease, box-shadow var(--transition);
}

.hero-image-wrap:hover .hero-photo {
  transform: scale(1.02);
  box-shadow: var(--shadow-lift), var(--pane-glow);
}

/* ── Photo frames ── */
.photo-frame {
  border: var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow var(--transition), transform var(--transition);
}

.photo-frame:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.photo-frame.pane-glow {
  box-shadow: var(--shadow-md), var(--pane-glow);
}

.photo-caption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted-light);
  margin-top: 0.85rem;
  padding: 0 0.25rem;
}

.surface-ink .photo-caption,
.surface-verd .photo-caption { color: var(--text-muted-dark); }

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.card {
  border: var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-xs);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
  border-color: rgba(185, 106, 61, 0.35);
}

.card-body {
  padding: clamp(1.25rem, 2vw, 1.65rem);
}

.card-image {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
  transition: transform 8s ease;
}

.card:hover .card-image { transform: scale(1.05); }

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  overflow: hidden;
}

/* Dark cards (surface-ink) */
.card.surface-ink {
  background: var(--ink-teal);
  color: var(--text-on-dark);
  border-color: rgba(237, 231, 219, 0.14);
}

.card.surface-ink .card-link h3 {
  color: var(--text-on-dark);
  transition: color var(--transition-fast);
}

.card.surface-ink .card-link:hover h3 {
  color: var(--accent-on-dark);
}

.card.surface-ink .card-body p {
  color: var(--text-muted-dark);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

.card.surface-ink .eyebrow {
  color: var(--text-muted-dark);
}

/* ── Featured card ── */
.featured-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  margin: var(--section-pad) 0;
  border: var(--hairline);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition), transform var(--transition);
}

.featured-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);
}

.featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 300px;
  transition: transform 8s ease;
}

.featured-card:hover img { transform: scale(1.04); }

.featured-card > img,
.featured-card > div:first-child {
  overflow: hidden;
}

.featured-card-body {
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-card.surface-ink .featured-card-body p {
  color: var(--text-muted-dark);
  line-height: 1.65;
}

.featured-card.surface-ink .featured-card-body h2 {
  color: var(--text-on-dark);
}

.featured-card.surface-ink .featured-card-body h2 a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.featured-card.surface-ink .featured-card-body h2 a:hover {
  color: var(--accent-on-dark);
}

/* ── About strip ── */
.about-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  margin: var(--section-pad-sm) 0;
  background: var(--white);
  border: var(--hairline);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  transition: box-shadow var(--transition), transform var(--transition);
}

.about-strip:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.about-strip p {
  color: var(--text-muted-light);
  margin: 0;
  line-height: 1.65;
}

.about-portrait {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--lit-copper);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition);
}

.about-strip:hover .about-portrait { transform: scale(1.04); }

/* ── Article ── */
.article-header {
  padding: var(--section-pad-top) 0 2rem;
  position: relative;
}

.article-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--max-width), 92vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(185, 106, 61, 0.3), transparent);
}

.article-body {
  padding-bottom: var(--section-pad);
}

.article-body .prose {
  margin-inline: auto;
}

.article-photo {
  margin: 2.5rem auto;
  max-width: 720px;
  padding: 6px;
  background: var(--white);
  border: var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.article-photo img {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 4px);
  box-shadow: none;
  border: none;
}

/* ── Section ── */
.section {
  padding: var(--section-pad) 0;
}

main.section,
main > .section:first-child {
  padding-top: var(--section-pad-top);
}

.section-title {
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: var(--hairline);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--lit-copper);
  border-radius: 1px;
}

/* ── More strip (CTA) ── */
.more-strip {
  padding: var(--section-pad-sm) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.more-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 80% 50%, rgba(185, 106, 61, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.more-strip .wrap { position: relative; z-index: 1; }

.more-strip h2 {
  color: var(--text-on-dark);
  margin-bottom: 1rem;
}

.more-strip p {
  color: var(--text-muted-dark);
  max-width: 42ch;
  margin: 0 auto 1.75rem;
  line-height: 1.65;
}

/* ── Forms ── */
main form {
  max-width: 36rem;
  margin-top: 0.5rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--white);
  border: var(--hairline);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.form-group { margin-bottom: 1.35rem; }

.form-group label:not(.form-check label) {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
  color: var(--text-on-light);
}

.form-group input:not([type="checkbox"]),
.form-group textarea {
  width: 100%;
  max-width: none;
  padding: 0.9rem 1.1rem;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1rem;
  line-height: 1.5;
  border: 1.5px solid rgba(107, 110, 114, 0.3);
  border-radius: var(--radius-md);
  background: var(--warm-bone-light);
  color: var(--text-on-light);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.form-group input:not([type="checkbox"]):hover,
.form-group textarea:hover {
  border-color: rgba(185, 106, 61, 0.4);
}

.form-group input:not([type="checkbox"]):focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--lit-copper);
  background: var(--white);
  box-shadow: var(--shadow-glow);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Checkbox: left box, text right */
.form-check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.85rem;
  max-width: none;
  margin-bottom: 0;
}

.form-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.2rem 0 0;
  accent-color: var(--lit-copper);
  cursor: pointer;
}

.form-check label {
  display: block;
  flex: 1;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.55;
  color: var(--text-muted-light);
  cursor: pointer;
  margin-bottom: 0;
}

.form-check label a {
  color: var(--accent-on-light);
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

#form-notice {
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(237, 231, 219, 0.2);
  font-size: 0.95rem;
  line-height: 1.55;
  background: var(--ink-teal);
  color: var(--text-on-dark);
}

#form-notice a { color: var(--accent-on-dark); }

/* ── Footer ── */
.site-footer {
  margin-top: auto;
  padding: clamp(3rem, 5vw, 4rem) 0 clamp(1.75rem, 3vw, 2.25rem);
  background: var(--ink-teal);
  color: var(--text-on-dark);
  border-top: none;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lit-copper), var(--dusty-verdigris), var(--lit-copper));
  opacity: 0.85;
}

.site-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 80% at 0% 100%, rgba(185, 106, 61, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 100% 0%, rgba(62, 124, 122, 0.06) 0%, transparent 55%);
}

.site-footer .wrap {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: var(--hairline-light);
}

.footer-brand p {
  margin: 0 0 0.65rem;
  color: var(--text-muted-dark);
  line-height: 1.65;
}

.footer-brand p strong {
  color: var(--text-on-dark);
}

.footer-brand em {
  color: var(--text-muted-dark);
  font-style: italic;
}

.footer-logo {
  display: inline-block;
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-on-dark);
  text-decoration: none;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  transition: opacity var(--transition-fast);
}

.footer-logo:hover {
  opacity: 0.85;
  color: var(--text-on-dark);
}

.footer-logo span { color: var(--accent-on-dark); }

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted-dark);
  text-decoration: none;
  padding: 0.35rem 0;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-on-dark);
  transform: translateX(3px);
}

.site-footer a:not(.footer-logo) {
  color: var(--accent-on-dark);
  text-decoration: underline;
  text-decoration-color: rgba(240, 184, 150, 0.35);
  text-underline-offset: 0.2em;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.site-footer a:not(.footer-logo):hover {
  color: var(--warm-bone);
  text-decoration-color: var(--warm-bone);
}

.footer-disclaimer {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-muted-dark);
  margin: 0 0 1rem;
  max-width: 72ch;
}

.footer-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: rgba(200, 192, 180, 0.75);
  margin: 0;
}

/* ── Cookie banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--glass-dark);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  color: var(--text-on-dark);
  padding: 1.25rem 1.75rem;
  z-index: 1000;
  border-top: var(--hairline-light);
  box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.25);
  display: none;
}

.cookie-banner.is-visible { display: block; }

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-inner p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  flex: 1;
  min-width: 240px;
  color: var(--text-muted-dark);
}

.cookie-inner a {
  color: var(--accent-on-dark);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-actions button {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.65rem 1.15rem;
  border: 1.5px solid rgba(237, 231, 219, 0.35);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-on-dark);
  cursor: pointer;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.cookie-actions button:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.cookie-actions button.accept {
  background: var(--btn-primary-bg);
  border-color: var(--btn-primary-bg);
  color: var(--white);
}

.cookie-actions button.accept:hover {
  background: var(--btn-primary-hover);
  border-color: var(--btn-primary-hover);
}

/* Cookie modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 26, 28, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-modal.is-visible { display: flex; }

.cookie-modal-panel {
  background: var(--warm-bone);
  color: var(--text-on-light);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 480px;
  width: 100%;
  border: var(--hairline);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lift);
}

.cookie-modal-panel h2 { margin-bottom: 1rem; }

.cookie-modal-panel > p {
  color: var(--text-muted-light);
  line-height: 1.65;
}

.cookie-modal-panel .form-check label {
  color: var(--text-muted-light);
}

.cookie-modal-panel .btn-secondary {
  color: var(--text-on-light);
  border-color: rgba(20, 26, 28, 0.3);
  margin-left: 0.5rem;
}

/* ── 404 ── */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--section-pad-top) 1rem var(--section-pad);
}

.error-page .prose {
  margin: 1.5rem auto;
  color: var(--text-muted-light);
}

.error-page .btn-group {
  justify-content: center;
}

/* ── Reveal animation ── */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .sightline-track { display: none; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card:hover,
  .featured-card:hover,
  .about-strip:hover,
  .hero-image-wrap:hover .hero-photo,
  .btn:hover {
    transform: none;
  }

  .card:hover .card-image,
  .featured-card:hover img {
    transform: none;
  }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .featured-card { grid-template-columns: 1fr; }
  .featured-card img { min-height: 240px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; }
  .hero-image-wrap { order: -1; }
}

@media (max-width: 768px) {
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 0;
  }

  .site-nav { gap: 0.25rem; }

  .site-nav a {
    font-size: 0.65rem;
    padding: 0.4rem 0.75rem;
  }

  .about-strip {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-portrait {
    margin-inline: auto;
    max-width: 120px;
    width: 120px;
    height: 120px;
  }

  .about-strip .btn {
    justify-self: center;
  }

  .btn-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero .btn-group .btn {
    width: 100%;
    text-align: center;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-actions { width: 100%; }

  main form { padding: 1.5rem; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-links ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.9rem; }

  .card-grid {
    grid-template-columns: 1fr;
  }
}
