/* =========================================================
   Meredith Alexander Kunz — Modern Editorial
   ========================================================= */

:root {
  --ink:        #12100E;
  --ink-soft:   #46413B;
  --ink-faint:  #8A837A;
  --paper:      #FFFFFF;
  --band:       #F4F2EE;
  --rule:       #E2DED7;
  --accent:     #C0392B;
  --accent-dk:  #98291D;

  --max:  1180px;
  --gut:  clamp(20px, 5vw, 56px);

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

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

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

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

img { max-width: 100%; display: block; }

a { color: var(--ink); text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { color: var(--accent); text-decoration-color: currentColor; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gut); }

/* ---------- Typography ---------- */

h1, h2, h3 { font-family: var(--f-serif); font-weight: 500; letter-spacing: -0.018em; margin: 0; }

h1 {
  font-size: clamp(2.9rem, 7.4vw, 5.4rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(1.9rem, 3.9vw, 2.9rem);
  line-height: 1.1;
}

h3 { font-size: 1.28rem; line-height: 1.25; }

p { margin: 0 0 1.15em; }

.eyebrow {
  font-family: var(--f-sans);
  font-size: 0.688rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.lede {
  font-family: var(--f-serif);
  font-size: clamp(1.2rem, 2.1vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--f-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.95em 1.7em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
  cursor: pointer;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ---------- Header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.site-head__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gut);
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.wordmark {
  font-family: var(--f-serif);
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark b { font-weight: 600; }

.nav { display: flex; align-items: center; gap: 1.7rem; }
.nav a {
  font-size: 0.79rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: 4px;
  border-bottom: 1.5px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 8px; cursor: pointer;
  font-size: 1.25rem; line-height: 1; color: var(--ink);
}

/* ---------- Hero ---------- */

.hero { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(2.5rem, 5vw, 4rem); }

.hero h1 { margin-bottom: 1.4rem; max-width: 16ch; }

/* headline is one ink colour, all roman — the accent does structural
   work instead: a rule beneath the headline, in the editorial tradition */
.hero h1 em { font-style: normal; color: inherit; }
.hero h1::after {
  content: "";
  display: block;
  width: 92px;
  height: 4px;
  background: var(--accent);
  margin-top: 2.1rem;
}

.hero__lede { max-width: 54ch; }

/* Portrait now lives beside the bio, where a photo belongs */
.bio-portrait {
  margin: 2rem 0 0;
  max-width: 340px;
}

/* ---------- Card row ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}
.card {
  padding: 2.2rem 2rem 2.4rem;
  border-right: 1px solid var(--rule);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: background .2s ease;
}
.card:last-child { border-right: 0; }
.card:hover { background: var(--band); }
.card__label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.55rem; }
.card p { font-size: 0.94rem; color: var(--ink-soft); margin-bottom: 1.4rem; }
.card__more {
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.card:hover .card__more { color: var(--accent); }

/* ---------- Sections ---------- */

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--band { background: var(--band); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.split__head { position: sticky; top: 100px; }
.split__head h2 { margin-bottom: 0.5rem; }

.prose { max-width: 62ch; }
.prose p { color: var(--ink-soft); }
.prose p:first-child {
  font-family: var(--f-serif);
  font-size: 1.28rem;
  line-height: 1.55;
  color: var(--ink);
}
.prose a { color: var(--accent); text-decoration-color: rgba(192,57,43,.35); font-weight: 500; }
.prose cite { font-style: italic; }

/* ---------- Facts strip ---------- */

.facts {
  margin: 2.6rem 0 0;
  border-top: 1px solid var(--ink);
}
.fact {
  display: grid;
  grid-template-columns: minmax(0, 0.3fr) minmax(0, 1fr);
  gap: 0.35rem 1.75rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--rule);
}
.fact dt {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ink-faint);
  padding-top: 0.32rem;
}
.fact dd {
  margin: 0;
  font-family: var(--f-serif);
  font-size: 1.02rem;
  line-height: 1.45;
}
.fact dd a { color: var(--accent); text-decoration-color: rgba(192,57,43,.35); }

@media (max-width: 560px) {
  .fact { grid-template-columns: 1fr; }
  .fact dt { padding-top: 0; }
}

/* ---------- Selected writing ---------- */

.clips__group {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.6rem;
}
.clips { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.clip { border-bottom: 1px solid var(--rule); }
.clip a {
  display: block;
  padding: 1.15rem 0 1.2rem;
  text-decoration: none;
  font-family: var(--f-serif);
  font-size: 1.28rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
  transition: color .15s ease;
}
.clip a::after { content: " →"; color: var(--ink-faint); font-size: 0.85em; }
.clip a:hover { color: var(--accent); }
.clip a:hover::after { color: var(--accent); }
.clip__meta {
  display: block;
  margin: -0.55rem 0 1.15rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Quote band ---------- */

.quote-band {
  background: var(--ink);
  color: #fff;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.quote-band blockquote {
  margin: 0;
  max-width: 22ch;
  font-family: var(--f-serif);
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
}
.quote-band cite {
  display: block;
  margin-top: 1.6rem;
  font-family: var(--f-sans);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #A29B92;
}

/* ---------- Media / embeds ---------- */

.embeds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2.4rem;
}
.embeds iframe { width: 100%; border: 0; border-radius: 12px; }

/* ---------- Books ---------- */

.book {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
}
.book:last-of-type { border-bottom: 0; }
.book--flip .book__art { order: 2; }
.book__art img {
  width: 100%;
  max-width: 380px;
  box-shadow: 0 22px 44px -18px rgba(18,16,14,.42);
}
.book__meta {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.9rem;
}

/* ---------- Badges ---------- */

.badges { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; margin-top: 2.6rem; }
.badges img { width: 128px; height: auto; }

/* ---------- Contact ---------- */

.form { display: grid; gap: 1.1rem; max-width: 34rem; }
.field label {
  display: block;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.45rem;
}
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 0.8rem 0.9rem;
  border-radius: 0;
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}
.field textarea { min-height: 148px; resize: vertical; }
.form-note { font-size: 0.88rem; color: var(--ink-faint); }
.form-note a { color: var(--accent); }

/* ---------- Footer ---------- */

.site-foot {
  border-top: 1px solid var(--rule);
  padding: 2.6rem 0 3.2rem;
  margin-top: 1rem;
}
.site-foot__inner {
  display: flex; flex-wrap: wrap; gap: 1.4rem;
  align-items: center; justify-content: space-between;
}
.social { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.social a {
  font-size: 0.79rem; font-weight: 500; letter-spacing: 0.05em;
  text-decoration: none; color: var(--ink-soft);
}
.social a:hover { color: var(--accent); }
.copyright { font-size: 0.79rem; color: var(--ink-faint); }

/* ---------- Page header (interior pages) ---------- */

.page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1rem, 2vw, 1.5rem); }

/* a page-head already provides the breathing room above the first section */
.page-head + .section { padding-top: 0; }
.book:first-of-type { padding-top: clamp(1.25rem, 2.5vw, 2rem); }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: 1.2rem; }
.page-head .lede { max-width: 56ch; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .card { border-right: 0; border-bottom: 1px solid var(--rule); }
  .card:last-child { border-bottom: 0; }
  .split { grid-template-columns: 1fr; }
  .split__head { position: static; }
  .book, .book--flip .book__art { grid-template-columns: 1fr; order: 0; }
  .book__art img { max-width: 260px; }
}

@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 66px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem var(--gut) 1.1rem;
  }
  .nav.is-open { display: flex; }
  .nav a { width: 100%; padding: 0.72rem 0; border-bottom: 1px solid transparent; }
}

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