@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600&display=swap');

:root {
  color-scheme: light;
  --paper: #f7f3ee;
  --paper-strong: #fffdfa;
  --ink: #352b28;
  --muted: #7e7069;
  --muted-light: #a89990;
  --rose: #eadbd4;
  --rose-deep: #b77868;
  --clay: #a85f4d;
  --gold: #b69b6b;
  --line: #e7ded6;
  --soft: #f1e9e2;
  --green: #436958;
  --shadow: 0 22px 70px rgba(74, 50, 41, .08);
  font-family: 'DM Sans', 'Avenir Next', Avenir, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--paper); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(168, 95, 77, .42); outline-offset: 3px; }

#app { min-height: 100vh; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.site-header { width: min(1160px, calc(100% - 64px)); margin: 0 auto; min-height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(102, 77, 65, .11); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: block; flex: 0 0 auto; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-name { font: 500 16px/1.15 'Playfair Display', Georgia, serif; letter-spacing: .01em; }
.brand-note { font-size: 9px; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.header-aside { font-size: 10px; letter-spacing: .19em; text-transform: uppercase; color: var(--muted); }

main { flex: 1; }
.page-width { width: min(1088px, calc(100% - 64px)); margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 11px; color: var(--clay); font-size: 10px; font-weight: 700; letter-spacing: .2em; line-height: 1.5; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 27px; height: 1px; background: var(--gold); }
.serif { font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.035em; }

.intro { padding: 74px 0 82px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(330px, .84fr); gap: 78px; align-items: center; }
.hero-copy { max-width: 620px; }
.hero-copy h1 { margin: 24px 0 20px; max-width: 650px; font-size: clamp(43px, 5.3vw, 72px); line-height: 1.06; }
.hero-subtitle { max-width: 510px; margin: 0; color: #655650; font-size: 18px; line-height: 1.7; }
.hero-description { max-width: 460px; margin: 22px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 32px; }
.btn { min-height: 54px; padding: 0 25px; border: 0; border-radius: 2px; display: inline-flex; justify-content: center; align-items: center; gap: 14px; cursor: pointer; text-decoration: none; transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease; }
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: #fffdfa; box-shadow: 0 12px 26px rgba(53, 43, 40, .13); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.btn-primary:hover:not(:disabled) { background: #4d3d37; box-shadow: 0 15px 32px rgba(53, 43, 40, .18); }
.btn-arrow { font-size: 19px; line-height: 1; }
.btn-quiet { min-height: 44px; padding: 0 2px; color: var(--muted); background: transparent; font-size: 13px; text-decoration: underline; text-decoration-color: #c5b4a8; text-underline-offset: 5px; }
.btn-outline { border: 1px solid #cbbab0; background: transparent; color: var(--ink); font-size: 13px; font-weight: 600; }
.btn-outline:hover:not(:disabled) { background: #fffaf5; }
.btn:disabled { cursor: not-allowed; opacity: .4; transform: none; }
.privacy-note { max-width: 440px; margin: 22px 0 0; color: #92847b; font-size: 11px; line-height: 1.7; }

.hero-art { position: relative; min-height: 430px; display: flex; align-items: center; justify-content: center; isolation: isolate; }
.hero-art::before, .hero-art::after { position: absolute; content: ''; border-radius: 50%; z-index: -1; }
.hero-art::before { width: 330px; height: 330px; background: radial-gradient(circle at 37% 35%, #fff9f3 0 8%, #ead8ce 9% 30%, #e3cfc4 31% 53%, #d5baac 54% 54.5%, transparent 55%); opacity: .94; }
.hero-art::after { width: 392px; height: 392px; border: 1px solid rgba(170, 135, 112, .3); box-shadow: inset 0 0 0 10px rgba(255,255,255,.14); }
.sun-line { position: absolute; top: 52px; right: 12%; width: 110px; height: 110px; border: 1px solid rgba(182,155,107,.7); border-radius: 50%; }
.sun-line::before, .sun-line::after { content: ''; position: absolute; inset: 15px; border: 1px solid rgba(182,155,107,.43); border-radius: 50%; }
.sun-line::after { inset: 34px; }
.art-card { position: relative; width: min(310px, 76%); padding: 29px 29px 27px; background: rgba(255,253,250,.88); border: 1px solid rgba(205,185,170,.55); box-shadow: var(--shadow); transform: translateY(39px); }
.art-card::before { content: '“'; position: absolute; top: 7px; right: 20px; font: 70px/.8 'Playfair Display', Georgia, serif; color: #dfc7ba; }
.art-card small { display: block; color: var(--clay); font-size: 9px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.art-card p { max-width: 250px; margin: 15px 0 0; color: #52433d; font: 22px/1.45 'Playfair Display', Georgia, serif; }
.art-caption { position: absolute; bottom: 13px; left: 3%; color: #8f7f75; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }

.quiz-section { padding: 46px 0 82px; animation: appear .4s ease both; }
.quiz-top { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.quiz-step { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.progress-copy { color: var(--muted); font-size: 12px; white-space: nowrap; }
.progress-track { width: 100%; height: 2px; overflow: hidden; margin-top: 14px; background: #e5dbd3; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--clay), var(--gold)); transition: width .35s ease; }
.question-card, .tie-card, .result-card { background: var(--paper-strong); border: 1px solid rgba(192,168,151,.38); box-shadow: var(--shadow); }
.question-card { padding: clamp(26px, 5vw, 58px); }
.question-heading { display: grid; grid-template-columns: 48px 1fr; gap: 20px; align-items: start; margin-bottom: 33px; }
.question-number { width: 42px; height: 42px; border: 1px solid #d7c4b8; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--clay); font: 17px 'Playfair Display', Georgia, serif; }
.question-heading h1, .question-heading h2 { max-width: 770px; margin: 0; font-size: clamp(27px, 3.25vw, 42px); line-height: 1.22; }
.answer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.answer-card { min-height: 100px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 3px; display: flex; align-items: flex-start; gap: 15px; background: #fffdfa; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease; }
.answer-card:hover { border-color: #c7a897; transform: translateY(-1px); }
.answer-card.selected { border-color: var(--clay); background: #fbf2ed; box-shadow: inset 0 0 0 1px var(--clay); }
.answer-letter { width: 28px; height: 28px; flex: 0 0 28px; border: 1px solid #d9c9bf; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--clay); font: 13px 'Playfair Display', Georgia, serif; }
.answer-card.selected .answer-letter { border-color: var(--clay); background: var(--clay); color: white; }
.answer-text { padding-top: 2px; color: #5d504a; font-size: 13px; line-height: 1.65; }
.question-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.question-actions .btn-primary { min-width: 156px; }
.quiz-footnote { margin: 18px 0 0; color: var(--muted-light); font-size: 10px; line-height: 1.7; }

.tie-section { padding: 44px 0 80px; animation: appear .4s ease both; }
.tie-card { max-width: 860px; margin: 0 auto; padding: clamp(28px, 5vw, 58px); }
.tie-card h1 { max-width: 690px; margin: 18px 0 12px; font-size: clamp(32px, 4vw, 50px); line-height: 1.14; }
.tie-intro { max-width: 600px; margin: 0 0 28px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.tie-options { display: grid; gap: 10px; }
.tie-option { min-height: 64px; padding: 13px 18px; border: 1px solid var(--line); background: #fffdfa; display: flex; justify-content: space-between; align-items: center; gap: 15px; color: var(--ink); text-align: left; cursor: pointer; transition: .18s ease; }
.tie-option:hover { border-color: var(--clay); background: #fbf2ed; }
.tie-option span:first-child { font-size: 14px; line-height: 1.55; }
.tie-option span:last-child { color: var(--clay); font-size: 20px; }
.tie-meta { margin: 23px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.tie-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 25px; }

.result-section { padding: 48px 0 76px; animation: appear .4s ease both; }
.result-top { margin-bottom: 24px; }
.result-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr); gap: 18px; align-items: start; }
.result-card { padding: clamp(28px, 4vw, 48px); }
.result-card h1 { margin: 18px 0 22px; max-width: 730px; font-size: clamp(35px, 4.3vw, 55px); line-height: 1.13; }
.result-context { margin: 0 0 21px; color: #694d43; font-size: 14px; font-weight: 600; line-height: 1.75; }
.result-copy { color: #685952; font-size: 14px; line-height: 1.85; }
.result-copy p { margin: 0 0 14px; }
.result-notes { margin: 21px 0 0; padding: 16px 18px; border-left: 2px solid var(--gold); background: #f8f2ec; color: #6e5e55; font-size: 12px; line-height: 1.8; }
.result-notes p { margin: 0 0 8px; }
.result-notes p:last-child { margin-bottom: 0; }
.result-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.result-actions .btn-primary { min-height: 50px; }
.summary-card { padding: 27px 25px; background: #efe6de; border: 1px solid #e2d6cc; }
.summary-card .summary-kicker { margin: 0 0 17px; color: var(--clay); font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.summary-row { padding: 14px 0; border-top: 1px solid rgba(128,99,83,.18); }
.summary-row small { display: block; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.summary-row strong { display: block; margin-top: 7px; font: 19px/1.35 'Playfair Display', Georgia, serif; font-weight: 400; }
.summary-card .summary-product { margin-top: 16px; padding: 14px; background: rgba(255,253,250,.62); color: #65534a; font-size: 12px; line-height: 1.65; }

.site-footer { width: min(1160px, calc(100% - 64px)); min-height: 83px; margin: 0 auto; padding: 20px 0; border-top: 1px solid rgba(102,77,65,.11); display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #92847b; font-size: 10px; line-height: 1.6; }
.footer-mark { color: var(--clay); font: 15px 'Playfair Display', Georgia, serif; }

@keyframes appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

@media (max-width: 860px) {
  .site-header, .site-footer { width: min(100% - 44px, 720px); }
  .page-width { width: min(100% - 44px, 720px); }
  .hero-grid { grid-template-columns: 1fr .78fr; gap: 30px; }
  .hero-art { min-height: 350px; }
  .hero-art::before { width: 260px; height: 260px; }
  .hero-art::after { width: 310px; height: 310px; }
  .art-card { transform: translateY(24px); padding: 23px; }
  .result-layout { grid-template-columns: minmax(0, 1fr) 245px; }
}

@media (max-width: 640px) {
  .site-header { width: calc(100% - 36px); min-height: 72px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 14px; }
  .brand-note { font-size: 8px; letter-spacing: .15em; }
  .header-aside { display: none; }
  .page-width { width: calc(100% - 36px); }
  .intro { padding: 48px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 35px; }
  .hero-copy h1 { margin-top: 18px; font-size: clamp(43px, 13vw, 60px); }
  .hero-subtitle { font-size: 16px; line-height: 1.65; }
  .hero-description { font-size: 13px; }
  .hero-art { min-height: 300px; margin: 0 -7px; }
  .hero-art::before { width: 232px; height: 232px; }
  .hero-art::after { width: 280px; height: 280px; }
  .sun-line { top: 18px; right: 9%; width: 76px; height: 76px; }
  .sun-line::before { inset: 11px; }
  .sun-line::after { inset: 24px; }
  .art-card { width: min(290px, 78%); padding: 22px; transform: translateY(19px); }
  .art-card p { font-size: 19px; }
  .art-caption { bottom: 0; left: 2%; }
  .quiz-section, .tie-section, .result-section { padding: 30px 0 56px; }
  .quiz-top { align-items: center; margin-bottom: 18px; }
  .quiz-step { font-size: 9px; letter-spacing: .12em; }
  .progress-copy { font-size: 11px; }
  .question-card { padding: 25px 18px; }
  .question-heading { grid-template-columns: 37px 1fr; gap: 13px; margin-bottom: 24px; }
  .question-number { width: 34px; height: 34px; font-size: 15px; }
  .question-heading h1, .question-heading h2 { font-size: 27px; }
  .answer-grid { grid-template-columns: 1fr; gap: 9px; }
  .answer-card { min-height: 75px; padding: 13px 13px; gap: 12px; }
  .answer-text { font-size: 12px; line-height: 1.55; }
  .answer-letter { width: 26px; height: 26px; flex-basis: 26px; }
  .question-actions { margin-top: 20px; }
  .question-actions .btn-primary { min-width: 130px; min-height: 48px; padding: 0 16px; }
  .btn-quiet { font-size: 12px; }
  .tie-card { padding: 27px 20px; }
  .tie-card h1 { font-size: 34px; }
  .tie-option { min-height: 60px; padding: 12px; }
  .tie-option span:first-child { font-size: 12px; }
  .tie-footer { align-items: flex-start; flex-direction: column; }
  .result-layout { grid-template-columns: 1fr; }
  .result-card { padding: 27px 20px; }
  .result-card h1 { font-size: 38px; }
  .result-copy { font-size: 13px; }
  .summary-card { padding: 22px 20px; }
  .summary-row { padding: 11px 0; }
  .summary-row strong { font-size: 17px; }
  .site-footer { width: calc(100% - 36px); align-items: flex-start; flex-direction: column; gap: 5px; min-height: 74px; }
}
