/* ============================================================
   styles.css — Cameron Crump portfolio
   Type: Sora (display) + Inter (body). Palette defined once, below.
   ============================================================ */

/* ---------- Palette: warm orange on warm near-black ---------- */
:root{
  --ink:#14100e; --panel:#1d1815; --panel-2:#272019; --line:#3a2f26;
  --text:#f7f1ea; --muted:#b3a494; --muted-2:#7d7063;
  --accent:#ff8a3d; --accent-deep:#c2571a; --accent-soft:rgba(255,138,61,.12);
  --good:#5ddba0; --bad:#ff6b6b;
  --font-display:"Sora","Trebuchet MS",system-ui,sans-serif;
  --font-body:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --display-weight:800; --display-tracking:-0.03em;
}

:root{
  --wrap:1180px;        /* general */
  --wrap-wide:1500px;   /* hero, doors, stats */
  --measure:74ch;       /* prose never exceeds this */
  --radius:18px;
}

*,*::before,*::after{ box-sizing:border-box; }
[hidden]{ display:none !important; }

html{ scroll-behavior:smooth; }

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

.wrap{ width:100%; max-width:var(--wrap); margin:0 auto; padding:0 32px; }
.wrap-wide{ width:100%; max-width:var(--wrap-wide); margin:0 auto; padding:0 32px; }

h1,h2,h3{
  font-family:var(--font-display); font-weight:var(--display-weight);
  letter-spacing:var(--display-tracking); line-height:1.08; margin:0;
}
button{ font-family:inherit; }

.skip-link{ position:absolute; left:-9999px; z-index:99; background:var(--accent); color:var(--ink); padding:12px 20px; font-weight:700; }
.skip-link:focus{ left:0; top:0; }

/* ============ BUTTONS — chunky and unmistakably pressable ============ */
.btn{
  display:inline-flex; align-items:center; gap:9px;
  padding:15px 28px; border-radius:12px;
  font-size:16px; font-weight:700; font-family:var(--font-body);
  border:2px solid transparent; cursor:pointer; text-decoration:none;
  transition:transform .1s ease, box-shadow .1s ease, background .15s ease, border-color .15s ease;
}
.btn::after{ content:"→"; font-size:17px; transition:transform .15s ease; }
.btn:hover::after{ transform:translateX(3px); }

.btn-primary{
  background:var(--accent); color:var(--ink);
  box-shadow:0 4px 0 var(--accent-deep);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 6px 0 var(--accent-deep); }
.btn-primary:active{ transform:translateY(3px); box-shadow:0 1px 0 var(--accent-deep); }

.btn-ghost{
  background:var(--panel-2); color:var(--text); border-color:var(--line);
  box-shadow:0 4px 0 var(--line);
}
.btn-ghost:hover{ transform:translateY(-2px); box-shadow:0 6px 0 var(--line); border-color:var(--muted-2); }
.btn-ghost:active{ transform:translateY(3px); box-shadow:0 1px 0 var(--line); }

.link-btn{
  background:none; border:0; padding:6px 2px; cursor:pointer;
  color:var(--muted); font-size:14px; font-weight:600;
  border-bottom:2px solid var(--line);
}
.link-btn:hover{ color:var(--accent); border-bottom-color:var(--accent); }

/* ============ HERO — two columns on wide screens ============ */
.hero{ position:relative; padding:88px 0 76px; overflow:hidden; border-bottom:1px solid var(--line); }
.hero-glow{
  position:absolute; top:-360px; left:20%; width:900px; height:700px; pointer-events:none;
  background:radial-gradient(ellipse at center, var(--accent-soft), transparent 62%);
}
.hero .wrap-wide{ position:relative; z-index:1; }

.hero-grid{ display:grid; grid-template-columns:1fr; gap:56px; align-items:start; }
@media (min-width:1080px){
  .hero-grid{ grid-template-columns:minmax(0,1.35fr) minmax(360px,.95fr); gap:72px; align-items:center; }
}

.eyebrow{
  font-size:13px; letter-spacing:.18em; text-transform:uppercase;
  color:var(--accent); font-weight:700; margin:0 0 16px;
}
.hero-seeking{
  display:inline-flex; align-items:center; gap:10px;
  font-size:14.5px; font-weight:600; color:var(--text);
  background:var(--panel); border:2px solid var(--line);
  padding:9px 18px 9px 15px; border-radius:100px; margin:0 0 30px;
}
.hero-seeking .dot{
  width:9px; height:9px; border-radius:50%; background:var(--good); flex:none;
  box-shadow:0 0 0 4px color-mix(in srgb, var(--good) 22%, transparent);
}
.hero-title{ font-size:clamp(46px,6.4vw,92px); margin-bottom:28px; }
.accent{ color:var(--accent); }
.hero-sub{ font-size:clamp(19px,1.9vw,23px); max-width:26ch; margin:0 0 18px; font-weight:500; }
.hero-note{ font-size:17px; color:var(--muted); max-width:56ch; margin:0 0 34px; }
.hero-cta{ display:flex; flex-wrap:wrap; gap:14px; }
.hero-fine{ font-size:14px; color:var(--muted-2); margin:22px 0 0; }

