/* Folly Launch shared styles. Tokens match the scorecard page. */
@font-face {
  font-family: 'Cotta';
  src: url('/assets/Cotta.woff2') format('woff2');
  font-weight: normal; font-style: normal; font-display: swap;
}
:root {
  --ground: #FAFAF8; --card: #FFFFFF; --tint: #F4EEE2; --line: #E8E4DE;
  --ink: #2D2A2E; --ink-2: #5C5660; --muted: #8A8287;
  --purple: #733D63; --heading: #733D63; --olive: #6A7926; --mustard: #C4A60D; --pink: #B95771;
  --band: #733D63; --band-ink: #F4EEE2; --on-accent: #FFFFFF; --track: #EDE8E0;
  --display: 'Cotta', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
/* One look only: Folly's light editorial palette, whatever the visitor's phone is set to. */
:root { color-scheme: light; }
* { box-sizing: border-box; }
body { background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }
a { color: var(--purple); text-underline-offset: 3px; }

.band { background: var(--band); color: var(--band-ink); }
.wrap { max-width: 720px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.band .wrap { padding-block: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: flex-end; gap: 12px; text-decoration: none; }
.brand img { height: 34px; width: auto; display: block; }
.brand span { font-family: var(--display); font-size: 22px; line-height: 1; padding-bottom: 6px; color: var(--band-ink); }
.band small { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.band nav { display: flex; gap: 18px; font-size: 15px; }
.band nav a { color: var(--band-ink); }

main.wrap > .bleed:first-child { margin-top: -40px; }
main.wrap { padding-block: 40px 64px; display: flex; flex-direction: column; gap: 36px; }
.section { display: flex; flex-direction: column; gap: 16px; }
h1, h2, h3 { font-family: var(--display); font-weight: normal; color: var(--heading); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(36px, 7.5vw, 54px); line-height: 1.06; }
h2 { font-size: clamp(26px, 5.2vw, 34px); line-height: 1.18; }
h3 { font-size: 22px; line-height: 1.25; }
p { margin: 0; max-width: 62ch; }
.lede { font-size: 19px; color: var(--ink-2); }
.eyebrow { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.note { font-size: 14px; color: var(--muted); }
.flag { font-size: 15px; color: var(--ink-2); background: var(--tint); border-left: 3px solid var(--mustard); padding: 10px 12px; }
.flag.bad { border-left-color: var(--pink); }
ul.plain { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; max-width: 62ch; }

.btn { display: inline-block; background: var(--purple); color: var(--on-accent); border: 0; border-radius: 6px; padding: 13px 22px; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--purple); border: 1px solid var(--purple); }
.btn.small { padding: 8px 14px; font-size: 15px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.tinted { background: var(--tint); border-radius: 6px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }

label.f { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
label.f span.opt { font-weight: 400; color: var(--muted); font-size: 14px; }
label.f small { font-weight: 400; color: var(--ink-2); font-size: 14px; }
label.f input, label.f textarea { font-weight: 400; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 11px 13px; width: 100%; min-width: 0; }
label.f textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
form.tool { display: flex; flex-direction: column; gap: 18px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }

/* result blocks */
.heat { display: inline-block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; padding: 4px 9px; border-radius: 3px; color: var(--on-accent); white-space: nowrap; }
.heat.cold { background: var(--purple); }
.heat.warm { background: var(--mustard); color: #2D2A2E; }
.heat.hot { background: var(--pink); }
.oneline { font-family: var(--display); font-size: clamp(24px, 4.6vw, 30px); line-height: 1.22; color: var(--heading); text-wrap: balance; }
.heatrows { display: flex; flex-direction: column; }
.heatrow { display: grid; grid-template-columns: 130px 64px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); }
.heatrow b { font-weight: 600; }
.heatrow span.ev { color: var(--ink-2); font-size: 15px; }
@media (max-width: 520px) { .heatrow { grid-template-columns: minmax(0, 1fr) auto; } .heatrow span.ev { grid-column: 1 / -1; } }
ol.angles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; counter-reset: a; }
ol.angles li { counter-increment: a; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 6px 10px; border-top: 1px solid var(--line); padding-top: 18px; }
ol.angles li::before { content: counter(a); font-family: var(--display); font-size: 40px; line-height: 1; color: var(--mustard); grid-row: 1 / span 4; }
ol.angles .meta { font-size: 14px; color: var(--ink-2); }
.email { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.email .subj { font-weight: 600; }
.email pre { margin: 0; white-space: pre-wrap; font: inherit; overflow-wrap: anywhere; }

footer.wrap { padding-block: 0 40px; color: var(--muted); font-size: 14px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ── Folly's designed-guide look: purple bands, mustard spaced capitals, photographs ── */
.bleed { background: var(--band); color: var(--band-ink); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); padding-block: 36px; display: flex; flex-direction: column; gap: 16px; }
.bleed h1, .bleed h2, .bleed h3 { color: var(--band-ink); }
.bleed a { color: var(--band-ink); }
.caps { font-family: var(--body); font-weight: 300; font-size: clamp(22px, 5vw, 30px); letter-spacing: 0.28em; text-transform: uppercase; color: var(--mustard); line-height: 1.25; margin: 0; }
.bleed .caps { color: #D9BC2E; }
.photo { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; background: var(--tint); }
.photo.wide { aspect-ratio: 16 / 9; }
/* A portrait photograph, cropped so the figure stays in frame. */
.photo.portrait { aspect-ratio: 4 / 5; object-position: 62% 22%; }
@media (min-width: 620px) { .photo.portrait { aspect-ratio: 3 / 2; object-position: 62% 18%; } }
