/* Voice Bloom — Indigo Thread */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=IBM+Plex+Mono:wght@400&family=Source+Sans+3:wght@400;500&display=swap");

:root {
  --indigo-ink: #141B2E;
  --deep-night: #070A12;
  --linen-paper: #F3F1EA;
  --linen-warm: #EBE8DF;
  --thread-blue: #3D5A8C;
  --fog: #525862;
  --muted-slate: #434B58;
  --hairline: rgba(61, 90, 140, 0.22);
  --shell-max: 1080px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --content-pad: clamp(1.5rem, 3vw, 2.5rem);
  --measure: min(42rem, 100%);
  --section-sm: 72px;
  --section-md: 88px;
  --section-lg: 104px;
  --section-xl: 128px;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --focus-ring: 0 0 0 3px rgba(61, 90, 140, 0.45);
  --thread-inset: 8px;
}

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

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

html.js .thread-line {
  transform: scaleY(0);
  transform-origin: top;
}

html.js .thread-line.is-drawn {
  transform: scaleY(1);
}

html.js .reveal-photo {
  opacity: 0;
  transform: translateY(12px);
}

html.js .reveal-photo.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html.js .thread-line,
  html.js .reveal-photo {
    opacity: 1;
    transform: none;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--indigo-ink);
  background: linear-gradient(165deg, var(--linen-paper) 0%, var(--linen-warm) 55%, #e4e1d8 100%);
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.025;
  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");
}

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

a {
  color: var(--thread-blue);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--indigo-ink);
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--deep-night);
  color: var(--linen-paper);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-shell {
  position: relative;
  padding-left: calc(var(--thread-inset) + 12px);
}

.thread-line {
  position: absolute;
  left: var(--thread-inset);
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--thread-blue);
  transition: transform 1.2s ease;
  z-index: 1;
}

.site-header {
  border-bottom: 1px solid var(--hairline);
  background: rgba(243, 241, 234, 0.96);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--indigo-ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-logo span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fog);
  margin-top: 0.15rem;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
}

.site-nav a {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--indigo-ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--thread-blue);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
}

main {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: var(--section-md) var(--gutter) var(--section-lg);
}

.content-wrap {
  max-width: var(--measure);
}

.content-wide {
  max-width: var(--shell-max);
}

.surface-linen {
  background: var(--linen-paper);
}

.surface-ink {
  background: var(--indigo-ink);
  color: var(--linen-paper);
}

.surface-ink a {
  color: var(--linen-paper);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-slate);
  margin: 0 0 1rem;
}

.eyebrow-light {
  color: rgba(243, 241, 234, 0.65);
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  margin: 0 0 1.25rem;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  margin: 2.5rem 0 1rem;
}

h3 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.tagline-italic {
  font-style: italic;
  color: var(--thread-blue);
}

.article-body {
  max-width: var(--measure);
}

.article-body p {
  margin: 0 0 1.35rem;
}

.hanging-first > p:first-of-type::first-line {
  font-weight: 500;
  color: var(--thread-blue);
}

.article-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-slate);
  margin-bottom: 2rem;
}

.lead-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--thread-blue);
  margin: 0 0 1.5rem;
}

.photo-frame {
  border: 1px solid rgba(67, 75, 88, 0.35);
  padding: 8px;
  background: #fff;
  margin: 2rem 0;
  box-shadow: 0 6px 28px rgba(20, 27, 46, 0.07);
}

.photo-frame img {
  width: 100%;
}

.photo-caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-slate);
  margin-top: 0.75rem;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.photo-frame:hover .photo-caption,
.photo-frame:focus-within .photo-caption {
  transform: translateX(8px);
}

.reveal-photo {
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hairline);
}

.hero-title-block {
  max-width: 100%;
  margin-bottom: var(--section-sm);
}

.hero-banner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  margin-bottom: var(--section-md);
  padding: var(--content-pad);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--hairline);
  box-shadow: 0 8px 40px rgba(20, 27, 46, 0.05);
}

.hero-banner .photo-frame {
  margin: 0;
}

.hero-banner h1 {
  margin-bottom: 0.75rem;
}

.hero-intro {
  max-width: 38rem;
  margin-bottom: var(--section-sm);
}

.hero-intro p {
  margin: 0 0 1rem;
  color: var(--muted-slate);
}

.nav-hint {
  font-size: 0.98rem;
  color: var(--muted-slate);
  padding: var(--content-pad);
  background: rgba(61, 90, 140, 0.05);
  border-left: 3px solid var(--thread-blue);
  margin-bottom: var(--section-md);
  line-height: 1.65;
}

.nav-hint strong {
  color: var(--indigo-ink);
  font-weight: 600;
}

.place-line {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--thread-blue);
  margin: 0.75rem 0 2rem;
}

.text-link {
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--thread-blue);
}

.text-link:hover {
  border-color: var(--indigo-ink);
}

.note-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: var(--section-md) 0;
}

.note-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  padding: 1.35rem;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.note-card:hover {
  border-color: rgba(61, 90, 140, 0.45);
  box-shadow: 0 10px 36px rgba(20, 27, 46, 0.09);
  transform: translateY(-2px);
}

.note-card:hover h3 {
  color: var(--thread-blue);
}

.note-card-thumb {
  border: 1px solid rgba(67, 75, 88, 0.3);
  padding: 4px;
  background: #fff;
  overflow: hidden;
}

.note-card-thumb img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.note-card-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fog);
  margin-bottom: 0.35rem;
}

.note-card p {
  margin: 0.35rem 0 0;
  font-size: 0.98rem;
  color: var(--fog);
  line-height: 1.6;
}

