/* Bill Ward's International School of Fly Fishing: rebuild mockup. Tokens and rules live in ../DESIGN.md */

:root {
  --paper: #F5EFE3;
  --sand: #E9DDC2;
  --mat: #FBF8F1;
  --ink: #1F2A24;
  --muted: #5B6259;
  --green: #1F3B2D;
  --green-2: #2C5140;
  --brass: #A8834B;
  --brass-ink: #7A5A2A;
  --rule: #D8CCB2;
  --on-green: #F3ECDC;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(16px, 4vw, 40px);
  --measure: 64ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-decoration-color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

h1, h2, h3 { margin: 0 0 .5em; font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -.01em; color: var(--green); text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); }
h3 { font-size: 1.3125rem; line-height: 1.3; }
p, ul, ol, dl { margin: 0 0 1em; }
p { max-width: var(--measure); }
address { margin: 0 0 1em; font-style: normal; }
.lead { font-size: 1.1875rem; line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: .9375rem; }
.after { margin-top: 28px; }

/* Layout */
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(56px, 8vw, 112px); }
.band { background: var(--sand); }
.section-head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head > :last-child { margin-bottom: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.split--media-left { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.split--center { align-items: center; }
.link-row { display: flex; flex-wrap: wrap; gap: 12px 28px; max-width: none; margin: 32px 0 0; }
.link-row a { font-weight: 600; }
@media (max-width: 859px) {
  .split, .split--media-left { grid-template-columns: 1fr; }
}

/* Review aids: mockup only, remove at launch */
.mockup-note { max-width: none; margin: 0; padding: 8px var(--pad); background: var(--green); color: var(--on-green); font-size: .875rem; line-height: 1.4; text-align: center; }
.verify { text-decoration: underline dotted var(--brass) 2px; text-underline-offset: .22em; }

.skip { position: absolute; top: 8px; left: -9999px; z-index: 30; padding: 10px 14px; background: var(--mat); }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--green); text-decoration: none; }
.brand-mark { flex: none; width: 52px; height: 24px; fill: none; stroke: var(--brass); stroke-width: 2; stroke-linecap: round; }
.brand-name { font-family: var(--serif); font-size: 1.125rem; line-height: 1.1; white-space: nowrap; }
.brand-name small { display: block; margin-top: 4px; font-family: var(--sans); font-size: .75rem; color: var(--muted); }
.nav-links { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; }
.nav-links a { padding-block: 6px; border-bottom: 2px solid transparent; color: var(--ink); font-size: .9375rem; font-weight: 500; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--brass); }
.nav-mobile { display: none; }

