:root {
  --ink: #17201d;
  --paper: #f4f1e9;
  --cream: #e8e1d1;
  --brick: #9e4b36;
  --moss: #78836f;
  --line: rgba(23, 32, 29, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}

body.dialog-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 5px; }

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: white;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem clamp(1.25rem, 4vw, 4rem);
  color: white;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  font: 500 0.72rem/1 "DM Sans", sans-serif;
  letter-spacing: 0.08em;
}

.brand-name {
  font: 500 clamp(1.05rem, 2vw, 1.3rem)/1 "Newsreader", serif;
}

.header-link,
.hero-action,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.header-link {
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  padding-bottom: 0.25rem;
}

.hero {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 92svh;
  overflow: hidden;
  color: white;
}

.hero-image, .hero-shade { position: absolute; inset: 0; }

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(11, 20, 18, 0.77) 0%, rgba(11, 20, 18, 0.36) 46%, rgba(11, 20, 18, 0.08) 75%), linear-gradient(0deg, rgba(11, 20, 18, 0.5) 0%, transparent 45%);
}

.hero-copy {
  z-index: 1;
  align-self: end;
  position: relative;
  width: 100%;
  padding: 9rem clamp(1.25rem, 7vw, 7rem) clamp(5rem, 10vh, 8rem);
}

.eyebrow {
  margin: 0 0 1.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--brick);
}

h1,
h2 {
  margin: 0;
  font-family: "Newsreader", serif;
  font-weight: 400;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 13ch;
  font-size: clamp(3.1rem, 7.7vw, 7.6rem);
  line-height: 1;
  font-weight: 500;
}

h1 span { display: block; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-actions { margin-top: 2.5rem; }
.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 1.4rem;
  min-height: 3.4rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}
.action-button.primary { background: var(--brick); border-color: var(--brick); color: white; }
.action-button.primary:hover { background: #803d2c; border-color: #803d2c; }
.action-button.secondary { color: var(--ink); background: transparent; }
.action-button.secondary:hover { background: var(--ink); color: var(--paper); }
.hero-actions .secondary { color: white; border-color: rgba(255,255,255,.7); background: rgba(11,20,18,.25); }
.hero-actions .secondary:hover { background: var(--paper); color: var(--ink); }
.hero :focus-visible { outline-color: white; }
.action-button:disabled { opacity: .7; cursor: wait; }

.hero-action {
  margin-top: 2.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  padding-bottom: 0.4rem;
}

.image-note {
  position: absolute;
  right: clamp(1.25rem, 4vw, 4rem);
  bottom: 1.5rem;
  z-index: 2;
  max-width: 22rem;
  margin: 0;
  text-align: right;
  font: 400 italic 1rem/1.35 "Newsreader", serif;
}

.story {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(0, 3fr);
  gap: 3rem;
  padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 7vw, 7rem);
}

