/* letsdating.app: black and gold, like the App. Values come from the canvas boards W1 (desktop home), W2 (mobile home)
   and W3 (text pages). No third-party requests: fonts and images are served from this site. */
:root {
  --bg: #0E0D0C;
  --text: #F2EADF;
  --text-soft: #CFC8BE;
  --text-muted: #A8A29C;
  --text-faint: #8A8278;
  --gold: #E3C183;
  --gold-mid: #C9A45C;
  --gold-pale: #D9B26A;
  --line: #2B2723;
  --card: #17150F;
  --note-bg: #1F1A12;
  --note-line: #3A2F1C;
  --todo-bg: #2A2316;
  --serif: "Noto Serif TC", "Songti TC", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --script: "Allura", cursive;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold-pale); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--gold-mid); outline-offset: 3px; border-radius: 4px; }
img { display: block; max-width: 100%; }

.page { max-width: 1280px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.logo { font-family: var(--script); line-height: 1; color: var(--text); }
.todo { background: var(--todo-bg); color: var(--gold); border-radius: 4px; padding: 0 4px; }

/* ------------------------------------------------------------ footer (all pages) */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 36px 72px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-muted);
}
.footer-links { display: flex; gap: 28px; color: var(--text-soft); }
.footer-meta { display: flex; flex-direction: column; gap: 6px; text-align: right; }

