/* AvianSuite — Field Guide. Shared chrome for every page: tokens, nav, footer, type, buttons, prose.
   The homepage adds its own animation styles inline on top of this file. */
:root {
  --bg: #efe8d8; --bg-2: #e8e0cd; --bg-3: #ddd3bc; --line: #d6ccb3; --line-2: #bcae8f;
  --text: #1e1d1b; --muted: #5c5647; --faint: #8a826d;
  --write: #2146a8; --read: #3c6e4c; --chat: #7b5a91; --fix: #b4561f; --red: #b3281e;
  --card: #f7f2e7; --bubble: #fcf9f2; --on-write: #f7f2e7; --shadow: 0 10px 24px rgba(60,45,20,.13);
  --display: "Libre Caslon Display", Georgia, serif; --sans: "Libre Franklin", ui-sans-serif, sans-serif; --mono: "Courier Prime", ui-monospace, monospace;
  --radius: 3px;
  --logo: url("/assets/logo.png");
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 64px 64px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 64px 64px;
  opacity: .55; -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 20%, #000 10%, transparent 70%); }
main, nav, footer { position: relative; z-index: 1; }

.jay { display: inline-block; width: 40px; height: 40px; flex: none; background: var(--logo) center / contain no-repeat; }
nav.top { display: flex; justify-content: space-between; align-items: center; max-width: 1280px; margin: 0 auto; padding: 18px 28px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 22px; }
nav.top .links { display: flex; gap: 24px; align-items: center; font-size: 14px; color: var(--muted); }
nav.top .links a { text-decoration: none; } nav.top .links a:hover, nav.top .links a[aria-current] { color: var(--text); }
nav.top .links a[aria-current] { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line-2); }
.btn { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; padding: 10px 16px; border-radius: var(--radius); text-decoration: none; border: 1px solid var(--line-2); color: var(--text); background: var(--bubble); }
.btn:hover { border-color: var(--text); }
.btn.primary { background: var(--write); border-color: var(--write); color: var(--on-write); }
.btn.primary:hover { background: #1a3a8e; }
nav.top .btn { padding: 8px 14px; color: var(--on-write); }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- inner pages ---------- */
.page { max-width: 820px; margin: 0 auto; padding: 44px 24px 40px; }
.page.wide { max-width: 1080px; }
.crumb { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.crumb a { text-decoration: none; } .crumb a:hover { color: var(--text); }
.page h1 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 5.4vw, 60px); line-height: 1.04; margin: 0 0 18px; letter-spacing: -.01em; }
.page h1 em { color: var(--write); }
.page .lede { color: var(--muted); font-size: 19px; line-height: 1.6; margin: 0 0 8px; font-weight: 300; max-width: 700px; }
.page h2 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3.2vw, 34px); line-height: 1.12; margin: 54px 0 14px; }
.page h3 { font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--read); font-weight: 700; margin: 30px 0 10px; }
.page p, .page li { color: var(--muted); font-size: 16.5px; line-height: 1.7; font-weight: 300; }
.page p strong, .page li strong { color: var(--text); font-weight: 500; }
.page ol, .page ul { padding-left: 22px; }
.page li { margin: 6px 0; }
.page li::marker { color: var(--faint); font-family: var(--mono); }
.page code { font-family: var(--mono); font-size: .92em; background: var(--bg-2); padding: 1px 5px; border-radius: 2px; color: var(--text); }
.page a:not(.btn) { color: var(--write); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--write) 35%, transparent); }
.page a:not(.btn):hover { text-decoration-color: var(--write); }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--read); }
.rule { border: 0; border-top: 1px solid var(--line-2); margin: 48px 0; }

