/* The Night Bite — cozy cabin notebook / night-dock fishing journal */
:root {
  --navy: #0a1628;
  --navy-mid: #122038;
  --navy-light: #1a2e4a;
  --amber: #f0a830;
  --amber-dim: #c48420;
  --amber-glow: rgba(240, 168, 48, 0.25);
  --green: #3d7a4d;
  --green-bright: #5a9a6a;
  --cream: #f5edd8;
  --cream-dark: #e8d5a3;
  --ink: #1a1208;
  --paper: #faf6eb;
  --muted: #8a9aaa;
  --danger: #c44;
  --focus: #ffe08a;
  --radius: 6px;
  --font-display: "Pixelify Sans", "Courier New", monospace;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --max: 720px;
  --header-h: 3.5rem;
}

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

html { scroll-behavior: smooth; }

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

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--cream);
  background: var(--navy);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Watery night background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 70% 0%, rgba(240,168,48,0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 20% 100%, rgba(61,122,77,0.12), transparent 45%),
    linear-gradient(180deg, #0a1628 0%, #0d1c30 40%, #0a1828 100%);
  z-index: -1;
  pointer-events: none;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cream-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* —— Header / Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.95);
  border-bottom: 1px solid var(--navy-light);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--cream);
}

.logo:hover { color: var(--amber); }
.logo img { width: 28px; height: auto; }

.logo-text {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--amber-dim);
  color: var(--amber);
  padding: 0.4rem 0.6rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  cursor: pointer;
  border-radius: var(--radius);
  min-width: 44px;
  min-height: 44px;
}

.nav-toggle[aria-expanded="true"] {
  background: var(--amber-glow);
  border-color: var(--amber);
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
  align-items: center;
}

.site-nav a {
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0.2rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-mid);
    border-bottom: 1px solid var(--navy-light);
    padding: 0.75rem 1rem 1rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav a {
    display: block;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--navy-light);
    font-size: 0.75rem;
  }
}

/* —— Main —— */
main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

main.wide { max-width: 960px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.35;
  color: var(--cream);
}

h1 { font-size: clamp(1.15rem, 4vw, 1.5rem); margin-bottom: 1rem; color: var(--amber); }
h2 { font-size: clamp(0.95rem, 3vw, 1.15rem); margin: 2rem 0 0.75rem; color: var(--cream-dark); }
h3 { font-size: 0.85rem; margin: 1.25rem 0 0.5rem; color: var(--green-bright); }

p { margin-bottom: 1rem; }
ul, ol { margin: 0 0 1rem 1.25rem; }
li { margin-bottom: 0.35rem; }

.lead {
  font-size: 1.1rem;
  color: var(--cream-dark);
  margin-bottom: 1.5rem;
}

.meta { font-size: 0.9rem; color: var(--muted); }

/* —— Hero —— */
.hero {
  text-align: center;
  padding: 1.5rem 0 2rem;
  position: relative;
}

.hero-art {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.hero-art img { image-rendering: pixelated; }

.hero h1 { margin-bottom: 0.5rem; }

.tagline {
  font-style: italic;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* —— Status strip (placeholders) —— */
.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.chip {
  font-family: var(--font-display);
  font-size: 0.6rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius);
  border: 2px solid;
  letter-spacing: 0.04em;
  text-align: center;
  min-width: 5.5rem;
}

.chip-go {
  background: rgba(61,122,77,0.25);
  border-color: var(--green);
  color: var(--green-bright);
}

.chip-nights {
  background: rgba(240,168,48,0.15);
  border-color: var(--amber-dim);
  color: var(--amber);
}

.chip-wait {
  background: rgba(138,154,170,0.15);
  border-color: var(--muted);
  color: var(--muted);
}

.chip .chip-label { display: block; font-size: 0.55rem; opacity: 0.8; margin-top: 0.2rem; }

.placeholder-note {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--navy-light);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: rgba(18, 32, 56, 0.6);
  margin: 0.75rem 0 1.5rem;
}

.placeholder-note strong { color: var(--cream-dark); }

/* —— Cards —— */
.card-grid {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (min-width: 560px) {
  .card-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--navy-mid);
  border: 1px solid var(--navy-light);
  border-radius: var(--radius);
  padding: 1.15rem;
}

.card h3 { margin-top: 0; }

.paper-card {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 1.15rem;
  position: relative;
  box-shadow: 2px 3px 0 rgba(0,0,0,0.2);
}

.paper-card h3 { color: var(--ink); }
.paper-card a { color: var(--amber-dim); }
.paper-card .meta { color: #5a5040; }

.sample-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.55rem;
  background: #8b1515;
  color: #fffef8;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  vertical-align: middle;
}

.trip-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.75rem;
  font-size: 0.95rem;
  margin: 0.5rem 0;
}

.trip-dl dt {
  font-family: var(--font-display);
  font-size: 0.55rem;
  color: #6a6050;
  align-self: center;
}

.trip-dl dd { margin: 0; }