.archive-group {
  margin-bottom: var(--section-md);
}

.archive-heading {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--thread-blue);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 1.5rem;
}

.wide-layout {
  max-width: var(--shell-max);
}

.portrait-band {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  margin-bottom: var(--section-md);
  align-items: start;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.disclaimer-block {
  border: 1px solid var(--hairline);
  padding: 1.5rem;
  margin: 2rem 0;
  font-size: 1rem;
  background: rgba(61, 90, 140, 0.04);
}

.correction-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.correction-list li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--hairline);
}

.correction-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--thread-blue);
  display: block;
  margin-bottom: 0.35rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-detail {
  margin: 0.5rem 0;
}

.contact-detail a {
  font-weight: 500;
}

.map-note {
  font-size: 0.95rem;
  color: var(--fog);
  margin-top: 0.75rem;
}

/* Map variants */
.map-wrap {
  position: relative;
  width: 100%;
}

.map-wrap iframe {
  width: 100%;
  border: 0;
  display: block;
}

.map-a iframe {
  height: 480px;
  border: 1px solid var(--thread-blue);
  filter: saturate(0.85) contrast(1.02);
}

.map-b {
  margin-top: var(--section-lg);
  padding: var(--content-pad) 0 0;
  max-width: 100%;
  background: rgba(61, 90, 140, 0.04);
  border-top: 1px solid var(--hairline);
}

.map-b .map-inner {
  max-width: 100%;
}

.map-b .map-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-slate);
  margin: 0 0 0.75rem;
}

.map-b iframe {
  height: 220px;
  border-radius: 2px;
  filter: saturate(0.82) brightness(0.98);
}

.map-c {
  margin: var(--section-md) 0 0;
  padding: var(--section-sm) 0;
  border-top: 1px solid var(--hairline);
}

.map-c iframe {
  height: 300px;
  border: 1px solid var(--muted-slate);
}

.map-d iframe {
  height: 170px;
  border: 1px solid var(--hairline);
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(61, 90, 140, 0.06);
  border: 1px dashed var(--hairline);
  color: var(--muted-slate);
  text-align: center;
  padding: 2rem;
}

.photo-grid {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0;
}

.photo-grid.two {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--thread-blue);
  margin: var(--section-md) 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--hairline);
}

.map-a .map-placeholder {
  min-height: 480px;
}

.map-b .map-placeholder {
  min-height: 190px;
}

.map-c .map-placeholder {
  min-height: 300px;
}

.map-d .map-placeholder {
  min-height: 170px;
}

.btn-load-map {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--thread-blue);
  background: var(--linen-paper);
  color: var(--thread-blue);
  cursor: pointer;
}

.btn-load-map:hover {
  background: var(--thread-blue);
  color: var(--linen-paper);
}

.end-strip {
  margin-top: var(--section-md);
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}

.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--indigo-ink);
  color: rgba(243, 241, 234, 0.85);
  margin-top: var(--section-lg);
}

.footer-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: var(--section-md) var(--gutter);
  font-size: 0.95rem;
  line-height: 1.65;
}

.footer-inner a {
  color: var(--linen-paper);
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--linen-paper);
  margin: 0 0 1rem;
}

.footer-meta {
  margin: 0.35rem 0;
  color: rgba(243, 241, 234, 0.88);
}

.footer-disclaimer {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(243, 241, 234, 0.72);
}

.footer-links {
  margin-top: 1rem;
}

.mono-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--fog);
  margin: 2rem 0 1rem;
}

.privacy-section {
  margin-bottom: 2.5rem;
}

.privacy-section h2 {
  font-size: 1.5rem;
}

/* Cookie banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--indigo-ink);
  color: var(--linen-paper);
  border-top: 2px solid var(--thread-blue);
  padding: 1rem var(--gutter);
  box-shadow: 0 -4px 24px rgba(7, 10, 18, 0.2);
}

#cookie-banner[hidden] {
  display: none !important;
}

.cookie-inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.cookie-text {
  flex: 1 1 280px;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-text a {
  color: var(--linen-paper);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-btn {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(243, 241, 234, 0.35);
  background: transparent;
  color: var(--linen-paper);
  cursor: pointer;
}

.cookie-btn-primary {
  background: var(--thread-blue);
  border-color: var(--thread-blue);
}

.cookie-btn:hover {
  opacity: 0.9;
}

#cookie-panel {
  width: 100%;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(243, 241, 234, 0.2);
}

#cookie-panel[hidden] {
  display: none !important;
}

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

.cookie-category label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.cookie-category p {
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
  opacity: 0.85;
}

.consent-toggle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(243, 241, 234, 0.4);
  background: transparent;
  color: var(--linen-paper);
  cursor: pointer;
}

.consent-toggle.is-on {
  background: var(--thread-blue);
  border-color: var(--thread-blue);
}

.consent-toggle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-manage-cookies {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--thread-blue);
  background: var(--linen-paper);
  color: var(--thread-blue);
  cursor: pointer;
  margin-top: 1rem;
}

.error-page h1 {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .hero-title-block {
    max-width: 100%;
  }

  .hero-banner {
    grid-template-columns: 1fr;
  }

  .note-card {
    grid-template-columns: 1fr;
  }

  .note-card-thumb img {
    height: 180px;
  }

  .portrait-band,
  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .map-a iframe,
  .map-a .map-placeholder {
    min-height: 300px;
    height: 300px;
  }

  .map-b iframe,
  .map-b .map-placeholder {
    min-height: 130px;
    height: 130px;
  }

  .map-c iframe,
  .map-c .map-placeholder {
    min-height: 200px;
    height: 200px;
  }
}
