/* ==========================================================================
   FishStart theme
   Palette: deep water, forest, aqua, sand + a red "bobber" accent.
   Type: Zilla Slab (headings), Atkinson Hyperlegible (body, chosen for legibility).
   Signature: a fishing line scroll index with a bobber marking your section.
   ========================================================================== */

@font-face { font-family: "Zilla Slab"; src: url(../fonts/zilla-slab-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Zilla Slab"; src: url(../fonts/zilla-slab-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(../fonts/atkinson-hyperlegible-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(../fonts/atkinson-hyperlegible-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url(../fonts/atkinson-hyperlegible-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
	--fs-ink: #13262e;
	--fs-muted: #4b5f66;
	--fs-paper: #fffdf8;
	--fs-panel: #f6edd8;
	--fs-sand: #f1e4c8;
	--fs-shore: #faf4e6;
	--fs-rule: #d9ccb0;
	--fs-deep: #0d3b54;
	--fs-forest: #1f5a43;
	--fs-aqua: #9ed8d2;
	--fs-bobber: #c7361f;
	--fs-on-deep: #ffffff;
	--fs-line: #0d3b54;
	--fs-metal: #67777d;
	--fs-hint: #7a8f94;
	--fs-radius: 14px;
	--fs-font-head: "Zilla Slab", "Rockwell", "Roboto Slab", Georgia, serif;
	--fs-font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
	--fs-header-h: 68px;
	color-scheme: light;
}
[data-theme="dark"] {
	--fs-ink: #e4eeed;
	--fs-muted: #a7bbbe;
	--fs-paper: #112730;
	--fs-panel: #17343f;
	--fs-sand: #0b1c23;
	--fs-shore: #0e2129;
	--fs-rule: #2a4752;
	--fs-deep: #9ed8d2;
	--fs-forest: #7ccaa4;
	--fs-aqua: #3f8f95;
	--fs-bobber: #d4462d;
	--fs-on-deep: #06222b;
	--fs-line: #cfe8e4;
	--fs-metal: #a6b5b8;
	--fs-hint: #7f9a9e;
	--fs-sky-top: #1b3d4a;
	--fs-sky-bottom: #2b3a3a;
	--fs-sun: #d9b36a;
	--fs-hill-far: #355a5e;
	--fs-hill: #173f31;
	--fs-hill-dark: #0f2e24;
	--fs-water-top: #2c6f78;
	--fs-water-mid: #134658;
	--fs-water-deep: #071d29;
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--fs-header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0; background: var(--fs-sand); color: var(--fs-ink);
	font-family: var(--fs-font-body); font-size: 1.0625rem; line-height: 1.6;
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--fs-deep); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--fs-aqua); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--fs-font-head); font-weight: 700; line-height: 1.12; letter-spacing: -.005em; color: var(--fs-ink); }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.9rem); line-height: 1; letter-spacing: -.02em; margin: 0 0 1.25rem; }
h2 { font-size: clamp(2rem, 3.8vw, 3.05rem); margin: 0; letter-spacing: -.012em; }
h3 { font-size: 1.32rem; font-weight: 600; }
h4 { font-size: 1.08rem; font-weight: 600; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.fs-skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--fs-deep); color: var(--fs-on-deep); padding: .75rem 1rem; border-radius: 8px; }
.fs-skip:focus { top: 1rem; }
.fs-wrap { width: min(100% - 2.5rem, 1180px); margin-inline: auto; }
@media (min-width: 1280px) { .fs-home .fs-wrap { width: min(100% - 10rem, 1180px); } }

