:root{font-family:"PingFang TC","Microsoft JhengHei",sans-serif;color:#452a42;background:#fff7f7}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 76% 38%,#ffe2eb 0,transparent 43%),radial-gradient(ellipse at 6% 80%,#f0e7ff 0,transparent 38%);min-height:100vh}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer}a:focus-visible,button:focus-visible{outline:3px solid #702459;outline-offset:4px}.wrap,.match{width:min(1020px,calc(100% - 48px));margin-inline:auto}.top{height:78px;display:flex;align-items:center;border-bottom:1px solid #eacfd8}.brand{display:flex;gap:10px;align-items:center;font-weight:800;letter-spacing:.09em}.brand img{border-radius:14px}.brand small{display:block;font:italic 600 .85rem Georgia;color:#994268;letter-spacing:.08em}.match{display:grid;grid-template-columns:1.1fr 1fr;gap:70px;align-items:center;padding:65px 35px 78px}.copy h1{font-size:clamp(3.2rem,6.5vw,5.8rem);letter-spacing:-.065em;line-height:1.05;margin:0}.copy em{font-style:normal;color:#b42865}.intro{font-size:1.1rem;margin:19px 0;color:#66445b}.moods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-width:350px;margin:22px 0}.moods button,.nav{padding:10px;border-radius:30px;border:1px solid #dbbecf;background:#fff;color:#5a3852;font-weight:650}.moods button[aria-pressed=true]{background:#f5d3e4;border-color:#ac3771;color:#721744}.button{display:inline-flex;justify-content:center;align-items:center;border-radius:18px;padding:15px 20px;font-weight:800}.primary{background:#ab225d;color:white}.primary:hover{background:#891746}#download{width:min(100%,350px);box-shadow:0 5px 0 #731a42}.deck{position:relative;max-width:330px;width:100%;justify-self:center;isolation:isolate}.deck:before,.deck:after{content:"";position:absolute;inset:4px;border-radius:23px;background:#d7c4ed;transform:rotate(-8deg);z-index:-2;border:1px solid #c9a8dd}.deck:after{background:#ffcfd7;transform:rotate(6deg);z-index:-1}.card{background:white;border-radius:22px;padding:10px;margin:0;box-shadow:0 15px 32px #78334f21;transform:rotate(-2deg)}.card img{width:100%;aspect-ratio:1.03;object-fit:cover;object-position:center 35%;display:block;border-radius:15px}.card figcaption{padding:14px 9px 9px}.card strong{font-size:1.45rem}.card p{font-size:1rem;line-height:1.5;margin:5px 0;color:#715267}.heart{position:absolute;right:-15px;top:-15px;background:#ad275e;color:white;border:4px solid white;border-radius:50%;width:55px;height:55px;display:grid;place-items:center;font-size:1.6rem;transform:rotate(12deg)}.footer{border-top:1px solid #eacfd8;display:flex;justify-content:space-between;gap:12px;padding-block:20px;font-size:.88rem;color:#704c65}dialog{color:#452a42;border:0;border-radius:22px;background:#fff7fa;padding:24px}dialog::backdrop{background:#38233688}dialog h2{margin-top:0}.downloads{display:flex;gap:8px}.outline{background:#efdfed}.nav{margin-top:16px}
@media(max-width:720px){.top{height:61px}.match{display:grid;grid-template-columns:1fr;padding:24px 0 34px;gap:0}.copy{display:contents}.copy h1{text-align:center;font-size:clamp(2rem,8vw,3.5rem)}.copy h1 br{display:none}.intro{text-align:center;margin:8px 0 21px;font-size:1rem}.deck{grid-row:4;width:min(64vw,255px);margin:4px 0 14px}.card img{aspect-ratio:1.32}.card figcaption{padding:8px 6px 5px}.card strong{font-size:1.12rem}.card p{margin:3px 0;font-size:.93rem}.heart{width:44px;height:44px;font-size:1.25rem}.moods{grid-row:5;width:100%;justify-self:center;margin:12px 0 14px;gap:7px}.moods button{padding:8px}#download{justify-self:center}.footer{flex-wrap:wrap}}

body { background:#fff9ef; }
.copy h1 { font-family:"Songti TC","Noto Serif TC",serif; font-weight:700; }
.card img { aspect-ratio:640/460; object-fit:contain; border-radius:5px; }
.card { border-radius:8px; border:1px solid #e4d4c8; }
.deck:before,.deck:after { border-radius:8px; }
.heart { display:none; }
#download { border-radius:11px; }
@media(max-width:720px){#download{grid-row:3;margin-bottom:24px}.deck{width:min(76vw,320px)}}

body { background:#fcfaf7; }
.brand small { font:600 .78rem/1.5 "PingFang TC",sans-serif; letter-spacing:.08em; }
.top,.footer { border-color:#e3dbd6; }
.copy h1 { font-family:"PingFang TC","Microsoft JhengHei",sans-serif; font-size:clamp(2.6rem,5vw,4.6rem); letter-spacing:-.055em; }
.copy h1 em { color:inherit; }
.intro { color:#675960; }
.deck:before,.deck:after { display:none; }
.card { transform:none; border:0; background:transparent; padding:0; box-shadow:none; }
.card img { aspect-ratio:4/4.5; object-fit:cover; border-radius:12px; }
.card figcaption { padding:12px 0 0; }
.card p { color:#665860; }
.moods button { background:transparent; border-color:#dcd3d4; border-radius:8px; }
.moods button[aria-pressed=true] { background:#f3e5e9; border-color:#bf8b9d; }
#download { box-shadow:none; background:#963653; }
@media(max-width:720px){.copy h1{font-size:clamp(1.9rem,7.2vw,3rem)}.card img{aspect-ratio:1.35}.deck{width:min(80vw,340px)}}

/* Shared colors for the landing page and the download dialog. */
:root {
  --ink: #242633;
  --secondary: #595969;
  --violet: #7733ff;
  --violet-dark: #5820c4;
  --violet-light: #f3edff;
  --line: #e7e6ee;
  color: var(--ink);
  background: white;
}
body, dialog { background: white; color: var(--ink); }
.top, .footer { border-color: var(--line); }
.intro, .card p, .footer { color: var(--secondary); }
.copy h1 em, .brand small { color: var(--violet); }
#download, .primary { background: var(--violet); color: white; }
#download:hover, .primary:hover { background: var(--violet-dark); }
.moods button, .nav { background: white; color: var(--ink); border-color: var(--line); }
.moods button:hover, .outline { background: var(--violet-light); color: var(--violet-dark); }
.moods button[aria-pressed=true] { color: var(--violet-dark); border-color: var(--violet); background: var(--violet-light); }
a:focus-visible, button:focus-visible { outline-color: var(--violet); }
dialog::backdrop { background: #24263380; }

@media (prefers-reduced-motion: no-preference) {
  #download {
    animation: download-breathe 2.4s ease-in-out infinite;
  }
  @keyframes download-breathe {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgb(119 51 255 / 12%); }
    50% { transform: scale(1.045); box-shadow: 0 0 20px 6px rgb(119 51 255 / 36%); }
  }
}
