/* Solar Line Collective: public website.
   Editorial, print-inspired: warm paper, ink type, one ochre accent, rules instead of shadows. */
:root {
  --paper: #f4efe6;
  --paper-2: #ebe4d5;
  --card: #fbf8f2;
  --ink: #17191c;
  --ink-2: #33373c;
  --muted: #6a6862;
  --line: #d7cebd;
  --sun: #d98a1c;
  --sun-deep: #9c5a0b;
  --prairie: #2e4636;
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --wrap: 1240px;
  --pad: clamp(18px, 4.5vw, 56px);
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121412; --paper-2: #191c19; --card: #1d201d; --ink: #ece6da; --ink-2: #cfc8ba; --muted: #9d998f; --line: #2d312c;
    --sun-deep: #e4a64a; --prairie: #9dbba6;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%; }
a { color: inherit; text-decoration-color: var(--sun); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.015em; line-height: 1.08; margin: 0 0 16px; font-variation-settings: 'opsz' 120; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); max-width: 18ch; }
h3 { font-size: 1.3rem; font-variation-settings: 'opsz' 30; }
p { margin: 0 0 14px; }

.eyebrow, .sec-num, figcaption, .fine, .opt, small { font-family: var(--mono); }
.eyebrow { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sun-deep); margin: 0 0 18px; }
.eyebrow a { text-decoration: none; }
.sec-num { display: flex; align-items: baseline; gap: 12px; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; padding-top: 14px; border-top: 1px solid var(--ink); }
.sec-num span { color: var(--sun-deep); font-weight: 500; }
figcaption { font-size: 0.68rem; color: var(--muted); margin-top: 8px; letter-spacing: 0.02em; }
figcaption a { color: inherit; }
.fine { font-size: 0.74rem; color: var(--muted); }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 28px; padding: 14px var(--pad); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-head.scrolled { border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 560; font-size: 1.15rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; color: var(--ink); }
.brand-mark .mk-sun, .brand-mark .mk-rays { color: var(--sun); }
.site-head nav { display: flex; gap: 22px; margin-left: auto; }
.site-head nav a { text-decoration: none; font-size: 0.93rem; color: var(--ink-2); }
.site-head nav a:hover { color: var(--ink); text-decoration: underline; }
.head-cta { font-size: 0.9rem; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--sun); padding-bottom: 1px; white-space: nowrap; }
.login-link { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--muted); border: 1px solid var(--line); padding: 5px 10px; border-radius: 3px; }
.login-link:hover { color: var(--ink); border-color: var(--ink); }
@media (max-width: 960px) { .site-head nav { display: none; } .head-cta { margin-left: auto; } }
@media (max-width: 420px) { .head-cta { display: none; } .login-link { margin-left: auto; } }

main > section { padding: clamp(56px, 8vw, 110px) var(--pad); max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; }

/* ---------- buttons & links ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 1rem var(--sans); color: var(--paper); background: var(--ink); border: 0; border-radius: 3px; padding: 15px 22px; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: var(--prairie); }
.btn:active { transform: translateY(1px); }
.btn .arr { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }
.text-link { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 1px; }
.text-link:hover { border-color: var(--sun); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(36px, 6vw, 72px) !important; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1.02; margin-bottom: 22px; font-weight: 560; }
.hero h1 .wd { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero h1 .wi { display: inline-block; }
.hero h1 em { font-style: italic; font-weight: 400; position: relative; white-space: nowrap; }
.scribble { position: absolute; left: -2%; right: -2%; bottom: -0.16em; width: 104%; height: 0.32em; color: var(--sun); }
.lead { font-size: clamp(1.02rem, 1.35vw, 1.15rem); color: var(--ink-2); max-width: 54ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin: 28px 0 36px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid var(--line); }
.facts > div { padding: 16px 16px 0 0; }
.facts > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.facts dt { font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 560; line-height: 1.1; font-variant-numeric: tabular-nums; }
.facts dt.small-dt { font-size: 1.15rem; }
.facts dd { margin: 6px 0 0; font-size: 0.82rem; color: var(--muted); line-height: 1.45; }
.hero-photo { margin: 0; }
.photo-frame { overflow: hidden; border-radius: 2px; aspect-ratio: 4 / 4.6; background: var(--paper-2); }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } .hero-photo { order: -1; } .photo-frame { aspect-ratio: 4 / 3; } }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } .facts > div { padding: 12px 0; } }

/* ---------- marquee ---------- */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; white-space: nowrap; padding: 14px 0; font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.5rem); font-style: italic; }
.marquee-track { display: inline-flex; gap: 22px; padding-left: 22px; will-change: transform; }
.marquee i { color: var(--sun); font-style: normal; }

