/* Stuffed site. Colours and type follow the app (Design/ShoeboxTheme.swift):
   warm ground, one red accent, Archivo. Fonts are served from this site, so a
   visit sends nothing to anyone else. */

@font-face { font-family: "Archivo"; src: url("fonts/Archivo-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/Archivo-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/Archivo-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #F2E4DE;
  --surface: #FFFFFF;
  --ink: #201E1D;
  --muted: #605D5D;
  --accent: #EC3013;
  --accent-text: #AE1800;
  --tint: #FFE0D9;
  --line: rgba(32, 30, 29, 0.10);
  --shadow: 0 1px 2px rgba(32, 30, 29, 0.06), 0 8px 24px rgba(32, 30, 29, 0.07);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17110F;
    --surface: #241C1A;
    --ink: #F7EFEC;
    --muted: #B3A8A4;
    --accent-text: #FF9783;
    --tint: #46180F;
    --line: rgba(255, 255, 255, 0.11);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Header and footer */

.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 18px; font-weight: 600; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

.site-footer { border-top: 1px solid var(--line); margin-top: 72px; padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: var(--muted); }

/* Home */

.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; padding: 48px 0 32px; }
.hero h1 { font-size: clamp(44px, 7vw, 72px); line-height: 1.02; margin: 0 0 6px; letter-spacing: -0.02em; }
.hero .subtitle { font-size: clamp(20px, 2.6vw, 26px); font-weight: 600; color: var(--muted); margin: 0 0 24px; }
.hero .line { font-size: clamp(26px, 3.6vw, 36px); font-weight: 700; line-height: 1.15; margin: 0 0 16px; }
.hero .line span { color: var(--accent-text); }
.hero p.lede { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.hero-icon { width: 100%; max-width: 320px; justify-self: center; border-radius: 22.5%; box-shadow: 0 2px 4px rgba(32, 30, 29, 0.08), 0 22px 44px rgba(32, 30, 29, 0.18); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: 16px;
  padding: 12px 22px; border-radius: 999px;
}
.pill.quiet { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.note { color: var(--muted); font-size: 14px; margin-top: 12px; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.card { background: var(--surface); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.card h2 { font-size: 21px; margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); }
.card .kicker { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 2px; }

.ask { background: var(--tint); border-radius: 18px; padding: 28px; margin-top: 16px; }
.ask h2 { margin: 0 0 12px; font-size: 21px; }
.ask ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.ask li { background: var(--surface); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 15px; }

/* Text pages */

.page { padding-top: 32px; }
.page h1 { font-size: clamp(34px, 5vw, 46px); line-height: 1.1; margin: 0 0 8px; letter-spacing: -0.01em; }
.page .meta { color: var(--muted); margin: 0 0 28px; }
.page h2 { font-size: 22px; margin: 36px 0 8px; }
.page p, .page li { color: var(--ink); }
.page ul { padding-left: 22px; }
.summary { background: var(--surface); border-radius: 18px; padding: 22px 24px; box-shadow: var(--shadow); }
.summary p { margin: 0; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; gap: 8px; padding-top: 16px; }
  .hero-icon { max-width: 168px; order: -1; justify-self: start; margin-bottom: 16px; }
  .features { grid-template-columns: 1fr; }
  .nav { gap: 14px; }
  .brand span { display: none; }
}