/* —— Forms —— */
.form-block {
  background: var(--navy-mid);
  border: 1px solid var(--navy-light);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.6rem;
  color: var(--cream-dark);
  margin-bottom: 0.35rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--navy);
  border: 1px solid var(--navy-light);
  color: var(--cream);
  border-radius: var(--radius);
}

.form-row textarea { min-height: 5rem; resize: vertical; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn {
  font-family: var(--font-display);
  font-size: 0.65rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  border: 2px solid var(--amber);
  background: var(--amber);
  color: var(--navy);
  cursor: pointer;
  min-height: 44px;
}

.btn:hover { background: var(--cream-dark); border-color: var(--cream-dark); }

.btn-ghost {
  background: transparent;
  color: var(--amber);
}

.btn-ghost:hover {
  background: var(--amber-glow);
  color: var(--cream);
}

.btn-danger {
  border-color: var(--danger);
  background: transparent;
  color: #f88;
}

.btn-danger:hover {
  background: rgba(204,68,68,0.2);
}

/* —— Recipe cards —— */
.recipe {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid var(--cream-dark);
}

.recipe h2 { color: var(--ink); margin-top: 0; }
.recipe h3 { color: #3d5a2d; }
.recipe .vegan-tag {
  font-family: var(--font-display);
  font-size: 0.5rem;
  color: var(--green);
  border: 1px solid var(--green);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.recipe ul, .recipe ol { margin-left: 1.25rem; }
.recipe li { margin-bottom: 0.4rem; }

.recipe-meta {
  font-size: 0.9rem;
  color: #5a5040;
  margin-bottom: 1rem;
}

/* —— Water placeholders —— */
.water-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--navy-light);
  gap: 1rem;
}

.water-stat .label {
  font-family: var(--font-display);
  font-size: 0.6rem;
  color: var(--muted);
}

.water-stat .value {
  font-size: 1rem;
  color: var(--cream-dark);
}

.water-stat .value.unknown {
  font-style: italic;
  color: var(--muted);
}

/* —— Whisperwood —— */
.teaser-box {
  border: 2px dashed var(--green);
  background: rgba(61,122,77,0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}

.teaser-box .coming {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--green-bright);
  margin-bottom: 0.75rem;
}

.art-notes {
  text-align: left;
  background: var(--navy-mid);
  padding: 1.25rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  font-size: 0.95rem;
}

.art-notes ul { margin-bottom: 0; }

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--navy-light);
  background: rgba(10, 22, 40, 0.9);
  padding: 1.5rem 1rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.footer-inner a {
  font-family: var(--font-display);
  font-size: 0.55rem;
  color: var(--muted);
  text-decoration: none;
}

.footer-inner a:hover { color: var(--amber); }

.disclaimer-short {
  max-width: 36rem;
  margin: 0.5rem auto 0;
  line-height: 1.5;
}

/* —— Utilities —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.icon-inline {
  display: inline-block;
  vertical-align: middle;
  width: 1.5rem;
  height: auto;
  image-rendering: pixelated;
}

.divider {
  border: none;
  border-top: 1px solid var(--navy-light);
  margin: 2rem 0;
}

.callout {
  border-left: 3px solid var(--amber);
  padding: 0.75rem 1rem;
  background: rgba(240,168,48,0.08);
  margin: 1rem 0;
  font-size: 0.95rem;
}

.callout.warn {
  border-left-color: var(--danger);
  background: rgba(204,68,68,0.1);
}

/* Lantern flicker — CSS only, respects reduced motion */
@keyframes flicker {
  0%, 100% { opacity: 1; filter: brightness(1); }
  40% { opacity: 0.92; filter: brightness(0.95); }
  60% { opacity: 1; filter: brightness(1.08); }
  80% { opacity: 0.96; filter: brightness(0.98); }
}

.lantern-glow {
  animation: flicker 4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .lantern-glow { animation: none; }
}

/* Log empty state */
.empty-log {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  border: 1px dashed var(--navy-light);
  border-radius: var(--radius);
}

#log-list .paper-card { margin-bottom: 1rem; }

.trip-actions {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
}

.trip-actions .btn { font-size: 0.55rem; padding: 0.45rem 0.7rem; min-height: 36px; }

@media (min-width: 1280px) {
  main { padding-top: 2rem; }
  .hero { padding-top: 2rem; }
}

/* —— Water maps / access (append) —— */
.home-map-cta {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--navy-mid);
  border: 2px solid var(--amber-dim);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 1.25rem 0 0.5rem;
  box-shadow: 0 0 0 1px rgba(240, 168, 48, 0.12);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.home-map-cta:hover {
  border-color: var(--amber);
  background: rgba(240, 168, 48, 0.08);
  color: inherit;
}

.home-map-cta h3 {
  margin: 0 0 0.35rem;
  color: var(--amber);
}

.home-map-cta .meta {
  margin: 0;
}

.map-link-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.map-link-card:hover {
  border-color: var(--amber-dim);
  background: rgba(240, 168, 48, 0.06);
  color: inherit;
}

.map-link-card h3 {
  color: var(--amber);
}