.index { list-style: none; padding: 0 !important; margin: 26px 0 0; border-top: 1px solid var(--line-2); }
.index li { margin: 0; border-bottom: 1px solid var(--line-2); }
.index a { display: grid !important; grid-template-columns: 1fr auto; gap: 4px 18px; padding: 18px 2px; text-decoration: none !important; color: var(--text) !important; }
.index a b { font-family: var(--display); font-weight: 400; font-size: 23px; }
.index a span { grid-column: 1; color: var(--muted); font-size: 15px; font-weight: 300; }
.index a i { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-family: var(--mono); color: var(--faint); }
.index a:hover b { color: var(--write); }

.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps > li { counter-increment: s; position: relative; padding: 18px 0 18px 58px; border-top: 1px solid var(--line-2); margin: 0; }
.steps > li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 20px; font-family: var(--mono); font-weight: 700; color: var(--write); font-size: 15px; }
.steps > li h2 { margin: 0 0 6px; font-size: 25px; }

.note { border: 1px solid var(--line-2); border-left: 3px solid var(--fix); background: var(--card); padding: 14px 18px; border-radius: var(--radius); margin: 22px 0; }
.note p { margin: 0; font-size: 15px; }
.facts { border: 1px solid var(--line-2); background: var(--card); border-radius: var(--radius); margin: 22px 0; }
.facts > div { display: grid; grid-template-columns: 200px 1fr; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt, .facts .k { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding-top: 3px; }
.facts .v { color: var(--muted); font-size: 15.5px; line-height: 1.6; font-weight: 300; }

table.price { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line-2); margin: 22px 0; }
table.price th { text-align: left; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
table.price td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); }
table.price td:first-child { color: var(--text); } table.price b { font-weight: 600; }

details.q { border-top: 1px solid var(--line-2); }
details.q:last-of-type { border-bottom: 1px solid var(--line-2); }
details.q summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; font-family: var(--display); font-size: 22px; position: relative; }
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--mono); font-size: 20px; color: var(--faint); }
details.q[open] summary::after { content: "–"; }
details.q summary:hover { color: var(--write); }
details.q > p { margin: 0 0 14px; }
details.q > p:last-child { margin-bottom: 22px; }

figure.chain { margin: 26px 0; border: 1px solid var(--line-2); background: var(--card); padding: 20px; border-radius: var(--radius); }
figure.chain svg { width: 100%; height: auto; display: block; color: var(--text); }
figure.chain figcaption { font-family: var(--mono); font-size: 12.5px; color: var(--faint); margin-top: 12px; text-align: center; }

.legal-note { margin-bottom: 28px; }
.legal-doc { background: var(--bubble); border: 1px solid var(--line-2); padding: 28px clamp(16px, 4vw, 40px); border-radius: var(--radius); overflow-wrap: anywhere; }
.legal-doc, .legal-doc * { max-width: 100%; }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--line-2); margin-top: 80px; background: color-mix(in srgb, var(--bg-2) 70%, transparent); }
footer.site .in { max-width: 1180px; margin: 0 auto; padding: 44px 24px 36px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
footer.site .brand p { color: var(--muted); font-family: var(--display); font-size: 19px; line-height: 1.35; margin: 12px 0 0; max-width: 300px; }
footer.site h4 { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin: 4px 0 12px; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin: 0 0 8px; }
footer.site li a { text-decoration: none; color: var(--muted); font-size: 14.5px; } footer.site li a:hover { color: var(--text); text-decoration: underline; }
footer.site .base { max-width: 1180px; margin: 0 auto; padding: 16px 24px 28px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: var(--faint); border-top: 1px solid var(--line); }
footer.site .base a { color: var(--faint); }

@media (max-width: 800px) {
  footer.site .in { grid-template-columns: 1fr 1fr; }
  footer.site .brand { grid-column: 1 / -1; }
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 600px) {
  nav.top { padding: 14px 16px; }
  nav.top .links a:not(.btn) { display: none; }
  .page { padding: 28px 16px 30px; }
  .steps > li { padding-left: 44px; }
  table.price td, table.price th { padding: 10px 8px; font-size: 13px; }
}
