/* Tilanur web — brand tokens from docs/visual-design.md §1.1 / §1.2 (dark theme). */

:root {
  --bg: #0B1129;        /* Mihrab Indigo */
  --surface: #131A35;
  --on: #F4EFE6;        /* Parchment */
  --on-muted: #B7B0A2;
  --on-dim: #7B7468;
  --accent: #D9B36A;    /* Nur Gold */
  --accent-soft: rgba(217, 179, 106, 0.16);
  --line: rgba(217, 179, 106, 0.10);

  --max-text: 36rem;
  --max-page: 56rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--on);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color 200ms cubic-bezier(0.32, 0.08, 0.24, 1);
}
a:hover, a:focus-visible { border-bottom-color: var(--accent); }
a:focus-visible {
  outline: 2px solid rgba(217, 179, 106, 0.30);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─── Wordmark ─────────────────────────────────────────────────────────── */

.wordmark {
  font-family: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 96, "SOFT" 30, "WONK" 0;
  color: var(--on);
  letter-spacing: -0.025em;
  line-height: 1;
  display: inline-block;
}

/* The dotless ı sits inside .wordmark__i; the gold disc is its tittle. */
.wordmark__i {
  position: relative;
  display: inline-block;
}
.wordmark__i::before {
  content: "";
  position: absolute;
  /* Tuned to the spec in render_feature.py: disc diameter 0.18em,
     top edge 0.06em above the cap-line. Italic slant pushes the
     disc slightly right of the stem's geometric center. */
  width: 0.18em;
  height: 0.18em;
  top: -0.10em;
  left: 0.18em;
  border-radius: 50%;
  background: var(--accent);
}

/* ─── Landing (index.html) ─────────────────────────────────────────────── */

.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 5vw, 3rem);
}

.landing__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: var(--max-text);
  margin: 0 auto;
  padding: 4rem 0;
}

.landing__wordmark {
  font-size: clamp(4rem, 14vw, 7rem);
  margin-bottom: 1.25rem;
}

.landing__tagline {
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--accent);
  margin: 0 0 2.5rem;
  letter-spacing: 0.01em;
}

.landing__lede {
  font-size: 1.0625rem;
  color: var(--on);
  margin: 0 0 1rem;
}

.landing__lede--muted {
  color: var(--on-muted);
  margin-bottom: 2.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--on);
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
}

.pill__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

.footer {
  max-width: var(--max-page);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  color: var(--on-dim);
  font-size: 0.875rem;
  width: 100%;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer a { border-bottom-color: transparent; }
.footer a:hover, .footer a:focus-visible { border-bottom-color: var(--accent); }

/* ─── Document pages (privacy.html) ────────────────────────────────────── */

.doc {
  max-width: var(--max-text);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 2rem) 6rem;
}

.doc__brand {
  font-size: 1.5rem;
  margin-bottom: 3rem;
  display: inline-block;
}
.doc__brand a { color: var(--on); border-bottom: none; }
.doc__brand a:hover, .doc__brand a:focus-visible { color: var(--accent); }

.doc h1 {
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.2;
  margin: 0 0 0.5rem;
  color: var(--on);
}

.doc h2 {
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-weight: 500;
  font-size: 1.375rem;
  line-height: 1.3;
  margin: 3rem 0 1rem;
  color: var(--on);
}

.doc__meta {
  color: var(--on-dim);
  font-size: 0.9375rem;
  font-style: italic;
  margin: 0 0 2rem;
}

.doc p { margin: 0 0 1rem; }
.doc ul { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.doc li { margin-bottom: 0.5rem; }
.doc li::marker { color: var(--accent); }

.doc strong { color: var(--on); font-weight: 600; }
.doc em { color: var(--on-muted); }

.doc hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

.doc blockquote {
  margin: 1.5rem 0;
  padding: 0.875rem 1.25rem;
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  color: var(--on);
  border-radius: 0 4px 4px 0;
}

.doc code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.875em;
  background: var(--surface);
  color: var(--on);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.doc__back {
  margin-top: 4rem;
  font-size: 0.9375rem;
}