/* ---------- photos ---------- */
.photo { margin: 28px 0 0; }
.photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }
.clip { display: block; overflow: hidden; border-radius: 2px; }
.clip img { display: block; }

/* ---------- how ---------- */
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 90px); }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 64px 1fr; gap: 4px 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps li:first-child { border-top: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--sun); font-weight: 400; font-style: italic; }
.steps b { font-size: 1.1rem; }
.steps span { color: var(--ink-2); }
@media (max-width: 860px) { .how-grid { grid-template-columns: 1fr; } }

/* ---------- Illinois Shines ---------- */
.shines { background: var(--paper-2); max-width: none !important; }
.shines > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
.shines-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 90px); align-items: start; }
.pull { margin: 0; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.2; font-weight: 400; font-style: italic; color: var(--prairie); position: sticky; top: 110px; padding-left: 22px; border-left: 3px solid var(--sun); }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; }
.ticks li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px dashed var(--line); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 19px; width: 12px; height: 6px; border-left: 2px solid var(--sun-deep); border-bottom: 2px solid var(--sun-deep); transform: rotate(-45deg); }
.sfa { background: var(--card); border: 1px solid var(--line); padding: 20px 22px; margin: 26px 0 16px; }
.sfa h3 { font-size: 1.1rem; }
@media (max-width: 860px) { .shines-grid { grid-template-columns: 1fr; } .pull { position: static; } }

/* ---------- $0 down table ---------- */
.intro { color: var(--ink-2); max-width: 60ch; }
.table-wrap { overflow-x: auto; margin-top: 30px; border-top: 2px solid var(--ink); }
.compare { width: 100%; border-collapse: collapse; min-width: 720px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 16px 14px; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--serif); font-size: 1.15rem; font-weight: 560; }
.compare thead th small { display: block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sun-deep); margin-top: 4px; font-weight: 400; }
.compare tbody th { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); font-weight: 400; width: 18%; }
.compare tbody tr:first-child td { font-family: var(--serif); font-size: 1.25rem; }

/* ---------- battery ---------- */
.battery { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 90px); align-items: center; }
.battery .photo { margin: 0; }
@media (max-width: 860px) { .battery { grid-template-columns: 1fr; } }

/* ---------- requirements ---------- */
.reqs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 90px); }
.reqs { list-style: none; counter-reset: r; margin: 0; padding: 0; }
.reqs li { counter-increment: r; display: grid; grid-template-columns: 44px 1fr; gap: 2px 10px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.reqs li::before { content: counter(r); grid-row: span 2; width: 30px; height: 30px; border: 1.5px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 0.8rem; }
.reqs b { font-size: 1.05rem; }
.reqs span { color: var(--ink-2); }
.reqs.compact li { padding: 12px 0; }
@media (max-width: 860px) { .reqs-grid { grid-template-columns: 1fr; } }

/* ---------- qualify form ---------- */
.form-band { max-width: none !important; background: var(--ink); color: var(--paper); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 90px); align-items: start; padding-left: max(var(--pad), calc((100vw - var(--wrap)) / 2)) !important; padding-right: max(var(--pad), calc((100vw - var(--wrap)) / 2)) !important; }
.form-band h2 { color: var(--paper); }
.form-intro p { color: #cfc8ba; max-width: 46ch; }
.plain { padding-left: 18px; }
.plain li { margin-bottom: 6px; }
.form-band .plain { color: #cfc8ba; }
.qualify { background: var(--card); color: var(--ink); padding: clamp(20px, 3vw, 34px); border-radius: 2px; }
.qualify h3 { font-size: 1.5rem; margin-bottom: 6px; }
.note { color: var(--muted); font-size: 0.92rem; }
.qualify label, .login-card label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--ink-2); margin-bottom: 14px; }
.qualify input:not([type=checkbox]), .qualify select, .login-card input { display: block; width: 100%; margin-top: 6px; font: 400 1rem var(--sans); color: var(--ink); background: transparent; border: 0; border-bottom: 1.5px solid var(--line); border-radius: 0; padding: 9px 2px; }
.qualify select { appearance: auto; }
.qualify input:focus, .qualify select:focus, .login-card input:focus { outline: none; border-bottom-color: var(--sun); }
.opt { font-weight: 400; color: var(--muted); font-size: 0.7rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 540px) { .grid2 { grid-template-columns: 1fr; } }
.consent { display: flex !important; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: 0.78rem !important; line-height: 1.5; color: var(--muted) !important; margin: 6px 0 20px !important; }
.consent input { margin-top: 3px; flex: none; width: 18px; height: 18px; accent-color: var(--prairie); }
.hp { position: absolute !important; left: -9999px !important; }
.qualify .btn { width: 100%; justify-content: center; }
.form-msg { margin: 14px 0 0; font-weight: 600; min-height: 1.2em; }
.form-msg.ok { color: var(--prairie); }
.form-msg.err { color: #b3261e; }
.qualify.sent h3 { font-size: 1.7rem; }
@media (max-width: 900px) { .form-band { grid-template-columns: 1fr; } }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-top: 30px; }
.person { margin: 0; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .5s; border-radius: 2px; }
.person:hover img { filter: none; }
.person figcaption { font-family: var(--sans); font-size: 0.95rem; color: var(--ink); margin-top: 12px; }
.person b { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 560; }
.person span { display: block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sun-deep); margin: 2px 0 8px; }
.person p { color: var(--ink-2); font-size: 0.92rem; }
@media (max-width: 600px) {
  .team-grid { gap: 22px; }
  .person { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; }
  .person figcaption { margin-top: 0; }
  .person b { font-size: 1.15rem; }
}

