:root {
  color-scheme: light;
  --paper: #f6f2e9;
  --paper-deep: #ede7db;
  --ink: #202a28;
  --muted: #5d6963;
  --line: #c9c9bd;
  --accent: #ec5c43;
  --green: #467e68;
  --mono: SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", Georgia, serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
[tabindex="-1"]:focus { outline: none; }

.site-wrap { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.site-header, .site-footer, main { width: min(100% - 96px, 1320px); margin-inline: auto; }
.site-header { min-height: 108px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--ink); gap: 24px; }
body[data-view="quiz"] .site-header, body[data-view="calculating"] .site-header, body[data-view="result"] .site-header { min-height: 72px; }
body[data-view="quiz"] .site-footer, body[data-view="calculating"] .site-footer, body[data-view="result"] .site-footer { display: none; }
.brand { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 13px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; position: relative; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; background: var(--ink); }
.brand-mark::before { width: 1px; height: 34px; }
.brand-mark::after { height: 1px; width: 34px; }
.brand-mark span { width: 9px; height: 9px; background: var(--accent); transform: rotate(45deg); z-index: 1; }
.brand-text { font: 500 10px/1.55 var(--mono); letter-spacing: .075em; }
.header-note, .site-footer, .instrument-top, .eyebrow, .quiz-topline > span:last-child, .quiz-footnote, .result-topline > span:last-child, .result-kicker, .disclaimer, .axis-label, .coordinate, .direction-tag { font-family: var(--mono); }
.header-note { font-size: 10px; letter-spacing: .07em; }
.header-note span { color: var(--accent); font-size: 17px; margin-left: 6px; }
main { flex: 1; }

.intro { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(400px, .97fr); gap: clamp(32px, 5vw, 85px); align-items: center; min-height: calc(100dvh - 176px); padding-block: 40px 44px; }
.intro-copy { max-width: 650px; }
.eyebrow { display: inline-flex; align-items: center; gap: 11px; margin: 0; font-size: 10px; font-weight: 500; letter-spacing: .12em; }
.eyebrow-line { display: inline-block; width: 30px; height: 1px; background: var(--accent); }
h1, h2, p { margin-top: 0; }
h1 { font: 400 clamp(44px, 5vw, 74px)/1.12 var(--serif); letter-spacing: -.067em; margin: 28px 0 27px; }
h1 em { color: var(--green); font-weight: 400; }
.intro-actions, .result-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 28px; border: 1px solid var(--ink); padding: 13px 18px; color: inherit; text-decoration: none; font-weight: 700; font-size: 13px; letter-spacing: .015em; transition: background .18s ease, color .18s ease, transform .18s ease; }
.button, .answer-option { user-select: none; -webkit-user-select: none; }
.button:not(:disabled):hover { transform: translateY(-2px); }
.button:focus-visible, .brand:focus-visible, .answer-option:focus-within { outline: 3px solid var(--accent); outline-offset: 4px; }
.button-primary { background: var(--ink); color: var(--paper); }
.button-primary:hover:not(:disabled) { background: var(--accent); color: var(--ink); }
.button-primary span { font-size: 18px; font-weight: 400; line-height: 1; }
.button-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.button-quiet:hover:not(:disabled) { border-color: var(--ink); background: var(--paper-deep); }
.button:disabled { cursor: not-allowed; opacity: .42; }
.time-note { font: 500 14px/1.5 var(--mono); color: var(--ink); white-space: nowrap; }
.time-note span { margin-inline: 7px; }
.method-note { display: flex; align-items: baseline; gap: 9px; font: 500 14px/1.5 var(--mono); color: var(--ink); margin: 29px 0 0; }
.method-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: 0 0 8px; }

