/* river dawn · cork · teal */

:root {
  --teal-deep: #0f3438;
  --teal: #1a4f52;
  --teal-bright: #2a7a7e;
  --water: #3d8f96;
  --cork: #7d5a3c;
  --cork-pale: #e8dcc8;
  --sand: #f4efe4;
  --ink: #142224;
  --mist: #6f8f90;
  --hot: #3cb8a0;
  --mid: #d4a84b;
  --low: #8b6f5c;
  --display: "Russo One", "Segoe UI", sans-serif;
  --text: "Karla", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; color-scheme: light; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--text);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal-bright); }
:focus-visible { outline: 2px solid var(--water); outline-offset: 3px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: .6rem 1rem;
  background: var(--teal);
  color: var(--sand);
  z-index: 99;
}
.skip:focus { left: .5rem; top: .5rem; }

.dawn {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.dawn-mist {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 60% at 80% -10%, rgba(61, 143, 150, 0.35), transparent 55%),
    linear-gradient(165deg, #c9e8ea 0%, var(--sand) 42%, #e6ddd0 100%);
}
.dawn-water {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -5%;
  height: 38vh;
  background: linear-gradient(180deg, transparent, rgba(26, 79, 82, 0.12) 30%, rgba(26, 79, 82, 0.22));
  transform: skewY(-2deg);
}
.dawn-cork {
  position: absolute;
  width: 14rem;
  height: 14rem;
  right: 8%;
  top: 18%;
  border-radius: 40% 60% 55% 45%;
  background: rgba(125, 90, 60, 0.08);
  filter: blur(2px);
}

.dock-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(26, 79, 82, 0.15);
  background: rgba(244, 239, 228, 0.82);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: inherit;
}
.logo strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: .02em;
  font-size: 1.05rem;
}
.logo small { color: var(--mist); font-size: .78rem; }
.logo-hook {
  width: 2.1rem;
  height: 2.1rem;
  border: 2px solid var(--cork);
  border-radius: 50% 50% 40% 60%;
  border-top-color: var(--teal);
}
.dock-head nav {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem 1.2rem;
  font-size: .92rem;
}
.dock-head nav a { color: var(--ink); text-decoration: none; opacity: .85; }
.dock-head nav a:hover { opacity: 1; color: var(--teal); }

