/* ==========================================================================
   VIASTERRA — the site
   The same materials as the app: ivory, deep charcoal, one dusty blue, a book
   serif for anything that is read and a system sans for anything that is used.
   Deliberately quiet. It is selling a quiet thing.
   ========================================================================== */

:root {
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Palatino", "Book Antiqua",
                Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
               Arial, sans-serif;

  --bg: #faf7f1;
  --bg-raise: #fffdf8;
  --bg-sunk: #f4efe6;
  --ink: #2b2a26;
  --ink-soft: #4a473f;
  --ink-faint: #716c62;
  --rule: rgba(43, 42, 38, 0.11);
  --rule-strong: rgba(43, 42, 38, 0.2);
  --accent: #4e6b84;
  --accent-deep: #3d5568;
  --accent-wash: rgba(78, 107, 132, 0.09);

  --measure: 36rem;
  --wide: 60rem;
  --gutter: clamp(1.375rem, 5vw, 3rem);
  --radius: 3px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191713;
    --bg-raise: #201d18;
    --bg-sunk: #141210;
    --ink: #efe9dd;
    --ink-soft: #cfc7b8;
    --ink-faint: #918a7d;
    --rule: rgba(239, 233, 221, 0.12);
    --rule-strong: rgba(239, 233, 221, 0.22);
    --accent: #93aec4;
    --accent-deep: #b0c6d8;
    --accent-wash: rgba(147, 174, 196, 0.11);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:where(a, button, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- structure ------------------------------------------------------------ */

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--wide { max-width: var(--wide); }

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  max-width: calc(var(--wide) + var(--gutter) * 2);
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) var(--gutter);
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink-faint);
  transition: color 180ms ease;
}
.lockup:hover { color: var(--ink-soft); }
.lockup svg { width: 15px; height: 15px; flex: none; }
.lockup span {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.masthead nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}
.masthead nav a {
  font-size: 0.8125rem;
  color: var(--ink-faint);
  text-decoration: none;
  transition: color 180ms ease;
}
.masthead nav a:hover { color: var(--ink); }

/* --- type ----------------------------------------------------------------- */

.display {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.35;
}

.lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.125rem, 1.04rem + 0.5vw, 1.375rem);
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 30ch;
}

.prose p,
.prose li {
  font-family: var(--font-serif);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.1875rem);
  line-height: 1.72;
  color: var(--ink-soft);
}
.prose p + p { margin-top: 1.1rem; }
.prose ul { margin-top: 1.1rem; display: flex; flex-direction: column; gap: 0.7rem; }
.prose li { padding-left: 1.1rem; position: relative; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.72em;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); text-underline-offset: 3px; }

.eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
}

/* --- sections ------------------------------------------------------------- */

section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
section + section { border-top: 1px solid var(--rule); }

.hero { padding-top: clamp(2rem, 6vw, 4rem); }
.hero .lead { margin-top: 1.25rem; }
.hero .actions { margin-top: clamp(2rem, 6vw, 3rem); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.8rem 1.6rem;
  background: var(--accent);
  color: #fffdf8;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

@media (prefers-color-scheme: dark) {
  .btn { color: #171511; }
}

.quiet-link {
  font-size: 0.9375rem;
  color: var(--ink-faint);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 2px;
  transition: color 180ms ease;
}
.quiet-link:hover { color: var(--ink); }

.note { font-size: 0.875rem; color: var(--ink-faint); }

/* --- feature rows --------------------------------------------------------- */

.rows { display: flex; flex-direction: column; gap: clamp(2.5rem, 6vw, 4rem); }
.row { display: grid; gap: 0.85rem; max-width: var(--measure); }
.row h3 { color: var(--ink); }
.row p { color: var(--ink-soft); font-family: var(--font-serif); line-height: 1.7; }

/* --- the honest privacy panel --------------------------------------------- */

.panel {
  background: var(--bg-raise);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.panel h3 { margin-bottom: 0.75rem; }
.ledger { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 1.25rem; }
.ledger div { display: flex; gap: 0.85rem; align-items: baseline; font-size: 0.9375rem; }
.ledger .mark { flex: none; width: 1.1rem; color: var(--accent); font-weight: 600; }
.ledger .no { color: var(--ink-faint); }

/* --- pricing -------------------------------------------------------------- */

.price {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 2rem + 2.5vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.price small { font-size: 1rem; letter-spacing: 0; color: var(--ink-faint); font-family: var(--font-sans); }

/* --- screenshots ---------------------------------------------------------- */

.shots {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: 2rem;
}
.shot {
  flex: 1 1 15rem;
  max-width: 20rem;
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-sunk);
}
.shot img { width: 100%; height: auto; }
.shot figcaption {
  font-size: 0.8125rem;
  color: var(--ink-faint);
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--rule);
}

/* --- faq ------------------------------------------------------------------ */

.faq { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 1.5rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  padding: 1rem 0;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-faint); font-family: var(--font-sans); }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding-bottom: 1.25rem; }
.faq .answer p {
  font-family: var(--font-serif);
  color: var(--ink-soft);
  line-height: 1.7;
}
.faq .answer p + p { margin-top: 0.85rem; }

/* --- footer --------------------------------------------------------------- */

footer {
  border-top: 1px solid var(--rule);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.footcols {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  align-items: flex-start;
}
.footcols nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footcols a {
  font-size: 0.875rem;
  color: var(--ink-faint);
  text-decoration: none;
}
.footcols a:hover { color: var(--ink); }
.colophon { margin-top: 1.5rem; font-size: 0.8125rem; color: var(--ink-faint); max-width: 46ch; }

/* --- legal pages ---------------------------------------------------------- */

.doc { padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.doc h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 1.6rem + 2vw, 2.75rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.doc .updated { margin-top: 0.75rem; color: var(--ink-faint); font-size: 0.875rem; }
.doc h2 {
  margin-top: clamp(2.25rem, 5vw, 3rem);
  margin-bottom: 0.85rem;
  font-size: 1.375rem;
}
.doc .prose > p:first-child { margin-top: 1.5rem; }

/* Anything still needing a real value before this site goes live. */
.todo {
  background: var(--accent-wash);
  border-bottom: 1px dashed var(--accent);
  padding: 0 0.2rem;
  font-family: var(--font-sans);
  font-size: 0.9em;
  color: var(--accent);
}