/* ---------- areas ---------- */
.areas { max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; padding-top: 0 !important; }
.areas-photo { margin: 0; position: relative; }
.areas-photo img { width: 100%; height: clamp(260px, 42vw, 520px); object-fit: cover; }
.areas-photo figcaption { position: absolute; right: 12px; bottom: 10px; color: rgba(255,255,255,.85); text-shadow: 0 1px 3px rgba(0,0,0,.6); margin: 0; }
.areas-body { max-width: var(--wrap); margin: clamp(-120px, -8vw, -60px) auto 0; position: relative; background: var(--paper); padding: clamp(24px, 4vw, 48px) var(--pad) 0; }
.area-grid { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); border-top: 1px solid var(--line); }
.area-grid li { border-bottom: 1px solid var(--line); padding: 12px 10px 12px 0; }
.area-grid a { font-family: var(--serif); font-size: 1.12rem; text-decoration: none; }
.area-grid a:hover { text-decoration: underline; }
.area-grid small { display: block; font-size: 0.66rem; color: var(--muted); letter-spacing: 0.04em; }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 6vw, 90px); }
.faq-head { position: sticky; top: 100px; align-self: start; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-family: var(--serif); font-size: 1.2rem; font-weight: 560; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-family: var(--sans); font-weight: 300; font-size: 1.7rem; color: var(--sun-deep); transition: transform .25s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--ink-2); padding-bottom: 12px; max-width: 64ch; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } .faq-head { position: static; } }

/* ---------- credits ---------- */
.credit-list { list-style: none; padding: 0; margin: 26px 0 0; }
.credit-list li { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.credit-list img { width: 120px; height: 80px; object-fit: cover; flex: none; }
.credit-list b { display: block; font-family: var(--serif); font-weight: 560; }
.credit-list span, .credit-list small { display: block; font-size: 0.85rem; color: var(--ink-2); }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #cfc8ba; padding: 56px var(--pad) 30px; }
.site-foot a { color: #ece6da; text-decoration-color: rgba(217,138,28,.6); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; max-width: var(--wrap); margin: 0 auto; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.site-foot .brand { color: #ece6da; }
.site-foot .brand-mark { color: #ece6da; }
.foot-brand p { max-width: 38ch; margin-top: 14px; }
.site-foot h4 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: #9d998f; font-weight: 400; margin: 6px 0 12px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 7px; }
.city-links { columns: 2; }
.disclaimer { max-width: var(--wrap); margin: 36px auto 0; font-size: 0.76rem; color: #8d897f; border-top: 1px solid #2d312c; padding-top: 20px; line-height: 1.6; }
.copy { max-width: var(--wrap); margin: 10px auto 0; font-family: var(--mono); font-size: 0.72rem; color: #8d897f; }

/* ---------- login ---------- */
.login-body { background: var(--paper); }
.login-split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr); }
.login-photo { margin: 0; position: relative; background: #0d0f12; }
.login-photo img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.login-photo figcaption { position: absolute; left: 16px; bottom: 12px; color: rgba(255,255,255,.75); margin: 0; }
.login-side { display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 40px clamp(24px, 5vw, 64px); }
.login-card { max-width: 380px; width: 100%; }
.login-card h1 { font-size: 2.3rem; margin-bottom: 4px; }
.login-card .btn { margin-top: 12px; }
.login-err { background: #f6dcd8; color: #7a1d15; padding: 10px 12px; border-left: 3px solid #b3261e; font-size: 0.9rem; }
.back { align-self: flex-start; font-size: 0.9rem; }
@media (max-width: 820px) { .login-split { grid-template-columns: 1fr; } .login-photo { height: 34vh; } }

/* motion helpers: GSAP animates these; without JS or with reduced motion they're simply visible */
.js-motion .reveal { opacity: 0; transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) { .js-motion .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }
