/* ---------- Tokens ---------- */
:root {
  --bg: #fbf8f3;
  --text: #1f1b18;
  --muted: #8e8780;
  --border: #ebe5db;

  --measure: 680px;
  --gutter: 24px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1715;
    --text: #ece6dd;
    --muted: #8a827a;
    --border: #2c2724;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--text) 30%, transparent);
}
a:hover { text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 2px; }

/* ---------- Nav ---------- */
.site-nav {
  border-bottom: 1px solid var(--border);
}

.site-nav .inner {
  max-width: calc(var(--measure) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
}

.site-nav a {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.4;
  text-decoration: none;
}

.site-nav a:hover { color: var(--text); }

.site-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--text);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

/* ---------- Page ---------- */
main {
  max-width: calc(var(--measure) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 56px var(--gutter) 96px;
}

h1 {
  font-size: 2.8rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}

h2 {
  font-size: 0.78rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 52px 0 10px;
}

p { margin: 0 0 1.1em; }

.contact-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
}

.contact-line svg {
  width: 18px;
  height: 18px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.contact-line a { text-decoration: none; }
.contact-line a:hover { text-decoration: underline; text-decoration-color: currentColor; }

/* ---------- Lists (Portfolio / Press) ---------- */
.entries {
  list-style: none;
  margin: 0;
  padding: 0;
}

.entries li {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.entries li:first-child { padding-top: 0; }
.entries li:last-child { border-bottom: 0; }

.entries .title { font-weight: 600; }

.entries .meta {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.entries .desc { display: block; margin-top: 4px; }

h3 {
  font-size: 1.15rem;
  line-height: 1.35;
  font-weight: 600;
  margin: 0;
}

.entries .desc + .desc { margin-top: 0.7em; }

.entries .label {
  display: block;
  margin: 18px 0 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
}

.entries .meta + .label { margin-top: 12px; }

.entries .cta {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.entries .cta a { color: var(--text); }

/* ---------- Mobile ---------- */
@media (max-width: 560px) {
  :root { --gutter: 20px; }
  body { font-size: 18px; line-height: 1.65; }
  main { padding-top: 40px; padding-bottom: 72px; }
  h1 { font-size: 2.2rem; }
  h2 { margin-top: 42px; }
  .site-nav a { font-size: 16px; }
  .site-nav .inner { padding-top: 16px; padding-bottom: 16px; }
}
