/* Pink Sky Tracker legal and support site. Colors match src/theme/tokens.ts. */

@font-face { font-family: "Manrope"; src: url("fonts/Manrope_400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope_600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope_700Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/InstrumentSerif_400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/InstrumentSerif_400Regular_Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #FBF7F4;
  --surface: #FFFFFF;
  --surface-muted: #F3EDEA;
  --text: #1C1628;
  --text-2: #5B5468;
  --text-3: #7C7588;
  --border: #E6DEDA;
  --hairline: rgba(28, 22, 40, 0.08);
  --link: #B8325C;
  --todo-bg: #FFE9A8;
  --todo-text: #5A3F00;
  --poor: #7A8496; --low: #6B7FA8; --fair: #7E6FD6; --good: #D9784A; --excellent: #D6456F; --exceptional: #A93C96;
  --sky: linear-gradient(180deg, #5B5BB5 0%, #A55AA8 38%, #E2708A 66%, #F6A57C 88%, #FBD3A2 100%);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F0C16;
    --surface: #18131F;
    --surface-muted: #1E1827;
    --text: #FBF5F2;
    --text-2: #C3BACB;
    --text-3: #9C93A6;
    --border: #2E2638;
    --hairline: rgba(255, 245, 240, 0.10);
    --link: #F57FA2;
    --todo-bg: #5A4300;
    --todo-text: #FFE9A8;
    --poor: #A3ACBC; --low: #9DB0D8; --fair: #B3A8F5; --good: #F6A57C; --excellent: #F57FA2; --exceptional: #E18CD3;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }

a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }

.draft-banner {
  background: var(--todo-bg);
  color: var(--todo-text);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  text-align: center;
}

mark.todo {
  background: var(--todo-bg);
  color: var(--todo-text);
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 600;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand img { border-radius: 9px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a {
  color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 6px 10px; border-radius: 999px;
}
.site-nav a:hover { background: var(--surface-muted); color: var(--text); }
.site-nav a[aria-current="page"] { background: var(--text); color: var(--bg); }

/* Documents */
main.wrap { padding-top: 40px; padding-bottom: 72px; }
.eyebrow { margin: 0 0 4px; color: var(--text-3); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.15; }
h1 { font-size: clamp(40px, 7vw, 56px); margin: 0 0 8px; }
h2 { font-size: 30px; margin: 48px 0 12px; scroll-margin-top: 88px; }
h3 { font-size: 22px; margin: 28px 0 8px; }
.meta { color: var(--text-3); margin: 0 0 28px; font-size: 15px; }
.lede { font-size: 19px; color: var(--text-2); margin: 0 0 28px; }
p, ul, ol { margin: 0 0 16px; }
li { margin-bottom: 8px; }
li::marker { color: var(--text-3); }
strong { font-weight: 700; }

.summary, .contact-card, .callout, .steps {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 8px 24px 12px;
  margin: 24px 0;
}
.summary { position: relative; overflow: hidden; }
.summary::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--sky); }
.summary h2, .contact-card h2, .callout h2, .steps h2 { margin-top: 20px; font-size: 26px; }

.toc { margin: 24px 0 8px; padding: 16px 24px; border-left: 3px solid var(--border); }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: 4px; break-inside: avoid; font-size: 15px; }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--link); text-decoration: underline; }

.table-wrap { overflow-x: auto; margin: 16px 0 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--hairline); }
th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); font-weight: 700; background: var(--surface-muted); }
tr:last-child td { border-bottom: 0; }
td:first-child { min-width: 180px; }
table.bands td:first-child { min-width: 0; white-space: nowrap; }

.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.dot.poor { background: var(--poor); } .dot.low { background: var(--low); } .dot.fair { background: var(--fair); }
.dot.good { background: var(--good); } .dot.excellent { background: var(--excellent); } .dot.exceptional { background: var(--exceptional); }

details {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  margin: 10px 0;
  padding: 0 20px;
}
details[open] { padding-bottom: 8px; }
summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  padding: 16px 28px 16px 0;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--text-3);
}
details[open] summary::after { content: "\2212"; }
details .table-wrap { margin: 12px 0; }

/* Home */
.hero { position: relative; text-align: center; padding: 56px 0 24px; }
.sky {
  position: absolute; left: 50%; top: 0; width: min(560px, 100%); height: 240px; transform: translateX(-50%);
  background: var(--sky); filter: blur(60px); opacity: 0.35; border-radius: 50%; z-index: -1;
}
.hero-icon { border-radius: 22px; box-shadow: 0 12px 32px rgba(169, 60, 150, 0.25); }
.hero h1 { margin-top: 20px; }
.hero .lede { max-width: 540px; margin-left: auto; margin-right: auto; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px; }
.card {
  display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  padding: 4px 22px 10px; color: var(--text); text-decoration: none; transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--text-3); }
.card h2 { font-size: 26px; margin: 18px 0 6px; }
.card p { color: var(--text-2); font-size: 15px; }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); color: var(--text-3); font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; padding-bottom: 32px; }
.footer-row p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-links a { color: var(--text-2); }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  main.wrap { padding-top: 28px; }
  h2 { font-size: 26px; margin-top: 40px; }
  .toc ol { columns: 1; }
  .cards { grid-template-columns: 1fr; }
  .site-nav a { padding: 6px 8px; font-size: 14px; }
  .summary, .contact-card, .callout, .steps { padding: 4px 18px 8px; border-radius: 18px; }
  td:first-child { min-width: 140px; }
}

@media print {
  .site-header, .site-footer, .toc, .skip, .draft-banner { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  details { border: 0; padding: 0; }
  details > *:not(summary) { display: block; }
  a { color: #000; }
}

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { transform: none; }
}