/* stats live in the hero now — a scoreboard, not a band */
.hero-panel{
  background:var(--panel); border:2px solid var(--line);
  border-radius:var(--radius); padding:30px;
}
.hero-panel-label{
  font-size:11px; letter-spacing:.18em; text-transform:uppercase;
  color:var(--muted-2); font-weight:700; margin:0 0 22px;
}
.stats-grid{ display:grid; gap:24px; }
.stat{ padding-bottom:22px; border-bottom:1px solid var(--line); }
.stat:last-child{ padding-bottom:0; border-bottom:0; }
.stat-value{ font-family:var(--font-display); font-weight:var(--display-weight); font-size:32px; color:var(--accent); line-height:1.05; margin-bottom:8px; }
.stat-label{ font-size:15px; line-height:1.45; margin-bottom:5px; }
.stat-sub{ font-size:13px; color:var(--muted-2); line-height:1.45; }

/* ============ SECTIONS ============ */
.engine-section,.quiz-section,.facts-section,.contact{ padding:96px 0; border-top:1px solid var(--line); }
.resume-section{ padding:96px 0; background:var(--panel); border-top:1px solid var(--line); }

.section-head{ max-width:var(--measure); margin-bottom:52px; }
.section-kicker{ display:block; font-size:13px; letter-spacing:.18em; text-transform:uppercase; color:var(--accent); font-weight:700; margin-bottom:16px; }
.section-title{ font-size:clamp(34px,4.6vw,58px); margin-bottom:20px; }
.section-lede{ font-size:18px; color:var(--muted); margin:0; max-width:66ch; }

/* ============ DOORS — full-bleed split ============ */
.doors{ display:grid; grid-template-columns:1fr; gap:20px; }
@media (min-width:900px){ .doors{ grid-template-columns:1fr 1fr; gap:24px; } }

.door{
  position:relative; display:flex; flex-direction:column; align-items:flex-start;
  width:100%; text-align:left; cursor:pointer;
  background:var(--panel); color:var(--text);
  border:2px solid var(--line); border-radius:var(--radius);
  padding:44px 40px; min-height:300px;
  box-shadow:0 6px 0 var(--line);
  transition:transform .13s ease, box-shadow .13s ease, border-color .15s ease, background .15s ease;
}
.door:hover{ transform:translateY(-4px); box-shadow:0 10px 0 var(--accent-deep); border-color:var(--accent); background:var(--panel-2); }
.door:active{ transform:translateY(3px); box-shadow:0 2px 0 var(--accent-deep); }

.door-num{ font-family:var(--font-body); font-size:12px; font-weight:800; letter-spacing:.18em; text-transform:uppercase; color:var(--accent); margin-bottom:18px; }
.door-title{ font-family:var(--font-display); font-weight:var(--display-weight); letter-spacing:var(--display-tracking); font-size:clamp(26px,2.4vw,34px); line-height:1.15; margin-bottom:16px; }
.door-blurb{ font-size:16px; color:var(--muted); line-height:1.6; margin:0 0 auto; max-width:42ch; }
.door-foot{ display:flex; align-items:center; justify-content:space-between; width:100%; gap:16px; margin-top:32px; padding-top:20px; border-top:1px solid var(--line); }
.door-meta{ font-size:13px; color:var(--muted-2); margin:0; }
.door-go{
  flex:none; display:grid; place-items:center;
  width:46px; height:46px; border-radius:12px;
  background:var(--accent); color:var(--ink); font-size:20px; font-weight:800;
  transition:transform .15s ease;
}
.door:hover .door-go{ transform:translateX(5px); }

/* ============ CARDS ============ */
.card{ background:var(--panel); border:2px solid var(--line); border-radius:var(--radius); padding:44px; }
.resume-section .card{ background:var(--ink); }

