/* Pescada site. "Nothing slips through the net": a sea-ink palette, one buoy-amber accent
   used only for the confirming tick, a serif display face for statements and a grotesk for the work. */
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/instrument-serif-latin-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/hanken-grotesk-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/hanken-grotesk-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/hanken-grotesk-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/jetbrains-mono-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/jetbrains-mono-latin-500-normal.woff2) format('woff2'); }

:root {
  --paper: #F2F5F3;
  --surface: #FFFFFF;
  --sunk: #E8EEEB;
  --ink: #0F2B2A;
  --text: #33433F;
  --muted: #5F6E69;
  --line: #D8E1DD;
  --tide: #0E6F68;
  --tide-soft: #DCEDE9;
  --on-tide: #FFFFFF;
  --buoy: #E0A82E;
  --alert: #B5452F;
  --f-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --f-body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0B1A19; --surface: #10231F; --sunk: #0D1F1C; --ink: #ECF3F0; --text: #C3D0CB; --muted: #8FA19B;
    --line: #21382F; --tide: #4FB8AC; --tide-soft: #12302C; --on-tide: #0B1A19; --buoy: #E8B648; --alert: #E58A72;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--text); font: 400 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--tide); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--tide); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--ink); margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--f-display); font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: clamp(42px, 6.4vw, 76px); line-height: 1.02; }
h2 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.08; }
h3 { font: 600 18px/1.35 var(--f-body); }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.eyebrow { font: 600 12.5px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--tide); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--text); max-width: 34em; }
.mono { font-family: var(--f-mono); font-size: 12.5px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 400 30px/1 var(--f-display); letter-spacing: -0.01em; }
.brand svg { width: 40px; height: 25px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.lang { font: 600 13px/1 var(--f-body); letter-spacing: .06em; color: var(--muted) !important; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 12px 22px; font: 600 15px/1 var(--f-body); text-decoration: none; border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.primary:hover { background: var(--tide); border-color: var(--tide); color: var(--on-tide); }
.btn.small { padding: 9px 16px; font-size: 14px; }
@media (max-width: 760px) { .nav .hide-s { display: none; } .top .wrap { gap: 12px; } .nav { gap: 12px; } }

/* hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 em { font-style: italic; color: var(--tide); }
.hero .lead { margin-top: 22px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.fine { margin-top: 14px; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* the ledger card: the product's own artifact */
.ledger { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 1px 2px rgba(15, 43, 42, .05), 0 24px 48px -24px rgba(15, 43, 42, .25); }
.ledger .doc { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.ledger .doc b { color: var(--ink); font-size: 17px; }
.ledger .ref { font: 500 12px/1 var(--f-mono); color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 22px 0 6px; display: grid; grid-template-columns: repeat(4, 1fr); }
.steps li { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 13px; color: var(--ink); font-weight: 600; }
.steps li::before { content: ""; position: absolute; top: 8px; right: 50%; width: 100%; height: 2px; background: var(--tide); }
.steps li:first-child::before { display: none; }
.steps i { position: relative; z-index: 1; width: 18px; height: 18px; border-radius: 50%; background: var(--tide); }
.steps li:last-child i { background: var(--buoy); }
.steps li:last-child i::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.steps em { font: 400 11.5px/1.3 var(--f-mono); color: var(--muted); font-style: normal; }
.log { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 10px; }
.log li { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; font-size: 13.5px; }
.log .t { font: 400 11.5px/1 var(--f-mono); color: var(--muted); }
.log .h { font: 400 11px/1 var(--f-mono); color: var(--muted); }
.log .who { font-weight: 600; color: var(--ink); }
.verified { margin-top: 16px; display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--tide); font-weight: 600; }

/* sections */
section.band { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }

.excuses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.excuse { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: grid; gap: 14px; align-content: start; }
.excuse q { font: 400 26px/1.15 var(--f-display); color: var(--ink); text-decoration: line-through; text-decoration-color: var(--alert); text-decoration-thickness: 2px; quotes: "“" "”"; }
.excuse p { font-size: 15.5px; }
@media (max-width: 860px) { .excuses { grid-template-columns: minmax(0, 1fr); } }

.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.flow li { counter-increment: s; padding: 0 22px 0 0; display: grid; gap: 10px; align-content: start; }
.flow li::before { content: counter(s, decimal-leading-zero); font: 400 15px/1 var(--f-mono); color: var(--tide); border-top: 2px solid var(--tide); padding-top: 14px; }
.flow li:last-child::before { border-color: var(--buoy); color: var(--ink); }
.flow p { font-size: 15.5px; }
@media (max-width: 860px) { .flow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 32px; } }
@media (max-width: 520px) { .flow { grid-template-columns: minmax(0, 1fr); } }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.feature { background: var(--surface); padding: 28px; display: grid; gap: 10px; align-content: start; }
.feature .tag { font: 500 12px/1.4 var(--f-mono); color: var(--muted); }
.feature p { font-size: 15.5px; }
@media (max-width: 900px) { .features { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: minmax(0, 1fr); } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.facts b { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .facts li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

.closing { text-align: left; display: grid; gap: 20px; justify-items: start; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--muted); }
footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); }
@media (max-width: 700px) { footer .wrap { grid-template-columns: minmax(0, 1fr); } }

/* legal pages */
.legal { padding: clamp(40px, 6vw, 72px) 0 80px; }
.legal .wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.legal aside { position: sticky; top: 92px; display: grid; gap: 8px; font-size: 14.5px; }
.legal aside a { color: var(--text); text-decoration: none; padding: 4px 0; }
.legal aside a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.legal article { max-width: 46em; }
.legal article h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 10px; }
.legal article h2 { font: 600 20px/1.3 var(--f-body); color: var(--ink); margin: 36px 0 10px; }
.legal article h3 { font-size: 16.5px; margin: 22px 0 6px; }
.legal article p, .legal article li { font-size: 16px; }
.legal article p + p { margin-top: 10px; }
.legal article ul, .legal article ol { padding-left: 1.3em; margin: 10px 0; display: grid; gap: 6px; }
.legal .meta { color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.legal .draft { background: var(--tide-soft); border-left: 3px solid var(--buoy); padding: 12px 16px; border-radius: 0 10px 10px 0; font-size: 14.5px; margin-bottom: 28px; color: var(--ink); }
.table { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 12px; }
.table table { border-collapse: collapse; width: 100%; font-size: 14.5px; background: var(--surface); }
.table th, .table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.table tr:last-child td, .table tr:last-child th { border-bottom: 0; }
.table th[scope="row"] { width: 30%; min-width: 140px; }
@media (max-width: 860px) { .legal .wrap { grid-template-columns: minmax(0, 1fr); } .legal aside { position: static; display: flex; flex-wrap: wrap; gap: 6px 16px; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
