/* Sunspot Strategy website, round 3: warm daylight.
   Base: tokens, type, buttons, chips, fields, the Animation switch, the header, the live sun marks and the hero. */
:root{
  /* The look: a bright morning. Cream paper, white cards with one soft warm shadow, a live sun in a peach sky beside the hero, and a sunrise over the dark footer at the end. Sections stack on a 1280px frame, with deeper cream bands on a couple of them for rhythm. */
  --bg:#FBF6EE;
  --band:#F5E9D9;
  --card:#FFFFFF;
  --line:#EADBC8;
  --edge:#9A8471;
  --ink:#2A1A10;
  --ink-2:#5B4636;
  --ink-3:#7A6453;
  --sun:#FF8A3D;
  --gold:#FFC061;
  --ember:#B23A0B;
  --hot:#D9530F;
  --good:#1F7A4D;
  --fire:linear-gradient(100deg,#FFB547,#FF8A3D 55%,#F2702A);
  --shadow:0 1px 2px rgb(74 42 20 / .06),0 12px 28px -14px rgb(74 42 20 / .22);
  --shadow-up:0 2px 4px rgb(74 42 20 / .07),0 22px 40px -18px rgb(74 42 20 / .3);
  /* The drawn sun: the stand-in when WebGL is off, and the slider thumb */
  --sun-fb:radial-gradient(circle at 37% 39%,#1c0703 0 7%,transparent 8%),radial-gradient(circle at 62% 60%,#1c0703 0 5.5%,transparent 6.5%),radial-gradient(circle at 41% 69%,#1c0703 0 3%,transparent 4%),radial-gradient(circle,#8f2a0e 0%,#b53a14 48%,#e2661f 72%,#ffb443 90%,#ffebb0 100%);
  --f-body:"Bricolage Grotesque","Segoe UI",system-ui,-apple-system,sans-serif;
  --f-mark:"Bricolage Grotesque","Segoe UI",system-ui,-apple-system,sans-serif;
  --f-hand:"Caveat","Segoe Print","Bradley Hand",cursive;
  --ease:cubic-bezier(.33,1,.68,1);
  --land:cubic-bezier(.34,1.45,.72,.97);
  --pad:32px;
  --sp:128px;
  --sp-band:112px;
  --sun-d:460px;
  --sun-x:calc(50% + 380px);
  --sun-y:390px;
  --glow:760px 620px;
  color-scheme:light;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:calc(env(safe-area-inset-top,0px) + 92px)}
body{margin:0;background:var(--bg);color:var(--ink-2);font:400 17px/28px var(--f-body)}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:60;background:var(--bg)}
h1,h2,h3,h4,p,ol,ul,figure{margin:0}
ol,ul{padding:0;list-style:none}
h1,h2,h3,h4{color:var(--ink);font-family:var(--f-body)}
h3,h4{text-wrap:balance}
p{text-wrap:pretty}
a{color:inherit;text-decoration:none}
button,input,textarea{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
::selection{background:rgb(255 138 61 / .3);color:var(--ink)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.wrap{max-width:1280px;margin-inline:auto;padding-left:max(var(--pad),env(safe-area-inset-left,0px));padding-right:max(var(--pad),env(safe-area-inset-right,0px))}
.site{position:relative;overflow-x:clip;background:var(--bg)}

/* Type: one family (Bricolage Grotesque), with the wordmark in its Bold, plus Caveat for handwriting */
.eyebrow{font:600 14px/20px var(--f-body);letter-spacing:.01em;color:var(--ember)}
.meta{font:600 14px/20px var(--f-body);color:var(--ink-3)}
.lede{font-size:20px;line-height:32px;color:var(--ink-2)}
.h2{margin-top:14px;font:700 clamp(34px,4vw,56px)/1.05 var(--f-body);letter-spacing:-.015em;color:var(--ink);text-wrap:balance}
.big{font:700 clamp(40px,5.4vw,76px)/1.02 var(--f-body);letter-spacing:-.02em;color:var(--ink);text-wrap:balance}
.tx{color:var(--ink-2)}
.nobr{white-space:nowrap}
.ico{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Buttons: a sunny primary and a plain white secondary, both pills */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 26px;border:1px solid transparent;border-radius:999px;font:650 16px/1 var(--f-body);white-space:nowrap;cursor:pointer;transition:transform 200ms var(--ease),box-shadow 200ms var(--ease),border-color 200ms,background-color 200ms}
.btn svg{flex:none}
.btn.pri{background:var(--fire);color:#2A1206;border-color:#E5571B;box-shadow:0 1px 2px rgb(74 42 20 / .12),0 10px 22px -12px rgb(229 87 27 / .6)}
.btn.pri:hover{transform:translateY(-2px);box-shadow:0 2px 4px rgb(74 42 20 / .12),0 16px 28px -12px rgb(229 87 27 / .6)}
.btn.gh{background:#fff;color:var(--ink);border:1.5px solid var(--edge)}
.btn.gh:hover{transform:translateY(-2px);border-color:var(--ink-2);box-shadow:var(--shadow)}
.btn.sm{min-height:44px;padding:0 20px;font-size:15px}

/* Chips: picked ones get a peach fill and a drawn check, so the state never rests on color alone */
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 18px;border:1.5px solid var(--edge);border-radius:999px;background:#fff;color:var(--ink);font:600 15px/1 var(--f-body);cursor:pointer;transition:background-color 160ms,border-color 160ms}
.chip:hover{border-color:var(--ink-2)}
.chip[aria-pressed="true"]{padding-left:14px;background:#FFE2B8;border-color:#FF8A3D}
.chip[aria-pressed="true"]::before{content:"";flex:none;width:11px;height:6px;margin:-4px 1px 0;border-left:2px solid var(--ember);border-bottom:2px solid var(--ember);transform:rotate(-45deg)}

/* Text fields */
.field{display:block;width:100%;min-height:48px;margin-top:8px;padding:0 16px;border:1.5px solid var(--edge);border-radius:12px;background:#fff;color:var(--ink);font:500 17px/1.3 var(--f-body);transition:border-color 160ms,box-shadow 160ms}
.field::placeholder{color:var(--ink-3);opacity:1}
.field:focus{border-color:var(--ember);box-shadow:0 0 0 3px rgb(255 192 97 / .55)}
.field[aria-invalid="true"]{border-color:var(--ember)}
textarea.field{min-height:112px;padding-block:12px;resize:vertical;line-height:1.5}

/* The Animation switch: a real toggle button with a fixed label and a drawn track and knob */
.mtog{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0 6px;border:0;border-radius:999px;background:none;color:var(--ink-2);font:600 14px/1 var(--f-body);cursor:pointer}
.mtog-sw{position:relative;flex:none;width:42px;height:26px;border:1.5px solid var(--edge);border-radius:999px;background:#fff;transition:background-color 200ms,border-color 200ms}
.mtog-sw::after{content:"";position:absolute;left:3px;top:3px;width:17px;height:17px;border-radius:50%;background:var(--edge);transition:transform 220ms var(--ease),background-color 200ms}
.mtog[aria-pressed="true"] .mtog-sw{background:var(--fire);border-color:#E5571B}
.mtog[aria-pressed="true"] .mtog-sw::after{background:#fff;transform:translateX(16px);box-shadow:0 1px 3px rgb(120 40 8 / .45)}
.mtog:hover .mtog-sw{border-color:var(--ink-2)}
.mtog[aria-pressed="true"]:hover .mtog-sw{border-color:#B23A0B}

/* Header */
/* At the top of the page the header sits clear on the peach sky; once the page scrolls, a cream glass bar and hairline fade in */
.bar{position:sticky;top:env(safe-area-inset-top,0px);z-index:30;background:rgb(251 246 238 / 0);border-bottom:1px solid transparent;transition:background-color 300ms,border-color 300ms,-webkit-backdrop-filter 300ms,backdrop-filter 300ms}
.bar.scrolled{background:rgb(251 246 238 / .85);-webkit-backdrop-filter:blur(14px) saturate(1.2);backdrop-filter:blur(14px) saturate(1.2);border-bottom-color:var(--line)}
.bar .wrap{display:flex;align-items:center;gap:8px 20px;min-height:76px;padding-block:10px}
.brand{display:inline-flex;align-items:center;gap:12px;min-height:44px;margin-right:auto;border-radius:12px;color:var(--ink)}
.bar .mk{--s:38px}
.wordmark{font:700 26px/1 var(--f-mark);letter-spacing:-.035em;white-space:nowrap}
.nav{display:flex;gap:2px}
.nl{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border-radius:999px;font:600 15px/1 var(--f-body);color:var(--ink-2);transition:color 160ms,background-color 160ms}
.nl:hover{color:var(--ink);background:rgb(255 192 97 / .28)}

/* Live marks: a canvas fed by the sun renderer, with a drawn sun when WebGL is off */
.mk{position:relative;display:block;flex:none;width:var(--s,36px);height:var(--s,36px)}
.mk canvas{display:block;width:100%;height:100%}
.mk .fb,.sun .fb,.horizon .fb{display:none;position:absolute;border-radius:50%;background:var(--sun-fb);box-shadow:0 0 12px rgb(255 168 80 / .55)}
.mk .fb{inset:8%}
.nogl .mk .fb,.nogl .sun .fb,.nogl .horizon .fb{display:block}
.nogl .mk canvas,.nogl .sun canvas,.nogl .horizon canvas{display:none}

/* Sky: the hero sun in a warm morning glow */
.sky{position:absolute;inset:0 0 auto;height:900px;z-index:0;pointer-events:none;overflow:hidden;background:radial-gradient(var(--glow) at var(--sun-x) var(--sun-y),#FFD48A,rgb(255 212 138 / .4) 40%,transparent 70%),linear-gradient(#FFF0DA,var(--bg) 640px);-webkit-mask-image:linear-gradient(#000 70%,transparent);mask-image:linear-gradient(#000 70%,transparent)}
.sun{position:absolute;left:calc(var(--sun-x) - var(--sun-d) * .8065);top:calc(var(--sun-y) - var(--sun-d) * .8065);width:calc(var(--sun-d) * 1.613);height:calc(var(--sun-d) * 1.613)}
.sun canvas{display:block;width:100%;height:100%}
.sun .fb{inset:19%;box-shadow:0 0 80px 24px rgb(255 178 84 / .55)}

/* Hero */
.hero{position:relative;z-index:2;padding-top:112px}
.hero-copy{max-width:680px}
.hero h1{margin-top:18px;font:700 clamp(40px,4.4vw,64px)/1.02 var(--f-body);letter-spacing:-.02em;color:var(--ink);text-wrap:balance}
.hero h1 .hot{display:block;color:var(--hot)}
.hero .lede{margin-top:24px;max-width:600px}
.ctas{margin-top:36px;display:flex;flex-wrap:wrap;gap:12px}
