/* terrela.app — the same look as the app: cream and forest green, Fraunces for headings, Karla for text */

:root {
  --bg: #F7F7F2;
  --surface: #EDEDE4;
  --ink: #102E1B;
  --muted: #5A5B48;
  --accent: #85BF9A;
  --accent-soft: #E1F0E7;
  --hairline: #D6D6CA;
  --link: #102E1B;
  --gutter: 20px;
  color-scheme: light; /* always light, like the homepage */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Karla", system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.wrap { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }

/* Header and footer */
.site-head { padding: 28px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mark { display: block; width: 22px; height: 42px; background: var(--ink); -webkit-mask: url(assets/t.png) center / contain no-repeat; mask: url(assets/t.png) center / contain no-repeat; }
.site-head nav { display: flex; gap: 22px; font-size: 16px; }
.site-head nav a { text-decoration: none; color: var(--muted); }
.site-head nav a:hover { color: var(--ink); }

.site-foot { margin-top: 96px; padding: 40px 0 56px; border-top: 1px solid var(--hairline); font-size: 15px; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-foot a { color: var(--muted); }

/* Drawings: Connor's line art, in the page's ink (so they follow light and dark) */
.drawing { background: var(--ink); -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }

/* Home */
.hero { padding: 48px 0 24px; text-align: center; }
.hero .icon { width: 112px; height: 112px; margin: 0 auto 36px; border-radius: 25px; box-shadow: 0 10px 30px rgba(16, 46, 27, .12), 0 0 0 1px rgba(16, 46, 27, .06); }
.wordmark { width: min(340px, 78vw); aspect-ratio: 1363 / 401; margin: 0 auto; background: url(assets/wordmark.png) center / contain no-repeat; }
.tagline { margin-top: 18px; font-size: 21px; color: var(--muted); }
.lede { max-width: 560px; margin: 28px auto 0; font-size: 19px; }
.store { display: inline-flex; align-items: center; gap: 10px; margin-top: 34px; padding: 14px 26px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 16px; text-decoration: none; }
.store[aria-disabled="true"] { cursor: default; }
.store svg { width: 18px; height: 18px; fill: currentColor; }
.soon { margin-top: 12px; font-size: 14px; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 88px; }
.feature { background: var(--surface); border-radius: 28px; padding: 30px 26px 32px; }
.feature .drawing { width: 96px; height: 80px; margin-bottom: 22px; }
.feature h2 { font-size: 26px; margin-bottom: 10px; }
.feature p { font-size: 17px; color: var(--muted); }

.promise { margin-top: 88px; text-align: center; }
.promise h2 { font-size: clamp(30px, 5vw, 40px); }
.promise p { max-width: 600px; margin: 18px auto 0; color: var(--muted); }
.promise ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.promise li { background: var(--accent-soft); border-radius: 999px; padding: 8px 18px; font-size: 16px; }

.note { margin-top: 88px; text-align: center; }
.note p { max-width: 600px; margin: 0 auto; font-family: "Fraunces", Georgia, serif; font-variation-settings: "SOFT" 0, "WONK" 1; font-size: 24px; line-height: 1.4; }
.note .sign { margin-top: 14px; font-family: "Karla", system-ui, sans-serif; font-size: 16px; color: var(--muted); }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .features { grid-template-columns: 1fr; margin-top: 64px; }
  .promise, .note { margin-top: 64px; }
  .site-head nav { gap: 16px; font-size: 15px; }
}

/* Legal pages */
.legal { padding-top: 24px; }
.legal h1 { font-size: clamp(36px, 7vw, 52px); }
.legal .updated { margin-top: 10px; color: var(--muted); font-size: 16px; }
.legal .summary { margin-top: 32px; padding: 24px 26px; background: var(--surface); border-radius: 24px; }
.legal .summary h2 { font-size: 22px; margin: 0 0 10px; }
.legal .summary ul { margin-top: 6px; }
.legal h2 { font-size: 28px; margin-top: 48px; margin-bottom: 12px; }
.legal h3 { font-size: 21px; margin-top: 28px; margin-bottom: 8px; }
.legal p, .legal li { margin-top: 10px; }
.legal ul { padding-left: 22px; }
.legal li::marker { color: var(--muted); }
.legal table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 16px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hairline); }
.legal th { font-weight: 600; }
@media (max-width: 600px) {
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; }
  .legal thead { display: none; }
  .legal tr { padding: 10px 0; border-bottom: 1px solid var(--hairline); }
  .legal td { border: none; padding: 2px 0; }
  .legal td:first-child { font-weight: 600; }
}
