/* ─────────────────────────────────────────────
   natericks.com: one stylesheet for every page
   ───────────────────────────────────────────── */

:root {
  --paper: #f8f6f1;
  --ink: #1c1b19;
  --muted: #6e6a62;
  --faint: #a29d93;
  --rule: #e2ded5;
  --accent: #8a3b24;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --measure: 38rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151513;
    --ink: #ece9e2;
    --muted: #9c978d;
    --faint: #6d695f;
    --rule: #2c2b27;
    --accent: #d9876b;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-color: var(--faint); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Header / footer ── */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 2rem 0 0;
  font-family: var(--sans);
  font-size: 0.875rem;
}
.site-header .home { white-space: nowrap; font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.site-header nav { display: flex; gap: 1.25rem; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--ink); }

.site-footer {
  margin: 5rem 0 0;
  padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--faint);
}

/* ── Type ── */

h1 {
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
}

.lede { color: var(--muted); margin: 0.75rem 0 0; }

.label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin: 0 0 0.75rem;
}

section { margin-top: 3.5rem; }

/* ── Home ── */

.intro { padding-top: 5rem; }
.bio p { margin: 1.25rem 0 0; }

.links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.links li { border-bottom: 1px solid var(--rule); }
.links a, .links .soon {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.15rem 1rem;
  padding: 0.95rem 0;
  text-decoration: none;
}
.links .title { font-size: 1.25rem; }
.links .desc { grid-column: 1; font-family: var(--sans); font-size: 0.875rem; color: var(--muted); }
.links .meta {
  grid-column: 2; grid-row: 1;
  font-family: var(--sans); font-size: 0.8125rem; color: var(--faint);
  white-space: nowrap;
}
.links a .meta::after { content: " →"; transition: margin 0.15s; }
.links a[href^="http"] .meta::after { content: " ↗"; }
.links a:hover .title { color: var(--accent); }
.links a:hover .meta { color: var(--ink); }
.links .soon { color: var(--faint); }
.links .soon .title, .links .soon .desc { color: var(--faint); }

.socials { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; padding: 0; list-style: none; font-family: var(--sans); font-size: 0.9375rem; }

/* ── Resume ── */

.resume-head { padding-top: 4rem; }
.resume-head .contact { font-family: var(--sans); font-size: 0.875rem; color: var(--muted); margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }

.summary { font-size: 1.3125rem; line-height: 1.5; margin: 2rem 0 0; }

.role { padding: 1.75rem 0; border-top: 1px solid var(--rule); }
.role:first-of-type { border-top: none; padding-top: 0.5rem; }
.role-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem; flex-wrap: wrap; }
.role h3 { font-size: 1.375rem; font-weight: 500; margin: 0; letter-spacing: -0.01em; }
.role .dates { font-family: var(--sans); font-size: 0.8125rem; color: var(--faint); white-space: nowrap; }
.role .title { font-family: var(--sans); font-size: 0.9375rem; color: var(--muted); margin: 0.2rem 0 0; }
.role .context { font-style: italic; color: var(--muted); margin: 0.85rem 0 0; }
.role ul { margin: 0.75rem 0 0; padding-left: 1.1rem; }
.role li { margin: 0.4rem 0; }
.role li::marker { color: var(--faint); }

.entry { padding: 1rem 0; border-top: 1px solid var(--rule); }
.entry:first-of-type { border-top: none; padding-top: 0.25rem; }
.entry h3 { font-size: 1.1875rem; font-weight: 500; margin: 0; }
.entry p { margin: 0.3rem 0 0; color: var(--muted); }
.entry .tools { font-family: var(--sans); font-size: 0.8125rem; color: var(--faint); margin-top: 0.4rem; }

/* ── Reading ── */

.reading-head { padding-top: 4rem; }
.books { list-style: none; margin: 0; padding: 0; }
.book { padding: 1.1rem 0; border-top: 1px solid var(--rule); }
.book:first-child { border-top: none; }
.book .title { font-size: 1.25rem; }
.book .title a { text-decoration: none; }
.book .author { color: var(--muted); }
.book .fav { color: var(--accent); font-size: 0.9em; margin-left: 0.3rem; }
.book .year { font-family: var(--sans); font-size: 0.8125rem; color: var(--faint); float: right; margin-left: 1rem; line-height: 2.2; }
.book p { margin: 0.35rem 0 0; color: var(--muted); font-size: 1.0625rem; }
.empty { color: var(--faint); font-style: italic; }

/* ── Small screens ── */

@media (max-width: 520px) {
  body { font-size: 1.125rem; }
  .intro { padding-top: 3.5rem; }
  .site-header { font-size: 0.8125rem; }
  .site-header nav { gap: 0.8rem; }
}

@media print {
  .site-header, .site-footer { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
}

/* ── Personal ── */

.facts { list-style: none; margin: 0; padding: 0; counter-reset: fact; }
.fact {
  counter-increment: fact;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  column-gap: 0.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
}
.fact:first-child { border-top: none; padding-top: 0.25rem; }
.fact::before {
  content: counter(fact, decimal-leading-zero);
  grid-row: 1;
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--faint);
  padding-top: 0.45rem;
}
.fact > * { grid-column: 2; }
.fact::before { grid-column: 1; }
.fact h2 { font-size: 1.375rem; font-weight: 500; letter-spacing: -0.01em; margin: 0; line-height: 1.3; }
.fact p { margin: 0.4rem 0 0; color: var(--muted); }
