/* jev-scout hydrographic survey office. Seed 3077fda3 — see contract in index.html.
   Night chart table: near-black sea, teal = verified soundings, ember = live,
   red = shoals, magenta = corrections. Radius 0, print geometry on a dark bridge. */

:root {
  --sea: oklch(0.145 0.02 250);
  --sea-deep: oklch(0.11 0.014 250);
  --sea-2: oklch(0.20 0.02 250);
  --white: oklch(0.95 0.01 85);
  --white-dim: oklch(0.72 0.015 85);
  --teal: oklch(0.69 0.11 185);        /* #0d9488 family, verified ink */
  --teal-bright: oklch(0.82 0.12 190);
  --ember: oklch(0.78 0.15 45);        /* live only */
  --red: oklch(0.62 0.21 30);          /* shoal */
  --mag: oklch(0.72 0.22 330);         /* corrections */
  --line: oklch(0.95 0.01 85 / 0.13);
  --line-strong: oklch(0.95 0.01 85 / 0.3);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-land: cubic-bezier(0.34, 1.56, 0.64, 1); /* press-down */
  --disp: "Bricolage Grotesque", "Arial Black", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --body: "Schibsted Grotesk", system-ui, sans-serif;
  --max: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--sea);
  color: var(--white);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* browser surfaces */
