/* ---------------------------------------------------------------
   Theme — edit these and every page follows.
   --------------------------------------------------------------- */
:root {
  --bg: #f4efe6;
  --fg: #1a1a1a;
  --muted: #6b6560;
  --rule: #e2ded8;

  --font-display: Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --measure: 34rem; /* max line length for readable text */
  --gap: 1.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171614;
    --fg: #f2efe9;
    --muted: #9c948a;
    --rule: #332f2b;
  }
}

/* ---------------------------------------------------------------
   Base
   --------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

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

/* ---------------------------------------------------------------
   Layout
   --------------------------------------------------------------- */
.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gap);
}

/* Full-bleed centered hero — used by the homepage. */
.page--center {
  align-items: center;
  text-align: center;
}

/* Left-aligned column of prose — used by interior pages. */
.page--prose {
  align-items: flex-start;
  justify-content: center;
  max-width: var(--measure);
  margin: 0 auto;
  width: 100%;
}

/* ---------------------------------------------------------------
   Type
   --------------------------------------------------------------- */
h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0 0 0.5em;
  letter-spacing: 0.02em;
}

.display {
  font-size: clamp(3rem, 18vw, 9rem);
  margin: 0;
  line-height: 1;
}

h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------------
   Site nav
   --------------------------------------------------------------- */
.nav {
  display: flex;
  gap: var(--gap);
  padding: var(--gap);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule);
}

.nav a {
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--fg);
  text-decoration: underline;
}