.card-top{ display:flex; justify-content:space-between; align-items:center; gap:16px; margin-bottom:26px; flex-wrap:wrap; }
.q-meta{ display:flex; gap:9px; flex-wrap:wrap; }
.pill{ font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; padding:6px 13px; border-radius:8px; white-space:nowrap; }
.pill-grade{ background:var(--accent); color:var(--ink); }
.pill-subject{ background:var(--panel-2); color:var(--text); }
.pill-year{ background:transparent; color:var(--muted-2); border:1px solid var(--line); }
.score-chip{ font-family:var(--font-display); font-size:16px; font-weight:var(--display-weight); color:var(--muted); white-space:nowrap; }
.score-chip span{ color:var(--accent); }

.ladder{ display:flex; gap:8px; margin-bottom:26px; }
.rung{ flex:1; height:7px; border-radius:100px; background:var(--panel-2); transition:background .3s ease; }
.rung.done-right{ background:var(--good); }
.rung.done-wrong{ background:var(--bad); }
.rung.current{ background:var(--accent); }

.q-setup{ font-size:16px; color:var(--muted); margin:0 0 20px; padding-left:18px; border-left:3px solid var(--line); max-width:78ch; }
.q-text{ font-size:clamp(22px,2.5vw,31px); margin-bottom:30px; max-width:30ch; }

/* options: two columns once there's room */
.options{ display:grid; grid-template-columns:1fr; gap:12px; }
@media (min-width:1000px){ .options{ grid-template-columns:1fr 1fr; gap:14px; } }

.option{
  display:flex; gap:15px; align-items:center; width:100%; text-align:left;
  background:var(--ink); color:var(--text);
  border:2px solid var(--line); border-radius:14px;
  padding:20px 22px; font-size:16px; line-height:1.5; cursor:pointer;
  box-shadow:0 3px 0 var(--line);
  transition:transform .1s ease, box-shadow .1s ease, border-color .15s ease, background .15s ease;
}
.option:hover:not(:disabled){ transform:translateY(-2px); box-shadow:0 5px 0 var(--accent-deep); border-color:var(--accent); background:var(--panel-2); }
.option:active:not(:disabled){ transform:translateY(2px); box-shadow:0 1px 0 var(--accent-deep); }
.option:disabled{ cursor:default; box-shadow:none; }
.option-label{ flex:1; }
.option::after{ content:"→"; flex:none; color:var(--muted-2); font-size:17px; transition:transform .15s ease, color .15s ease; }
.option:hover:not(:disabled)::after{ color:var(--accent); transform:translateX(3px); }
.option:disabled::after{ content:""; }

.option.eliminated{ opacity:.3; text-decoration:line-through; }
.option.is-right{ border-color:var(--good); background:color-mix(in srgb, var(--good) 12%, var(--ink)); box-shadow:0 3px 0 var(--good); }
.option.is-wrong{ border-color:var(--bad); background:color-mix(in srgb, var(--bad) 12%, var(--ink)); box-shadow:0 3px 0 var(--bad); }

.option-key{
  flex:none; width:30px; height:30px; border-radius:9px;
  background:var(--panel-2); color:var(--muted); border:1px solid var(--line);
  font-size:13px; font-weight:800; display:grid; place-items:center;
}
.option.is-right .option-key{ background:var(--good); color:var(--ink); border-color:var(--good); }
.option.is-wrong .option-key{ background:var(--bad); color:var(--ink); border-color:var(--bad); }

/* ============ LIFELINE ============ */
.lifelines{ display:flex; align-items:center; gap:16px; margin-top:26px; flex-wrap:wrap; }
.lifeline{
  background:var(--panel-2); border:2px dashed var(--line); color:var(--muted);
  padding:11px 20px; border-radius:100px; font-size:14px; font-weight:700; cursor:pointer;
  transition:color .15s ease, border-color .15s ease, transform .1s ease;
}
.lifeline:hover:not(:disabled){ color:var(--accent); border-color:var(--accent); transform:translateY(-2px); }
.lifeline:disabled{ opacity:.4; cursor:default; }
.lifeline-note{ font-size:13px; color:var(--muted-2); }

/* ============ REVEAL / RESULT ============ */
.verdict{ display:inline-block; font-size:13px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; padding:8px 16px; border-radius:8px; margin-bottom:22px; }
.verdict.right{ background:var(--good); color:var(--ink); }
.verdict.wrong{ background:var(--bad); color:var(--ink); }

.reveal-headline{ font-size:clamp(24px,2.8vw,34px); margin-bottom:18px; color:var(--accent); max-width:26ch; }
.reveal-body{ font-size:17px; margin:0 0 28px; max-width:var(--measure); }