/* Buttons shared with plugin (theme-level sizes) */
.fs-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .65rem 1.25rem; border-radius: 10px; border: 1.5px solid var(--fs-deep); color: var(--fs-deep); background: transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.fs-btn--primary { background: var(--fs-bobber); border-color: var(--fs-bobber); color: #fff; }
.fs-btn--primary:hover { background: color-mix(in srgb, var(--fs-bobber) 86%, #000); }
.fs-btn--lg { min-height: 54px; padding: .8rem 1.5rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.fs-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--fs-sand) 92%, transparent); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--fs-rule); }
.fs-header__inner { display: flex; align-items: center; gap: 1rem; min-height: var(--fs-header-h); }
.fs-brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--fs-ink); }
.fs-brand__mark { width: 24px; height: 30px; color: var(--fs-ink); }
.fs-brand__name { font-family: var(--fs-font-head); font-weight: 700; font-size: 1.45rem; letter-spacing: -.01em; }
.custom-logo { max-height: 48px; width: auto; }
.fs-nav { margin-left: auto; }
.fs-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: .1rem; }
.fs-nav a { display: block; padding: .55rem .65rem; border-radius: 8px; color: var(--fs-ink); text-decoration: none; font-size: .95rem; font-weight: 700; }
.fs-nav a:hover, .fs-nav a[aria-current="true"] { background: var(--fs-panel); }
.fs-header__tools { display: flex; gap: .25rem; }
.fs-icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--fs-ink); cursor: pointer; }
.fs-icon-btn:hover { background: var(--fs-panel); }
.fs-icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.fs-i-sun { display: none; }
[data-theme="dark"] .fs-i-sun { display: inline; }
[data-theme="dark"] .fs-i-moon { display: none; }
.fs-menu-btn { display: none; }
@media (max-width: 1120px) {
	.fs-menu-btn { display: inline-grid; }
	.fs-header__tools { margin-left: auto; }
	.fs-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--fs-sand); border-bottom: 1px solid var(--fs-rule); display: none; margin: 0; }
	.fs-nav.is-open { display: block; }
	.fs-nav__list { flex-direction: column; padding: .5rem 1.25rem 1rem; }
	.fs-nav a { padding: .8rem .5rem; font-size: 1.05rem; }
}
.fs-line-progress { height: 2px; background: transparent; }
.fs-line-progress span { display: block; height: 2px; width: 0; background: var(--fs-deep); }
@media (min-width: 1280px) { .fs-line-progress { display: none; } }

/* ---------- Hero ---------- */
.fs-hero { padding: clamp(2rem, 5vw, 4.5rem) 0 clamp(2.5rem, 6vw, 5rem); background: var(--fs-sand); }
.fs-hero__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 960px) { .fs-hero__grid { grid-template-columns: 1.05fr 1fr; } }
.fs-hero__lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 34em; color: var(--fs-muted); }
.fs-hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 2.25rem; }
.fs-quick { border-top: 1.5px solid var(--fs-rule); padding-top: 1.25rem; max-width: 36rem; }
.fs-quick__label { font-weight: 700; margin-bottom: .65rem; }
.fs-quick__row { display: flex; flex-wrap: wrap; gap: .5rem; }
.fs-quick__opt { display: inline-flex; align-items: center; min-height: 46px; padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid var(--fs-rule); background: var(--fs-paper); color: var(--fs-ink); text-decoration: none; font-weight: 700; font-size: .95rem; }
.fs-quick__opt:hover { border-color: var(--fs-deep); }
.fs-hero__art { position: relative; }
.fs-scene, .fs-hero__photo { display: block; width: 100%; height: auto; aspect-ratio: 32 / 27; border-radius: 28px; object-fit: cover; }
.fs-hero__photo { box-shadow: 0 24px 48px -28px rgba(13, 59, 84, .6); }
/* The one orchestrated motion: the line casts and the bobber lands. */
.fs-scene__line { stroke-dasharray: 560; stroke-dashoffset: 560; animation: fs-cast 1.4s cubic-bezier(.3, .7, .3, 1) .2s forwards; }
.fs-scene__bobber { transform-origin: 410px 292px; animation: fs-land .7s ease-out 1.45s both; }
@keyframes fs-cast { to { stroke-dashoffset: 0; } }
@keyframes fs-land { 0% { opacity: 0; transform: translateY(-26px); } 70% { opacity: 1; transform: translateY(3px); } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fs-scene__line, .fs-scene__bobber { animation: none; stroke-dashoffset: 0; opacity: 1; } }

