/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── Tokens ─── */
:root {
  --bg:      #ffffff;
  --ink:     #111111;
  --mid:     #444444;
  --faint:   #888888;
  --border:  #e0dfd9;
  --white:   #ffffff;
  --serif:   'Fraunces', Georgia, serif;
  --mono:    'Space Mono', 'Courier New', monospace;
  --max-w:   960px;

  --accent-work:     #dde4ff;
  --accent-projects: #e4ffde;
  --accent-writing:  #e0ccff;
  --accent-contact:  #ffe7d3;
}

html { font-size: 16px; }

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}

/* ══════════════════════════════════════
   COMPACT HEADER
══════════════════════════════════════ */
.site-header {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.back-link {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 10px;
  transition: color 0.15s ease;
}

.back-link:hover { color: var(--mid); }

.back-arrow {
  font-size: 28px;
  margin-right: 4px;
  color: var(--faint);
}

.tagline {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.13em;
  color: var(--mid);
}

.text-lowlight { color: #aaa; }

.social-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.social-row a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.18s ease;
}

.social-row a:hover { color: var(--ink); }

.social-row svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* ══════════════════════════════════════
   PAGE TITLE
   Pages set --page-accent in their own <style>.
══════════════════════════════════════ */
.page-title {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 9px solid var(--page-accent);
  margin-bottom: 40px;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  text-align: center;
  padding: 32px 0 40px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--faint);
}

/* ══════════════════════════════════════
   RESPONSIVE ≤ 768px
══════════════════════════════════════ */
@media (max-width: 768px) {
  .wrap { padding: 0 24px; }
  .site-header {
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 100;
    padding: 16px 0;
    margin-bottom: 40px;
  }
  .site-header .tagline { display: none; }
  .back-link { font-size: 28px; margin-bottom: 0; }
  .page-title { font-size: 40px; }
}