.shore {
  display: grid;
  grid-template-columns: 1.2fr minmax(220px, .55fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem) 1.5rem;
  align-items: end;
}
@media (max-width: 820px) {
  .shore { grid-template-columns: 1fr; }
}
.kicker {
  margin: 0 0 .75rem;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--teal);
}
h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.15;
  max-width: 16ch;
}
.lede { margin: 0; max-width: 42rem; color: #2a3f40; }

.today-plank {
  padding: 1.1rem 1.25rem;
  background: linear-gradient(145deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: var(--cork-pale);
  border-radius: 4px 18px 4px 18px;
  box-shadow: 0 12px 40px rgba(15, 52, 56, 0.2);
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-size: .95rem;
}
.today-plank strong { font-family: var(--display); font-size: 1.2rem; font-weight: 400; }
.today-bite { font-weight: 600; }
.today-bite.bite-hot { color: #9ff3dd; }
.today-bite.bite-mid { color: #ffe2a8; }
.today-bite.bite-low { color: #d4c4b8; }

.chart {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  padding: 0 clamp(1rem, 4vw, 3rem) 3rem;
  align-items: start;
}
@media (max-width: 960px) {
  .chart { grid-template-columns: 1fr; }
}
.bank {
  padding: 1.25rem;
  border-left: 4px solid var(--cork);
  background: rgba(255, 255, 255, 0.45);
}
.bank-label {
  margin: 0 0 .65rem;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cork);
}
.fish-pick {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1rem;
}
.fish-pick button {
  text-align: left;
  padding: .55rem .85rem;
  border: 1px solid rgba(26, 79, 82, 0.25);
  background: transparent;
  font: inherit;
  cursor: pointer;
  border-radius: 2px;
  transition: background .15s, border-color .15s;
}
.fish-pick button.is-on {
  background: var(--teal);
  color: var(--sand);
  border-color: var(--teal);
}
.species-tip {
  margin: 0 0 1.25rem;
  font-size: .92rem;
  color: #3a4f50;
  min-height: 4.5em;
}
.bite-key { margin: 0; }
.bite-key div {
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: .5rem .65rem;
  margin-bottom: .5rem;
  font-size: .88rem;
}
.bite-key dt {
  width: 1rem;
  height: 1rem;
  border-radius: 2px;
  margin: 0;
}
.bite-hot { background: var(--hot); }
.bite-mid { background: var(--mid); }
.bite-low { background: var(--low); }
.bite-key dd { margin: 0; }

.tide-board {
  padding: 1rem 0;
  overflow-x: auto;
}
.tide-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.tide-toolbar h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.35rem;
  text-transform: capitalize;
}
.tide-toolbar button {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--teal);
  background: transparent;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--teal);
}
.tide-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(3.4rem, 1fr));
  gap: .35rem;
  margin-bottom: .35rem;
  align-items: end;
}
.tide-gap { visibility: hidden; }
.tide-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: calc(3.2rem + var(--tide, 0.5) * 5.5rem);
  padding: .35rem .25rem .45rem;
  border: none;
  border-radius: 3px 3px 8px 8px;
  cursor: default;
  font: inherit;
  font-size: .72rem;
  background: linear-gradient(180deg, rgba(61, 143, 150, 0.08), rgba(61, 143, 150, 0.02));
  color: var(--ink);
  position: relative;
}
.tide-cell.bite-hot {
  background: linear-gradient(180deg, rgba(60, 184, 160, 0.55), rgba(60, 184, 160, 0.15));
}
.tide-cell.bite-mid {
  background: linear-gradient(180deg, rgba(212, 168, 75, 0.45), rgba(212, 168, 75, 0.12));
}
.tide-cell.bite-low {
  background: linear-gradient(180deg, rgba(139, 111, 92, 0.35), rgba(139, 111, 92, 0.08));
}
.tide-cell.is-today {
  outline: 2px solid var(--teal-bright);
  outline-offset: 2px;
}
.tc-day { font-weight: 700; font-size: .85rem; }
.tc-moon { font-size: 1rem; line-height: 1; opacity: .85; }
.tc-bite { font-size: .65rem; text-transform: uppercase; letter-spacing: .04em; }
.tc-illum { color: var(--mist); font-size: .62rem; }

.ruler-wrap {
  margin-top: 1.25rem;
  font-size: .75rem;
  color: var(--mist);
}
.moon-ruler {
  display: flex;
  gap: 2px;
  height: 1.25rem;
  margin-top: .35rem;
}
.moon-ruler i {
  flex: 1;
  display: block;
  min-width: 4px;
  align-self: flex-end;
  height: calc(20% + var(--i, 0.5) * 80%);
  background: linear-gradient(180deg, var(--water), var(--teal));
  border-radius: 1px 1px 0 0;
  opacity: .85;
}

.honest {
  max-width: 40rem;
  padding: 2rem clamp(1rem, 4vw, 3rem) 3rem;
}
.honest h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.25rem;
}

.legal-foot {
  padding: 2rem clamp(1rem, 4vw, 3rem) 5rem;
  border-top: 1px solid rgba(26, 79, 82, 0.12);
  font-size: .88rem;
  color: #3d5556;
}
.legal-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  margin-top: 1rem;
}
.legal-foot nav a { color: inherit; }

.cookie-note {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  max-width: 26rem;
  padding: .85rem 1rem;
  background: var(--ink);
  color: var(--cork-pale);
  border-radius: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  font-size: .85rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  z-index: 20;
}
.cookie-note[hidden] { display: none; }
.cookie-note button {
  padding: .4rem .9rem;
  border: none;
  background: var(--teal-bright);
  color: #fff;
  font: inherit;
  cursor: pointer;
  border-radius: 3px;
}

/* legal prose */
body.legal-page .prose {
  max-width: 42rem;
  padding: 2rem clamp(1rem, 4vw, 3rem) 4rem;
}
body.legal-page .prose h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.5rem;
  max-width: none;
}
body.legal-page .mast {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(26, 79, 82, 0.15);
}
body.legal-page .mast .brand {
  font-family: var(--display);
  text-decoration: none;
  color: inherit;
}
body.legal-page .nav a {
  margin-left: 1rem;
  color: inherit;
  font-size: .9rem;
}