:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #6b675f;
  --accent: #3d3a8c;
  --line: #e8e4dc;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Oriya", "Noto Sans Malayalam", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141412;
    --surface: #1c1c19;
    --text: #ece9e2;
    --muted: #a19c92;
    --accent: #a9a4ff;
    --line: #2c2b27;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }

/* Header */
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-family: var(--serif); font-size: 22px; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
nav a { margin-left: 24px; color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--text); }

/* Home */
.hero { padding: 96px 0 72px; text-align: center; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 9vw, 84px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}
.hero p { font-size: 19px; color: var(--muted); max-width: 460px; margin: 0 auto; }
.rule { width: 40px; height: 1px; background: var(--text); opacity: .35; margin: 28px auto 0; border: 0; }

.section { padding: 32px 0; }
.section h2 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}
.apps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.apps li {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
  line-height: 1.35;
}
.mono {
  flex: none;
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 19px;
  color: #fff;
  background: var(--c, var(--accent));
}
.icon {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line);
}
.apps li .mono { width: 48px; height: 48px; border-radius: 12px; }
.contact { text-align: center; padding: 64px 0 88px; }
.contact p { margin: 0; color: var(--muted); }
.contact a { font-family: var(--serif); font-size: 26px; text-decoration: none; display: inline-block; margin-top: 8px; }
.contact a:hover { text-decoration: underline; }

/* Policy pages */
main.doc { padding: 40px 0 72px; }
main.doc .wrap { max-width: 720px; }
main.doc h1 { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1.1; letter-spacing: -0.02em; margin: 16px 0 8px; }
main.doc h2 { font-family: var(--serif); font-weight: 400; font-size: 25px; margin: 44px 0 8px; }
main.doc h3 { font-size: 17px; margin: 24px 0 4px; }
.meta { color: var(--muted); margin: 0 0 24px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; }
code { font-size: 13.5px; word-break: break-all; color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { padding: 24px 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer a { color: var(--muted); }

@media (max-width: 600px) {
  .hero { padding: 64px 0 48px; }
  nav a { margin-left: 16px; }
  main.doc h1 { font-size: 36px; }
}