.notebook-list {
  list-style: none;
  margin-left: 0;
  padding: 0;
}

.notebook-list li {
  position: relative;
  padding: 0.65rem 0.85rem 0.65rem 1.1rem;
  margin-bottom: 0.55rem;
  background: rgba(18, 32, 56, 0.65);
  border: 1px solid var(--navy-light);
  border-left: 3px solid var(--amber-dim);
  border-radius: var(--radius);
}

.notebook-list li strong {
  color: var(--cream-dark);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--navy-light);
  border-radius: var(--radius);
  background: var(--navy-mid);
}

.access-table {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.access-table th,
.access-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--navy-light);
}

.access-table th {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  color: var(--amber);
  background: rgba(10, 22, 40, 0.85);
  white-space: nowrap;
}

.access-table tbody tr:last-child td {
  border-bottom: none;
}

.access-table tbody tr:nth-child(even) {
  background: rgba(10, 22, 40, 0.35);
}

.access-table a {
  color: var(--amber);
}

/* —— Species hub / sticky subnav / filters (append) —— */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.breadcrumb a { color: var(--amber); }

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
}

.filter-chip {
  font-family: var(--font-display);
  font-size: 0.6rem;
  padding: 0.55rem 0.9rem;
  min-height: 44px;
  border-radius: 999px;
  border: 2px solid var(--navy-light);
  background: var(--navy-mid);
  color: var(--muted);
  cursor: pointer;
}

.filter-chip:hover {
  border-color: var(--amber-dim);
  color: var(--cream);
}

.filter-chip.is-active {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(240, 168, 48, 0.12);
}

.species-card h3 { margin-top: 0; }

.species-subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.55rem 0;
  margin: 0 0 1.25rem;
  background: rgba(10, 22, 40, 0.92);
  border-bottom: 1px solid var(--navy-light);
  backdrop-filter: blur(8px);
}

.species-subnav a {
  font-family: var(--font-display);
  font-size: 0.55rem;
  text-decoration: none;
  color: var(--cream-dark);
  border: 1px solid var(--navy-light);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.species-subnav a:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.species-section {
  scroll-margin-top: calc(var(--header-h) + 3rem);
}

.regs-tag {
  font-family: var(--font-display);
  font-size: 0.5rem;
  color: var(--amber);
  letter-spacing: 0.04em;
  font-weight: 400;
}

.regs-table { min-width: 20rem; }

.gear-kit { margin-bottom: 1rem; }
.gear-kit h2 { margin-top: 0; color: var(--amber); }

.code-block {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--navy);
  border: 1px solid var(--navy-light);
  border-radius: var(--radius);
  font-size: 0.85rem;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--cream-dark);
  overflow-x: auto;
}

/* More nav items — open hamburger a bit earlier */
@media (max-width: 900px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-mid);
    border-bottom: 1px solid var(--navy-light);
    padding: 0.75rem 1rem 1rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav a {
    display: block;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--navy-light);
    font-size: 0.75rem;
  }
}

/* —— How to read (details/summary) —— */
.how-to-read {
  margin-top: 1rem;
  border: 1px solid var(--navy-light);
  border-radius: var(--radius);
  background: rgba(10, 22, 40, 0.55);
  padding: 0.35rem 0.85rem 0.55rem;
}

.how-to-read summary {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: var(--amber);
  cursor: pointer;
  padding: 0.55rem 0;
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.how-to-read summary::-webkit-details-marker { display: none; }

.how-to-read summary::before {
  content: "▸ ";
  color: var(--amber-dim);
  margin-right: 0.25rem;
}

.how-to-read[open] summary::before { content: "▾ "; }

.how-to-read-body {
  padding: 0 0 0.65rem;
  color: var(--cream-dark);
  font-size: 0.95rem;
}

.how-to-read-body ul {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
}

.how-to-read-body li { margin-bottom: 0.4rem; }

/* —— Water: prominent map PDF CTA —— */
.map-pdf-cta {
  margin: 0.25rem 0 1.5rem;
}

.btn-map-pdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.1rem;
  border: 2px solid var(--amber);
  border-radius: var(--radius);
  background: rgba(240, 168, 48, 0.12);
  color: var(--amber);
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  line-height: 1.3;
}

.btn-map-pdf:hover {
  background: rgba(240, 168, 48, 0.22);
  color: var(--cream);
}

/* —— Gear guide —— */
.gear-guide .gear-section {
  margin-bottom: 2rem;
}

.gear-sticky-nav {
  margin-top: 0.5rem;
}

.gear-how-list {
  margin: 0.75rem 0;
  padding-left: 1.25rem;
}

.gear-how-list li { margin-bottom: 0.35rem; }

.gear-kit-jump {
  text-decoration: none;
  color: inherit;
  display: block;
}

.gear-kit-jump h3 {
  margin-top: 0;
  color: var(--amber);
}

.bank-boat-card h3 {
  margin-top: 0;
  color: var(--amber);
  font-size: 1.05rem;
}

.bank-boat-card ul {
  margin-bottom: 0;
}