::selection { background: var(--teal); color: var(--sea-deep); }
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); }
::-webkit-scrollbar-track { background: transparent; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

a { color: inherit; }
a:hover { color: var(--teal-bright); }
code, .install-cmd, .st-row code {
  font-family: var(--mono);
  font-size: 0.85rem;
}

.teal { color: var(--teal); }
.dim { color: var(--white-dim); }
.ember { color: var(--ember); }

/* header / bridge */
.bridge { position: relative; padding: 22px 24px 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.graticule {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(oklch(0.95 0.01 85 / 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.topline {
  position: relative;
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: baseline; gap: 28px; padding-bottom: 14px;
}
.wordmark {
  font-family: var(--disp); font-weight: 800; font-size: 1.4rem;
  letter-spacing: -0.01em; text-decoration: none;
}
.topnav { display: flex; gap: 22px; margin-left: auto; }
.topnav a {
  font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--white-dim); text-decoration: none;
  padding: 3px 0; position: relative;
}
.topnav a:hover { color: var(--white); }
.topnav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px;
  background: var(--teal); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.topnav a:hover::after { transform: scaleX(1); }
.toplink {
  font-family: var(--mono); font-size: 0.72rem; text-decoration: none;
  border: 1px solid var(--line-strong); padding: 5px 10px; color: var(--white);
}
.toplink:hover { border-color: var(--teal); color: var(--teal-bright); }

.datum { height: 1px; background: var(--line); max-width: var(--max); margin: 0 auto; }
.sheetno {
  position: relative; max-width: var(--max); margin: 0 auto;
  padding: 10px 0 14px; font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.16em; color: var(--white-dim); text-transform: uppercase;
}

/* main */
main { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* title block */
.titleblock { padding: 56px 0 12px; }
.tb-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; align-items: start; }
.display {
  font-family: var(--disp); font-weight: 800;
  font-size: clamp(3.4rem, 11vw, 6.6rem);
  line-height: 0.97; letter-spacing: -0.035em; margin-bottom: 20px;
}
.subtitle {
  font-size: 1.22rem; line-height: 1.5; color: var(--white-dim);
  max-width: 60ch; margin-bottom: 30px;
}
.chartwhite { color: var(--white); font-weight: 600; }
.cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.install-cmd {
  background: var(--sea-2); border: 1px solid var(--line-strong);
  padding: 14px 18px; white-space: nowrap;
}
.btn-primary {
  display: inline-block; background: var(--teal); color: var(--sea-deep);
  font-family: var(--mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase; text-decoration: none;
  padding: 14px 20px; transition: transform 0.25s var(--ease);
}
.btn-primary:hover { color: var(--sea-deep); transform: translateY(-2px); }
.btn-ghost {
  display: inline-block; border: 1px solid var(--line-strong);
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.07em;
  text-transform: uppercase; text-decoration: none; padding: 13px 18px;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-bright); }

.tb-right { text-align: right; }
.compass { width: 150px; height: 150px; color: var(--white); opacity: 0.85; }
.compass-cap {
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.18em;
  color: var(--white-dim); margin-top: 6px;
}

.datumline {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px dashed var(--line-strong); margin: 42px 0 20px; padding-top: 8px;
}
.datumline span {
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.24em;
  color: var(--white-dim);
}

/* chart section */
.chartsec { padding: 16px 0 90px; }
.chart-spec { border: 1px solid var(--line-strong); background: var(--sea-2); padding: 22px; }
.chart-head {
  display: flex; align-items: baseline; gap: 14px;
  border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 14px;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--white-dim);
}
.fig { color: var(--mag); }
.chart-title { color: var(--white); }
.mcp-tag { margin-left: auto; color: var(--ember); }

.chart { width: 100%; height: auto; display: block; color: var(--white); }
.chart .grid-line { stroke: var(--white); stroke-opacity: 0.08; }
.chart .route { stroke: var(--teal); stroke-opacity: 0.5; stroke-width: 1.5; stroke-dasharray: 5 4; fill: none; }
.chart .point-verified { fill: var(--teal); }
.chart .point-ghost { fill: none; stroke: var(--white-dim); stroke-opacity: 0.55; stroke-width: 1.5; stroke-dasharray: 3 3; }
.chart .lbl { font-family: var(--mono); font-size: 11px; fill: var(--white); }
.chart .lbl-dim { font-family: var(--mono); font-size: 11px; fill: var(--white-dim); }
.chart .val { font-family: var(--mono); font-size: 10px; fill: var(--teal-bright); }
.chart .val-bad { font-family: var(--mono); font-size: 10px; fill: var(--red); }
.chart .ring { fill: none; stroke: var(--teal); stroke-opacity: 0.5; }

.chart-legend {
  display: flex; gap: 26px; flex-wrap: wrap; margin: 14px 0;
  font-family: var(--mono); font-size: 0.68rem; color: var(--white-dim);
}
.chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.px { width: 10px; height: 10px; display: inline-block; }
.px.verified { background: var(--teal); }
.px.ghost { border: 1.5px dashed var(--white-dim); }

.evallog {
  font-family: var(--mono); font-size: 0.8rem; line-height: 1.8;
  border-top: 1px solid var(--line); padding-top: 14px; min-height: 30px;
  color: var(--white-dim);
}
.evallog .amber { color: var(--ember); }
.evallog .ok { color: var(--teal); }
.evallog .dim { color: var(--white-dim); }
.chart-cap { margin-top: 12px; font-size: 0.82rem; color: var(--white-dim); max-width: 62ch; }

/* sections */
section { padding: 80px 0; }
.h2 {
  font-family: var(--disp); font-weight: 800;
  font-size: clamp(1.6rem, 3.8vw, 2.5rem);
  letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance;
  margin: 0 0 16px;
}
.lede { color: var(--white-dim); max-width: 66ch; margin-bottom: 40px; font-size: 1.04rem; }

/* why grid */
.why-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.whyspec { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 24px; }
.no {
  font-family: var(--mono); font-size: 0.66rem; color: var(--mag);
  letter-spacing: 0.16em; margin-bottom: 12px;
}
.whyspec h3 { font-family: var(--disp); font-weight: 600; font-size: 1.15rem; margin-bottom: 10px; }
.whyspec p:last-child { color: var(--white-dim); font-size: 0.92rem; }

/* sounding table */
.sounding-table {
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.st-row {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 16px 20px; display: flex; align-items: baseline; gap: 18px;
}
.st-row code { color: var(--teal-bright); white-space: nowrap; }
.st-cap { color: var(--white-dim); font-size: 0.88rem; }

/* oracle */
.oracle-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.ocell { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px; }
.oprim { display: block; font-family: var(--mono); font-size: 0.95rem; color: var(--mag); letter-spacing: 0.08em; margin-bottom: 8px; }
.odesc { color: var(--white-dim); font-size: 0.9rem; }
.oracle-note {
  margin-top: 28px; border-left: 2px solid var(--ember); padding-left: 16px;
  color: var(--white-dim); font-size: 0.92rem; max-width: 70ch;
}

/* notices */
.notices-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.nnotice { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px; }
.nk { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; color: var(--mag); text-transform: uppercase; margin-bottom: 10px; }
.nv { font-family: var(--disp); font-weight: 800; font-size: 1.5rem; color: var(--white); margin-bottom: 8px; }
.nf { color: var(--white-dim); font-size: 0.82rem; }

/* install */
.install-code {
  border: 1px solid var(--line-strong); background: var(--sea-2);
  padding: 26px 28px; font-family: var(--mono); font-size: 0.9rem;
  line-height: 2.1; max-width: 780px; word-break: break-word;
}
.install-note { color: var(--white-dim); margin: 20px 0 28px; max-width: 66ch; font-size: 0.92rem; }
.install-cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* footer / quay */
.quay { padding: 40px 24px 50px; }
.foot-wrap {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.foot-h {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--white-dim); margin: 20px 0 10px;
}
.foot-row ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-row a { font-size: 0.9rem; text-decoration: none; color: var(--white); }
.foot-row a:hover { color: var(--teal-bright); }
.foot-note {
  max-width: var(--max); margin: 36px auto 0; padding-top: 18px;
  border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--white-dim);
}

/* responsive */
@media (max-width: 900px) {
  .tb-grid { grid-template-columns: 1fr; }
  .tb-right { text-align: left; }
  .compass { width: 120px; height: 120px; }
  .why-grid, .oracle-grid, .notices-grid { grid-template-columns: 1fr 1fr; }
  .topnav { display: none; }
  .topline { justify-content: space-between; }
  section { padding: 60px 0; }
  .st-row { flex-direction: column; gap: 4px; }
  .chart .lbl, .chart .lbl-dim { font-size: 9px; }
}

@media (max-width: 560px) {
  .notices-grid, .why-grid, .oracle-grid { grid-template-columns: 1fr; }
  .display { font-size: clamp(2.8rem, 14vw, 4rem); }
  .install-cmd { white-space: normal; }
  .chart .lbl, .chart .lbl-dim, .chart .val, .chart .val-bad { font-size: 8px; }
}

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

@media print {
  body { background: #fff; color: #111; }
  .graticule { display: none; }
}