/* ============================================================
   Donny Austin — author site
   Palette: cold ink hero, bone reading surface, one oxblood accent.
   Type: Spectral (serif, display + reading) / Hanken Grotesk (sans, UI).
   ============================================================ */

:root {
  --ink:        #16171c;  /* deep cold charcoal, never pure black */
  --ink-soft:   #23252e;  /* lifted ink for rules and edges       */
  --bone:       #e7e3d9;  /* cool bone page background             */
  --bone-bright:#f1eee6;  /* lifted bone for reading surfaces      */
  --oxblood:    #6f2a2e;  /* the one accent — spent sparingly      */
  --muted:      #6c675e;  /* quiet text on bone                    */
  --muted-ink:  #9a978f;  /* quiet text on ink                     */

  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans:  'Hanken Grotesk', system-ui, -apple-system, sans-serif;

  --measure: 34rem;       /* comfortable reading width */
  --gutter:  clamp(1.5rem, 5vw, 6rem);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  transition: background-color .35s ease, box-shadow .35s ease, color .35s ease;
  color: var(--bone);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--gutter);
  max-width: 78rem;
  margin: 0 auto;
}
.nav__name {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
}
.nav__links {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.nav__links a {
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.nav__links a:hover { border-bottom-color: var(--oxblood); }

/* nav flips to solid bone once past the hero */
.nav--solid {
  background: rgba(231, 227, 217, 0.92);
  backdrop-filter: blur(8px);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(35, 37, 46, 0.08);
}

/* ---------- hero ---------- */
.hero {
  background: var(--ink);
  color: var(--bone);
  min-height: 100svh;
  display: flex;
  align-items: center;
}
.hero__inner {
  max-width: 78rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
}
.hero__tagline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 1.5rem + 6vw, 6rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
}
.mark { color: var(--oxblood); }

.hero__scroll {
  margin-top: clamp(3rem, 8vh, 6rem);
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted-ink);
}

/* ---------- portrait ---------- */
.portrait {
  background: var(--ink);
  padding: 0 var(--gutter) clamp(4rem, 10vh, 8rem);
}
.portrait__frame {
  max-width: 40rem;
  margin: 0 auto;
}
.portrait__frame img { width: 100%; height: auto; }
.portrait__placeholder {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink-soft);
  color: var(--muted-ink);
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .08em;
}

/* ---------- generic section ---------- */
.section {
  padding: clamp(4.5rem, 12vh, 9rem) var(--gutter);
}
.section--alt { background: var(--bone-bright); }
.section__inner {
  max-width: 60rem;
  margin: 0 auto;
}
.section__inner--narrow { max-width: 44rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin: 0 0 2rem;
}

/* one hairline under each eyebrow, in ink not oxblood (restraint) */
.eyebrow::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--ink-soft);
  margin-top: .9rem;
}

/* ---------- about ---------- */
.about__body {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.5rem);
  line-height: 1.6;
  max-width: var(--measure);
}
.about__body p { margin: 0 0 1.4em; }

/* ---------- writing: feature ---------- */
.feature__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 1.3rem + 2vw, 3rem);
  line-height: 1.1;
  margin: 0 0 2rem;
}
.reading {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.75;
  max-width: var(--measure);
  color: #2c2a27;
}
.reading p { margin: 0 0 1.4em; }

/* ---------- writing: dispatches ---------- */
.dispatches {
  margin-top: clamp(4rem, 9vh, 7rem);
  padding-top: clamp(2.5rem, 5vh, 4rem);
  border-top: 1px solid rgba(35, 37, 46, 0.14);
}
.dispatches__head {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.4rem;
  margin: 0 0 .35rem;
}
.dispatches__note {
  color: var(--muted);
  font-size: .92rem;
  margin: 0 0 2.5rem;
}
.dispatch__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dispatch { max-width: var(--measure); margin-bottom: 2.5rem; }
.dispatch__date {
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .5rem;
}

/* ---------- contact ---------- */
.contact__line {
  font-family: var(--serif);
  font-size: 1.25rem;
  max-width: var(--measure);
  margin: 0 0 2.5rem;
}
.form { max-width: 30rem; }
.form__row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.4rem;
}
.form__row label {
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}
.form__row input,
.form__row textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bone-bright);
  border: 1px solid rgba(35, 37, 46, 0.2);
  border-radius: 0;
  padding: .7rem .8rem;
  transition: border-color .2s ease;
}
.form__row input:focus,
.form__row textarea:focus {
  outline: none;
  border-color: var(--oxblood);
}
.form__row textarea { resize: vertical; }

.form__button {
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bone);
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: .8rem 2.2rem;
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease;
}
.form__button:hover { background: var(--oxblood); border-color: var(--oxblood); }

/* ---------- footer ---------- */
.footer {
  background: var(--ink);
  color: var(--muted-ink);
  text-align: center;
  padding: 3rem var(--gutter);
  font-size: .82rem;
  letter-spacing: .08em;
}
.footer p { margin: 0; }

/* ---------- placeholder styling ---------- */
.placeholder {
  color: var(--muted);
  font-style: italic;
  font-family: var(--sans);
  font-size: .95rem;
  line-height: 1.6;
}

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- focus visibility ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--oxblood);
  outline-offset: 2px;
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .nav { transition: none; }
}
