:root {
  --paper: #f7f2e9;
  --paper-deep: #eee2d4;
  --ink: #182139;
  --blue: #06458f;
  --blue-dark: #082e63;
  --rose: #d7a3a7;
  --water: #91bcc5;
  --gold: #b98548;
  --line: rgba(24, 33, 57, 0.18);
  --serif: "Libre Caslon Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.site-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 50%;
  width: min(calc(100svh - 48px), calc(100% - 48px));
  transform: translateX(-50%);
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wordmark { font-family: var(--serif); font-size: 1.32rem; text-decoration: none; color: var(--blue-dark); }
nav { display: flex; justify-content: center; gap: clamp(20px, 4vw, 52px); }
nav a, .nav-contact { font-family: var(--sans); font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
nav a:hover, nav a:focus-visible, .nav-contact:hover, .nav-contact:focus-visible { color: var(--blue); }
.nav-contact { padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 24px 32px;
  background: #d9d9d1;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero::before {
  z-index: -2;
  inset: -40px;
  background: url("./assets/freedoms-wake-cover.jpg") center / cover no-repeat;
  filter: blur(28px) saturate(.8);
  opacity: .72;
}
.hero::after {
  z-index: -1;
  background: url("./assets/freedoms-wake-cover.jpg") center top / contain no-repeat;
  filter: drop-shadow(0 0 36px rgba(8, 46, 99, .17));
}
.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,.65);
  background: rgba(8, 46, 99, .78);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .11em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease;
}
.hero-scroll:hover,
.hero-scroll:focus-visible { background: rgba(6, 69, 143, .92); transform: translateY(-2px); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.eyebrow { margin: 0 0 18px; color: var(--blue); font-size: .78rem; font-weight: 600; letter-spacing: .16em; line-height: 1.4; text-transform: uppercase; }
h1, h2, blockquote { font-family: var(--serif); font-weight: 400; }
h1 { max-width: 760px; margin: 0; font-size: clamp(3rem, 6vw, 5.5rem); line-height: .98; letter-spacing: -.045em; color: var(--blue-dark); }
.button { display: inline-flex; min-height: 50px; padding: 12px 22px; align-items: center; justify-content: center; background: var(--blue-dark); color: white; text-decoration: none; font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; transition: transform .2s ease, background .2s ease; }
.button:hover, .button:focus-visible { background: var(--blue); transform: translateY(-2px); }
.text-link { text-underline-offset: 5px; font-weight: 600; font-size: .9rem; }

.tideline { overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 26px; padding: 17px 24px; background: var(--blue-dark); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; }
.tideline i { width: 5px; height: 5px; border-radius: 50%; background: var(--rose); }
.section { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 130px 0; }
.story { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(60px, 10vw, 150px); }
.section-heading { position: sticky; top: 34px; align-self: start; }
h2 { margin: 0; color: var(--blue-dark); font-size: clamp(2.8rem, 5vw, 5.3rem); line-height: 1; letter-spacing: -.035em; }
.story-body { max-width: 660px; }
.story-body p { margin: 0 0 24px; }
.story-body .lead { font-family: var(--serif); font-size: 1.45rem; line-height: 1.55; }
blockquote { margin: 56px 0 0; padding: 8px 0 8px 30px; border-left: 3px solid var(--rose); color: var(--blue); font-size: clamp(2rem, 3.5vw, 3.5rem); line-height: 1.15; }

.history { position: relative; width: 100%; max-width: none; overflow: hidden; background: var(--blue-dark); color: #f9f5ec; }
.history-inner { position: relative; z-index: 1; width: min(820px, calc(100% - 48px)); margin: 0 auto; }
.history .eyebrow { color: #aacbd0; }
.history h2 { color: white; }
.history p:not(.eyebrow) { margin: 30px 0 0; font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.6; }
.watermark { position: absolute; right: -2vw; bottom: -14vw; color: rgba(255,255,255,.035); font-family: var(--serif); font-size: clamp(18rem, 46vw, 44rem); line-height: .8; }

.audio { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(50px, 10vw, 140px); align-items: center; }
.audio > div:last-child { max-width: 680px; }
.audio p:not(.eyebrow) { font-family: var(--serif); font-size: 1.35rem; }
.audio .availability { margin-top: 32px; color: var(--blue); font-family: var(--sans) !important; font-size: .84rem !important; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.audio-mark { height: 210px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.audio-mark span { width: 8px; border-radius: 10px; background: linear-gradient(var(--rose), var(--blue)); animation: pulse 2.1s ease-in-out infinite; }
.audio-mark span:nth-child(1), .audio-mark span:nth-child(7) { height: 42px; }
.audio-mark span:nth-child(2), .audio-mark span:nth-child(6) { height: 86px; animation-delay: -.2s; }
.audio-mark span:nth-child(3), .audio-mark span:nth-child(5) { height: 144px; animation-delay: -.4s; }
.audio-mark span:nth-child(4) { height: 202px; animation-delay: -.6s; }
@keyframes pulse { 0%, 100% { transform: scaleY(.72); opacity: .72; } 50% { transform: scaleY(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .audio-mark span { animation: none; } }

footer { min-height: 140px; padding: 34px max(24px, calc((100% - 1180px)/2)); display: grid; grid-template-columns: 1fr auto auto auto; gap: 30px; align-items: center; border-top: 1px solid var(--line); font-size: .78rem; }
.footer-credits p { margin: 0; }
.footer-credits a { text-underline-offset: 3px; }
.footer-contact { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer-contact:hover, .footer-contact:focus-visible { color: var(--blue); }

.contact-dialog {
  width: min(600px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  margin: auto;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(24, 33, 57, .18);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 32px 90px rgba(8, 46, 99, .3);
}
.contact-dialog::backdrop { background: rgba(8, 20, 41, .7); backdrop-filter: blur(5px); }
.contact-dialog h2 { font-size: clamp(3rem, 8vw, 4.6rem); }
.contact-dialog > div > p:not(.eyebrow) { margin: 16px 0 28px; font-family: var(--serif); font-size: 1.2rem; }
.dialog-close { position: absolute; top: 14px; right: 18px; border: 0; background: transparent; color: var(--ink); font-family: var(--serif); font-size: 2rem; line-height: 1; cursor: pointer; }
.contact-dialog form { display: grid; gap: 9px; }
.contact-dialog label { margin-top: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.contact-dialog input:not([type="hidden"]), .contact-dialog textarea {
  width: 100%;
  border: 1px solid rgba(24, 33, 57, .28);
  border-radius: 0;
  background: rgba(255,255,255,.46);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  padding: 11px 12px;
}
.contact-dialog textarea { resize: vertical; min-height: 130px; }
.contact-dialog input:focus, .contact-dialog textarea:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.contact-dialog .form-submit { margin-top: 20px; justify-self: start; border: 0; cursor: pointer; }
.form-honey { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.contact-success { text-align: center; padding: 28px 0 12px; }
.contact-success .button { margin-top: 18px; border: 0; cursor: pointer; }

@media (max-width: 780px) {
  .site-header { top: 100vw; width: 100%; min-height: 82px; }
  nav { gap: 16px; } nav a, .nav-contact { font-size: .7rem; } nav a:nth-child(2) { display: none; }
  .hero {
    min-height: 0;
    height: calc(100vw + 82px);
    padding: 0;
  }
  .hero-scroll { display: none; }
  .tideline { justify-content: flex-start; }
  .section { width: min(100% - 32px, 1180px); padding: 90px 0; }
  .story, .audio { grid-template-columns: 1fr; gap: 52px; }
  .section-heading { position: static; }
  .history { width: 100%; }
  .history-inner { width: min(100% - 32px, 820px); }
  .audio-mark { height: 120px; }
  .audio-mark span:nth-child(4) { height: 118px; }
  .audio-mark span:nth-child(3), .audio-mark span:nth-child(5) { height: 86px; }
  footer { grid-template-columns: 1fr; gap: 8px; }
  footer p { margin: 0; }
}

@media (max-width: 420px) {
  .wordmark { font-size: 1.13rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
}
