/* Archst — the public site.
   Light only, deliberately: the app ships `userInterfaceStyle: "light"` and a
   site that goes dark while the product it describes never does reads as two
   different products. */

:root {
  --paper: #F7F3EC;
  --paper-warm: #FBF6EF;
  --card: #FFFDF9;
  --sunk: #EFE8DC;
  --ink: #1C1A17;
  --ink-soft: #5B5348;
  --ink-faint: #8A8073;
  --rule: #E3DACB;
  --brown: #7C5F3D;
  --rose: #D8687B;
  --warn: #A23B27;

  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --shadow-sm: 0 1px 2px rgba(60, 46, 28, .05), 0 6px 18px -10px rgba(60, 46, 28, .14);
  --shadow-lg: 0 2px 4px rgba(60, 46, 28, .06), 0 24px 48px -24px rgba(60, 46, 28, .30);

  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 42rem; margin: 0 auto; padding: 2rem 1.25rem 0; }
.wrap-wide { max-width: 60rem; margin: 0 auto; padding: 2rem 1.25rem 0; }

/* ── Masthead ─────────────────────────────────────────────────────────── */

header.site {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding-bottom: 1.4rem; margin-bottom: 2.8rem;
  border-bottom: 1px solid var(--rule);
}

.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand .arch {
  width: 17px; height: 22px; background: var(--rose); flex: none;
  border-radius: 8.5px 8.5px 2px 2px / 11px 11px 2px 2px;
}
.brand span {
  font-family: var(--f-display); font-weight: 600; font-size: 1.05rem;
  color: var(--ink); letter-spacing: -0.01em;
}

nav.site { display: flex; gap: 1.1rem; flex-wrap: wrap; }
nav.site a { font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--ink); }
nav.site a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* ── Type ─────────────────────────────────────────────────────────────── */

h1 {
  font-family: var(--f-display); font-optical-sizing: auto; font-weight: 600;
  font-size: clamp(1.9rem, 5.5vw, 2.7rem); line-height: 1.12; letter-spacing: -0.015em;
  color: var(--ink); margin: 0 0 1rem; text-wrap: balance;
}
h2 {
  font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; line-height: 1.25;
  color: var(--ink); margin: 2.8rem 0 0.9rem; text-wrap: balance;
}
h3 { font-family: var(--f-body); font-weight: 600; font-size: 1rem; color: var(--ink); margin: 1.8rem 0 0.5rem; }

.lede { font-size: 1.08rem; line-height: 1.6; margin: 0 0 1.6rem; }

p { margin: 0 0 1rem; }
strong { color: var(--ink); font-weight: 600; }
a { color: var(--brown); text-underline-offset: 2px; }
a:hover { color: var(--ink); }

ul, ol { padding-left: 1.15rem; margin: 0 0 1.2rem; }
li { margin-bottom: 0.45rem; }

.eyebrow {
  font-weight: 600; font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brown); margin: 0 0 0.85rem;
}
.updated {
  font-size: 0.85rem; color: var(--ink-faint); margin: 0 0 2.4rem;
  padding-bottom: 1.2rem; border-bottom: 1px solid var(--rule);
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  display: grid; grid-template-columns: 1fr; gap: 2.6rem;
  align-items: center; margin-bottom: 1rem;
}
@media (min-width: 54rem) {
  .hero { grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; }
}
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.1rem); }
.hero .lede { max-width: 32rem; }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 20rem; height: auto; filter: drop-shadow(0 24px 40px rgba(60,46,28,.20)); }

/* ── Download ─────────────────────────────────────────────────────────── */

.dl-row { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; margin: 0 0 0.9rem; }

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--f-body); font-size: 0.95rem; font-weight: 600;
  padding: 0.8rem 1.3rem; border-radius: 10px; text-decoration: none;
  border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--paper-warm); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #000; color: #fff; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--ink-faint); color: var(--ink); }
.btn svg { flex: none; }

.dl-meta { font-size: 0.8rem; color: var(--ink-faint); margin: 0; }
.dl-meta b { color: var(--ink-soft); font-weight: 600; }

