/* Yu Mi: warm gray ground, black text, pale yellow actions. */
:root {
  color-scheme: light;
  --stone: #dcd7cf;
  --surface: #e9e5de;
  --surface-2: #f3f0ea;
  --line: #bdb6aa;
  --ink: #000000;
  --muted: #47433d;
  --yellow: #f6ebaa;
  --yellow-deep: #efe08b;
  --gold: #bfa53c;
  --night: #000000;
  --grey: #c4c4c4;
  --wing: #ecdcc4;
  --error: #861c1c;
  --display: "Marcellus", Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--stone); color: var(--ink); font: 400 17px/1.6 var(--body); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.14; margin: 0 0 .5em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.32rem; }
p { margin: 0 0 1em; max-width: 64ch; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: .5em; max-width: 62ch; }
.muted { color: var(--muted); }
.lead { font-size: 1.2rem; line-height: 1.5; }
.small { font-size: .92rem; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--yellow); padding: 10px 16px; z-index: 30; }
.skip:focus { top: 12px; }

/* Layout */
.wrap { width: min(1120px, 100%); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
main { display: block; }
main.wrap { padding-bottom: 72px; }
.page-head { padding: clamp(32px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); }
.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
.mid { max-width: 780px; margin-left: auto; margin-right: auto; }

/* Header */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
/* Header crop shows the heart and name; the full logo with "Since 2026" is on the splash and footer. */
/* Logo lockup: the hands are an image; the words are live text so they stay sharp. */
.lockup, .mark { display: inline-flex; flex-direction: column; align-items: center; color: #33211a; text-decoration: none; }
.lockup-name { font: 400 1rem/1.15 var(--display); text-transform: uppercase; letter-spacing: .18em; margin-right: -.18em; }
.lockup-since { font: 600 .68rem/1.2 var(--body); text-transform: uppercase; letter-spacing: .2em; margin-right: -.2em; margin-top: 3px; }
.mark { flex: none; }
.mark img { width: 42px; height: auto; margin-bottom: 4px; }
.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.nav a, .nav button.link { padding: 8px 12px; text-decoration: none; border-radius: 8px; font: 500 1rem var(--body); background: none; border: 0; color: var(--ink); cursor: pointer; }
.nav a:hover, .nav button.link:hover { text-decoration: underline; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.nav a.btn { padding: 9px 22px; margin-left: 8px; text-decoration: none; background: var(--yellow); border: 1px solid var(--ink); border-radius: 10px; }
.nav a.btn:hover { background: var(--yellow-deep); }
.site-head .menu-toggle { display: none; padding: 10px 22px; }
@media (max-width: 920px) {
  .site-head { flex-wrap: wrap; }
  .site-head .menu-toggle { display: inline-block; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; }
  .nav.open { display: flex; }
  .nav a, .nav button.link { padding: 12px 4px; text-align: left; }
  .nav a.btn { margin: 10px 0 0; text-align: center; }
}

/* Buttons */
.btn, button.btn { display: inline-block; font: 600 1rem/1.2 var(--body); padding: 14px 30px; border-radius: 10px; border: 1px solid var(--ink); background: var(--yellow); color: #000; text-decoration: none; text-align: center; cursor: pointer; transition: background-color .18s ease; }
.btn:hover { background: var(--yellow-deep); }
.btn.plain { background: transparent; }
.btn.plain:hover { background: var(--surface-2); }
.btn.full { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; align-items: center; }

/* Splash */
.splash { min-height: 100vh; min-height: 100dvh; background: var(--grey); color: #000; display: grid; place-content: center; justify-items: center; text-align: center; padding: 32px 16px; }
.splash h1 { margin: 0; }
.splash .lockup img { margin-bottom: 12px; }
.splash .lockup-name { font-size: 1.5rem; }
.splash .lockup-since { font-size: .74rem; margin-top: 5px; }
.splash p { font: 400 clamp(1.25rem, 3.4vw, 1.75rem)/1.35 var(--display); margin: 22px auto 34px; max-width: 28ch; }
.splash .login { margin-top: 18px; font-size: .98rem; }

/* Home */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 6vw, 80px); align-items: center; padding: clamp(24px, 5vw, 56px) 0; }
.hero figure { margin: 0; position: relative; max-width: 400px; justify-self: end; width: 100%; }
.hero .arch { aspect-ratio: 399 / 501; }
.arch { border-radius: 999px 999px 0 0; overflow: hidden; background: var(--surface); }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.doors { border-top: 1px solid var(--ink); margin-top: 24px; }
.door { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; align-items: baseline; }
.door strong { font: 400 1.7rem/1.2 var(--display); }
.door:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.door span { color: var(--muted); }
.feature-band { display: grid; grid-template-columns: 192px 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; margin-top: clamp(40px, 7vw, 72px); }
.feature-band .arch { width: 192px; height: 240px; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .hero figure { justify-self: center; max-width: 340px; }
  .door { grid-template-columns: 1fr; }
  .feature-band { grid-template-columns: 1fr; justify-items: start; }
}

/* Compatibility score */
.compat strong { font: 400 1.35rem/1.2 var(--display); }
.compat.main strong { font-size: 2.4rem; }

/* Panels and forms */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 4vw, 36px); }
.flat-section { padding: 28px 0; border-top: 1px solid var(--line); }
label, .field-label { display: block; font-weight: 600; margin: 18px 0 6px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=number], select, textarea {
  width: 100%; font: inherit; padding: 12px 14px; border-radius: 8px; border: 1px solid #7d776c; background: var(--surface-2); color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
.hint { color: var(--muted); font-size: .92rem; margin: 5px 0 0; }
.err { color: var(--error); font-weight: 500; margin: 14px 0 0; min-height: 1.5em; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; margin: 14px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; flex: none; margin: 2px 0 0; accent-color: #000; }

.sso { display: grid; gap: 10px; }
.sso button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 13px; font: 600 1rem var(--body); background: var(--surface-2); border: 1px solid #7d776c; border-radius: 10px; cursor: pointer; color: #000; }
.sso button:hover { background: #fff; }
.sso svg { width: 20px; height: 20px; }
.or { display: flex; align-items: center; gap: 14px; color: var(--muted); margin: 22px 0 10px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); border-radius: 10px; overflow: hidden; margin-top: 12px; }
.seg button { padding: 11px; font: 600 1rem var(--body); border: 0; background: transparent; color: #000; cursor: pointer; }
.seg button[aria-pressed=true] { background: var(--yellow); }

/* Preview note: says plainly what is simulated */
.preview-note { background: var(--surface-2); border-left: 4px solid var(--gold); padding: 12px 16px; font-size: .95rem; margin: 18px 0; border-radius: 0 8px 8px 0; }
.preview-note strong.code { font: 600 1.4rem var(--body); letter-spacing: .12em; display: block; margin-top: 4px; }

/* Onboarding progress */
.steps-bar { padding: 8px 0 0; }
.steps-bar ol { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; max-width: 460px; }
.steps-bar li { flex: 1; margin: 0; height: 5px; border-radius: 3px; background: #aaa396; }
.steps-bar li.done, .steps-bar li.now { background: #000; }
.steps-bar p { margin: 8px 0 0; font-size: .95rem; }

/* Photo slots */
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px; }
.slot { position: relative; }
.slot label { margin: 0; display: grid; place-items: center; aspect-ratio: 3/4; border: 1.5px dashed #6f695f; border-radius: 120px 120px 0 0; background: var(--surface-2) center/cover no-repeat; text-align: center; padding: 10px; font-weight: 500; font-size: .92rem; cursor: pointer; overflow: hidden; }
.slot label:focus-within { outline: 3px solid #000; outline-offset: 2px; }
.slot.has label { border-style: solid; color: transparent; }
.slot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slot .rm { display: block; width: 100%; padding: 6px; background: none; border: 0; text-decoration: underline; cursor: pointer; font: 500 .9rem var(--body); color: #000; }

/* Questions */
fieldset { border: 0; padding: 0; margin: 0 0 26px; }
legend { font: 400 1.3rem/1.25 var(--display); padding: 0; margin-bottom: 10px; }
.opt { display: flex; gap: 12px; align-items: center; margin: 0 0 8px; padding: 12px 14px; font-weight: 400; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.opt input { width: 20px; height: 20px; flex: none; accent-color: #000; margin: 0; }
.opt:has(input:checked) { background: var(--yellow); border-color: #000; }
fieldset.missing legend { color: var(--error); }
.q-title { display: block; font: 400 1.3rem/1.25 var(--display); margin: 0 0 10px; }
label.q-title { margin-top: 26px; }

/* Tutorial */
.guide-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
.guide-nav { list-style: none; padding: 0; margin: 0; }
.guide-nav li { margin: 0; }
.guide-nav button { background: none; border: 0; padding: 7px 0; font: 400 1rem var(--body); text-align: left; cursor: pointer; color: var(--muted); }
.guide-nav button[aria-current=step] { color: #000; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .guide-layout { grid-template-columns: 1fr; } .guide-nav { display: none; } }

/* Rules */
.disclaimer { background: var(--surface-2); border: 2px solid var(--ink); border-radius: 12px; padding: 20px 24px; margin: 8px 0 12px; }
.disclaimer h2 { font-size: 1.6rem; margin-bottom: .35em; }
.disclaimer p { margin: 0; }
.rules { list-style: none; padding: 0; }
.rules li { padding: 14px 0; border-bottom: 1px solid var(--line); max-width: none; margin: 0; }
.rules strong { display: block; font: 400 1.25rem var(--display); margin-bottom: 2px; }

/* Matches */
.notice { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 22px; margin-bottom: 32px; }
.notice p { margin: 0; }
.match-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 44px 28px; }
.match { text-decoration: none; display: block; position: relative; }
.match .arch { aspect-ratio: 4/5; }
.match h3 { margin: 12px 0 0; }
.match:hover h3 span { text-decoration: underline; text-underline-offset: 3px; }
.match p { margin: 4px 0 0; }
.locked-tag { font-size: .88rem; color: var(--muted); }

/* Member page */
.member { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); align-items: start; padding-top: 32px; }
.gallery { display: grid; grid-template-columns: 1fr; gap: 12px; }
.gallery .arch { aspect-ratio: 4/5; }
.gallery .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fit-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 20px 0; max-width: 420px; }
.fit-pair strong { display: block; font: 400 1.8rem var(--display); }
.fit-pair small { display: block; color: var(--muted); font-size: .9rem; }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
@media (max-width: 760px) { .member { grid-template-columns: 1fr; } .gallery { max-width: 320px; } }

/* Messages */
.inbox { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: stretch; }
.threads { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.threads li { margin: 0; max-width: none; }
.threads a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.threads a[aria-current=true] { background: var(--yellow); padding-left: 10px; }
.thread { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; min-height: 420px; }
.bubbles { flex: 1; display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.bubble { max-width: 76%; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); align-self: flex-start; overflow-wrap: anywhere; }
.bubble.me { background: var(--yellow); align-self: flex-end; }
.composer { display: flex; gap: 10px; }
.composer input { flex: 1; min-width: 0; }
@media (max-width: 760px) { .inbox { grid-template-columns: 1fr; } }

/* Membership */
.price-line { font: 400 clamp(2.6rem, 7vw, 4rem)/1.05 var(--display); margin: 0 0 .1em; }
.compare { width: 100%; border-collapse: collapse; margin: 24px 0; }
.compare th, .compare td { text-align: left; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { font-weight: 600; }

/* Timeline steps (real sequences only) */
.seq { list-style: none; padding: 0; counter-reset: s; }
.seq li { counter-increment: s; position: relative; padding: 0 0 26px 62px; max-width: 640px; margin: 0; }
.seq li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 42px; height: 42px; border: 1px solid #000; border-radius: 50%; display: grid; place-items: center; font: 400 1.3rem var(--display); background: var(--yellow); }

/* Advice */
.advice-grid { columns: 2 320px; column-gap: 56px; }
.advice-grid section { break-inside: avoid; padding: 0 0 26px; }
blockquote { margin: 0 0 8px; font: 400 clamp(1.4rem, 3vw, 1.9rem)/1.3 var(--display); max-width: 30ch; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font: 400 1.25rem/1.3 var(--display); }
details p { margin: 10px 0 0; }

/* Dialog */
dialog { border: 1px solid #000; border-radius: 14px; padding: 28px; width: min(420px, calc(100vw - 32px)); background: var(--surface); color: #000; }
dialog::backdrop { background: rgba(0, 0, 0, .55); }

/* Email preview */
.mail { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin: 18px 0; overflow-wrap: anywhere; }
.mail dl { margin: 12px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; }
.mail dt { color: var(--muted); }
.mail dd { margin: 0; font-weight: 600; }

/* Toast */
#toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: #000; color: #fff; padding: 12px 20px; border-radius: 10px; z-index: 40; max-width: calc(100vw - 32px); }

/* Footer */
.site-foot { background: var(--grey); color: #000; padding: 36px 0; }
.site-foot .wrap { display: grid; grid-template-columns: 150px 1fr auto; gap: 28px; align-items: center; }
.site-foot .menorah { width: 64px; height: auto; align-self: end; justify-self: end; }
.site-foot .lockup img { width: 56px; height: auto; margin-bottom: 6px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 10px; }
.site-foot p { margin: 0; color: var(--muted); font-size: .92rem; max-width: 70ch; }
@media (max-width: 560px) { .site-foot .wrap { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
