:root {
  --navy: #071a2b;
  --navy-2: #0b2a42;
  --ink: #0d2233;
  --blue: #007f9d;
  --aqua: #8bd5df;
  --sand: #eee6d8;
  --cream: #f8f5ef;
  --white: #ffffff;
  --line: rgba(13, 34, 51, 0.16);
  --serif: "Libre Caslon Display", Georgia, serif;
  --display: "Cinzel", "Copperplate Gothic Light", Copperplate, "Copperplate Gothic", serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.site-header {
  align-items: center;
  background: rgba(7, 26, 43, 0.92);
  backdrop-filter: blur(16px);
  color: white;
  display: grid;
  grid-template-columns: minmax(max-content, 1.35fr) auto 1fr;
  height: 82px;
  padding: 0 clamp(22px, 4vw, 68px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 20;
}

.brand { align-items: center; display: flex; gap: 12px; line-height: 1; }
.brand-mark {
  align-items: center;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  display: flex;
  font-family: var(--serif);
  font-size: 15px;
  height: 42px;
  justify-content: center;
  letter-spacing: -1px;
  width: 42px;
}
.brand strong { display: block; font-family: var(--display); font-size: 18px; font-weight: 500; letter-spacing: .005em; white-space: nowrap; }
.brand small { color: var(--aqua); display: block; font-size: 13px; letter-spacing: .12em; margin-top: 5px; text-transform: uppercase; }
nav { display: flex; gap: 34px; transform: translateX(48px); }
nav a { color: rgba(255,255,255,.78); font-size: 13.5px; }
nav a:hover { color: white; }

.button {
  align-items: center;
  background: var(--blue);
  border: 0;
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: center;
  letter-spacing: .06em;
  min-height: 48px;
  padding: 0 25px;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease;
}
.button:hover { background: #0095b6; transform: translateY(-2px); }
.button-small { justify-self: end; min-height: 42px; padding: 0 20px; }
.menu-button { background: transparent; border: 0; display: none; padding: 8px; }
.menu-button span { background: white; display: block; height: 1px; margin: 6px 0; width: 24px; }

.cover {
  align-items: end;
  background-color: var(--navy);
  color: white;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 27vw);
  min-height: 820px;
  overflow: hidden;
  padding: 154px clamp(24px, 7vw, 110px) 74px;
  position: relative;
}
.cover::before {
  background: url("./assets/costa-cover.jpg") center / cover no-repeat;
  content: "";
  inset: 0;
  position: absolute;
  transform: translateY(-150px);
}
.cover-shade { background: linear-gradient(90deg, rgba(3,16,29,.9) 0%, rgba(3,20,35,.55) 50%, rgba(3,16,29,.12) 100%), linear-gradient(0deg, rgba(3,16,29,.86), transparent 55%); inset: 0; position: absolute; }
.cover-copy, .cover-rail, .photo-credit { position: relative; }
.cover-copy { transform: translate(-34px, 52px); }
.eyebrow { color: var(--aqua); font-size: 11px; font-weight: 700; letter-spacing: .22em; margin: 0 0 21px; text-transform: uppercase; }
.cover-copy > .eyebrow { font-size: 14px; }
.eyebrow.dark { color: var(--blue); }
.cover h1 { font-family: var(--serif); font-size: clamp(54px, 7vw, 104px); font-weight: 400; letter-spacing: -.035em; line-height: .92; margin: 0; max-width: 850px; text-wrap: balance; }
.cover h1.two-line-title { font-family: var(--display); font-size: clamp(28px, 3.5vw, 50px); font-weight: 500; letter-spacing: -.035em; line-height: 1.08; max-width: none; }
.two-line-title span { display: block; white-space: nowrap; }
.dek { color: rgba(255,255,255,.8); font-size: clamp(17px, 2vw, 22px); line-height: 1.55; margin: 28px 0 34px; max-width: 610px; }
.cover-actions { align-items: center; display: flex; gap: 24px; }
.text-button { background: transparent; border: 0; color: white; cursor: pointer; font-size: 14px; font-weight: 600; padding: 12px 0; }
.text-button span { color: var(--aqua); margin-left: 6px; }
.cover-rail { align-self: center; border-left: 1px solid rgba(255,255,255,.28); display: grid; gap: 28px; margin-left: 24px; padding-left: 30px; }
.cover-rail div { align-items: start; display: flex; gap: 17px; }
.cover-rail span { color: var(--aqua); font-size: 13px; letter-spacing: .12em; padding-top: 3px; }
.cover-rail p { color: var(--aqua); font-size: 14px; font-weight: 600; letter-spacing: .06em; line-height: 1.25; margin: 0; text-transform: uppercase; }
.cover-rail strong { color: white; display: block; font-family: var(--display); font-size: 20px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; margin-top: 6px; text-transform: none; }
.photo-credit { bottom: 18px; color: rgba(255,255,255,.46); font-size: 9px; left: clamp(24px, 7vw, 110px); letter-spacing: .08em; margin: 0; position: absolute; text-transform: uppercase; }

.issue-section { padding: 110px clamp(24px, 7vw, 110px) 130px; }
.section-heading { align-items: end; display: grid; gap: 40px; grid-template-columns: 1fr minmax(280px, 470px); margin-bottom: 54px; }
.section-heading h2, .archive-section h2 { font-family: var(--serif); font-size: clamp(42px, 5vw, 68px); font-weight: 400; letter-spacing: -.035em; line-height: 1; margin: 0; }
.section-intro { color: #526372; line-height: 1.7; margin: 0; }
.story-card { cursor: pointer; }
.lead-story { background: white; display: grid; grid-template-columns: 1.4fr 1fr; min-height: 540px; }
.story-image { background-position: center; background-size: cover; min-height: 300px; position: relative; }
.image-south-florida { background-image: linear-gradient(0deg, rgba(4,25,40,.18), rgba(4,25,40,.05)), url("https://images.unsplash.com/photo-1500375592092-40eb2168fd21?auto=format&fit=crop&w=1800&q=86"); }
.image-bimini { background-image: url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1200&q=84"); }
.image-conditions { background-image: linear-gradient(0deg, rgba(3,17,30,.18), rgba(3,17,30,.02)), url("https://images.unsplash.com/photo-1500375592092-40eb2168fd21?auto=format&fit=crop&w=1400&q=86"); background-position: center 62%; }
.image-viking { background-image: linear-gradient(0deg, rgba(3,17,30,.18), rgba(3,17,30,.04)), url("./assets/viking-61-gray.png"); background-position: center 58%; }
.pill { background: rgba(7,26,43,.82); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: white; font-size: 10px; left: 22px; letter-spacing: .15em; padding: 9px 13px; position: absolute; text-transform: uppercase; top: 22px; }
.story-copy { align-self: center; padding: clamp(34px, 5vw, 78px); }
.story-number { color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.story-copy h3 { font-family: var(--serif); font-size: clamp(34px, 4vw, 55px); font-weight: 400; letter-spacing: -.03em; line-height: 1.08; margin: 18px 0; }
.story-copy > p:not(.story-number) { color: #5b6a76; font-size: 15px; line-height: 1.7; }
.read-link { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; margin-top: 22px; text-transform: uppercase; }
.read-link b { color: var(--blue); font-size: 19px; margin-left: 8px; }
.story-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
.small-card { background: white; display: flex; flex-direction: column; min-height: 590px; }
.small-card .story-image { min-height: 280px; }
.small-card .story-copy { padding: 31px; }
.small-card .story-copy h3 { font-size: clamp(29px, 2.4vw, 38px); }
.two-line-story-title span { display: block; }
.small-card .story-copy > p:not(.story-number) { font-size: 14px; }
.dark-card { background: var(--navy); color: white; }
.dark-card .story-copy > p:not(.story-number) { color: rgba(255,255,255,.65); }

.archive-section { background: var(--navy); color: white; padding: 110px clamp(24px, 7vw, 110px) 70px; }
.archive-topline { align-items: end; display: flex; justify-content: space-between; gap: 40px; }
.search-box { align-items: center; border-bottom: 1px solid rgba(255,255,255,.35); display: flex; width: min(330px, 100%); }
.search-box input { background: transparent; border: 0; color: white; flex: 1; outline: 0; padding: 14px 0; }
.search-box input::placeholder { color: rgba(255,255,255,.52); }
.search-box span { color: var(--aqua); font-size: 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin: 44px 0 36px; }
.filter { background: transparent; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; color: rgba(255,255,255,.66); cursor: pointer; font-size: 11px; padding: 10px 15px; }
.filter.active, .filter:hover { background: white; border-color: white; color: var(--navy); }
.archive-grid { display: grid; gap: 1px; grid-template-columns: repeat(4, 1fr); }
.archive-card { background: #0b2a42; cursor: pointer; min-width: 0; transition: transform .25s ease, background .25s ease; }
.archive-card:hover { background: #103955; transform: translateY(-4px); }
.archive-art { align-items: end; background-position: center; background-size: cover; display: flex; height: 260px; justify-content: end; padding: 18px; position: relative; }
.archive-art::after { background: linear-gradient(0deg, rgba(4,20,33,.75), transparent 70%); content: ""; inset: 0; position: absolute; }
.archive-art span { color: white; font-family: var(--serif); font-size: 64px; line-height: .8; opacity: .82; position: relative; z-index: 1; }
.art-one { background-image: url("https://images.unsplash.com/photo-1500375592092-40eb2168fd21?auto=format&fit=crop&w=1200&q=86"); background-position: center 58%; }
.art-two { background-image: url("https://images.unsplash.com/photo-1473116763249-2faaef81ccda?auto=format&fit=crop&w=900&q=80"); }
.art-three { background-image: url("./assets/bimini-blue-water.jpg"); background-position: center 46%; }
.art-four { background-image: url("https://images.unsplash.com/photo-1500375592092-40eb2168fd21?auto=format&fit=crop&w=900&q=80"); }
.archive-card > div:last-child { padding: 25px; }
.archive-card p { color: var(--aqua); font-size: 10px; letter-spacing: .11em; margin: 0 0 12px; text-transform: uppercase; }
.archive-card h3 { font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.12; margin: 0 0 18px; }
.archive-card small { color: rgba(255,255,255,.48); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.archive-card[hidden] { display: none; }
.empty-state { color: rgba(255,255,255,.65); margin: 38px 0; }
.archive-cta { align-items: center; background: var(--blue); display: grid; gap: 30px; grid-template-columns: 1fr auto; margin-top: 80px; padding: clamp(36px, 5vw, 68px); }
.archive-cta .eyebrow { color: #cbf7ff; }
.archive-cta h2 { font-size: clamp(36px, 4vw, 56px); }
.archive-cta p:not(.eyebrow) { color: rgba(255,255,255,.75); line-height: 1.6; margin-bottom: 0; max-width: 720px; }
.trust-line { display: block; font-weight: 700; margin-top: 8px; white-space: nowrap; }
.light-button { background: white; color: var(--navy); min-width: 220px; }
.light-button:hover { background: var(--cream); }

footer { align-items: center; background: #04111d; color: rgba(255,255,255,.5); display: grid; font-size: 10px; gap: 24px; grid-template-columns: 1fr auto auto; letter-spacing: .08em; padding: 38px clamp(24px, 7vw, 110px); text-transform: uppercase; }
.footer-brand strong { color: white; display: block; font-family: var(--serif); font-size: 18px; font-weight: 400; letter-spacing: 0; margin-bottom: 6px; text-transform: none; }

.reader { background: var(--cream); border: 0; box-shadow: 0 30px 100px rgba(0,0,0,.35); color: var(--ink); max-height: 92vh; max-width: 1100px; overscroll-behavior: contain; overflow-x: hidden; overflow-y: auto; padding: 0; scrollbar-gutter: stable; width: min(94vw, 1100px); }
.reader::backdrop { background: rgba(2,13,23,.82); backdrop-filter: blur(8px); }
.reader-close { background: white; border: 0; border-radius: 50%; cursor: pointer; font-size: 25px; height: 44px; line-height: 1; position: fixed; right: max(4vw, calc((100vw - 1100px)/2 + 18px)); top: calc(4vh + 18px); width: 44px; z-index: 2; }
.reader-hero { background-position: center; background-size: cover; height: 42%; min-height: 300px; }
.reader-body { margin: auto; max-width: 760px; padding: 58px 38px 78px; }
.reader-body h2 { font-family: var(--serif); font-size: clamp(42px, 6vw, 70px); font-weight: 400; letter-spacing: -.035em; line-height: 1; margin: 0 0 26px; white-space: pre-line; }
.reader-lede { color: #526372; font-size: 19px; line-height: 1.65; }
.reader-content { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin: 42px 0; }
.reader-content.has-sources { gap: 28px; grid-template-columns: repeat(2, 1fr); }
.reader-content div { border-top: 2px solid var(--blue); padding-top: 14px; }
.reader-content strong { display: block; font-family: var(--serif); font-size: 24px; font-weight: 400; margin-bottom: 8px; }
.reader-content p { color: #5a6b78; font-size: 13px; line-height: 1.55; margin: 0; }
.reader-content .source-credit { color: #334b5f; font-size: 12px; font-weight: 700; line-height: 1.5; margin-top: 14px; }
.source-link { color: var(--blue); display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .07em; margin-top: 10px; text-decoration: none; text-transform: uppercase; }
.source-link:hover, .source-link:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.captain-note { background: var(--sand); border-left: 3px solid var(--blue); padding: 28px 30px; }
.captain-note span { color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.captain-note p { font-family: var(--serif); font-size: 24px; line-height: 1.35; margin: 12px 0 0; }
.reader-call { margin-top: 34px; }
.access-gate { background: transparent; border: 0; color: var(--navy); max-height: calc(100vh - 28px); max-width: 620px; padding: 0; width: calc(100% - 28px); }
.access-gate::backdrop { background: rgba(2,13,22,.82); backdrop-filter: blur(5px); }
.gate-shell { background: white; border-radius: 4px; box-shadow: 0 28px 90px rgba(0,0,0,.35); padding: clamp(28px,5vw,50px); position: relative; }
.gate-close { background: transparent; border: 0; color: var(--navy); cursor: pointer; font-size: 30px; line-height: 1; padding: 8px; position: absolute; right: 13px; top: 9px; }
.gate-shell h2 { font-family: var(--serif); font-size: clamp(29px,5vw,45px); font-weight: 400; line-height: 1.03; margin: 0; }
.gate-intro { color: var(--muted); font-size: 16px; line-height: 1.55; margin: 18px 0 24px; }
#access-form { display: grid; gap: 16px; }
#access-form label { color: var(--navy); display: grid; font-size: 13px; font-weight: 700; gap: 7px; letter-spacing: .03em; }
#access-form label small { color: var(--muted); font-size: 11px; font-weight: 500; }
#access-form input { border: 1px solid #bbc9cf; border-radius: 3px; color: var(--navy); font: inherit; font-size: 16px; min-height: 48px; padding: 10px 12px; width: 100%; }
#access-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,127,157,.15); outline: none; }
.gate-error { color: #a32626; font-size: 13px; line-height: 1.4; margin: -4px 0 0; min-height: 18px; }
.gate-submit { border: 0; justify-self: stretch; }
.gate-submit:disabled { cursor: wait; opacity: .65; }
.gate-skip { background: transparent; border: 0; color: var(--muted); cursor: pointer; display: block; font: 600 14px/1.4 var(--sans); margin: 15px auto 0; padding: 5px 8px; text-decoration: underline; text-underline-offset: 3px; }
.gate-skip:hover, .gate-skip:focus-visible { color: var(--navy); }
.gate-contact { border-top: 1px solid #dbe5e8; display: grid; gap: 5px; margin-top: 26px; padding-top: 20px; }
.gate-contact strong { font-family: var(--serif); font-size: 20px; font-weight: 400; }
.gate-contact span { color: var(--muted); font-size: 13px; margin-bottom: 5px; }
.gate-contact a { color: var(--blue); font-size: 14px; text-decoration: none; }
.mobile-call { display: none; }
.sr-only { height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; clip: rect(0,0,0,0); white-space: nowrap; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav, .button-small { display: none; }
  .menu-button { display: block; }
  .site-header.menu-open nav { background: var(--navy); display: flex; flex-direction: column; grid-column: 1 / -1; left: 0; padding: 22px 28px 30px; position: absolute; top: 82px; transform: none; width: 100%; }
  .cover { grid-template-columns: 1fr; min-height: 760px; }
  .cover-copy { transform: translateY(42px); }
  .cover-rail { display: none; }
  .lead-story { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr 1fr; }
  .small-card:last-child { grid-column: 1 / -1; }
  .archive-grid { grid-template-columns: 1fr 1fr; }
  footer { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-header { height: 70px; padding: 0 18px; }
  .site-header.menu-open nav { top: 70px; }
  .brand strong { font-size: 17px; }
  .brand-mark { height: 36px; width: 36px; }
  .cover { min-height: 720px; padding: 134px 24px 62px; }
  .cover-copy { transform: translateY(30px); }
  .cover h1 { font-size: 53px; }
  .cover h1.two-line-title { font-size: clamp(19px, 5.7vw, 25px); letter-spacing: -.04em; }
  .cover-actions { align-items: flex-start; flex-direction: column; gap: 6px; }
  .photo-credit { left: 24px; max-width: 85%; }
  .issue-section { padding: 80px 18px 90px; }
  .section-heading { align-items: start; grid-template-columns: 1fr; }
  .lead-story, .small-card { min-height: 0; }
  .story-grid { grid-template-columns: 1fr; }
  .small-card:last-child { grid-column: auto; }
  .story-copy { padding: 32px 25px; }
  .story-copy h3 { font-size: 37px; }
  .small-card .story-copy h3 { font-size: 31px; }
  .archive-section { padding: 80px 18px 105px; }
  .archive-topline { align-items: start; flex-direction: column; }
  .archive-grid { grid-template-columns: 1fr; }
  .archive-art { height: 220px; }
  .archive-cta { grid-template-columns: 1fr; }
  .light-button { width: 100%; }
  footer { padding-bottom: 88px; }
  .mobile-call { background: var(--blue); bottom: 0; color: white; display: flex; font-size: 12px; font-weight: 700; justify-content: center; left: 0; padding: 18px; position: fixed; right: 0; z-index: 15; }
  .reader { max-height: 96vh; width: 96vw; }
  .reader-close { right: 4vw; top: 3vh; }
  .reader-hero { min-height: 230px; }
  .reader-body { padding: 40px 24px 62px; }
  .reader-content { grid-template-columns: 1fr; }
  .reader-content.has-sources { grid-template-columns: 1fr; }
  .trust-line { font-size: clamp(11px,3.25vw,14px); white-space: nowrap; }
  .gate-shell { padding: 34px 22px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
