/* ===== Design tokens ===== */
:root {
  --ink: #0B1B23;        /* deep ocean background */
  --surface: #11262F;    /* panel background, one step up from ink */
  --surface-raised: #16313C;
  --foam: #EDEAE0;       /* off-white text, like sea foam */
  --foam-dim: #B8C4C2;   /* muted secondary text */
  --depth: #2F6E73;      /* mid teal, dividers/secondary accent */
  --brass: #C08A4E;      /* warm brass accent, ties to dive gear */
  --line: rgba(237, 234, 224, 0.12);

  --font-display: "Fraunces", serif;
  --font-body: "Public Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --max-width: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--foam);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

/* ===== Fathom scale (signature element) ===== */
.fathom {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 56px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 50;
  pointer-events: none;
}

@media (min-width: 880px) {
  .fathom { display: flex; }
}

.fathom__rail {
  position: relative;
  width: 1px;
  height: 70vh;
  background: var(--line);
}

.fathom__marker {
  position: absolute;
  left: -3px;
  top: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 8px rgba(192, 138, 78, 0.7);
  transition: top 0.08s linear;
}

.fathom__readout {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--foam-dim);
  letter-spacing: 0.04em;
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 5vw, 64px);
  background: rgba(11, 27, 35, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav__brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
}

.nav__links {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
}

.nav__links a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--foam-dim);
  transition: color 0.15s ease;
}

.nav__links a:hover { color: var(--foam); }

/* ===== Hero ===== */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(72px, 14vw, 140px) clamp(20px, 5vw, 64px) clamp(48px, 8vw, 96px);
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.04;
  max-width: 14ch;
}

.hero__sub {
  margin-top: 24px;
  max-width: 46ch;
  font-size: 1.05rem;
  color: var(--foam-dim);
}

.hero__actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 2px;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--brass);
  color: var(--ink);
}

.btn--primary:hover { background: #d49a5c; }

.btn--ghost {
  border-color: var(--line);
  color: var(--foam);
}

.btn--ghost:hover { border-color: var(--foam-dim); }

/* ===== Lanes (apparel / aquariums) ===== */
.lane {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.lane__depth {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--brass);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.lane__title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.lane__copy {
  margin-top: 14px;
  max-width: 56ch;
  color: var(--foam-dim);
}

.cards {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 20px;
}

.card__media {
  height: 140px;
  border-radius: 2px;
  margin-bottom: 16px;
  background: linear-gradient(160deg, var(--surface-raised), var(--depth));
}

.card__media[data-tone="b"] { background: linear-gradient(160deg, var(--surface-raised), #3a5560); }
.card__media[data-tone="c"] { background: linear-gradient(160deg, var(--surface-raised), #2a4a52); }
.card__media[data-tone="d"] { background: linear-gradient(160deg, var(--depth), var(--surface-raised)); }
.card__media[data-tone="e"] { background: linear-gradient(160deg, #3a5560, var(--surface-raised)); }
.card__media[data-tone="f"] { background: linear-gradient(160deg, #2a4a52, var(--surface-raised)); }

.card__title {
  font-size: 1.1rem;
}

.card__copy {
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--foam-dim);
}

.card__price {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--brass);
}

/* ===== About / Contact ===== */
.about, .contact {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

.about__title, .contact__title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-top: 12px;
}

.about__copy, .contact__copy {
  margin-top: 16px;
  max-width: 58ch;
  color: var(--foam-dim);
}

.contact .btn { margin-top: 24px; }

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 32px 20px 48px;
  font-size: 0.8rem;
  color: var(--foam-dim);
}