/* ------------------------------------------------------------ home */
.hero { position: relative; height: 780px; overflow: hidden; }
.hero-photo { position: absolute; top: 0; right: 0; width: 720px; height: 780px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.hero-shade-side {
  position: absolute; top: 0; right: 0; width: 720px; height: 780px;
  background: linear-gradient(90deg, #0E0D0C 0%, rgba(14, 13, 12, .78) 22%, rgba(14, 13, 12, 0) 62%);
}
.hero-shade-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; height: 200px;
  background: linear-gradient(180deg, rgba(14, 13, 12, 0) 0%, #0E0D0C 100%);
}
.hero-shade-top {
  position: absolute; left: 0; right: 0; top: 0; height: 150px;
  background: linear-gradient(180deg, rgba(20, 16, 14, .55) 0%, rgba(20, 16, 14, 0) 100%);
}
.topbar {
  position: absolute; left: 72px; right: 72px; top: 0; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}
.topbar .logo { font-size: 44px; }
.topbar-link { font-size: 15px; color: #E8E2DB; }
.hero-copy { position: absolute; left: 72px; top: 230px; width: 560px; }
.hero-copy h1 {
  margin: 0; font-family: var(--serif); font-weight: 600; font-size: 56px; line-height: 1.35; letter-spacing: .02em;
}
.lead { margin: 22px 0 0; font-size: 18px; line-height: 1.8; color: #D8D2CB; }
.badges { display: flex; gap: 18px; font-size: 13px; color: #E8E2DB; margin-top: 18px; }
.badges span { display: flex; align-items: center; gap: 6px; }
.download { margin-top: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.store-button {
  height: 60px; padding: 0 40px; border-radius: 30px; border: 1px solid #3A352F; background: #1C1A17;
  color: var(--text-muted); display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700;
  cursor: default; user-select: none;
}
.download-note { font-size: 13px; color: var(--text-faint); }

.cards { padding: 0 72px 72px; display: flex; gap: 24px; }
.card { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.card-no { font-family: var(--serif); font-size: 15px; color: var(--gold-mid); letter-spacing: .1em; }
.card h2 { margin: 14px 0 0; font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--text); }
.card p { margin: 10px 0 0; font-size: 15px; line-height: 1.75; color: var(--text-muted); }

/* ------------------------------------------------------------ text pages */
.topbar-text {
  display: flex; align-items: center; justify-content: space-between; padding: 0 72px; height: 72px;
  border-bottom: 1px solid var(--line);
}
.topbar-text .logo { font-size: 40px; color: var(--gold); }
.topbar-text .topbar-link { color: var(--text-soft); }
.text-layout { display: flex; gap: 72px; padding: 64px 72px 72px; flex: 1; }
.toc { width: 240px; flex: none; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 24px; align-self: flex-start; max-height: calc(100vh - 48px); overflow: auto; }
.toc-title { font-size: 12px; letter-spacing: .14em; color: var(--text-faint); margin-bottom: 12px; }
.toc a {
  padding: 7px 0 7px 14px; border-left: 2px solid var(--line); color: var(--text-muted); font-size: 14px; line-height: 1.5;
}
.toc a.on { border-left-color: var(--gold-mid); color: var(--gold); }
.toc-m { display: none; }
.text-main { width: 720px; max-width: 100%; min-width: 0; }
.tabs { display: flex; gap: 10px; font-size: 14px; flex-wrap: wrap; }
.tabs a { padding: 6px 16px; border-radius: 16px; border: 1px solid var(--line); color: var(--text-muted); }
.tabs a.on { background: var(--todo-bg); border-color: var(--todo-bg); color: var(--gold); }
.text-main h1 { margin: 28px 0 0; font-family: var(--serif); font-weight: 700; font-size: 40px; line-height: 1.3; }
.updated { margin-top: 12px; font-size: 14px; color: var(--text-faint); }
.prose { margin-top: 32px; font-size: 17px; line-height: 1.95; color: var(--text-soft); overflow-wrap: anywhere; }
.prose p { margin: 16px 0 0; }
.prose h2 {
  margin: 48px 0 0; font-family: var(--serif); font-weight: 700; font-size: 24px; line-height: 1.5; color: var(--text);
  scroll-margin-top: 24px;
}
.prose h3 { margin: 32px 0 0; font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 1.5; color: var(--text); }
.prose h4 { margin: 24px 0 0; font-size: 17px; color: var(--text); }
.prose ul, .prose ol { margin: 16px 0 0; padding-left: 22px; }
.prose li + li { margin-top: 4px; }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prose code { font-family: ui-monospace, Menlo, monospace; font-size: .9em; background: var(--card); padding: 0 4px; border-radius: 4px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0 0; }
.note {
  margin: 28px 0 0; border: 1px solid var(--note-line); background: var(--note-bg); border-radius: 16px; padding: 18px 22px;
  font-size: 15px; line-height: 1.8; color: var(--text-soft);
}
.note p { margin: 0; }
.note p + p { margin-top: 10px; }

/* ------------------------------------------------------------ phones and small windows */
@media (max-width: 720px) {
  .hero { height: 700px; }
  .hero-photo { right: auto; left: 0; width: 100%; height: 700px; }
  .hero-photo img { object-position: 50% 0%; }
  .hero-shade-side { display: none; }
  .hero-shade-bottom {
    top: 300px; height: auto;
    background: linear-gradient(180deg, rgba(14, 13, 12, 0) 0%, rgba(14, 13, 12, .82) 30%, #0E0D0C 62%);
  }
  .hero-shade-top { height: 130px; }
  .topbar { left: 20px; right: 20px; height: 60px; }
  .topbar .logo { font-size: 40px; }
  .topbar-link { font-size: 14px; }
  .hero-copy { left: 24px; right: 24px; top: auto; bottom: 32px; width: auto; }
  .hero-copy h1 { font-size: 32px; line-height: 1.4; letter-spacing: 0; }
  .lead { margin-top: 12px; font-size: 15px; line-height: 1.75; }
  .download { margin-top: 24px; }
  .store-button { height: 56px; padding: 0 32px; }
  .cards { flex-direction: column; gap: 14px; padding: 8px 20px 32px; }
  .card { padding: 24px; }
  .card h2 { margin-top: 10px; font-size: 20px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 18px; padding: 28px 20px 32px; }
  .footer-links { gap: 20px; }
  .footer-meta { text-align: left; }

  .topbar-text { padding: 0 20px; height: 60px; }
  .topbar-text .logo { font-size: 36px; }
  .text-layout { padding: 28px 20px 48px; gap: 0; }
  .toc { display: none; }
  .toc-m { display: block; margin-top: 20px; border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; }
  .toc-m summary { cursor: pointer; padding: 10px 0; font-size: 14px; color: var(--text-muted); }
  .toc-m a { display: block; padding: 8px 0 8px 12px; border-left: 2px solid var(--line); color: var(--text-muted); font-size: 14px; line-height: 1.5; }
  .text-main h1 { font-size: 30px; margin-top: 22px; }
  .prose { font-size: 16px; line-height: 1.9; }
  .prose h2 { font-size: 21px; margin-top: 40px; }
}