.story-index {
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  color: rgba(23, 32, 29, 0.65);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-body > h2,
.field-notes h2 {
  max-width: 13ch;
  font-size: clamp(2.6rem, 5.4vw, 5.7rem);
  line-height: 0.98;
}

.manifesto { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; margin: 2.5rem 0 2rem; }
.manifesto p { margin: 0; font-size: 1rem; line-height: 1.8; color: #535b54; }
.story-body > .actions { margin-top: 2.5rem; }
.mission { margin: -.25rem 0 3rem; font-size: clamp(1.45rem, 2.35vw, 2.35rem); line-height: 1.4; letter-spacing: -.025em; }
.mission strong { font-weight: 600; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; margin: 0 0 3rem; padding: 0; list-style: none; }
.features li { display: flex; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.35rem; }
.feature-number { padding-top: .25rem; color: var(--brick); font-size: .72rem; }
.features h2 { font-family: "DM Sans", sans-serif; font-size: 1.02rem; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; }
.features p { margin: .6rem 0 0; font-size: .95rem; line-height: 1.6; color: #535b54; }

.text-link {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.4rem;
}

.field-notes {
  overflow: hidden;
  padding: clamp(5rem, 9vw, 8rem) clamp(1.25rem, 7vw, 7rem);
  background: var(--ink);
  color: var(--paper);
}

.notes-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.carousel-button {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(244, 241, 233, 0.45);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 1.25rem;
  transition: background 180ms ease, color 180ms ease;
}

.carousel-button:hover,
.carousel-button:focus-visible {
  background: var(--paper);
  color: var(--ink);
  outline: none;
}

.carousel-count {
  min-width: 3.5rem;
  color: rgba(244, 241, 233, 0.65);
  font-size: 0.8rem;
}

.carousel-count strong {
  color: var(--paper);
}

.instagram-carousel {
  position: relative;
  min-height: 39rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}

.instagram-slide {
  display: grid;
  place-items: start center;
}

.video-link { display: flex; justify-content: space-between; gap: 1rem; width: min(100%, 34rem); margin-top: 1.25rem; padding: .4rem 0; font-size: .84rem; line-height: 1.5; text-decoration: none; }
.video-link span { text-decoration: underline; text-underline-offset: .25rem; color: #cdcbbc; }

.instagram-media {
  width: min(100%, 34rem) !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  border-radius: 0.25rem !important;
}

.instagram-media > a {
  display: grid;
  min-height: 31rem;
  place-items: center;
  padding: 2rem;
  border: 1px solid rgba(244, 241, 233, 0.25);
  color: var(--paper);
  font-family: "Newsreader", serif;
  font-size: 1.5rem;
  text-align: center;
}

.notes-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(244, 241, 233, 0.25);
}

.notes-footer p {
  margin: 0;
  color: rgba(244, 241, 233, 0.7);
}

.button-link {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.2rem;
  border: 1px solid var(--paper);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 4rem);
  background: #0f1513;
  color: rgba(244, 241, 233, 0.65);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

footer p {
  margin: 0;
}

.inquiry-dialog { width: min(46rem, calc(100% - 2rem)); max-height: calc(100svh - 2rem); overflow-y: auto; padding: clamp(1.5rem, 4vw, 3rem); border: 0; background: var(--paper); color: var(--ink); }
.inquiry-dialog::backdrop { background: rgba(11,20,18,.75); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; right: .65rem; top: .6rem; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; background: transparent; border: 0; color: var(--ink); font-size: 2rem; line-height: 1; }
.inquiry-dialog .eyebrow { color: var(--brick); margin-bottom: 1rem; padding-right: 2rem; }
.inquiry-dialog h2 { max-width: 16ch; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; }
.form-intro { margin: 1rem 0 1.75rem; color: #535b54; line-height: 1.5; }
.required-note, .privacy-note { font-size: .77rem; line-height: 1.5; color: #535b54; }
.required-note { margin-bottom: 1.25rem; }
.privacy-note { margin: 1.5rem 0 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.form-grid label { display: block; min-width: 0; font-size: .83rem; font-weight: 600; line-height: 1.5; }
.optional { color: #60665e; font-weight: 400; }
.form-grid input, .form-grid textarea { display: block; width: 100%; margin-top: .4rem; padding: .8rem .9rem; min-height: 3rem; border: 1px solid #a8ada0; border-radius: 0; background: #faf8f3; color: var(--ink); font-size: 1rem; font-weight: 400; line-height: 1.5; }
.form-grid input:focus, .form-grid textarea:focus { outline: 2px solid var(--brick); outline-offset: 1px; }
.form-grid input[aria-invalid="true"], .form-grid textarea[aria-invalid="true"] { border-color: #a43522; }
.form-grid textarea { resize: vertical; min-height: 7rem; }
.form-grid input::placeholder, .form-grid textarea::placeholder { color: #72776d; opacity: 1; }
.full-width { grid-column: 1 / -1; }
.field-error { display: block; margin: .4rem 0 0; color: #a43522; font-size: .78rem; font-weight: 400; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.form-status { color: #a43522; font-size: .86rem; line-height: 1.5; }
.form-status:empty { display: none; }
.submit-button { margin-top: 1.5rem; width: 100%; }
.form-success { padding: 1.5rem 0 .5rem; }
.success-mark { display: grid; place-items: center; width: 3rem; height: 3rem; border: 1px solid #78836f; border-radius: 50%; color: #466142; font-size: 1.5rem; }
.form-success h3 { margin: 1.25rem 0 .75rem; font-size: 1.4rem; }
.form-success p { margin: 0 0 1.75rem; line-height: 1.6; color: #535b54; }
.noscript-note { margin: 0; padding: 1rem 2rem; text-align: center; }

@media (max-width: 760px) {
  .brand-name,
  .image-note {
    display: none;
  }

  .site-header {
    padding-top: 1rem;
  }

  .hero { min-height: 84svh; }

  .hero-image {
    object-position: 59% center;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(11, 20, 18, 0.8) 0%, rgba(11, 20, 18, 0.2) 75%);
  }

  .hero-copy {
    padding: 8rem 1.25rem 4rem;
  }

  h1 {
    font-size: clamp(2.15rem, 9vw, 4.7rem);
  }

  .hero-actions { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .hero-actions .action-button { min-width: min(100%, 17rem); }

  .story {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .manifesto,
  .features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .story-body .actions { flex-direction: column; align-items: stretch; }
  .form-grid { grid-template-columns: 1fr; }
  .inquiry-dialog { width: calc(100% - 1rem); max-height: calc(100svh - 1rem); }
  .video-link { flex-direction: column; gap: .25rem; }

  .notes-heading {
    align-items: start;
    flex-direction: column;
  }

  .instagram-carousel {
    min-height: 35rem;
  }

  .notes-footer,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .instagram-slide,
  .carousel-button,
  .action-button {
    transition: none;
  }
}