/* ---------- Sections ---------- */
.fs-section { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--fs-sand); }
.fs-section--paper { background: var(--fs-shore); }
.fs-section__head { display: grid; gap: .75rem 3rem; margin-bottom: clamp(1.75rem, 3vw, 2.75rem); align-items: end; }
@media (min-width: 900px) { .fs-section__head { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.fs-section__intro { margin: 0; max-width: 40em; color: var(--fs-muted); font-size: 1.1rem; }
.fs-section--deep {
	background: var(--fs-deep); color: #eaf4f2;
	--fs-ink: #eaf4f2; --fs-muted: #bcd3d3; --fs-paper: #124a66; --fs-panel: #145371; --fs-rule: #2c6683;
}
.fs-section--deep h2, .fs-section--deep h3 { color: #fff; }
[data-theme="dark"] .fs-section--deep { background: #0a3044; }
.fs-section--deep .fs-topics--safety .fs-topic { border-top: 2px solid var(--fs-aqua); padding-top: .9rem; }

/* Long reading width for prose and guides */
.fs-prose { max-width: 46rem; }
.fs-page { padding: clamp(2.5rem, 6vw, 4.5rem) 0; background: var(--fs-shore); min-height: 60vh; }
.fs-page .fs-entry h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.fs-page h2 { font-size: 1.6rem; margin: 2rem 0 .75rem; }

/* ---------- Fishing-line scroll index (signature) ---------- */
.fs-rail { position: fixed; left: 22px; top: calc(var(--fs-header-h) + 4vh); bottom: 6vh; width: 40px; z-index: 40; display: none; }
@media (min-width: 1280px) { .fs-rail:not([hidden]) { display: block; } }
.fs-rail::before { content: ""; position: absolute; left: 4px; right: 4px; top: -14px; bottom: -14px; border-radius: 999px; background: color-mix(in srgb, var(--fs-sand) 88%, transparent); box-shadow: 0 0 0 1px var(--fs-rule); }
.fs-rail__line { position: absolute; left: 19px; top: 0; bottom: 0; width: 1.5px; background: color-mix(in srgb, var(--fs-ink) 35%, transparent); }
.fs-rail__bobber { position: absolute; left: -7px; top: 0; width: 16px; height: 20px; border-radius: 50%; background: linear-gradient(var(--fs-bobber) 0 52%, #fffdf8 52%); box-shadow: 0 0 0 1.5px var(--fs-ink); transition: top .35s cubic-bezier(.3, .7, .3, 1); }
@media (prefers-reduced-motion: reduce) { .fs-rail__bobber { transition: none; } }
.fs-rail__list { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; }
.fs-rail__list a { position: relative; display: block; width: 40px; height: 18px; }
.fs-rail__list a::before { content: ""; position: absolute; left: 15px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--fs-sand); border: 1.5px solid color-mix(in srgb, var(--fs-ink) 45%, transparent); }
.fs-rail__list a span { position: absolute; left: 40px; top: 50%; transform: translateY(-50%); white-space: nowrap; background: var(--fs-ink); color: var(--fs-sand); font-size: .82rem; font-weight: 700; padding: .2rem .55rem; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .15s; }
.fs-rail__list a:hover span, .fs-rail__list a:focus-visible span { opacity: 1; }
.fs-rail__list a.is-current::before { border-color: var(--fs-bobber); }

/* ---------- Footer ---------- */
.fs-footer { background: #0a2a3c; color: #d6e6e5; padding: 4rem 0 2rem; }
.fs-footer a { color: #e9f4f2; }
.fs-footer .fs-brand, .fs-footer .fs-brand__mark { color: #fff; }
.fs-footer__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
@media (min-width: 960px) { .fs-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.fs-footer__about p { margin-top: 1rem; max-width: 30em; color: #b9cfcf; }
.fs-footer__h { font-family: var(--fs-font-head); font-size: 1.1rem; color: #fff; margin: 0 0 .75rem; }
.fs-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.fs-footer ul a { display: inline-block; padding: .2rem 0; text-decoration: none; }
.fs-footer ul a:hover { text-decoration: underline; }
.fs-footer__base { border-top: 1px solid #23506a; margin-top: 3rem; padding-top: 1.5rem; font-size: .9rem; color: #a9c2c3; }
.fs-footer__base p { margin: .35rem 0; }

/* ---------- Content styles for supporting pages ---------- */
.fs-prose ul, .fs-prose ol { padding-left: 1.3rem; }
.fs-prose blockquote { border-left: 3px solid var(--fs-aqua); margin: 1.5rem 0; padding-left: 1rem; color: var(--fs-muted); }
.fs-note { font-size: .92rem; color: var(--fs-muted); border-left: 3px solid var(--fs-aqua); padding-left: .85rem; }
.fs-small { font-size: .88rem; color: var(--fs-muted); }

/* Theme-level tweaks to plugin components */
.fs-knowledge, .fs-faq { max-width: 54rem; }
.fs-section--deep .fs-topic p { color: #cfe1e0; }

/* Print */
@media print {
	.fs-header, .fs-rail, .fs-footer, .fs-hero__art, .fs-quick, .fs-ad { display: none !important; }
	body { background: #fff; color: #000; }
	.fs-section { padding: 1rem 0; background: #fff !important; }
}
