/* zrathore.com — author home. Neutral: ties the two books by author + method,
   skinned to neither. Paper white, ink, hairline rules. */

:root {
  --paper: #fafaf8;
  --ink: #1a1916;
  --grey: #6e6b64;
  --line: #d8d5cc;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: 'Inter', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4rem;
}

.masthead { margin-bottom: 2.75rem; }

.masthead .name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.masthead .role {
  margin-top: 0.4rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--grey);
}

.stance { border-top: 1px solid var(--line); padding-top: 2rem; }

.stance p { margin-bottom: 1.1rem; }
.stance p:last-child { margin-bottom: 0; }

.method {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

h2.label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 1rem;
}

.method ul { list-style: none; }
.method li {
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.85rem;
}
.method li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}
.method li:nth-child(2)::before { background: transparent; border: 1.5px solid var(--ink); }
.method li:nth-child(3)::before {
  background: repeating-linear-gradient(45deg, var(--ink) 0 1.5px, transparent 1.5px 4px);
  border-radius: 0;
}

.books { margin-top: 2.5rem; border-top: 1px solid var(--line); padding-top: 2rem; }

.book-cards { display: grid; gap: 1.25rem; margin-top: 1.25rem; }
@media (min-width: 38rem) { .book-cards { grid-template-columns: 1fr 1fr; } }

.card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 120ms ease;
}
.card:hover, .card:focus-visible { border-color: var(--ink); }

.card img { display: block; width: 100%; height: auto; }

.card .meta { padding: 1rem 1.1rem 1.15rem; }

.card .kicker {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0.3rem 0 0.45rem;
}

.card p { font-size: 0.9375rem; line-height: 1.5; color: var(--grey); }

.card.card-outsourced { background: #f3efe6; }
.card.card-outsourced .meta { color: #1c1b19; }

.card.card-downhill { background: linear-gradient(180deg, #0B1019 0%, #050608 100%); }
.card.card-downhill .meta { color: #F1E9D8; }
.card.card-downhill .kicker { color: #C6A14C; }
.card.card-downhill p { color: rgba(241, 233, 216, 0.72); }
.card.card-downhill { border-color: #2a3142; }
.card.card-downhill:hover, .card.card-downhill:focus-visible { border-color: #C6A14C; }

footer {
  margin-top: 3.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--grey);
  letter-spacing: 0.04em;
}
footer a { color: inherit; }
