@font-face { font-family: "CoHomie Hand"; src: url("/fonts/CoHomieHand.ttf") format("truetype"); font-display: swap; }

:root {
  --bg: #EEEDE9; --card: #FFFFFF; --bd: #E6EAF0; --text: #0B1A3A; --muted: #5A6680;
  --accent: #2D57A8; --accent-text: #2D57A8; --tint: #E3EEFF; --on-accent: #FFFFFF; --logo-filter: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1022; --card: #121A33; --bd: #22305A; --text: #EEF2FA; --muted: #A8B4CC;
    --accent: #6FA3FF; --accent-text: #8DB8FF; --tint: #16264D; --on-accent: #0A1022; --logo-filter: brightness(0) invert(1);
  }
}
:root[data-theme="dark"] {
  --bg: #0A1022; --card: #121A33; --bd: #22305A; --text: #EEF2FA; --muted: #A8B4CC;
  --accent: #6FA3FF; --accent-text: #8DB8FF; --tint: #16264D; --on-accent: #0A1022; --logo-filter: brightness(0) invert(1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.65;
}
a { color: var(--accent-text); font-weight: 600; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

header.site { padding: 22px 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
header.site img { height: 26px; width: auto; display: block; filter: var(--logo-filter); }
header.site nav { display: flex; gap: 18px; font-size: 15px; flex-wrap: wrap; }
header.site nav a { text-decoration: none; color: var(--muted); font-weight: 600; }
header.site nav a[aria-current="page"], header.site nav a:hover { color: var(--text); }

.hand { font-family: "CoHomie Hand", "Patrick Hand", "Plus Jakarta Sans", sans-serif; font-weight: 400; letter-spacing: 0.5px; }
h1 { font-family: "CoHomie Hand", "Patrick Hand", sans-serif; font-weight: 400; font-size: clamp(36px, 8vw, 52px); line-height: 1.05; margin: 18px 0 8px; }
h2 { font-size: 20px; font-weight: 800; margin: 34px 0 8px; line-height: 1.3; }
h3 { font-size: 16px; font-weight: 700; margin: 22px 0 4px; }
p, li { color: var(--text); }
ul { padding-left: 22px; }
li { margin: 4px 0; }
.muted { color: var(--muted); }
.updated { color: var(--muted); font-size: 14px; margin: 0 0 22px; }

.card { background: var(--card); border: 1px solid var(--bd); border-radius: 20px; padding: 22px 22px 8px; margin: 18px 0; }
.card > :first-child { margin-top: 0; }
.doc { background: var(--card); border: 1px solid var(--bd); border-radius: 20px; padding: 8px 24px 28px; margin-bottom: 40px; }
@media (max-width: 520px) { .doc { padding: 4px 18px 22px; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 22px; border-radius: 16px;
  background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 700; font-size: 16px;
}
.pill { display: inline-block; background: var(--tint); color: var(--accent-text); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 14px; }

/* Home */
.hero { text-align: center; padding: 26px 0 8px; }
.hero img.tilt { width: min(260px, 70vw); height: auto; filter: var(--logo-filter); }
.hero h1 { margin-top: 18px; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 520px; margin: 10px auto 22px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 34px 0; }
.grid .card { margin: 0; padding: 20px; }
.grid h3 { margin: 0 0 4px; }
.grid p { margin: 0; color: var(--muted); font-size: 15px; }

/* Support FAQ */
details { background: var(--card); border: 1px solid var(--bd); border-radius: 16px; padding: 4px 18px; margin: 10px 0; }
details summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--accent-text); font-weight: 800; font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p, details ol, details ul { margin-top: 0; }

footer.site { padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
footer.site nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }
