/* yuni.dating — one stylesheet. Look: 留白 (warm paper, ink, muted clay), chosen by Michael on 2026-11-27.
   No pink hearts, no neon, no countdowns. */
:root {
  --bg: #f6f1e8; --bg-2: #efe8db; --card: #fffdf8; --line: #ded5c4;
  --text: #2a2622; --muted: #6b645a; --accent: #9c5a3f; --accent-ink: #fffdf8;
  --moon-1: #e9d9bd; --moon-2: #c98f6f; --ok: #4d7a55; --warn: #9c5a3f;
  --shadow: 0 10px 30px rgba(74, 58, 38, .10);
  /* Headings: the device's own Chinese serif (Songti on Apple, Noto Serif CJK on Android, PMingLiU on Windows). */
  --serif: "Songti TC", "Noto Serif TC", "Noto Serif CJK TC", "Source Han Serif TC", "PMingLiU", serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.8 "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  letter-spacing: .02em;
}
h1, h2, h3 { font-weight: 300; line-height: 1.35; letter-spacing: .08em; margin: 0 0 .6em; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(2.2rem, 9vw, 4rem); }
h2 { font-size: clamp(1.5rem, 5vw, 2.1rem); }
h3 { font-size: 1.15rem; font-weight: 500; letter-spacing: .05em; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: 4px; }
.wrap { width: min(100% - 40px, 1040px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--card); padding: 8px 14px; border-radius: 8px; z-index: 10; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 1.15rem; letter-spacing: .14em; }
.brand > span { font-family: var(--serif); }
.brand svg { width: 34px; height: 34px; }
.brand small { color: var(--muted); letter-spacing: .2em; font-size: .75rem; }
.top nav { display: flex; gap: 22px; align-items: center; }
.top nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: .95rem; }
.top nav a:not(.btn):hover { color: var(--text); }
@media (max-width: 640px) { .top nav a:not(.btn) { display: none; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px;
  border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 500; letter-spacing: .08em; text-decoration: none; cursor: pointer;
}
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.small { min-height: 40px; padding: 0 18px; font-size: .9rem; }
.btn[disabled] { opacity: .55; cursor: default; }

/* hero */
.hero { display: grid; gap: 36px; align-items: center; padding: 40px 0 72px; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.1fr .9fr; padding: 72px 0 110px; } }
.hero p.lead { font-size: 1.1rem; color: var(--muted); max-width: 30em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.eyebrow { color: var(--accent); letter-spacing: .3em; font-size: .8rem; margin-bottom: 18px; }
.moons { width: min(100%, 420px); margin-inline: auto; display: block; }

/* sections */
section { padding: 72px 0; }
section.alt { background: var(--bg-2); }
.section-head { max-width: 34em; margin-bottom: 36px; }
.grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.two { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.card .num { color: var(--accent); font-size: .85rem; letter-spacing: .2em; }
.card p:last-child { margin-bottom: 0; }

/* sample / result report */
.report { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); max-width: 560px; }
.report .tag { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; font-size: .78rem; color: var(--muted); letter-spacing: .1em; }
.report .score { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 4px; }
.report .score b { font-size: 3.4rem; font-weight: 200; line-height: 1; letter-spacing: 0; color: var(--accent); }
.report ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.report li { padding-left: 22px; position: relative; }
.report li::before { content: ""; position: absolute; left: 0; top: .72em; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.report li.watch::before { background: transparent; border: 1.5px solid var(--warn); }
.report .note { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }

.report li.neutral::before { background: var(--line); }
.report h3.sub { margin: 28px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.aspects { display: grid; gap: 16px; }
.aspect-head { display: flex; justify-content: space-between; align-items: baseline; }
.aspect-head b { font-weight: 400; color: var(--accent); }
.bar { height: 6px; border-radius: 3px; background: var(--line); margin: 6px 0 8px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.aspect p { margin: 0; color: var(--muted); }
.names { margin: 14px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.linkbox { display: flex; gap: 8px; }
.linkbox input { flex: 1; min-width: 0; }
button.link { background: none; border: 0; padding: 0; min-height: 44px; font: inherit; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
table { border-collapse: collapse; width: 100%; font-size: .85rem; }
th, td { text-align: right; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
.scroll { overflow-x: auto; }
.stat b { display: block; font-size: 2rem; font-weight: 200; color: var(--accent); line-height: 1.2; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; margin: 14px 0; }
.pillars div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 4px; }
.pillars b { display: block; font-size: 1.5rem; font-weight: 300; letter-spacing: .1em; }

/* tabs (lenses) */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs button {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--muted); font: inherit; cursor: pointer;
}
.tabs button[aria-selected="true"] { border-color: var(--accent); color: var(--text); background: var(--card); }

/* forms */
form { display: grid; gap: 18px; }
.fields { display: grid; gap: 18px; }
@media (min-width: 700px) { .fields.two { grid-template-columns: 1fr 1fr; } }
label, legend { display: block; font-size: .92rem; color: var(--muted); margin-bottom: 6px; padding: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
input[type=email], input[type=text], input[type=date], input[type=time], input[type=number], select {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit;
}
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: .92rem; }
.check input { width: 20px; height: 20px; margin-top: 5px; accent-color: var(--accent); flex: none; }
.person { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: var(--card); }
.msg { min-height: 1.6em; font-size: .92rem; }
.msg.err { color: var(--warn); }
.msg.ok { color: var(--ok); }

/* Short and still-loading pages keep the footer at the bottom, so it does not jump when content arrives. */
main { min-height: 78vh; }

/* footer */
footer { padding: 44px 0 60px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
footer .row { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
footer a { color: var(--muted); }

/* legal pages */
.doc { max-width: 42em; padding: 24px 0 80px; }
.doc h1 { font-size: 2rem; }
.doc h2 { font-size: 1.25rem; margin-top: 2em; }
.banner { border: 1px dashed var(--warn); color: var(--warn); border-radius: 12px; padding: 10px 16px; font-size: .9rem; margin-bottom: 24px; }

[hidden] { display: none !important; }
