@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

:root {
  --ink: #1a1410;
  --paper: #faf8f4;
  --warm-mid: #6b5a4c;
  --accent: #7a4f3a;
  --rule: #d8cfc5;
  --nav-h: 68px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── NAV ─────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 40px;
}

.nav-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  margin-right: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--ink); }

/* ─── MAIN ───────────────────────────────────────────── */
main { flex: 1; }

/* ─── PAGE HEADER ───────────────────────────────────── */
.page-header {
  padding: 72px 40px 48px;
  max-width: 720px;
  margin: 0 auto;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: var(--ink);
}

/* ─── HOME ───────────────────────────────────────────── */
.home-hero {
  padding: 96px 40px 80px;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.home-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
}

.home-hero .subtitle {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-mid);
}

.home-hero .tagline {
  font-size: 1.25rem;
  font-weight: 400;
  font-style: italic;
  color: var(--warm-mid);
  line-height: 1.6;
  text-wrap: balance;
}

/* about, merged into the homepage below the tagline */
/* bio text wraps around the photo on every screen size */
.home-about {
  display: flow-root;
  margin-top: 16px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 24px;
}

.home-about img {
  float: left;
  width: 220px;
  height: auto;
  margin: 6px 36px 12px 0;
  border-radius: 10px;
}

.home-about-text p {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.9;
  color: var(--ink);
  margin-bottom: 1.1em;
  text-wrap: pretty;
}
.home-about-text p:last-child { margin-bottom: 0; }

/* ─── ABOUT ──────────────────────────────────────────── */
.about-section {
  padding: 0 40px 80px;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-section p {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.9;
  color: var(--ink);
  text-wrap: pretty;
}

/* small label above a full piece (e.g. "Book Review · Herald") */
.about-section .piece-label {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-mid);
}

/* one-line summary under a piece's title */
.about-section .piece-standfirst {
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--warm-mid);
}

/* publication note at the end of a full piece */
.about-section .piece-note {
  font-style: italic;
  color: var(--warm-mid);
}

/* ─── WORK LISTS ─────────────────────────────────────── */
.work-section {
  padding: 0 40px 80px;
  max-width: 720px;
  margin: 0 auto;
}

.work-list { list-style: none; }

.work-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.work-item:first-child { border-top: 1px solid var(--rule); }

.work-item .pub {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.work-item .pub { text-wrap: balance; }
/* several credit lines under one entry, each its own link */
.work-item .pub-credits {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.work-item .pub a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.work-item .pub a:hover { color: var(--ink); }

.work-item .title {
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  color: #2970b8;
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.35;
}
.work-item .title:hover { color: var(--accent); }
.work-item .title.no-link { cursor: default; color: var(--ink); }
.work-item .title.no-link:hover { color: var(--ink); }

.work-item .excerpt {
  font-size: 1.05rem;
  font-weight: 400;
  color: #4d4137;
  line-height: 1.7;
  text-wrap: pretty;
}

.work-item .date {
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--warm-mid);
}

/* ─── PUBLICATION LOGOS ──────────────────────────────── */
.pub-logos {
  padding: 0 40px 80px;
  max-width: 720px;
  margin: 0 auto;
}

.pub-logos p.intro {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--warm-mid);
  margin-bottom: 40px;
  font-style: italic;
}

.pub-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.pub-badge {
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-mid);
  border: 1px solid var(--rule);
  padding: 10px 18px;
  text-decoration: none;
  transition: all 0.2s;
}
.pub-badge:hover {
  color: var(--ink);
  border-color: var(--accent);
  background: #f5efe8;
}

/* ─── FOOTER ─────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--rule);
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

footer a {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-mid);
  text-decoration: none;
  transition: color 0.2s;
}
footer a:hover { color: var(--ink); }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 680px) {
  /* Cormorant runs small on phones; scale every rem size up a step */
  html { font-size: 17px; }

  /* name on its own line, links wrap in a row beneath it */
  nav {
    height: auto;
    flex-wrap: wrap;
    padding: 14px 24px;
    gap: 6px 0;
  }
  .nav-name { width: 100%; margin-right: 0; }
  .nav-links { flex-wrap: wrap; gap: 4px 18px; }

  .home-about img { width: 118px; margin: 5px 18px 8px 0; border-radius: 8px; }

  .home-hero, .page-header, .about-section, .work-section, .pub-logos {
    padding-left: 24px;
    padding-right: 24px;
  }

  footer { padding: 24px; }
}

/* ─── HERO NAV (homepage links above name) ───────────── */
.hero-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 28px;
  /* pinned while scrolling, like the inner-page menu */
  position: sticky;
  top: 0;
  z-index: 100;
  border: none;
  background: var(--paper);
  padding: 12px 0;
  margin-top: -12px;
  height: auto;
}

.hero-nav a {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--warm-mid);
  text-decoration: none;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.hero-nav a:hover { color: var(--ink); }