@media (max-width: 1079px) {
  .nav-links { display: none; }
  .nav-mobile { display: block; }
  .nav-mobile summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--green); border-radius: 4px; color: var(--green); font-size: .9375rem; font-weight: 600; list-style: none; cursor: pointer; }
  .nav-mobile summary::-webkit-details-marker { display: none; }
  .nav-mobile[open] summary { background: var(--green); color: var(--on-green); }
  .nav-mobile ul { position: absolute; top: 100%; right: 0; left: 0; margin: 0; padding: 4px var(--pad) 16px; list-style: none; background: var(--paper); border-bottom: 1px solid var(--rule); }
  .nav-mobile a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--ink); font-weight: 500; text-decoration: none; }
}
@media (max-width: 559px) {
  .header-inner { gap: 12px; min-height: 64px; }
  .header-inner .header-book, .brand-name small { display: none; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border: 1.5px solid var(--green); border-radius: 4px; background: var(--green); color: var(--on-green); font: 600 1rem/1.2 var(--sans); text-decoration: none; }
.btn:hover { background: var(--green-2); border-color: var(--green-2); }
.btn--ghost { background: transparent; color: var(--green); }
.btn--ghost:hover { background: rgba(31, 59, 45, .07); border-color: var(--green); }
.btn-small { min-height: 42px; padding: 8px 16px; font-size: .9375rem; }
.btn--light { background: var(--on-green); border-color: var(--on-green); color: var(--green); }
.btn--light:hover { background: #FFFFFF; border-color: #FFFFFF; }
.btn--outline-light { background: transparent; border-color: rgba(243, 236, 220, .55); color: var(--on-green); }
.btn--outline-light:hover { background: rgba(243, 236, 220, .08); border-color: var(--on-green); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero: Bill's real photo as a matted plate over its own blurred, darkened copy. The cast line is the one motion moment. */
.hero { position: relative; overflow: hidden; background: #16261D; color: var(--on-green); }
.hero-backdrop { position: absolute; inset: -60px; background: url("assets/bill-ward-igfa-world-record.webp") 60% 45% / cover no-repeat; filter: blur(34px) saturate(.85) brightness(.5); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(18, 34, 25, .95) 0%, rgba(18, 34, 25, .8) 45%, rgba(18, 34, 25, .55) 100%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(48px, 7vw, 88px) clamp(96px, 10vw, 128px); }
.hero-copy { max-width: 600px; }
.hero-photo { margin: 0; padding: 12px 12px 2px; background: var(--mat); border: 1px solid var(--rule); transform: rotate(1.5deg); }
.hero-photo img { width: 100%; aspect-ratio: 700 / 560; object-fit: cover; object-position: 50% 100%; }
.hero-photo figcaption { padding: 10px 4px 8px; font-family: var(--serif); font-size: .9375rem; font-style: italic; color: var(--muted); }
.hero h1 { margin-bottom: .4em; color: #FBF6EA; }
.hero .lead { color: rgba(243, 236, 220, .9); }
.hero a:not(.btn) { color: var(--on-green); }
.hero :focus-visible { outline-color: var(--on-green); }
.hero-fine { margin: 18px 0 0; color: rgba(243, 236, 220, .72); font-size: .9375rem; }
.cast-line { display: block; width: min(100%, 460px); height: auto; margin-bottom: 20px; overflow: visible; }
.cast-line path { fill: none; stroke: #C9A15E; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: cast 2.2s cubic-bezier(.55, .1, .25, 1) .4s forwards; }
@keyframes cast { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .cast-line path { animation: none; stroke-dashoffset: 0; }
}
@media (max-width: 859px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 24px 96px; }
  .hero-photo { order: -1; transform: none; }
}

/* Credentials bar overlapping the hero */
.proof-wrap { position: relative; z-index: 4; padding-bottom: clamp(40px, 6vw, 72px); }
.proof-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: -52px 0 0; padding: 0; background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--brass); list-style: none; font-family: var(--serif); line-height: 1.35; color: var(--green); }
.proof-list li { padding: 20px 22px; border-left: 1px solid var(--rule); }
.proof-list li:first-child { border-left: 0; }
@media (max-width: 859px) {
  .proof-list { grid-template-columns: 1fr 1fr; }
  .proof-list li { padding: 14px 16px; border-left: 0; border-top: 1px solid var(--rule); }
  .proof-list li:nth-child(-n+2) { border-top: 0; }
  .proof-list li:nth-child(even) { border-left: 1px solid var(--rule); }
  .proof-list li:last-child { grid-column: 1 / -1; }
}

/* Dark green band for the featured review */
.band-green { background: var(--green); color: var(--on-green); }
.band-green h2 { color: var(--on-green); }
.band-green a { color: var(--on-green); }
.band-green :focus-visible { outline-color: var(--on-green); }
.band-green .quote blockquote p { color: var(--on-green); }
.band-green .quote figcaption, .quote-feature figcaption { color: #E7D3A8; font-weight: 600; }
.band-green .stars { color: #D9B878; }
.quote-feature { max-width: 60rem; margin: 0 0 clamp(40px, 6vw, 64px); }
.quote-feature blockquote { margin: 0 0 16px; }
.quote-feature blockquote p { max-width: none; margin: 0; font-family: var(--serif); font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.375rem); line-height: 1.3; color: #FBF6EA; text-wrap: pretty; }

/* Inner page heads */
.page-head { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--rule); }
.page-head .lead { max-width: 42rem; }
.callout { max-width: 46rem; margin-top: 32px; padding: 20px 24px; border: 1px solid var(--brass); background: var(--mat); }
.callout p { margin: 0; }
.callout p + p { margin-top: .5em; }

/* Price list: dotted leaders, like a tackle-shop price board */
.price-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px clamp(32px, 5vw, 72px); align-items: start; }
.price-group + .price-group { margin-top: 48px; }
.price-group h3 { margin-bottom: .2em; }
.price-list { max-width: 820px; margin: 0; }
.price-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--rule); }
.price-row dt { display: flex; align-items: baseline; gap: 10px; font-family: var(--serif); font-size: 1.0625rem; color: var(--green); }
.price-row dt::after { content: ""; flex: 1 1 24px; min-width: 24px; border-bottom: 2px dotted var(--brass); transform: translateY(-.3em); }
.price-row .price { margin: 0; font-family: var(--serif); font-size: 1.0625rem; white-space: nowrap; }
.price-row .meta { grid-column: 1 / -1; margin: 2px 0 0; color: var(--muted); font-size: .9375rem; }
.tag { color: var(--brass-ink); font-size: .9375rem; white-space: nowrap; }
.good-to-know { max-width: 46rem; margin-top: 56px; }

/* Lesson sequence: numbered because it is a real sequence */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps > li { padding-top: 18px; border-top: 2px solid var(--green); counter-increment: step; }
.steps > li::before { content: counter(step); display: block; margin-bottom: 10px; font-family: var(--serif); font-size: 2.75rem; line-height: 1; color: var(--brass); }
.steps h3 { margin-bottom: .35em; }
.steps p { margin: 0; }

/* Photos as matted plates */
.plate { margin: 0; padding: 10px; background: var(--mat); border: 1px solid var(--rule); }
.plate img { width: 100%; }
.plate figcaption { padding: 10px 4px 2px; font-family: var(--serif); font-size: .9375rem; font-style: italic; color: var(--muted); }
.plate--inset { max-width: 300px; margin-top: 32px; }
.creds { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.creds li { position: relative; padding-left: 28px; }
.creds li::before { content: ""; position: absolute; top: .8em; left: 0; width: 16px; border-top: 2px solid var(--brass); }

/* Answer-first questions */
.qa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(28px, 4vw, 56px) clamp(32px, 5vw, 72px); }
.qa h3 { margin-bottom: .45em; }
.qa p { margin: 0; }

/* Quotes and reviews */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(28px, 4vw, 48px); }
.quote { margin: 0; padding-left: 20px; border-left: 2px solid var(--brass); }
.quote blockquote { margin: 0 0 12px; }
.quote blockquote p { margin: 0; font-family: var(--serif); font-size: 1.0625rem; line-height: 1.7; }
.quote figcaption { color: var(--green); font-size: .9375rem; font-weight: 600; }
.stars { color: var(--brass-ink); letter-spacing: .12em; }
.review-list { columns: 2 340px; column-gap: clamp(32px, 5vw, 64px); }
.review { margin: 0 0 48px; break-inside: avoid; }
.review h3 { margin-bottom: .5em; }