.dl-panel {
  background: var(--card); border: 1px solid var(--rule); border-radius: 14px;
  padding: 1.5rem 1.6rem; margin: 0 0 1.2rem; box-shadow: var(--shadow-sm);
}
.dl-panel h3 { margin-top: 0; }
.dl-steps { counter-reset: s; list-style: none; padding: 0; margin: 1rem 0 0; }
.dl-steps li {
  counter-increment: s; position: relative; padding-left: 2rem;
  margin-bottom: 0.6rem; font-size: 0.9rem;
}
.dl-steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0.15rem;
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--sunk); color: var(--ink); font-size: 0.72rem; font-weight: 600;
  display: grid; place-content: center;
}

.soon {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--sunk); border-radius: 10px; padding: 0.7rem 1.1rem;
  font-size: 0.85rem; color: var(--ink-soft);
}
.soon b { color: var(--ink); font-weight: 600; }

/* ── Features ─────────────────────────────────────────────────────────── */

.features { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 0 0 1.4rem; }
@media (min-width: 40rem) { .features { grid-template-columns: 1fr 1fr; } }
.feature {
  background: var(--card); border: 1px solid var(--rule);
  border-radius: 12px; padding: 1.2rem 1.3rem;
}
.feature h3 { margin: 0 0 0.35rem; font-size: 0.98rem; }
.feature p { margin: 0; font-size: 0.9rem; line-height: 1.6; }

/* ── Blocks ───────────────────────────────────────────────────────────── */

.card { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 1.4rem 1.5rem; margin: 0 0 1rem; }
.card p:last-child { margin-bottom: 0; }

.price { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.price h3 { margin: 0; font-size: 1.05rem; }
.price .amount {
  font-family: var(--f-display); font-weight: 600; font-size: 1.5rem;
  color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.price .amount small {
  font-family: var(--f-body); font-size: 0.78rem; font-weight: 500;
  color: var(--ink-faint); display: block; text-align: right; margin-top: 0.1rem;
}

dl.facts { margin: 0; }
dl.facts > div {
  display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.5rem 1rem;
  padding: 0.65rem 0; border-bottom: 1px solid var(--rule); font-size: 0.93rem;
}
dl.facts > div:last-child { border-bottom: none; }
dl.facts dt { color: var(--ink-faint); }
dl.facts dd { margin: 0; color: var(--ink); }
@media (max-width: 32rem) { dl.facts > div { grid-template-columns: 1fr; gap: 0.1rem; padding: 0.6rem 0; } }

.note {
  border-left: 3px solid var(--brown); background: var(--card);
  border-radius: 3px 10px 10px 3px; padding: 1rem 1.2rem;
  margin: 0 0 1.4rem; font-size: 0.93rem;
}
.note p:last-child { margin-bottom: 0; }

/* An unfilled value, loud on purpose — a live page must never ship one. */
.todo {
  display: inline-block; background: #FBE6E1; color: var(--warn);
  border: 1px dashed var(--warn); border-radius: 4px; padding: 0 0.35rem;
  font-family: var(--f-body); font-weight: 600; font-size: 0.85em;
}

/* ── Footer ───────────────────────────────────────────────────────────── */

footer.site {
  margin-top: 4.5rem;
  background: var(--card);
  border-top: 1px solid var(--rule);
}
.footer-inner { max-width: 60rem; margin: 0 auto; padding: 2.8rem 1.25rem 2rem; }

.footer-cols {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  padding-bottom: 2rem; border-bottom: 1px solid var(--rule);
}
@media (min-width: 44rem) { .footer-cols { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; } }

.footer-brand .brand { margin-bottom: 0.7rem; }
.footer-brand p { font-size: 0.86rem; line-height: 1.6; margin: 0; max-width: 20rem; color: var(--ink-soft); }

.footer-cols h4 {
  font-family: var(--f-body); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint);
  margin: 0 0 0.8rem;
}
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: 0.5rem; font-size: 0.88rem; }
.footer-cols a { color: var(--ink-soft); text-decoration: none; }
.footer-cols a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.social { display: flex; gap: 0.55rem; margin-top: 0.9rem; }
.social a {
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  border: 1px solid var(--rule); background: var(--paper-warm);
  display: grid; place-content: center; color: var(--ink-soft);
}
.social a:hover { color: var(--ink); border-color: var(--ink-faint); background: var(--sunk); }
.social svg { display: block; }

.footer-legal { padding-top: 1.6rem; font-size: 0.8rem; color: var(--ink-faint); line-height: 1.65; }
.footer-legal p { margin: 0 0 0.4rem; }
.footer-legal p:last-child { margin-bottom: 0; }
.footer-legal strong { color: var(--ink-soft); font-weight: 600; }