.instrument { border: 1px solid var(--ink); width: min(100%, 520px); justify-self: end; aspect-ratio: 1 / 1.02; display: flex; flex-direction: column; box-shadow: 9px 9px 0 #ded8ca; background: var(--paper-deep); }
.instrument-top { min-height: 48px; padding: 0 18px; display: flex; align-items: center; border-bottom: 1px solid var(--ink); font-size: 13px; line-height: 1.35; letter-spacing: .03em; }
.instrument-field { position: relative; flex: 1; overflow: hidden; background-color: #f1ecdf; background-image: linear-gradient(to right, rgba(62, 83, 74, .09) 1px, transparent 1px), linear-gradient(to bottom, rgba(62, 83, 74, .09) 1px, transparent 1px); background-size: 25px 25px; }
.axis { position: absolute; z-index: 1; background: rgba(32, 42, 40, .52); }
.axis-horizontal { height: 1px; left: 0; right: 0; top: 50%; }
.axis-vertical { width: 1px; top: 0; bottom: 0; left: 50%; }
.ring { position: absolute; border: 1px solid rgba(32, 42, 40, .62); border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.ring-outer { width: 64%; aspect-ratio: 1; }
.ring-inner { width: 37%; aspect-ratio: 1; border-style: dashed; opacity: .6; }
.tick { position: absolute; z-index: 2; background: var(--ink); }
.tick-top, .tick-bottom { width: 1px; height: 12px; left: 50%; }
.tick-top { top: 18%; }.tick-bottom { bottom: 18%; }
.tick-left, .tick-right { height: 1px; width: 12px; top: 50%; }
.tick-left { left: 18%; }.tick-right { right: 18%; }
.axis-label { position: absolute; font-size: 13px; letter-spacing: .04em; z-index: 2; background: var(--paper-deep); padding: 3px 6px; }
.label-top { top: 7%; left: 50%; transform: translateX(-50%); }
.label-bottom { bottom: 7%; left: 50%; transform: translateX(-50%); }
.label-left { left: 2%; top: 50%; transform: translateY(-50%) rotate(-90deg); }
.label-right { right: 1%; top: 50%; transform: translateY(-50%) rotate(90deg); }
.needle { position: absolute; z-index: 3; top: 50%; left: 50%; height: 40%; width: 8%; transform: translate(-50%, -50%) rotate(37deg); filter: drop-shadow(2px 4px 2px rgba(32, 42, 40, .22)); animation: searching 8s ease-in-out infinite alternate; }
.needle::before, .needle::after { content: ""; position: absolute; left: 0; width: 100%; height: 50%; }
.needle::before { top: 0; background: var(--accent); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.needle::after { bottom: 0; background: var(--ink); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.needle-center { position: absolute; z-index: 2; width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.coordinate { position: absolute; z-index: 2; font-size: 13px; letter-spacing: .02em; color: var(--ink); }
.coordinate-one { top: 12%; left: 7%; }.coordinate-two { bottom: 12%; right: 6%; }
.coordinate-three { top: 12%; right: 6%; }.coordinate-four { bottom: 12%; left: 7%; }
@keyframes searching { from { transform: translate(-50%, -50%) rotate(37deg); } to { transform: translate(-50%, -50%) rotate(-31deg); } }

.quiz { max-width: 980px; padding: 22px 0 24px; margin-inline: auto; }
.quiz-topline, .result-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.quiz-topline { justify-content: flex-end; }
.quiz-topline > span:last-child, .result-topline > span:last-child { font-size: 10px; letter-spacing: .07em; }
.progress-track { height: 4px; background: var(--paper-deep); border: 1px solid var(--line); margin: 12px 0 18px; overflow: hidden; }
.progress-track span { display: block; height: 100%; background: var(--accent); transition: width .25s ease; }
.quiz-card { border: 1px solid var(--ink); background: #faf8f1; padding: clamp(22px, 3vh, 38px); box-shadow: 7px 7px 0 #e2dccf; }
.quiz-card h2 { font: 400 clamp(26px, 2.6vw, 38px)/1.24 var(--serif); letter-spacing: -.04em; max-width: 780px; min-height: 3lh; margin-bottom: 12px; }
.quiz-message { border-left: 3px solid var(--accent); background: #efe7d9; padding: 12px 15px; margin-bottom: 25px; font-size: 13px; line-height: 1.55; }
.answer-list { border: 0; padding: 0; margin: 0; display: grid; gap: 7px; }
.answer-option { min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 8px 15px 8px 12px; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--tone); cursor: pointer; font-size: 14px; font-weight: 600; transition: background .15s ease, border-color .15s ease; }
.answer-option[data-tone="agree"] { --tone: #78a58b; }
.answer-option[data-tone="neutral"] { --tone: #aab2aa; }
.answer-option[data-tone="disagree"] { --tone: #c78c86; }
.answer-option:hover { background: #f0ede4; }
.answer-option:has(input:checked) { background: #eeece4; border-color: #aeb5aa; border-left-color: var(--tone); }
.answer-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.answer-marker { width: 19px; height: 19px; border: 1px solid var(--tone); border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; margin-left: 14px; }
.answer-option:has(input:checked) .answer-marker { border-color: var(--tone); }
.answer-option:has(input:checked) .answer-marker::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--tone); }
.quiz-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 18px; }
.quiz-actions .button { min-height: 44px; }
.quiz-footnote { text-align: center; font-size: 10px; color: var(--muted); margin: 16px 0 0; }

.calculating { min-height: calc(100dvh - 72px); padding: 40px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.calculating-dial { width: 150px; aspect-ratio: 1; position: relative; border: 1px solid var(--ink); border-radius: 50%; background: var(--paper-deep); }
.calculating-dial::before, .calculating-dial::after { content: ""; position: absolute; background: var(--line); }
.calculating-dial::before { height: 1px; left: 0; right: 0; top: 50%; }
.calculating-dial::after { width: 1px; top: 0; bottom: 0; left: 50%; }
.calculating-ring { position: absolute; inset: 18%; border: 1px dashed var(--line); border-radius: 50%; }
.calculating-dial .needle { height: 52%; width: 12%; animation: calculating-spin 2.4s ease-in-out infinite; }
.calculating h2 { font: 400 46px/1.15 var(--serif); letter-spacing: -.05em; margin: 28px 0 22px; }
.calculating-track { width: 180px; height: 4px; border: 1px solid var(--line); overflow: hidden; }
.calculating-track span { display: block; width: 0; height: 100%; background: var(--accent); animation: calculating-fill 2.4s linear forwards; }
@keyframes calculating-spin { from { transform: translate(-50%, -50%) rotate(-135deg); } to { transform: translate(-50%, -50%) rotate(225deg); } }
@keyframes calculating-fill { to { width: 100%; } }

.result { padding: 24px 0; }
.result-topline { border-bottom: 1px solid var(--ink); padding-bottom: 12px; }
.result-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); grid-template-areas: "copy visual" "after visual"; column-gap: clamp(30px, 4vw, 60px); align-items: start; padding: 30px 0 25px; }
.result-copy { grid-area: copy; align-self: end; }
.result-layout > .result-compass, .result-layout > .result-visual { grid-area: visual; align-self: center; }
.result-after-compass { grid-area: after; align-self: start; }
.result-kicker { color: var(--green); font-size: 10px; letter-spacing: .12em; margin-bottom: 18px; }
@media (min-width: 701px) { .result-page .result-kicker { font-size: 14px; line-height: 1.4; } }
.result h2 { font: 400 clamp(50px, 5vw, 76px)/1.12 var(--serif); letter-spacing: -.07em; margin-bottom: 18px; }
.result-visual { position: relative; width: min(100%, 420px); padding-top: 80px; justify-self: end; }
.result-visual .result-compass { width: 100%; }
.result-wow-crop, .result-yikes-crop { position: absolute; z-index: 5; top: 0; right: 20px; width: 120px; height: 120px; overflow: hidden; border: 1px solid var(--ink); border-radius: 50%; box-shadow: 5px 5px 0 #ded8ca; background: var(--ink); }
.result-wow { position: absolute; top: 0; left: 50%; display: block; width: auto; max-width: none; height: 200%; transform: translateX(-50%); }
.result-yikes { position: absolute; top: 0; left: 50%; display: block; width: auto; max-width: none; height: 110%; transform: translateX(-50%) scaleX(-1); }
.result-description { font-size: 17px; line-height: 1.55; max-width: 590px; margin-bottom: 16px; }
.result-tie { border-left: 3px solid var(--accent); background: #efe7d9; padding: 12px 15px; max-width: 590px; font-size: 13px; line-height: 1.55; }
.result-comparison { display: inline-block; border: 1px solid var(--line); background: var(--paper-deep); padding: 10px 15px; font-size: 16px; line-height: 1.45; margin: 8px 0 0; }
.result-comparison strong { color: var(--green); font-size: 21px; }
.result-reveal { font: italic 15px/1.55 var(--serif); color: var(--green); max-width: 540px; margin: 22px 0; }
.result-share { border-top: 1px solid var(--line); padding-top: 17px; margin-top: 24px; }
.result-actions { gap: 12px; }
.retry-icon { display: block; width: 23px; height: 23px; flex: none; }
.share-status { min-height: 20px; margin: 15px 0 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.share-status:empty { display: none; }
.result-compass { width: min(100%, 420px); }
.direction-tag { position: absolute; top: calc(50% + 18px); z-index: 2; padding: 3px 5px; background: var(--paper-deep); font-size: 13px; letter-spacing: .04em; }
.direction-tag-left { left: 6%; }
.direction-tag-right { right: 6%; }
.result-compass .needle { animation: none; transform: translate(-50%, -50%) rotate(-90deg); }
.result-page#result-right .result-compass .needle { transform: translate(-50%, -50%) rotate(45deg); }
.result-page#result-left .result-compass .needle { transform: translate(-50%, -50%) rotate(225deg); }
.result-plot-marker { position: absolute; z-index: 4; top: 5%; width: 14px; height: 14px; border: 1px solid var(--ink); border-radius: 50%; box-shadow: 0 0 0 2px var(--paper-deep); }
.result-plot-you { right: 5%; background: var(--accent); }
.result-plot-mean { top: 9%; right: 2%; background: var(--green); }
.result-plot-tard { left: 5%; top: 90%; background: var(--accent); }
.result-plot-label { position: absolute; color: var(--ink); font: 600 12px/1 var(--mono); white-space: nowrap; }
.result-plot-you .result-plot-label { right: 17px; bottom: 8px; }
.result-plot-mean .result-plot-label { right: -1px; top: 17px; }
.result-plot-tard .result-plot-label { right: -1px; top: 17px; }
.result-image-section { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 56px); border-top: 1px solid var(--ink); padding: 34px 0; }
.result-image-copy .eyebrow { color: var(--green); margin-bottom: 14px; }
.result-image-copy h3 { font: 400 clamp(28px, 3vw, 40px)/1.15 var(--serif); letter-spacing: -.04em; margin: 0 0 14px; }
.result-image-copy p:last-child { max-width: 360px; font-size: 16px; line-height: 1.55; margin: 0; }
.result-image-download { display: block; border: 1px solid var(--ink); box-shadow: 7px 7px 0 #ded8ca; }
.result-image-download img { display: block; width: 100%; height: auto; }
.result-image-download:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.disclaimer { border-top: 1px solid var(--line); padding-top: 14px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }

.site-footer { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--ink); font-size: 9px; letter-spacing: .05em; color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 960px) {
  .site-header, .site-footer, main { width: min(100% - 48px, 1320px); }
  .intro { grid-template-columns: minmax(0, 1fr) minmax(250px, .9fr); gap: 30px; padding-block: 38px; min-height: calc(100dvh - 176px); }
  .intro-copy { max-width: 750px; }
  .instrument { width: 100%; margin-inline: auto; }
  .result-layout { grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr); column-gap: 28px; }
  .result-compass { width: 100%; margin-inline: auto; }
}

@media (max-width: 700px) {
  .site-header, .site-footer, main { width: min(100% - 32px, 1320px); }
  .site-header, body[data-view="quiz"] .site-header, body[data-view="calculating"] .site-header, body[data-view="result"] .site-header { min-height: 56px; }
  .brand-mark { width: 35px; height: 35px; }
  .brand-mark::before { height: 28px; }.brand-mark::after { width: 28px; }
  .brand-text { font-size: 11px; }
  .header-note { display: none; }
  .intro { display: flex; flex-direction: column; align-items: stretch; min-height: calc(100dvh - 104px); padding-block: 26px 24px; gap: 24px; }
  .intro-copy { max-width: 500px; }
  .eyebrow { font-size: 12px; }
  h1 { font-size: clamp(38px, 9vw, 56px); line-height: 1.14; margin: 20px 0 18px; }
  .intro-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .intro .button { min-height: 48px; font-size: 14px; }
  .time-note, .method-note { font-size: 15px; }
  .method-note { margin-top: 18px; }
  .intro .instrument, .result-compass { display: flex; width: min(100% - 9px, 320px); margin-inline: auto; align-self: center; }
  .quiz { padding-block: 12px; }
  .quiz-topline > span:last-child { font-size: 12px; }
  .progress-track { height: 3px; margin: 10px 0 14px; }
  .quiz-card { padding: 17px 16px; box-shadow: 5px 5px 0 #e2dccf; }
  .quiz-card h2 { font-size: clamp(24px, 6.2vw, 31px); line-height: 1.22; min-height: 4lh; margin-bottom: 10px; }
  .answer-list { gap: 7px; }
  .answer-option { min-height: 48px; padding: 8px 12px; font-size: 16px; }
  .quiz-actions { margin-top: 16px; }
  .quiz-actions .button { min-height: 48px; gap: 8px; padding-inline: 11px; font-size: 13px; }
  .quiz-footnote { font-size: 13px; line-height: 1.5; }
  .calculating { min-height: calc(100dvh - 56px); }
  .calculating-dial { width: 128px; }
  .calculating h2 { font-size: 38px; }
  .result { padding-block: 16px; }
  .result-topline > span:last-child, .result-kicker { font-size: 12px; }
  .result-layout { display: flex; flex-direction: column; align-items: stretch; padding: 24px 0 16px; }
  .result-kicker { margin-bottom: 15px; }
  .result h2 { font-size: clamp(48px, 11vw, 64px); margin-bottom: 15px; }
  .result-visual { width: min(100% - 9px, 320px); padding-top: 80px; margin: 24px auto 0; }
  .result-wow-crop, .result-yikes-crop { right: 20px; width: 98px; height: 98px; }
  .result-visual .result-compass { width: 100%; margin-top: 0; }
  .result-description { font-size: 16px; line-height: 1.5; margin-bottom: 14px; }
  .result-tie { font-size: 14px; padding: 9px 12px; }
  .result-comparison { font-size: 15px; }
  .result-comparison strong { font-size: 20px; }
  .result-reveal { font-size: 16px; line-height: 1.5; margin: 17px 0; }
  .result-share { margin-top: 20px; }
  .result-actions { gap: 8px; }
  .result-actions .button { min-height: 48px; padding: 10px 12px; gap: 10px; font-size: 13px; }
  .result-compass { margin-top: 24px; }
  .result-after-compass { width: 100%; margin-top: 20px; }
  .result-after-compass .result-reveal { margin-top: 0; }
  .share-status { font-size: 13px; }
  .result-image-section { display: block; padding: 28px 0; }
  .result-image-copy { margin-bottom: 20px; }
  .result-image-copy p:last-child { font-size: 15px; }
  .disclaimer { padding-top: 12px; font-size: 14px; }
  .site-footer { min-height: 48px; font-size: 11px; line-height: 1.5; }
  .site-footer span:last-child { text-align: right; }
}

@media (max-width: 360px) {
  .quiz-card { padding-inline: 12px; }
  .quiz-card h2 { font-size: 20px; min-height: 5lh; }
  .quiz-actions .button { font-size: 12px; padding-inline: 8px; }
  .result-actions .button { font-size: 12px; }
}

@media (max-height: 800px) and (min-width: 701px) {
  .site-header { min-height: 64px; }
  body[data-view="quiz"] .site-header, body[data-view="calculating"] .site-header, body[data-view="result"] .site-header { min-height: 58px; }
  .site-footer { min-height: 48px; }
  .intro { min-height: auto; padding-block: 24px; }
  .intro h1 { font-size: clamp(42px, 4vw, 60px); margin-block: 20px; }
  .instrument { width: min(100%, 420px); }
  .quiz { padding-block: 12px 8px; }
  .progress-track { margin: 8px 0 12px; }
  .quiz-card { padding: 22px; }
  .quiz-card h2 { font-size: 30px; line-height: 1.2; margin-bottom: 8px; }
  .answer-list { gap: 5px; }
  .answer-option { min-height: 44px; }
  .quiz-actions { margin-top: 12px; }
  .quiz-footnote { display: none; }
  .result-compass, .result-visual { max-width: 340px; }
}

@media (max-height: 700px) and (max-width: 700px) {
  .site-header, body[data-view="quiz"] .site-header, body[data-view="calculating"] .site-header, body[data-view="result"] .site-header { min-height: 48px; }
  .quiz { padding-block: 8px; }
  .quiz-card { padding-block: 12px; }
  .quiz-card h2 { line-height: 1.18; margin-bottom: 8px; }
  .answer-list { gap: 4px; }
  .quiz-actions { margin-top: 12px; }
  .intro { padding-block: 18px; }
  .result-layout { padding-block: 16px 10px; }
}

@media (max-height: 600px) and (max-width: 700px) {
  body[data-view="quiz"] .site-header { display: none; }
  .quiz-topline { justify-content: flex-end; }
  .quiz { padding-block: 7px; }
  .quiz-card { padding: 10px 12px; }
  .quiz-card h2 { font-size: 22px; line-height: 1.15; margin-bottom: 8px; }
  .answer-list { gap: 3px; }
  .quiz-actions { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