.receipt{ background:var(--ink); border:2px solid var(--line); border-left:5px solid var(--accent); border-radius:0 14px 14px 0; padding:24px 26px; margin-bottom:30px; }
.receipt-label{ display:block; font-size:11px; letter-spacing:.18em; text-transform:uppercase; color:var(--accent); font-weight:800; margin-bottom:12px; }
.receipt p{ margin:0; font-size:15.5px; color:var(--muted); line-height:1.65; max-width:var(--measure); }

.result-card{ text-align:center; }
.result-kicker{ font-size:13px; letter-spacing:.18em; text-transform:uppercase; color:var(--muted-2); font-weight:700; margin:0 0 10px; }
.result-score{ font-family:var(--font-display); font-weight:var(--display-weight); font-size:clamp(64px,9vw,96px); color:var(--accent); line-height:1; margin-bottom:20px; }
.result-slash{ color:var(--line); margin:0 6px; }
#final-total{ color:var(--muted-2); }
.result-title{ font-size:clamp(28px,3.6vw,42px); margin-bottom:16px; }
.result-line{ font-size:17px; color:var(--muted); max-width:56ch; margin:0 auto 34px; }
.result-actions{ display:flex; flex-wrap:wrap; gap:14px; justify-content:center; }
.share-status{ font-size:14px; color:var(--good); min-height:20px; margin:20px 0 0; }

/* ============ ENGINE RESULT ============ */
.er-name{ font-size:clamp(28px,3.6vw,44px); color:var(--accent); margin-bottom:14px; max-width:22ch; }
.er-tagline{ font-size:19px; margin:0 0 32px; max-width:52ch; }
.er-grid{ display:grid; grid-template-columns:1fr; gap:18px; margin-bottom:18px; }
@media (min-width:1000px){ .er-grid{ grid-template-columns:1fr 1fr; gap:20px; align-items:start; } }
.er-block{ background:var(--ink); border:2px solid var(--line); border-radius:14px; padding:26px; }
.er-why{ margin:0; padding-left:20px; }
.er-why li{ font-size:15.5px; color:var(--muted); line-height:1.6; margin-bottom:11px; }
.er-why li:last-child{ margin-bottom:0; }
.er-runner{ font-size:14px; color:var(--muted-2); margin:18px 0 0; padding-top:16px; border-top:1px solid var(--line); }
.er-objection{ border-left:5px solid var(--bad); border-radius:0 14px 14px 0; }
.er-quote{ font-family:var(--font-display); font-weight:var(--display-weight); font-size:21px; line-height:1.32; margin:0 0 18px; }
.er-counter{ font-size:15.5px; color:var(--muted); line-height:1.65; margin:0; }
.er-reveal{ background:var(--accent-soft); border:2px solid var(--accent-deep); border-radius:14px; padding:30px; margin-bottom:30px; }
.er-reveal p{ font-size:16.5px; line-height:1.7; margin:0; max-width:var(--measure); }
.er-reveal-cta{ font-weight:700; color:var(--accent) !important; margin-top:16px !important; }

/* ============ FUN FACT ============ */
.fact-card{ position:relative; overflow:hidden; }
.fact-card::before{ content:""; position:absolute; top:-150px; right:-150px; width:380px; height:380px; pointer-events:none; background:radial-gradient(circle, var(--accent-soft), transparent 68%); }
.fact-card > *{ position:relative; }
.fact-count{ font-size:12px; letter-spacing:.18em; text-transform:uppercase; color:var(--muted-2); font-weight:700; margin:0 0 20px; }
.fact-text{ font-family:var(--font-display); font-weight:var(--display-weight); letter-spacing:var(--display-tracking); font-size:clamp(26px,3.4vw,40px); line-height:1.2; margin:0 0 20px; max-width:20ch; }
.fact-more{ font-size:16.5px; color:var(--muted); line-height:1.65; margin:0 0 32px; max-width:62ch; }

/* ============ RESUME — sticky rail on wide screens ============ */
.seeking-row{ display:flex; gap:16px; align-items:baseline; flex-wrap:wrap; padding:20px 26px; background:var(--ink); border:2px solid var(--line); border-radius:14px; margin-bottom:56px; }
.seeking-label{ font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:var(--muted-2); font-weight:700; }
.seeking-value{ font-size:16px; font-weight:700; color:var(--accent); }

.sub-head{ font-size:24px; margin-bottom:24px; padding-bottom:14px; border-bottom:2px solid var(--line); }
.skills{ list-style:none; padding:0; margin:0 0 56px; display:flex; flex-wrap:wrap; gap:10px; }
.skills li{ background:var(--ink); border:2px solid var(--line); padding:9px 17px; border-radius:100px; font-size:14.5px; }

