/* Dromora landing site — shared stylesheet.
 *
 * Design tokens mirrored from the app so the web surface and the app cannot
 * drift: TripIt/Design/Tokens.swift (tiBg #0b0e0c, tiSurface #14181a,
 * tiMint #3dd68c) and TripIt/Theme/Theme.swift (text #f2f4f3, dim 62%,
 * line white 8%). Pull values from there — never eyeball them.
 */

:root {
  --bg: #0b0e0c;
  --surface: #14181a;
  --line: rgba(255, 255, 255, .08);
  --text: #f2f4f3;
  --dim: rgba(242, 244, 243, .62);
  --accent: #3dd68c;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --surface: #f4f6f5;
    --line: rgba(11, 14, 12, .10);
    --text: #0b0e0c;
    --dim: rgba(11, 14, 12, .68);
    --accent: #1c8a55;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 3rem 1.25rem 5rem; }

header.site { display: flex; align-items: baseline; gap: .75rem; margin-bottom: 2.5rem; }
header.site .brand { font-size: 1.05rem; font-weight: 600; letter-spacing: .01em; }
header.site .brand a { color: var(--text); }
header.site nav { margin-left: auto; font-size: .875rem; }
header.site nav a { color: var(--dim); margin-left: 1rem; }

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 1.5rem; letter-spacing: -.02em; }
h2 { font-size: 1.25rem; margin: 2.75rem 0 .75rem; letter-spacing: -.01em; }
h3 { font-size: 1rem; margin: 2rem 0 .5rem; color: var(--text); }

p, li { color: var(--dim); }
strong { color: var(--text); font-weight: 600; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { padding-left: 1.15rem; }
li { margin: .35rem 0; }

code {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .1rem .35rem;
  font-size: .875em;
  color: var(--text);
}

.tablewrap { overflow-x: auto; margin: 1rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
th, td {
  text-align: left;
  padding: .6rem .75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--dim);
}
th { color: var(--text); font-weight: 600; white-space: nowrap; }

/* An unfilled {{PLACEHOLDER}}. Loud on purpose: a legal page carrying one of
 * these must never be mistaken for publishable. */
.todo {
  background: #ff5c5c;
  color: #0b0e0c;
  font-weight: 700;
  padding: 0 .3rem;
  border-radius: 4px;
}

.lede { font-size: 1.125rem; max-width: 34rem; }

footer.site {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .8125rem;
  color: var(--dim);
}