/* Gift certificate, drawn rather than stock */
.gift-card { display: flex; flex-direction: column; justify-content: space-between; width: 100%; max-width: 420px; aspect-ratio: 1.6; padding: 30px; border-radius: 10px; background: var(--green); color: var(--on-green); outline: 1px solid var(--brass); outline-offset: -12px; transform: rotate(-2deg); }
.gift-card svg { width: 72px; height: 32px; fill: none; stroke: var(--brass); stroke-width: 2; stroke-linecap: round; }
.gc-title { margin: 0; font-family: var(--serif); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem); line-height: 1.15; }
.gc-from { margin: 4px 0 0; font-size: .875rem; }

.map { aspect-ratio: 4 / 3; border: 1px solid var(--rule); background: var(--mat); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* Closing call to action */
.cta-band { padding-block: clamp(48px, 7vw, 88px); background: var(--green); color: var(--on-green); }
.cta-band h2 { color: var(--on-green); }
.cta-band p { margin: 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.cta-inner .actions { margin-top: 0; }
.cta-band :focus-visible { outline-color: var(--on-green); }

/* Footer */
.site-footer { padding-block: 56px 32px; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-name { margin-bottom: .6em; font-family: var(--serif); font-size: 1.125rem; color: var(--green); }
.footer-head { margin-bottom: .5em; color: var(--green); font-weight: 600; }
.footer-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .875rem; }
.footer-base p { margin: 0; }
@media (max-width: 859px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 519px) { .footer-grid { grid-template-columns: 1fr; } }

/* Guides */
.article { max-width: 44rem; }
.article h2 { margin-top: 1.8em; }
.article h3 { margin-top: 1.2em; }
.article .answer { font-size: 1.125rem; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: .55em; }
.article li::marker { color: var(--brass-ink); }
.byline { color: var(--muted); font-size: .9375rem; }
.toc { margin-block: 28px; padding-block: 16px; border-block: 1px solid var(--rule); }
.toc p { margin-bottom: .4em; color: var(--green); font-weight: 600; }
.toc ol { margin: 0; }
.video-slot { display: grid; place-items: center; aspect-ratio: 16 / 9; margin-block: 28px; padding: 24px; border: 2px dashed var(--brass); background: var(--mat); color: var(--brass-ink); font-family: var(--serif); text-align: center; }

/* FAQ: answers live in the HTML, details only folds them */
.faq-group + .faq-group { margin-top: 56px; }
.faq-list { max-width: 50rem; border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-family: var(--serif); font-size: 1.125rem; color: var(--green); list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font: 400 1.5rem/1 var(--sans); color: var(--brass-ink); }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item .answer { padding: 0 0 22px; }
.faq-item .answer p { margin: 0; }

/* Blog */
.post-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(32px, 4vw, 48px) clamp(32px, 5vw, 72px); margin: 0; padding: 0; list-style: none; }
.post-list > li { padding-top: 20px; border-top: 2px solid var(--green); }
.post-list h3 { margin-bottom: .35em; font-size: 1.5rem; }
.post-list h3 a { color: var(--green); text-decoration: none; }
.post-list h3 a:hover { text-decoration: underline; text-decoration-color: var(--brass); }
.post-list p { margin: 0 0 .75em; }
.post-meta { color: var(--muted); font-size: .875rem; }
.crumbs { margin-bottom: 12px; font-size: .9375rem; }
.more-posts { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rule); }
.article .more-posts ul { padding-left: 0; }
