/* maverick.me — direction: "set by hand". Mineral paper, pine ink-mark, one
   column, type doing the work. No cards, no grid, no gradient. */

:root {
  --bg:      #e8e6e1;
  --surface: #f2f0ec;
  --ink:     #191917;
  --muted:   #565349;
  --hair:    #cfccc5;
  --accent:  #2f5d50;

  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;

  --radius: 6px;
  --shadow: 0 1px 2px rgba(25,25,23,.07);
  --dur: 160ms cubic-bezier(.2,.7,.3,1);

  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #16181a;
    --surface: #1e2124;
    --ink:     #e9e7e2;
    --muted:   #9a978f;
    --hair:    #2e3236;
    --accent:  #8cc4b0;
    --shadow:  0 1px 2px rgba(0,0,0,.4);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: var(--s7) var(--s5) var(--s8);
}

@media (min-width: 40rem) {
  .page { padding: 12vh var(--s7) var(--s8); }
}

/* --- the name --------------------------------------------------------- */

.name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 13vw, 5.5rem);
  line-height: 0.94;
  letter-spacing: -0.012em;
  margin: 0 0 var(--s5);
}

.tagline {
  font-size: 1.25rem;
  line-height: 1.4;
  margin: 0 0 var(--s5);
  max-width: 34rem;
}

.blurb p {
  margin: 0 0 var(--s4);
  color: var(--muted);
  max-width: 56ch;
}

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

/* --- contact ---------------------------------------------------------- */

.contact {
  margin-top: var(--s6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s5);
  font-size: 0.9375rem;
}

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color var(--dur), border-color var(--dur);
}

a:hover { color: var(--accent); }

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

/* --- the shelf -------------------------------------------------------- */

.shelf {
  margin-top: var(--s8);
  border-top: 1px solid var(--hair);
  padding-top: var(--s6);
}

.shelf h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.75rem;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s5);
}

.shelf ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shelf li + li { border-top: 1px solid var(--hair); }

.item {
  display: block;
  border: 0;
  padding: var(--s4) 0;
  transition: padding-left var(--dur), color var(--dur);
}

.item:hover,
.item:focus-visible { padding-left: var(--s2); }

.item .t {
  font-size: 1.0625rem;
  font-weight: 500;
  display: block;
}

.item:hover .t { color: var(--accent); }

.item .b {
  display: block;
  color: var(--muted);
  font-size: 0.9375rem;
  margin-top: 2px;
}

.item .d {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
  margin-top: var(--s2);
  font-variant-numeric: tabular-nums;
}

.empty {
  color: var(--muted);
  font-size: 0.9375rem;
  margin: 0;
}

/* --- foot ------------------------------------------------------------- */

.foot {
  margin-top: var(--s8);
  color: var(--muted);
  font-size: 0.8125rem;
}

/* --- 404 -------------------------------------------------------------- */

.lost { padding-top: 18vh; }
.lost .name { font-size: clamp(2.5rem, 9vw, 4rem); }

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