.job{ margin-bottom:52px; }
.job-grid{ display:grid; grid-template-columns:1fr; gap:8px; }
@media (min-width:960px){
  .job-grid{ grid-template-columns:290px minmax(0,1fr); gap:40px; align-items:start; }
  .job-rail{ position:sticky; top:32px; }
}
.job-company{ font-family:var(--font-display); font-weight:var(--display-weight); font-size:23px; line-height:1.2; margin-bottom:8px; }
.job-dates{ font-size:14px; color:var(--accent); font-weight:600; display:block; margin-bottom:6px; }
.job-location{ font-size:14px; color:var(--muted-2); margin:0 0 20px; }

.role{ margin-bottom:34px; }
.role:last-child{ margin-bottom:0; }
.role-head{ display:flex; justify-content:space-between; align-items:baseline; gap:16px; flex-wrap:wrap; margin-bottom:16px; }
.role-title{ font-size:18px; font-weight:700; color:var(--accent); }
.role-dates{ font-size:13.5px; color:var(--muted-2); white-space:nowrap; }
.role ul{ margin:0; padding-left:20px; }
.role li{ font-size:15.5px; color:var(--muted); margin-bottom:13px; line-height:1.65; max-width:var(--measure); }
.role li:last-child{ margin-bottom:0; }

.edu-school{ font-family:var(--font-display); font-weight:var(--display-weight); font-size:21px; margin-bottom:6px; }
.edu-degree{ font-size:16px; color:var(--accent); margin:0 0 4px; }
.edu-meta{ font-size:14px; color:var(--muted-2); margin:0 0 18px; }
.edu-honors{ margin:0; padding-left:20px; }
.edu-honors li{ font-size:15.5px; color:var(--muted); margin-bottom:11px; line-height:1.65; max-width:var(--measure); }

/* ============ CONTACT ============ */
.contact-title{ font-size:clamp(34px,4.6vw,56px); margin-bottom:20px; }
.contact-line{ font-size:18px; color:var(--muted); max-width:58ch; margin:0 0 36px; }
.contact-links{ display:flex; flex-wrap:wrap; gap:14px; margin-bottom:56px; }
.contact-links a{
  display:inline-flex; align-items:center; gap:9px; padding:15px 26px; border-radius:12px;
  background:var(--panel-2); border:2px solid var(--line); color:var(--text);
  text-decoration:none; font-size:15.5px; font-weight:700;
  box-shadow:0 4px 0 var(--line);
  transition:transform .1s ease, box-shadow .1s ease, border-color .15s ease, color .15s ease;
}
.contact-links a:hover{ transform:translateY(-2px); box-shadow:0 6px 0 var(--accent-deep); border-color:var(--accent); color:var(--accent); }
.contact-links a:active{ transform:translateY(3px); box-shadow:0 1px 0 var(--accent-deep); }
.colophon{ font-size:13.5px; color:var(--muted-2); max-width:66ch; padding-top:30px; border-top:1px solid var(--line); margin:0; line-height:1.65; }

/* ============ FOCUS / MOTION ============ */
:focus-visible{ outline:3px solid var(--accent); outline-offset:3px; border-radius:6px; }
@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *{ transition:none !important; animation:none !important; }
  .btn:hover,.option:hover,.door:hover,.contact-links a:hover{ transform:none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width:700px){
  body{ font-size:16px; }
  .wrap,.wrap-wide{ padding:0 20px; }
  .hero{ padding:56px 0 52px; }
  .card{ padding:26px 22px; }
  .door{ padding:30px 24px; min-height:0; }
  .engine-section,.quiz-section,.facts-section,.resume-section,.contact{ padding:60px 0; }
  .hero-panel{ padding:24px; }
  .eyebrow{ font-size:11px; letter-spacing:.12em; }
  .hero-cta .btn{ width:100%; justify-content:center; }
}

/* ============ PRINT ============ */
@media print{
  body{ background:#fff; color:#000; font-size:11pt; }
  .hero,.engine-section,.quiz-section,.facts-section,.contact-links,.colophon,.skip-link{ display:none; }
  .resume-section{ background:#fff; border:0; padding:0; }
  .section-kicker,.seeking-row{ display:none; }
  .section-title,.sub-head,.job-company,.edu-school,.role-title,.edu-degree{ color:#000; }
  .role li,.edu-honors li,.section-lede,.job-dates{ color:#222; }
  .skills li{ border:1px solid #ccc; color:#000; }
  .job{ page-break-inside:avoid; }
  .job-grid{ grid-template-columns:1fr; }
}
