:root {
  color-scheme: light;
  --ground: #FFF9E3;
  --panel: #FFFFFF;
  --ink: #1E1E1E;
  --ink-soft: #4A4A4A;
  --mint: #D6F0D2;
  --sky: #D4EBFD;
  --blush: #FFD9D3;
  --butter: #FFEB94;
  --green: #34A853;
  --blue: #4285F4;
  --red: #EF4343;
  --sun: #FFD600;
  --ph-bg: #FFE14D;
  --line: 2.5px solid var(--ink);
  --r: 22px;
  --display: "Grandstander", "Comic Sans MS", "Trebuchet MS", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  background: var(--ground); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  padding-inline: 18px;
}
.wrap { max-width: 1080px; margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.6rem); }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
/* .ph = yellow placeholder highlight (unused once text is filled in) */
.ph { background: var(--ph-bg); border-radius: 6px; padding: 0 .3em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.panel { background: var(--panel); border: var(--line); border-radius: var(--r); }

/* Nav */
nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 20px; flex-wrap: wrap; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.35rem; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.mark { width: 46px; height: 46px; flex: none; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.brand:hover .mark { transform: rotate(-8deg) scale(1.06); }
.navlinks { display: flex; gap: 8px; font-weight: 600; font-size: .95rem; flex-wrap: wrap; }
.navlinks a { text-decoration: none; padding: 6px 14px; border-radius: 999px; border: 2px solid transparent; }
.navlinks a:hover { border-color: var(--ink); background: var(--panel); }

/* Hero: two comic panels */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-block: 8px 20px; }
.hero-text { background: var(--butter); padding: clamp(26px, 4.5vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.hero-text h1 { font-size: clamp(2.4rem, 5.6vw, 3.9rem); margin-block: 10px 16px; }
.hero-text .lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 30em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { background: var(--panel); border: 2px solid var(--ink); border-radius: 999px; padding: 5px 14px; font-size: .9rem; font-weight: 600; }
.chip.open { background: var(--mint); }
.chip.open::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--green); margin-right: 8px; vertical-align: 0; }
.cta { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; padding: 13px 24px; border-radius: 999px; border: 2.5px solid var(--ink); transition: transform .15s, background .15s, color .15s; }
.cta:hover { background: var(--sun); color: var(--ink); transform: translateY(-2px); }

.scene { background: var(--sky); overflow: hidden; position: relative; min-height: 320px; }
.scene svg { display: block; width: 100%; height: 100%; }
.hint { position: absolute; right: 16px; top: 14px; font-family: var(--display); font-weight: 600; font-size: .92rem; background: var(--panel); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px; pointer-events: none; transition: opacity .4s; }
.hint.gone { opacity: 0; }

/* Sun interaction */
#sun { cursor: pointer; }
#sun:focus { outline: none; }
#sun:focus-visible .sun-disc { stroke: var(--blue); stroke-width: 6; }
.sun-body { transform-origin: 250px 120px; transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
#sun:hover .sun-body { transform: scale(1.08); }
.rays { transform-origin: 250px 120px; }
.face-happy { opacity: 0; transition: opacity .2s; }
.scene.beam .face-calm { opacity: 0; }
.scene.beam .face-happy { opacity: 1; }
.scene.beam .sun-body { transform: scale(1.22); }
.cloud { transition: transform 1.4s cubic-bezier(.4,0,.2,1); }
.scene.beam .cloud-a { transform: translateX(-70px); }
.scene.beam .cloud-b { transform: translateX(80px); }
.wing { transform-box: fill-box; transform-origin: center; }
.fly { transition: transform 1.2s cubic-bezier(.4,0,.2,1); }
.scene.beam .fly-a { transform: translate(40px,-40px); }
.scene.beam .fly-b { transform: translate(-50px,-30px); }
.window-glow { opacity: 0; transition: opacity .6s; }
.scene.beam .window-glow { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .rays { animation: spin 36s linear infinite; }
  .scene.beam .rays { animation-duration: 4s; }
  .wing { animation: flap .5s ease-in-out infinite alternate; }
  .bob-a { animation: bob 4s ease-in-out infinite; }
  .bob-b { animation: bob 5s ease-in-out -2s infinite; }
  .drift { animation: drift 9s ease-in-out infinite alternate; }
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes flap { to { transform: scaleX(.55); } }
  @keyframes bob { 50% { transform: translateY(-10px); } }
  @keyframes drift { to { transform: translateX(18px); } }
}

section { padding-block: 64px 8px; }
.sec-head { display: grid; gap: 8px; margin-bottom: 26px; }

/* About */
.about { display: grid; grid-template-columns: 1.05fr .95fr; gap: 14px; }
.about .text { padding: clamp(24px, 4vw, 40px); display: grid; gap: 16px; align-content: center; }
.about .text p:first-of-type { font-size: 1.18rem; }
.art { overflow: hidden; }
.art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.art.mint { background: var(--mint); }
.art.blush { background: var(--blush); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.value { padding: 24px; display: grid; gap: 8px; align-content: start; }
.value.v1 { background: var(--mint); } .value.v2 { background: var(--sky); } .value.v3 { background: var(--blush); }
.value h3 { font-size: 1.3rem; }
.value p { color: var(--ink-soft); font-size: .98rem; }
.badge { width: 44px; height: 44px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--panel); display: grid; place-items: center; }
.badge svg { width: 22px; height: 22px; }

/* Day */
.day { padding: clamp(22px, 4vw, 40px); }
.day-top { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .88rem; font-weight: 600; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); margin-right: 6px; vertical-align: -1px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 84px 30px 1fr; gap: 14px; }
.time { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; padding-top: 1px; }
.rail { position: relative; display: flex; justify-content: center; }
.rail::before { content: ""; position: absolute; top: 0; bottom: 0; width: 2.5px; background: var(--ink); opacity: .18; }
.timeline li:first-child .rail::before { top: 12px; }
.timeline li:last-child .rail::before { bottom: calc(100% - 12px); }
.rail span { position: relative; width: 18px; height: 18px; margin-top: 5px; border-radius: 50%; border: 2.5px solid var(--ink); background: var(--mint); }
.timeline li.meal .rail span { background: var(--sun); }
.timeline li.rest .rail span { background: var(--sky); }
.step { padding-bottom: 24px; }
.step h3 { font-size: 1.12rem; font-weight: 600; }
.step p { color: var(--ink-soft); font-size: .98rem; max-width: 36em; }

/* Details */
.details { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; }
.facts { padding: 8px 28px; margin: 0; }
.fact { display: grid; grid-template-columns: 8.5em 1fr; gap: 14px; padding-block: 15px; border-bottom: 2px dashed #E3DCC4; }
.fact:last-child { border-bottom: 0; }
.fact dt { font-weight: 700; }
.fact dd { margin: 0; color: var(--ink-soft); }
.included { background: var(--mint); padding: 28px; }
.included h3 { font-size: 1.4rem; margin-bottom: 14px; }
.included ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.included li { padding-left: 30px; position: relative; }
.included li::before { content: ""; position: absolute; left: 0; top: .28em; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); background: var(--panel); }
.included li::after { content: ""; position: absolute; left: 5px; top: .55em; width: 8px; height: 4px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-card { background: var(--butter); padding: clamp(24px, 4.5vw, 48px); display: grid; gap: 18px; align-content: center; }
.contact-card .lede { color: var(--ink-soft); max-width: 30em; }
.ways { display: grid; gap: 10px; }
.way { background: var(--panel); border: 2px solid var(--ink); border-radius: 16px; padding: 12px 18px; display: grid; gap: 1px; }
.way small { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.way a, .way .v { font-family: var(--display); font-weight: 700; font-size: 1.15rem; text-decoration: none; word-break: break-word; }
.way a:hover { text-decoration: underline; }
.tip { font-size: .92rem; color: var(--ink-soft); }

.foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.foot-brand .mark { width: 30px; height: 30px; }
footer { padding-block: 40px 44px; font-size: .9rem; color: var(--ink-soft); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

@media (max-width: 820px) {
  .hero, .about, .details, .contact { grid-template-columns: 1fr; }
  .scene { min-height: 0; aspect-ratio: 5 / 4; max-width: 100%; }
  .values { grid-template-columns: 1fr; }
  .art { max-height: 360px; }
  section { padding-block: 48px 4px; }
}
@media (max-width: 520px) {
  .navlinks { display: none; }
  .brand { font-size: 1.15rem; }
  .timeline li { grid-template-columns: 58px 24px 1fr; gap: 10px; }
  .time { font-size: .9rem; }
  .fact { grid-template-columns: 1fr; gap: 2px; }
  .facts { padding: 6px 20px; }
}
