/* Looks for the simple pages (guides, how it works, terms, questions, 404). The home page does not load this file; it carries its own fuller version. */
:root[data-theme="cute"] { --bg: #F3F0E8; --ink: #26231F; --muted: #6E6A62; --line: #2B2824; --accent: #C95B74; --warn: #8A5A00; color-scheme: light }
:root[data-theme="federal"] { --bg: #EFE5CF; --ink: #241A12; --muted: #6A5A45; --line: #B9A57F; --accent: #6E1F17; --warn: #5A3B10; color-scheme: light }
:root[data-theme="cute"] body { font-family: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, .018) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0, 0, 0, .018) 0 1px, transparent 1px 3px) }
:root[data-theme="cute"] h1 { font-family: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif; font-weight: 500; letter-spacing: -.01em }
:root[data-theme="cute"] h2, :root[data-theme="cute"] button { font-family: "Nunito", ui-rounded, system-ui, sans-serif }
:root[data-theme="cute"] .box, :root[data-theme="cute"] textarea, :root[data-theme="cute"] input[type=text], :root[data-theme="cute"] input[type=email] { border: 1.5px solid var(--line); border-radius: 18px }
:root[data-theme="cute"] .cta, :root[data-theme="cute"] button { background: #26231F; color: #FBF9F4 }
:root[data-theme="federal"] body { font-family: "EB Garamond", "Iowan Old Style", Garamond, Georgia, serif; font-size: 18px;
  background-image: radial-gradient(80rem 50rem at 50% -10%, rgba(255, 250, 235, .6), transparent 60%), repeating-linear-gradient(90deg, rgba(80, 50, 20, .025) 0 1px, transparent 1px 7px) }
:root[data-theme="federal"] h1 { font-family: "IM Fell English", "Iowan Old Style", Baskerville, Georgia, serif }
:root[data-theme="federal"] h1::first-letter { color: var(--accent) }
:root[data-theme="federal"] h2 { font-family: "EB Garamond", Garamond, Georgia, serif; font-variant: small-caps; letter-spacing: .04em; font-size: 1.2rem }
:root[data-theme="federal"] .box { border: 3px double var(--line); border-radius: 3px }
:root[data-theme="federal"] .cta, :root[data-theme="federal"] button { border-radius: 3px; background: #6E1F17; color: #EFE5CF; font-family: "EB Garamond", Georgia, serif }
:root[data-theme="cute"] td, :root[data-theme="cute"] th, :root[data-theme="cute"] hr { border-color: #D9D2C4 }

/* ===== Shared feel for every page besides home: top bar, look switch, progress line, soft springy motion. ===== */
:root { --spring: cubic-bezier(.34, 1.45, .55, 1); --soft-out: cubic-bezier(.22, .8, .3, 1); --gold: #A8823F; --card: #FFFDF8; --soft: #EEE7D8 }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --gold: #D2B477; --card: #15201B; --soft: #1D2A24 } }
:root[data-theme="dark"] { --gold: #D2B477; --card: #15201B; --soft: #1D2A24 }
:root[data-theme="cute"] { --gold: #E07A8F; --card: #FBF9F4; --soft: #ECE7DC }
:root[data-theme="federal"] { --gold: #8A6A33; --card: #F6EEDB; --soft: #E6D9BC }
html { overflow-x: clip }
body { background-image: radial-gradient(60rem 40rem at 8% -10%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%), radial-gradient(50rem 40rem at 100% 70%, color-mix(in srgb, var(--gold) 8%, transparent), transparent 70%); background-attachment: fixed }
main { position: relative; z-index: 1 }
.tf-top { display: flex; justify-content: space-between; align-items: center; gap: 12px 18px; flex-wrap: wrap; margin: 0 0 34px }
.tf-brand { font: 400 1.6rem "Instrument Serif", Georgia, serif; color: var(--ink); text-decoration: none; transition: letter-spacing .6s var(--soft-out) }
:root[data-theme="cute"] .tf-brand { font-family: "Fredoka", ui-rounded, system-ui, sans-serif; font-weight: 500 }
:root[data-theme="federal"] .tf-brand { font-family: "IM Fell English", Georgia, serif; font-variant: small-caps }
.tf-brand::after { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); margin-left: 3px; vertical-align: 2px; transition: transform .6s var(--spring) }
.tf-brand:hover { letter-spacing: .015em } .tf-brand:hover::after { transform: scale(1.8) }
.tf-nav { position: relative; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: .95rem }
.tf-nav a { color: var(--ink); text-decoration: none; opacity: .75; transition: opacity .3s, color .3s }
.tf-nav a:hover, .tf-nav a[aria-current="page"] { opacity: 1; color: var(--accent) }
.tf-nav .ul { position: absolute; bottom: -6px; height: 1.5px; background: var(--gold); border-radius: 2px; left: var(--ul-x, 0); width: var(--ul-w, 0); opacity: var(--ul-o, 0); transition: left .5s var(--spring), width .5s var(--spring), opacity .35s; pointer-events: none }
.modes { position: relative }
.mode-btn { width: 30px; height: 30px; margin: 0 !important; border-radius: 50%; border: 1px solid var(--line) !important; background: var(--card) !important; display: grid; place-items: center; padding: 0 !important; cursor: pointer; transition: transform .6s var(--spring), border-color .3s }
.mode-btn:hover { transform: rotate(-20deg) scale(1.06); border-color: var(--gold) !important }
.mode-btn span { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(90deg, var(--ink) 50%, var(--gold) 50%) }
.mode-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 20; display: grid; gap: 4px; padding: 8px; min-width: 170px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .45); transform-origin: top right; animation: tf-pop .45s var(--spring) }
@keyframes tf-pop { from { opacity: 0; transform: scale(.85) translateY(-6px) } to { opacity: 1; transform: none } }
.mode-menu button { display: flex; align-items: center; gap: 10px; margin: 0 !important; border: 0; background: none !important; color: var(--ink) !important; padding: 8px 10px !important; border-radius: 10px; text-align: left; font: 400 .95rem inherit; cursor: pointer; transition: background .25s, transform .45s var(--spring) }
.mode-menu button:hover { background: var(--soft) !important; transform: translateX(2px) }
.mode-menu button[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 14%, transparent) !important }
.mode-menu i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); flex: none }
.meter { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 30; pointer-events: none; background: color-mix(in srgb, var(--gold) 10%, transparent) }
.meter i { position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--gold) 25%, transparent), var(--gold)); transform-origin: left; transform: scaleX(var(--pg, 0)) }
/* Big faint guide number behind the title, drifting with scroll. */
.tf-num { position: fixed; right: -3vw; top: 14vh; z-index: 0; pointer-events: none; font: 400 clamp(12rem, 30vw, 28rem)/.85 "Instrument Serif", Georgia, serif; color: var(--gold); opacity: .1; letter-spacing: -.04em; transform: translate3d(0, calc(var(--sy, 0) * -.25px), 0) }
:root[data-theme="federal"] .tf-num { font-family: "IM Fell English", Georgia, serif; color: var(--accent); opacity: .07 }
:root[data-theme="cute"] .tf-num { font-family: "Fredoka", ui-rounded, sans-serif; opacity: .14 }
/* Content rises in as you scroll. */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--soft-out), transform .9s var(--soft-out) }
.rv.in { opacity: 1; transform: none }
h1 { animation: tf-rise .8s var(--soft-out) both }
@keyframes tf-rise { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }
/* Cards and rows lift and lean softly. */
.box, details.faq { position: relative; background: color-mix(in srgb, var(--card) 70%, transparent); transition: transform .55s var(--spring), border-color .4s var(--soft-out), box-shadow .5s var(--soft-out) }
.box:hover, details.faq:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 14px 32px -20px rgba(14, 75, 54, .4) }
.tilt.tilting:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-3px); transition: transform .35s var(--soft-out), border-color .4s, box-shadow .5s }
.tilt .sheen { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .5s var(--soft-out); background: radial-gradient(16rem 16rem at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--gold) 16%, transparent), transparent 60%) }
.tilt:hover .sheen { opacity: .5 }
tr { transition: background .35s var(--soft-out) }
tbody tr:hover, table tr:not(:first-child):hover { background: color-mix(in srgb, var(--gold) 8%, transparent) }
.cta { transition: transform .5s var(--spring), box-shadow .5s var(--soft-out) } .cta:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -16px var(--accent) }
main a:not(.cta):not(.tf-brand) { text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); text-underline-offset: 3px; transition: text-decoration-color .3s, text-underline-offset .4s var(--spring) }
main a:not(.cta):not(.tf-brand):hover { text-decoration-color: var(--gold); text-underline-offset: 5px }
button { transition: transform .45s var(--spring), opacity .3s } button:hover { transform: translateY(-1px) }
textarea, input[type=text], input[type=email] { transition: border-color .35s var(--soft-out), box-shadow .45s var(--soft-out) }
textarea:focus, input[type=text]:focus, input[type=email]:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 14%, transparent) }
/* FAQ */
details.faq { border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; margin: 10px 0 }
details.faq summary { list-style: none; cursor: pointer; padding: 14px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 12px }
details.faq summary::-webkit-details-marker { display: none }
details.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; transition: transform .55s var(--spring) }
details.faq[open] summary::after { transform: rotate(45deg) }
details.faq p { margin: 0 0 14px; animation: tf-rise .5s var(--soft-out) both }
:root[data-theme="cute"] details.faq { border: 1.5px solid var(--line); border-radius: 18px }
:root[data-theme="federal"] details.faq { border: 3px double var(--line); border-radius: 3px }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important } .rv { opacity: 1; transform: none } .tf-num { transform: none } }
.mode-menu[hidden] { display: none }
@media (max-width: 600px) { .mode-menu { left: 0; right: auto; transform-origin: top left } }
