@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/newsreader-regular.woff2") format("woff2");
}

/* Hallmark · macrostructure: Letter · tone: minimal / printed-correspondence · anchor hue: none (mono)
 * theme: Quiet · paper: pure white · ink: near-black · display: roman-serif · accent: neutral
 * pre-emit critique: P5 H5 E4 S5 R5 V4
 */

:root {
  /* ---- Color (OKLCH, monochrome) ---- */
  --color-paper:    oklch(100% 0 0);      /* white */
  --color-ink:      oklch(18% 0 0);       /* near-black */
  --color-ink-soft: oklch(44% 0 0);       /* gray body */
  --color-ink-mute: oklch(60% 0 0);       /* meta gray */
  --color-rule:     oklch(90% 0 0);       /* hairline */
  --color-hover:    oklch(96.5% 0 0);     /* faint row hover */
  --color-focus:    oklch(45% 0 0);

  /* ---- Type ---- */
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;

  --text-xs:   0.72rem;   /* mono meta */
  --text-sm:   0.86rem;
  --text-base: 1.0rem;
  --text-lg:   1.12rem;
  --text-name: 1.5rem;

  /* ---- Space (4pt) ---- */
  --space-2xs: 4px;
  --space-xs:  8px;
  --space-sm:  12px;
  --space-md:  18px;
  --space-lg:  28px;
  --space-xl:  44px;

  /* ---- Motion ---- */
  --dur-fast: 120ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hallmark · Letter · Quiet · Dan Kulkov — printed-letter project hub */

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-serif);
  font-size: var(--text-base);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.sheet {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
}

/* ---- Letterhead ---- */
.head {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.head__photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  border: 1px solid var(--color-rule);
}
.head__name {
  font-size: var(--text-name);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
}
.head__role {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--color-ink-soft);
  margin: 4px 0 0;
}

/* ---- Intro paragraph ---- */
.intro {
  font-size: var(--text-lg);
  color: var(--color-ink);
  margin: 0 0 var(--space-lg);
}
.intro a { color: inherit; text-underline-offset: 3px; }

/* ---- Section label ---- */
.label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink-mute);
  margin: var(--space-lg) 0 var(--space-xs);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-rule);
}

/* ---- Link list ---- */
.list { display: flex; flex-direction: column; }

.row {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-xs);
  margin: 0 calc(var(--space-xs) * -1);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: background var(--dur-fast) var(--ease-out);
}
.row + .row { border-top: 1px solid var(--color-rule); }
a.row:hover, a.row.is-hover { background: var(--color-hover); }
a.row:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

.row--static { color: var(--color-ink-mute); }
.row--static .row__name { color: var(--color-ink); font-weight: 500; }
.row--static .row__meta { font-style: italic; }

.row__name {
  flex: 1;
  min-width: 0;
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: -0.005em;
}
a.row:hover .row__name, a.row.is-hover .row__name { text-decoration: underline; text-underline-offset: 3px; }
.row__name .ico {
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.18em;
  margin-right: 0.55em;
  color: var(--color-ink-soft);
  transition: color var(--dur-fast) var(--ease-out);
}
a.row:hover .row__name .ico, a.row.is-hover .row__name .ico { color: var(--color-ink); }
.row--static .row__name .ico { color: var(--color-ink-mute); }
.row__meta {
  flex: none;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-ink-mute);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color var(--dur-fast) var(--ease-out);
}
a.row:hover .row__meta, a.row.is-hover .row__meta { color: var(--color-ink); }
.row__meta svg { width: 11px; height: 11px; }

/* ---- Sign-off ---- */
.signoff {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.signoff__by { font-style: italic; color: var(--color-ink); }
.signoff__meta { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-ink-mute); }
.signoff__socials { display: inline-flex; align-items: center; gap: var(--space-md); }
.signoff__socials a {
  color: var(--color-ink-mute);
  display: inline-flex;
  transition: color var(--dur-fast) var(--ease-out);
}
.signoff__socials a:hover { color: var(--color-ink); }
.signoff__socials a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: 4px; }
.signoff__socials svg { width: 17px; height: 17px; display: block; }

/* ---- Responsive ---- */
@media (max-width: 480px) {
  .sheet { padding: var(--space-lg) var(--space-md); }
  .row { flex-direction: column; gap: 2px; }
  .row__meta { order: 2; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 1ms !important; }
}
