:root {
  color-scheme: light;
  --background: #f4f2eb;
  --paper: #fffdf7;
  --ink: #222d25;
  --muted: #536158;
  --muted-strong: #3e5246;
  --line: #dbddd0;
  --forest: #263e32;
  --forest-deep: #1b3327;
  --soft-green: #e5ebdd;
  --sage: #cada9e;
  --lilac: #d6c9e7;
  --peach: #f0c6aa;
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  line-height: 1.45;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--background); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button, summary, label { -webkit-tap-highlight-color: transparent; }
button:focus-visible, summary:focus-visible, textarea:focus-visible {
  outline: 3px solid #7a4a8c;
  outline-offset: 3px;
}
.site { width: min(100% - 64px, 1056px); margin: 0 auto; }
.top {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--forest); font-size: 15px; font-weight: 720; }
.brand b, .site-footer b { color: #667864; }
.brand-mark {
  display: grid;
  place-items: center;
  position: relative;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: var(--forest);
  flex: none;
}
.brand-mark i { position: absolute; width: 17px; height: 9px; border: 1px solid var(--sage); border-radius: 50%; transform: rotate(0deg); }
.brand-mark i:nth-child(2) { transform: rotate(60deg); }
.brand-mark i:nth-child(3) { transform: rotate(120deg); }
.top time { color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }

.layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.78fr) minmax(0, 1.62fr);
  min-height: 570px;
  border: 1px solid #d7d9ca;
  border-radius: 28px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 22px 60px -38px #273d33aa;
}
.side {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  isolation: isolate;
  overflow: hidden;
  padding: 34px 32px;
  color: #f4f6e8;
  background:
    radial-gradient(ellipse at 80% 80%, #355340 0, transparent 70%),
    linear-gradient(142deg, #253e32, #1d3429 73%);
}
.side-copy { position: relative; z-index: 1; }
.side-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; font-weight: 650; color: #d6dfce; }
.tiny-dot { width: 7px; height: 7px; background: var(--sage); border-radius: 50%; }
.side-copy p { margin: 22px 0 0; font: 400 clamp(34px, 4.5vw, 56px)/.99 Georgia, serif; letter-spacing: -.065em; }
.period { color: var(--sage); }
.art { position: absolute; top: 47%; left: 53%; width: 300px; height: 236px; transform: translate(-50%, -26%) rotate(-17deg); pointer-events: none; }
.art-orbit {
  position: absolute; inset: 9% 7%; border: 1px solid #e9edc548; border-radius: 50%;
  transform: rotate(-17deg); box-shadow: inset 0 0 32px #d0dc9c17, 0 0 36px #d0dc9c12;
}
.art-orbit-two { inset: 3%; transform: rotate(11deg); }
.art-orbit-three { inset: -3% 0; transform: rotate(41deg); }
.art-circle { position: absolute; width: 116px; aspect-ratio: 1; border-radius: 50%; border: 1px solid #fcf6de96; mix-blend-mode: screen; opacity: .83; }
.art-circle-a { top: 23%; left: 20%; background: radial-gradient(circle at 38% 32%, #d8e5a6, #657f41 83%); }
.art-circle-b { top: 16%; right: 21%; background: radial-gradient(circle at 75% 32%, #dbc9ea, #76648f 83%); }
.art-circle-c { bottom: 11%; left: 33%; background: radial-gradient(circle at 52% 82%, #f2c6aa, #a77463 83%); }
.art-center { position: absolute; top: 49%; left: 49%; width: 5px; height: 5px; border-radius: 50%; background: #fffde0; }

.panel { min-width: 0; display: flex; flex-direction: column; }
#screen { display: flex; flex: 1; }
.body { width: 100%; padding: 29px clamp(26px, 5vw, 62px) 34px; animation: appear .24s ease-out; }
@keyframes appear { from { opacity: .5; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.welcome { align-self: center; padding-top: 64px; padding-bottom: 64px; }
.eyebrow {
  display: inline-flex; gap: 8px; align-items: center; color: var(--muted-strong); font-size: 12px;
  font-weight: 740; letter-spacing: .075em; text-transform: uppercase;
}
.clock { display: inline-block; position: relative; width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 50%; }
.clock::after { content: ""; position: absolute; width: 4px; height: 5px; left: 5px; top: 2px; border-left: 1px solid; border-bottom: 1px solid; }
h1, h2, p { overflow-wrap: anywhere; }
h1 {
  margin: 8px 0 10px;
  font: 400 clamp(33px, 4.55vw, 55px)/1.02 Georgia, "Times New Roman", serif;
  letter-spacing: -.052em;
}
h1:focus { outline: none; }
.welcome h1 { margin: 15px 0 17px; font-size: clamp(57px, 8.5vw, 96px); line-height: .9; }
.welcome h1 em { font-weight: 400; color: #52674c; }
.intro { max-width: 36ch; margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.welcome .intro { font-size: 17px; max-width: 34ch; }
.welcome-flow { display: flex; flex-wrap: wrap; gap: 8px; margin: 25px 0 29px; padding: 0; list-style: none; }
.welcome-flow li { display: flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 50px; font-size: 12px; font-weight: 650; }
.welcome-flow i { width: 8px; height: 8px; border-radius: 50%; background: #a9bf83; }
.welcome-flow li:nth-child(2) i { background: #b6a1cf; }
.welcome-flow li:nth-child(3) i { background: #d69372; }

#progress { padding: 25px clamp(26px, 5vw, 62px) 0; }
.progress-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: 0; padding: 0; list-style: none; }
.progress-list li { position: relative; padding-top: 9px; color: var(--muted); font-size: 12px; font-weight: 630; }
.progress-list li::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; border-radius: 8px; background: #e1e2d8; }
.progress-list .done::before { background: #adbd97; }
.progress-list [aria-current="step"] { color: var(--forest); font-weight: 770; }
.progress-list [aria-current="step"]::before { background: var(--forest); }

fieldset { margin: 0 0 17px; border: 0; padding: 0; min-width: 0; }
legend, .legend { padding: 0; margin: 0 0 8px; font-size: 14px; font-weight: 720; }
.optional { color: var(--muted); font-size: 12px; font-weight: 500; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.options label, .scale label, .chips label { position: relative; display: flex; cursor: pointer; min-width: 0; }
.options input, .scale input, .chips input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.choice, .number, .chip {
  display: flex; align-items: center; justify-content: center; flex: 1; gap: 8px;
  padding: 8px 11px; min-height: 44px; min-width: 0; border-radius: 11px;
  border: 1px solid var(--line); background: #fffefa; font-size: 14px; font-weight: 620;
}
.choice { justify-content: flex-start; }
.choice .mood-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--mood-color); border: 1px solid #263e3235; }
.choice-text { min-width: 0; overflow-wrap: anywhere; }
.options input:checked + .choice, .scale input:checked + .number, .chips input:checked + .chip {
  border-color: #608164; background: var(--soft-green); box-shadow: inset 0 0 0 1px #608164; color: var(--forest-deep);
}
.options input:focus-visible + .choice, .scale input:focus-visible + .number, .chips input:focus-visible + .chip { outline: 3px solid #7a4a8c; outline-offset: 2px; }
@media (hover: hover) {
  .options label:hover > .choice, .scale label:hover > .number, .chips label:hover > .chip { border-color: #739178; }
  .primary:hover { background: #365744; }
  .secondary:hover { background: #e9ede2; }
  .back:hover { color: #192e24; text-decoration: underline; }
}
.scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.scale-endpoints { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin: 5px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { min-height: 44px; border-radius: 22px; font-weight: 560; padding-inline: 13px; }
.explore-note { margin: 0 0 16px; }
summary { width: fit-content; min-height: 44px; display: list-item; align-content: center; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--forest); }
.note-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
textarea { resize: vertical; width: 100%; max-width: 100%; min-height: 68px; padding: 9px 11px; border-radius: 10px; border: 1px solid #8b9b8a; color: var(--ink); background: #fffefa; font-size: 16px; }

.actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 22px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 15px;
  min-height: 46px; padding: 10px 17px; border: 1px solid transparent; border-radius: 24px;
  font-size: 14px; font-weight: 720;
}
.primary { background: var(--forest); color: #fffdf7; }
.primary span, .back span { font-size: 17px; line-height: 1; }
.back { background: transparent; color: var(--muted-strong); padding-inline: 2px; gap: 6px; }
.secondary { background: transparent; color: var(--forest); border-color: #8b9b8a; }
.error { color: #91392d; font-size: 13px; margin: 5px 0 -7px; font-weight: 650; }
.field-error { color: #91392d; }

.practice { background: #eeece0; border: 1px solid #dedecf; border-radius: 16px; padding: 17px 18px; }
.practice h2 { margin: 0 0 7px; font-size: 21px; line-height: 1.15; letter-spacing: -.02em; }
.practice p { margin: 0; color: var(--muted-strong); font-size: 15px; }
.practice strong { color: var(--forest); }
.express-options { grid-template-columns: 1fr; }
.express-options .choice { padding: 10px 12px; gap: 10px; }
.express-options small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.option-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid #788a78; flex: none; }
input:checked + .choice .option-dot { border: 4px solid #4b6c51; background: var(--paper); }
.result .intro { margin-bottom: 13px; }
.recap { display: grid; grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)); gap: 9px; margin: 0 0 13px; }
.recap div { border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; min-width: 0; }
.recap dt { font-size: 11px; color: var(--muted); font-weight: 680; }
.recap dd { margin: 2px 0 0; font-size: 14px; font-weight: 690; overflow-wrap: anywhere; }
.result .practice { background: #e8eddf; border-color: #d4dfcf; margin-bottom: 12px; }
.result .practice .eyebrow { margin-bottom: 5px; }
.result-note { margin: 0 0 13px; color: var(--muted); font-size: 13px; white-space: pre-wrap; }
.result .actions { margin-top: 12px; }
.reflection { margin-top: 7px; }
.reflection fieldset { margin: 5px 0 0; }
.reflection-status { margin: 7px 0 0; color: var(--muted-strong); font-size: 13px; }
.resource { margin-top: 6px; }
.resource p { margin: 0 0 9px; color: var(--muted); font-size: 14px; }
.skip-action { margin-top: 5px; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.site-footer { display: flex; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; padding: 14px 2px 20px; color: var(--muted); font-size: 12px; }
.about { flex-basis: 100%; }
.about p { max-width: 76ch; margin: 0 0 8px; }
.about a { color: var(--forest); text-underline-offset: 3px; }

@media (max-width: 760px) {
  .site { width: min(100% - 32px, 600px); }
  .top { min-height: 66px; }
  .layout { grid-template-columns: minmax(0, 1fr); min-height: 0; border-radius: 22px; }
  .side { min-height: 77px; padding: 18px 24px; justify-content: center; }
  .side-copy p { display: none; }
  .art { left: auto; right: -66px; top: 50%; transform: translateY(-50%) rotate(-18deg) scale(.57); }
  .welcome { padding-block: 42px; }
  .welcome h1 { font-size: clamp(58px, 13vw, 79px); }
}
@media (max-width: 420px) {
  .site { width: calc(100% - 24px); }
  .top { min-height: 60px; }
  .brand { gap: 8px; font-size: 13px; }
  .brand-mark { width: 32px; height: 32px; }
  .top time { font-size: 11px; }
  .side { padding-inline: 18px; min-height: 62px; }
  #progress { padding: 20px 16px 0; }
  .body { padding: 25px 16px; }
  .welcome { padding-block: 34px; }
  .welcome .primary { width: 100%; }
  .welcome .intro { font-size: 16px; }
  .progress-list li { font-size: 11px; }
  .choice { gap: 6px; padding-inline: 8px; font-size: 13px; }
  .choice .mood-dot { width: 10px; height: 10px; }
}
@media (prefers-reduced-motion: reduce) { .body { animation: none; } }
