/* Cast Deep: one long descent, from the surface to the trench. */
@font-face { font-family: "Fraunces"; font-weight: 400; font-display: swap; src: url("/fonts/fraunces-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 400; font-style: italic; font-display: swap; src: url("/fonts/fraunces-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 600; font-display: swap; src: url("/fonts/fraunces-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 900; font-display: swap; src: url("/fonts/fraunces-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Plex Sans"; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Plex Sans"; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --foam: #effbf8; --spray: #c9ece6; --kelp: #9fc9c1; --surf: #7fe3d6; --glow: #6ff2ff; --gold: #f2c14e; --coral: #ff8f7a;
  --serif: "Fraunces", Georgia, serif; --sans: "Plex Sans", system-ui, sans-serif;
  --gutter: clamp(18px, 5vw, 72px); --gauge: 92px;
}
* { box-sizing: border-box; }
html { background: #000; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 17px/1.6 var(--sans); color: var(--foam); background: #000; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--foam); text-decoration-color: rgba(127, 227, 214, .6); text-underline-offset: 3px; }
a:hover { color: var(--surf); }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--foam); color: #053; padding: 8px 12px; z-index: 30; }
.num { font-variant-numeric: tabular-nums lining-nums; }

/* The whole page is the water column: sky, then surface turquoise, darkening to the trench. */
.sea {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg,
    #ffe3b0 0, #ffd6a6 260px, #9ee6dc 430px, #3fbfbe 900px,
    #1b8a96 14%, #13658f 24%, #0f3f86 34%, #111a4a 46%, #070a1d 58%, #070514 70%, #030208 82%, #000 100%);
}

/* Line and gauge */
.line { position: fixed; left: calc(var(--gutter) * .45); top: 0; width: 24px; height: 58vh; z-index: 5; pointer-events: none; color: rgba(239, 251, 248, .75); }
.line i { position: absolute; left: 11px; top: 0; bottom: 34px; width: 1.4px; background: currentColor; }
.line svg { position: absolute; left: 0; bottom: 0; width: 24px; height: 40px; }
.gauge { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 6; width: 72px; pointer-events: none; }
.gauge ol { list-style: none; margin: 0; padding: 0 0 0 12px; border-left: 1.4px solid rgba(239, 251, 248, .35); }
.gauge li { height: 44px; font: 400 11.5px/1.15 var(--sans); color: rgba(239, 251, 248, .5); position: relative; padding-top: 2px; }
.gauge li::before { content: ""; position: absolute; left: -12px; top: 0; width: 8px; height: 1.4px; background: rgba(239, 251, 248, .5); }
.gauge li.here { color: var(--foam); }
.gauge .read { margin-top: 12px; font: 600 15px/1 var(--serif); color: var(--foam); white-space: nowrap; }
.gauge .read b { font-size: 22px; font-weight: 600; }

/* Header on the sky */
.top { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; padding: 26px var(--gutter) 0; padding-right: calc(var(--gutter) + var(--gauge) - 40px); position: relative; z-index: 2; }
.word { font: 900 30px/1 var(--serif); color: #1d3b44; text-decoration: none; letter-spacing: -.01em; }
.word i { font-weight: 400; }
.top nav { display: flex; gap: 6px 26px; flex-wrap: wrap; font: 600 15px/1 var(--sans); }
.top nav a { color: #1d3b44; text-decoration: none; padding: 6px 0; }
.top nav a:hover { color: #0b6b6f; box-shadow: inset 0 -2px 0 #0b6b6f; }

/* Hero: the surface */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; padding: 70px var(--gutter) 120px calc(var(--gutter) + 18px); padding-right: calc(var(--gutter) + var(--gauge)); position: relative; }
.hero::before { /* the waterline */ content: ""; position: absolute; left: 0; right: 0; top: 330px; height: 22px; background: radial-gradient(14px 8px at 50% 100%, rgba(255, 255, 255, .55) 98%, transparent) 0 0 / 30px 22px repeat-x; opacity: .7; pointer-events: none; }
h1 { margin: 0; font: 900 clamp(44px, 6.4vw, 96px)/.98 var(--serif); letter-spacing: -.025em; color: #10303a; max-width: 11ch; text-wrap: balance; }
.lede { margin: 28px 0 0; font: 400 20px/1.6 var(--sans); color: #0d2f38; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid #0c2e37; background: #0c2e37; color: var(--foam); font: 600 15.5px/1 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: #134652; border-color: #134652; color: var(--foam); }
.btn.ghost { background: transparent; color: #0c2e37; }
.btn.ghost:hover { background: rgba(12, 46, 55, .08); color: #0c2e37; }
.band .btn { background: var(--foam); border-color: var(--foam); color: #072a33; }
.band .btn:hover { background: #fff; border-color: #fff; color: #072a33; }
.tally { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 44px 0 0; color: #0d2f38; }
.tally div { min-width: 110px; }
.tally dt { font: 400 14px/1.3 var(--sans); order: 2; }
.tally dd { margin: 0 0 4px; font: 600 32px/1 var(--serif); font-variant-numeric: tabular-nums lining-nums; }
.tally div { display: flex; flex-direction: column-reverse; }
.specimen { margin: 0; position: relative; }
.specimen img { border-radius: 18px; box-shadow: 0 30px 80px rgba(4, 40, 52, .45); }
.specimen figcaption { margin-top: 12px; font: italic 400 16px/1.4 var(--serif); color: #e9fbf7; }
.specimen figcaption a { color: inherit; }

/* Bands: shared section rhythm */
.band { padding: 110px var(--gutter) 110px calc(var(--gutter) + 18px); padding-right: calc(var(--gutter) + var(--gauge)); position: relative; }
.wrap { max-width: 1120px; }
.two { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: start; }
h2 { margin: 0 0 14px; font: 600 clamp(34px, 4.4vw, 58px)/1.05 var(--serif); letter-spacing: -.015em; }
h3 { margin: 0 0 12px; font: 600 23px/1.2 var(--serif); }
h3.mt { margin-top: 34px; }
.sub { margin: 0 0 30px; font: 400 18.5px/1.65 var(--sans); color: var(--spray); max-width: 38em; }
.prompt { margin: 0 0 16px; padding: 22px 24px; border-radius: 16px; background: rgba(2, 30, 38, .55); border: 1px solid rgba(201, 236, 230, .25); font: 400 16px/1.7 var(--sans); color: var(--foam); white-space: pre-wrap; backdrop-filter: blur(6px); }
.steps { margin: 0; padding-left: 1.4em; }
.steps li { padding: 6px 0 10px 6px; color: var(--spray); }
.steps li::marker { font: 600 18px var(--serif); color: var(--foam); }
.steps b, .rules b { color: var(--foam); font-weight: 600; }
.rules { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; }
.rules dt { font: 600 17px/1.5 var(--serif); }
.rules dd { margin: 0; color: var(--spray); }

/* A zone */
.zone { padding: 120px var(--gutter) 90px calc(var(--gutter) + 18px); padding-right: calc(var(--gutter) + var(--gauge)); position: relative; }
.zone header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px 40px; max-width: 1120px; border-bottom: 1px solid rgba(239, 251, 248, .22); padding-bottom: 18px; }
.zone h2 { margin: 0; font-size: clamp(48px, 7vw, 104px); font-weight: 900; line-height: .9; letter-spacing: -.03em; }
.zone .range { font: italic 400 22px/1.2 var(--serif); color: var(--spray); text-align: right; }
.zone .range b { display: block; font: 600 15px/1.4 var(--sans); font-style: normal; color: var(--kelp); margin-top: 6px; }
.zone p.about { max-width: 40em; margin: 22px 0 0; color: var(--spray); font-size: 18px; }
.species { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 1120px; margin-top: 34px; }
.species.one { grid-template-columns: minmax(0, 560px); }
.sp img { border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.sp figcaption { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 15px; color: var(--spray); }
.sp figcaption b { font: italic 400 21px/1.2 var(--serif); color: var(--foam); }
.caught { margin-top: 34px; max-width: 1120px; }
.caught h3 { font-size: 19px; }
.caught .none { color: var(--kelp); font-style: italic; font-family: var(--serif); font-size: 18px; margin: 0; }
.catches { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.catch { text-decoration: none; color: inherit; display: block; }
.catch img { border-radius: 12px; transition: transform .2s ease; }
.catch:hover img { transform: translateY(-3px); }
.catch span { display: block; margin-top: 7px; font-size: 13.5px; color: var(--spray); line-height: 1.35; }
.catch span b { font: italic 400 16px/1.2 var(--serif); color: var(--foam); display: block; }
@media (prefers-reduced-motion: reduce) { .catch img { transition: none; } }
.trench h2 { color: var(--gold); }

/* Records & log */
.deepest-row { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 34px; align-items: center; margin-bottom: 40px; max-width: 1120px; }
.deepest-row:empty { display: none; }
.deepest-row h3 { font: 600 clamp(28px, 3.2vw, 40px)/1.1 var(--serif); }
.deepest-row p { color: var(--spray); margin: 0; }
.board { width: 100%; max-width: 1120px; border-collapse: collapse; font-size: 16px; }
.board th { text-align: left; font: 600 14px/1 var(--sans); color: var(--kelp); padding: 0 12px 12px 0; border-bottom: 1px solid rgba(239, 251, 248, .2); }
.board td { padding: 13px 12px 13px 0; border-bottom: 1px solid rgba(239, 251, 248, .1); color: var(--spray); font-variant-numeric: tabular-nums lining-nums; }
.board td:first-child { font: italic 400 19px/1.2 var(--serif); color: var(--foam); }
.board td a { color: var(--foam); }
.look { display: flex; gap: 10px; max-width: 600px; flex-wrap: wrap; }
.look input { flex: 1 1 260px; min-height: 50px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(239, 251, 248, .35); background: rgba(255, 255, 255, .06); color: var(--foam); font-size: 16px; }
.look input::placeholder { color: rgba(239, 251, 248, .45); }
.result { min-height: 1.6em; color: var(--spray); margin: 18px 0; }
.fishlog { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; max-width: 1120px; margin-bottom: 30px; }
.fishlog:empty { display: none; }
.fishlog div { text-align: left; }
.fishlog img { border-radius: 10px; }
.fishlog .missing img { filter: brightness(0) saturate(0); opacity: .35; }
.fishlog span { display: block; font: italic 400 15px/1.3 var(--serif); margin-top: 6px; color: var(--foam); }
.fishlog .missing span { color: rgba(239, 251, 248, .4); }
.code { margin: 0; padding: 22px 24px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(239, 251, 248, .16); font: 400 14.5px/1.8 ui-monospace, Menlo, monospace; color: #cfeee9; white-space: pre-wrap; word-break: break-all; max-width: 1120px; }
.foot { padding: 30px var(--gutter) 70px calc(var(--gutter) + 18px); padding-right: calc(var(--gutter) + var(--gauge)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; color: rgba(239, 251, 248, .55); font-size: 14px; }
.foot p { margin: 0; max-width: 62ch; }
.foot dl { margin: 0; display: grid; grid-template-columns: auto auto; gap: 4px 14px; }
.foot dd { margin: 0; }

.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 40; }
.toast { background: var(--foam); color: #072a33; padding: 12px 18px; border-radius: 999px; font: 600 15px/1.2 var(--sans); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.toast.err { background: var(--coral); }

/* Catch page */
.catchpage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 56px; align-items: start; padding: 60px var(--gutter) 100px calc(var(--gutter) + 18px); padding-right: calc(var(--gutter) + var(--gauge)); }
.catchpage img { border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.catchpage h1 { color: var(--foam); font-size: clamp(42px, 5vw, 76px); }
.catchpage .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; margin: 28px 0 0; }
.catchpage .facts div { padding: 13px 0; border-bottom: 1px solid rgba(239, 251, 248, .16); }
.catchpage .facts dt { font-size: 14px; color: var(--kelp); }
.catchpage .facts dd { margin: 4px 0 0; font: 600 22px/1.2 var(--serif); font-variant-numeric: tabular-nums lining-nums; }
.catchpage .dna { margin-top: 18px; font: 400 12.5px/1.5 ui-monospace, Menlo, monospace; color: var(--kelp); word-break: break-all; }
.page-top .word, .page-top nav a { color: var(--foam); }
.page-top nav a:hover { color: var(--surf); box-shadow: inset 0 -2px 0 var(--surf); }
.page-sea { min-height: 100vh; background: linear-gradient(180deg, #0f3f86 0, #111a4a 45%, #05081c 100%); }

@media (max-width: 960px) {
  :root { --gauge: 0px; }
  .gauge { display: none; }
  .hero, .two, .catchpage, .deepest-row { grid-template-columns: 1fr; }
  .hero::before { top: 300px; }
  .fishlog { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .line { display: none; }
  .hero, .band, .zone, .foot, .catchpage { padding-left: var(--gutter); }
  .zone header { grid-template-columns: 1fr; }
  .zone .range { text-align: left; }
  .species { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; gap: 2px; }
  .rules dd { margin-bottom: 10px; }
  .fishlog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board th:nth-child(4), .board td:nth-child(4) { display: none; }
}

/* Live mint activity */
.activity-head{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}.activity-head h2{margin:8px 0 0}.activity-eyebrow,.activity-kind{font:600 12px/1.5 var(--sans);letter-spacing:.06em;text-transform:uppercase}.activity-eyebrow:before{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;background:#166a50;margin-right:8px}.activity-note{font-size:15px;opacity:.8}.activity-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:26px}.activity-card{border:1px solid currentColor;border-radius:16px;overflow:hidden;text-decoration:none;color:inherit;background:rgba(255,255,255,.15)}.activity-card img{display:block;width:100%;height:auto;aspect-ratio:1}.activity-card>div{padding:18px}.activity-card h3{margin:8px 0;font:600 25px/1.2 var(--serif)}.activity-card p{margin:0;font-size:14px}.activity-card:hover{transform:translateY(-3px)}.activity-gold{display:block;margin-top:8px;color:#795600}.activity-error{color:#8b2929}@media(max-width:760px){.activity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:440px){.activity-grid{grid-template-columns:1fr}}
.activity-fish{display:block;color:inherit;text-decoration:none}.activity-fish>div{padding:18px}.activity-meta{padding:16px 18px 20px;border-top:1px solid rgba(255,255,255,.3);display:flex;flex-direction:column;align-items:flex-start;gap:5px}.mint-badge{display:inline-block;padding:4px 11px;border-radius:99px;font:700 12px/1.4 var(--sans);letter-spacing:.05em;text-transform:uppercase;margin-bottom:9px;border:1px solid currentColor}.mint-0{background:#d5f7dd;color:#134e2c}.mint-1{background:#fff0c9;color:#694400}.mint-2{background:#e0e5fb;color:#26366b}.mint-label,.mint-wallet{font:400 12px/1.5 var(--sans);opacity:.8}.mint-agent{font:600 18px/1.4 var(--sans);overflow-wrap:anywhere;color:inherit}.mint-tx{font:400 12px/1.5 var(--sans);color:inherit;margin-top:7px}.activity-card{display:flex;flex-direction:column}.activity-meta{margin-top:auto}

.activity-counts{display:flex;flex-wrap:wrap;gap:12px;margin:22px 0}.activity-counts span{border:1px solid currentColor;border-radius:12px;padding:12px 18px;font-size:14px}.activity-counts b{font-size:26px;font-family:var(--serif);margin-right:8px}

.mint-time{display:block;margin-top:8px;font:400 12px/1.6 var(--sans);font-variant-numeric:tabular-nums;opacity:.9}
