/* FigTree Labs site styles. Shared by every page; no inline styles so the CSP can stay strict. */

@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-600-latin.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  --plum: #5B2A4E;
  --plum-deep: #3E1C35;
  --plum-soft: #7A4A6C;
  --cream: #F4EDE1;
  --cream-2: #EADFCC;
  --honey: #E9A84B;
  --honey-hover: #F2BA66;
  --honey-ink: #7A4E12;
  --leaf: #8DB87A;
  --ink: #2B1426;
  --surface: #FFFDF9;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --gutter: clamp(20px, 4vw, 40px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
::selection { background: var(--honey); color: var(--plum-deep); }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 4px; }
.on-plum :focus-visible { outline-color: var(--honey); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--honey); color: var(--plum-deep); padding: 10px 16px; border-radius: 8px; font-weight: 500; text-decoration: none; }
.skip:focus { top: 12px; }
.ext { width: 0.8em; height: 0.8em; display: inline-block; vertical-align: -0.05em; margin-left: 0.35em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------ header */
.on-plum { background: var(--plum); color: var(--cream); }
.site-head nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; min-height: 44px; }
.brand svg { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.site-head ul { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; font-size: 15px; }
.site-head ul a { display: inline-block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--cream-2); transition: color .15s, background-color .15s; }
.site-head ul a:hover { color: var(--cream); background: rgba(244,237,225,0.08); }
.site-head ul a[aria-current="page"] { color: var(--honey); }

/* ------------------------------------------------------------------ hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(40px, 4.9vw, 66px); line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 22px; }
.hero h1 .accent { color: var(--honey); }
.hero .lede { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; color: var(--cream-2); max-width: 32em; margin: 0 0 32px; }
.hero .lede strong { color: var(--cream); font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.btn { display: inline-flex; align-items: center; white-space: nowrap; padding: 14px 24px; border-radius: 999px; background: var(--honey); color: var(--plum-deep); font-weight: 500; text-decoration: none; transition: background-color .15s, transform .15s; }
.btn:hover { background: var(--honey-hover); }
.btn:active { transform: translateY(1px); }
.btn.plum { background: var(--plum); color: var(--cream); }
.btn.plum:hover { background: var(--plum-deep); }
.textlink { font-weight: 500; text-decoration: underline; text-decoration-color: rgba(244,237,225,0.5); padding: 8px 0; }
.textlink:hover { text-decoration-color: currentColor; }

.shot { margin: 0; }
.shot .frame { border-radius: 14px; overflow: hidden; background: var(--plum-deep); box-shadow: 0 24px 48px -16px rgba(30,10,25,0.55), 0 4px 12px rgba(30,10,25,0.25); }
.shot .bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #2E1427; }
.shot .bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(244,237,225,0.22); }
.shot .bar span { margin-left: 10px; font-size: 12px; color: rgba(244,237,225,0.6); letter-spacing: 0.01em; }
.shot figcaption { font-size: 13px; margin-top: 12px; color: var(--cream-2); }

.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; padding: 18px 0; border-top: 1px solid rgba(244,237,225,0.14); font-size: 14px; color: var(--cream-2); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); }

/* ------------------------------------------------------------------ sections */
section { padding: clamp(64px, 8vw, 104px) 0; }
h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 20px; color: var(--plum); }
h3 { font-family: var(--serif); font-weight: 600; color: var(--plum); }
.intro { max-width: 40em; font-size: 18px; margin: 0 0 40px; }

.product { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.product h3 { font-size: 32px; line-height: 1.15; margin: 0 0 12px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.product h3 small { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--honey-ink); letter-spacing: 0.01em; }
.product ul { padding-left: 20px; margin: 18px 0 28px; }
.product li { margin-bottom: 8px; }
.product li::marker { color: var(--plum-soft); }
.product .actions { gap: 12px 22px; }
.product .textlink { text-decoration-color: rgba(91,42,78,0.4); color: var(--plum); }
.product .shot figcaption { color: var(--plum-soft); }
.next { margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--cream-2); color: var(--plum-soft); }

.leagues { background: var(--plum-deep); color: var(--cream); padding: clamp(48px, 6vw, 72px) 0; }
.leagues .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; }
.leagues h2 { color: var(--cream); font-size: clamp(28px, 3vw, 38px); margin-bottom: 12px; }
.leagues p { margin: 0; max-width: 40em; color: var(--cream-2); }

.about { background: var(--cream-2); }
.about-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.about p { margin: 0 0 16px; max-width: 34em; }
.commitments { margin: 0; display: grid; gap: 0; border-top: 1px solid rgba(91,42,78,0.18); }
.commitments div { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr); gap: 8px 28px; padding: 18px 0; border-bottom: 1px solid rgba(91,42,78,0.18); }
.commitments dt { font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--plum); line-height: 1.35; }
.commitments dd { margin: 0; }
.about .policy { margin-top: 20px; font-size: 15px; }
.about .policy a { color: var(--plum); font-weight: 500; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact .big { display: inline-block; font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); color: var(--plum); text-decoration: underline; text-decoration-color: var(--honey); text-decoration-thickness: 3px; text-underline-offset: 0.18em; margin: 4px 0 16px; overflow-wrap: anywhere; }
.topics { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--cream-2); }
.topics li { border-bottom: 1px solid var(--cream-2); }
.topics a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 16px 4px; text-decoration: none; transition: color .15s; }
.topics a:hover { color: var(--plum); }
.topics a span { color: var(--plum-soft); font-size: 14px; }
.topics b { font-weight: 500; }

/* ------------------------------------------------------------------ footer */
.site-foot { background: var(--plum-deep); color: var(--cream-2); font-size: 15px; padding: 56px 0 32px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-foot .brand { color: var(--cream); font-size: 19px; }
.site-foot .brand svg { width: 32px; height: 32px; border-radius: 8px; }
.site-foot address { font-style: normal; margin-top: 14px; line-height: 1.6; }
.site-foot h2 { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--cream); margin: 8px 0 10px; letter-spacing: 0; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li a { display: inline-block; padding: 5px 0; text-decoration: none; }
.site-foot li a:hover { color: var(--cream); text-decoration: underline; }
.legal-line { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(244,237,225,0.12); font-size: 13px; color: rgba(234,223,204,0.8); }

/* ------------------------------------------------------------------ legal pages */
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 48px); }
.page-head h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 10px; }
.page-head p { margin: 0; color: var(--cream-2); }
.doc { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 104px); }
.doc .wrap { max-width: 760px; }
.doc h2 { font-size: 26px; margin: 40px 0 10px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { max-width: 68ch; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--plum); font-weight: 500; }

/* ------------------------------------------------------------------ 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 24px; }
.notfound img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto; }
.notfound h1 { font-family: var(--serif); font-weight: 600; font-size: 34px; margin: 22px 0 8px; }
.notfound p { color: var(--cream-2); margin: 0 0 28px; }
.notfound .actions { justify-content: center; }
.notfound .textlink { color: var(--cream); }

/* ------------------------------------------------------------------ small screens */
@media (max-width: 860px) {
  .hero, .product, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .leagues .wrap { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .commitments div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-head nav { flex-wrap: wrap; padding: 12px 0 6px; gap: 4px; }
  .site-head ul { width: 100%; justify-content: space-between; font-size: 14px; margin: 0 -12px; width: calc(100% + 24px); }
  .site-head ul a { padding: 10px 12px; }
  .brand { font-size: 20px; }
  .hero { padding-top: 24px; }
  .shot .bar span { display: none; }
}
