:root {
  color-scheme: dark;
  --ink: #fff3cf;
  --muted: #b9d9dd;
  --navy: #071e2a;
  --panel: #0b3443;
  --line: rgba(159, 230, 232, 0.28);
  --aqua: #68e5df;
  --orange: #ff7445;
  --yellow: #ffd66f;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--navy);
  font: 500 16px/1.6 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--navy);
  background: var(--yellow);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.site-header {
  position: relative;
  z-index: 5;
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 700; }
.brand img { width: 42px; height: 42px; border-radius: 10px; box-shadow: 0 5px 0 rgba(1, 14, 23, 0.65); }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.hero {
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #0b5274 url("/assets/reef-hero.webp") center / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 20, 34, 0.9) 0, rgba(2, 28, 45, 0.66) 38%, rgba(2, 25, 42, 0.06) 72%), linear-gradient(0deg, rgba(5, 28, 38, 0.86) 0, transparent 35%);
}
.hero-content {
  width: min(var(--content), calc(100% - 40px));
  margin: auto;
  padding: 80px 0 112px;
}
.hero-copy { max-width: 720px; }
.kicker { margin: 0 0 14px; color: var(--aqua); font-size: 14px; }
h1, h2 { text-wrap: balance; line-height: 1.08; }
h1 { margin: 0; max-width: none; font-size: clamp(38px, 5.5vw, 72px); font-weight: 600; letter-spacing: -0.055em; white-space: nowrap; }
.hero-summary { max-width: 650px; margin: 22px 0 30px; color: #e5f3ea; font-size: clamp(17px, 2vw, 21px); }
.availability { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.store-status {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  color: var(--navy);
  background: var(--orange);
  border: 3px solid var(--navy);
  box-shadow: 6px 6px 0 var(--navy);
  font-weight: 750;
}
.availability small { max-width: 310px; color: var(--muted); }
.hero-footer {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: min(var(--content), calc(100% - 40px));
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  transform: translateX(-50%);
  font-size: 13px;
}
.hero-footer a { text-underline-offset: 4px; }
.gallery { padding: 80px 20px 96px; background: #061923; }
.gallery-inner { width: min(var(--content), 100%); margin: 0 auto; }
.gallery-header { max-width: 690px; margin-bottom: 32px; }
.gallery h2 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 46px); font-weight: 550; letter-spacing: -0.04em; }
.gallery p { margin: 0; color: var(--muted); }
.frames { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; }
.frame { margin: 0; overflow: hidden; background: #0a2734; border: 1px solid var(--line); }
.frame:first-child { grid-row: span 2; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.page-shell { min-height: 100svh; background: radial-gradient(circle at 75% 0, #0c5a72 0, transparent 38%), var(--navy); }
.page-main { width: min(760px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0 96px; }
.page-main h1 { margin-bottom: 16px; font-size: clamp(38px, 7vw, 64px); }
.lede { margin: 0 0 44px; color: #dceee7; font-size: 19px; }
.meta { color: var(--aqua); font-size: 13px; }
.page-main section { padding: 28px 0; border-top: 1px solid var(--line); }
.page-main h2 { margin: 0 0 10px; color: var(--yellow); font-size: 21px; font-weight: 650; }
.page-main p, .page-main li { color: var(--muted); }
.page-main strong { color: var(--ink); }
.page-main li + li { margin-top: 9px; }
.page-footer { width: min(760px, calc(100% - 40px)); margin: 0 auto; padding: 22px 0 48px; display: flex; flex-wrap: wrap; gap: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.page-footer a { text-underline-offset: 4px; }

@media (max-width: 700px) {
  .site-header { align-items: flex-start; padding-top: 16px; }
  .site-nav { gap: 8px 16px; flex-wrap: wrap; justify-content: flex-end; }
  .site-nav a { min-height: 44px; font-size: 12px; }
  .hero { min-height: 820px; background-position: 62% center; }
  .hero::before { background: linear-gradient(0deg, rgba(2, 18, 30, 0.93) 0, rgba(2, 25, 42, 0.53) 67%, rgba(2, 25, 42, 0.18) 100%); }
  .hero-content { margin-top: auto; margin-bottom: 72px; padding: 90px 0 70px; }
  h1 { font-size: clamp(31px, 8vw, 46px); letter-spacing: -0.06em; }
  .hero-footer { align-items: flex-start; flex-direction: column; gap: 4px; }
  .frames { grid-template-columns: 1fr; }
  .frame:first-child { grid-row: auto; }
}

@media (max-width: 430px) {
  .brand span { white-space: nowrap; font-size: 12px; }
  .site-nav { gap: 10px; }
  .site-nav a:first-child { display: none; }
  h1 { font-size: 29px; }
  .store-status { width: 100%; justify-content: center; }
}

@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; }
}
