/* Quirkiversary site. Colors follow the app icon: coral, ink, and sparkle yellow. */
:root {
  --bg: #fbf5ef;
  --surface: #ffffff;
  --surface-2: #f6ebe1;
  --text: #29232f;
  --text-muted: #6d6270;
  --border: #eadbcd;
  --accent: #d9513a;
  --accent-deep: #b23b2c;
  --accent-ink: #a8352a;
  --sparkle: #f4c542;
  --shadow: 0 1px 2px rgba(41, 35, 47, .06), 0 20px 36px -22px rgba(41, 35, 47, .35);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17131a; --surface: #221c25; --surface-2: #2c2430;
    --text: #f5eee8; --text-muted: #b3a6ae; --border: #3b3140;
    --accent: #ee7a61; --accent-deep: #d9513a; --accent-ink: #f59a86;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 20px 36px -22px rgba(0, 0, 0, .75);
  }
}
:root[data-theme="dark"] {
  --bg: #17131a; --surface: #221c25; --surface-2: #2c2430;
  --text: #f5eee8; --text-muted: #b3a6ae; --border: #3b3140;
  --accent: #ee7a61; --accent-deep: #d9513a; --accent-ink: #f59a86;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 20px 36px -22px rgba(0, 0, 0, .75);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Figtree', ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
a { color: var(--accent-ink); }
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; line-height: 1.12; letter-spacing: -.01em; }
.wrap { max-width: 1060px; margin-inline: auto; padding-inline: max(16px, 4vw); }

/* Nav */
header.site { padding-block: 20px; border-bottom: 1px solid var(--border); }
.navbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Fraunces', Georgia, serif; font-weight: 800; font-size: 20px;
  color: var(--text); text-decoration: none;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.navbar nav { display: flex; gap: 18px; flex-wrap: wrap; }
.navbar nav a { color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.navbar nav a:hover, .navbar nav a[aria-current="page"] { color: var(--text); }

/* Home hero */
.hero { padding-block: 72px 64px; text-align: center; }
.hero h1 { font-size: clamp(40px, 6.4vw, 68px); font-weight: 900; margin: 0 auto 18px; max-width: 16ch; }
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 600; }
.hero p.lede { font-size: 20px; color: var(--text-muted); margin: 0 auto 28px; max-width: 44ch; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--text); color: var(--bg);
  padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 15px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sparkle); }
.platforms { margin-top: 14px; color: var(--text-muted); font-size: 15px; }

/* Tear-off calendar pages: always paper-white, in both themes */
.pages {
  display: flex; justify-content: center; gap: clamp(14px, 3vw, 36px);
  margin-top: 56px; padding-inline: 8px;
}
.page {
  flex: 0 1 230px; min-width: 0;
  background: #fffdf9; color: #29232f;
  border-radius: 18px; box-shadow: var(--shadow); overflow: hidden;
}
.page .top {
  background: var(--accent-deep); color: #fff; text-align: center;
  font-weight: 800; letter-spacing: .14em; font-size: 13px; padding: 10px 0;
}
.page .day {
  font-family: 'Fraunces', Georgia, serif; font-weight: 900; font-size: 64px;
  text-align: center; line-height: 1; padding-top: 14px;
}
.page .weekday { text-align: center; color: #6d6270; font-weight: 700; font-size: 13px; letter-spacing: .12em; }
.page .note {
  margin: 14px 14px 16px; padding: 12px; border-radius: 12px;
  background: #f6ebe1; font-size: 15px; font-weight: 600; text-align: center;
}
.page:nth-child(1) { transform: rotate(-5deg) translateY(10px); }
.page:nth-child(2) { transform: rotate(2deg) translateY(-6px); }
.page:nth-child(3) { transform: rotate(6deg) translateY(14px); }

/* Sections */
section { padding-block: 56px; border-top: 1px solid var(--border); }
section h2 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 10px; }
section .sub { color: var(--text-muted); margin: 0 0 32px; max-width: 60ch; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 24px; box-shadow: var(--shadow);
}
.card h3 { font-size: 22px; margin: 10px 0 8px; }
.card p { margin: 0; color: var(--text-muted); }
.card .icon { font-size: 26px; }

.examples { display: flex; flex-wrap: wrap; gap: 10px; }
.examples span {
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 14px; font-weight: 600; font-size: 15px;
}

/* Text pages (privacy, support) */
.doc { max-width: 720px; padding-block: 56px 72px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin: 0 0 8px; }
.doc .updated { color: var(--text-muted); margin: 0 0 36px; }
.doc h2 { font-size: 24px; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc .callout {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 20px; box-shadow: var(--shadow);
}
.doc .callout p { margin: 0; }
.mail-btn {
  display: inline-block; background: var(--accent-deep); color: #fff;
  padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none;
}

/* Footer */
footer.site { border-top: 1px solid var(--border); padding-block: 28px 40px; color: var(--text-muted); font-size: 14px; }
footer.site .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer.site a { color: var(--text-muted); }

@media (max-width: 820px) {
  .hero { padding-block: 44px 40px; }
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .page:nth-child(3) { display: none; }
  .page .day { font-size: 48px; }
  .page .note { font-size: 14px; margin: 10px; padding: 10px; }
}
