/* Verso — versoapp.co
   Brand system drawn from the app's design tokens (src/theme/tokens.ts):
   cream #faf8f5, ink #111111, decorative gold #9A7230, accessible gold #7a5818,
   warm border #d4c4a0. Cormorant Garamond for display, Josefin Sans for body. */

:root {
  --bg: #faf8f5;
  --ink: #111111;
  --ink-soft: #333333;
  --muted: #888888;
  --gold: #9a7230;          /* decorative only: hairlines, h1 accent */
  --gold-link: #7a5818;     /* functional: links, accents at body size */
  --border: #d4c4a0;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Josefin Sans", "Avenir Next", "Segoe UI", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  max-width: 60rem;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(154, 114, 48, 0.4);
}

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.65rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--gold-link);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.75rem;
}

.site-nav a {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-link);
  text-decoration: none;
  padding: 0.15rem 0;
}

.site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.35em;
  text-decoration-thickness: 1px;
}

/* ---------- Main column ---------- */

.page {
  flex: 1;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 5rem 1.5rem 6rem;
}

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.4rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--ink);
}

/* Short gold accent hairline beneath the page heading — decorative gold only. */
h1::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 1px;
  background: var(--gold);
  margin-top: 1.1rem;
}

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--ink);
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
}

.page p {
  margin-bottom: 1.1rem;
  color: var(--ink-soft);
}

.page ul {
  margin: 0 0 1.1rem 1.25rem;
  color: var(--ink-soft);
}

.page li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.page li::marker {
  color: var(--gold);
}

.page a {
  color: var(--gold-link);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

.page a:hover {
  text-decoration-thickness: 2px;
}

.page strong {
  font-weight: 600;
  color: var(--ink);
}

.updated {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.25rem 0 2.5rem;
}

/* ---------- Footer ---------- */

.site-footer {
  max-width: 60rem;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--gold-link);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  .page {
    padding: 2rem 1.25rem 3.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  .site-header {
    padding: 1.5rem 1.25rem 1rem;
  }

  .site-nav {
    gap: 0.4rem 1.1rem;
  }

  .site-footer {
    padding: 1.25rem 1.25rem 2rem;
  }
}
