:root {
  --bg: #FAF7F2;
  --taupe: #B9A88F;
  --accent: #1F2D3D;
  --text-primary: #3A342C;
  --text-secondary: #7A7266;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

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

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.25rem clamp(1.5rem, 5vw, 4rem) 0;
  max-width: 1180px;
  margin: 0 auto;
}

.wordmark {
  font-family: 'Newsreader', serif;
  font-variation-settings: 'opsz' 14;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--accent);
}

.wordmark span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 0.1rem;
}

nav.primary-nav { display: flex; gap: clamp(1.25rem, 3vw, 2.25rem); }

nav.primary-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 2px;
}

nav.primary-nav a[aria-current="page"] { color: var(--accent); }

nav.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

nav.primary-nav a:hover::after,
nav.primary-nav a:focus-visible::after { width: 100%; }
nav.primary-nav a[aria-current="page"]::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--accent);
  margin: 5px 0;
}

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

.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--bg);
  background: var(--accent);
  padding: 0.9rem 2rem;
  border-radius: 4px;
  transition: background 0.25s ease;
}

.btn:hover { background: #14202e; }

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

footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.5rem clamp(1.5rem, 5vw, 4rem) 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(185, 168, 143, 0.35);
}

footer p, footer a { font-size: 0.78rem; color: var(--text-secondary); }
footer a:hover { color: var(--accent); }

@media (max-width: 640px) {
  nav.primary-nav {
    position: fixed;
    inset: 0 0 auto auto;
    top: 0; right: 0;
    height: 100vh;
    width: min(72vw, 300px);
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -2px 0 12px rgba(58,52,44,0.08);
  }
  nav.primary-nav.open { transform: translateX(0); }
  nav.primary-nav a { font-size: 1rem; }
  .nav-toggle { display: block; }
}

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

/* ================================================================
   Home
   ================================================================ */

.home main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 2rem);
}

.hero {
  padding-top: clamp(1.5rem, 6vh, 4rem);
  text-align: center;
}

.hero-photo {
  width: clamp(180px, 26vw, 240px);
  margin: 0 auto clamp(1rem, 5vh, 3rem);
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(58, 52, 44, 0.08);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.hero h1 {
  font-family: 'Newsreader', serif;
  font-variation-settings: 'opsz' 14;
  font-weight: 500;
  font-size: clamp(1.9rem, 4.4vw, 2.75rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--accent);
  margin: 0 auto;
}

.hero h1 span { display: block; }

.hero h1 span.closing {
  font-size: 0.7em;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 0.5em;
}

.hero-copy {
  margin: 64px auto 0;
  max-width: 46ch;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.75rem);
  margin: 140px auto 160px;
}

.link-row a {
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--taupe);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.link-row a:hover,
.link-row a:focus-visible { border-color: var(--accent); }

.link-divider { color: var(--taupe); font-size: 0.75rem; }

@media (max-width: 640px) {
  .link-row { flex-direction: column; gap: 1.1rem; }
  .link-divider { display: none; }
}

/* ================================================================
   Shared page shell (About / How I Work / Stories)
   ================================================================ */

.page main {
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 2rem);
}

.eyebrow {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-top: 100px;
}

.page-title {
  font-family: 'Newsreader', serif;
  font-variation-settings: 'opsz' 14;
  font-weight: 500;
  font-size: clamp(1.7rem, 3.8vw, 2.35rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--accent);
  text-align: center;
  max-width: 22ch;
  margin: 1rem auto 0;
}

/* ---------- About ---------- */

.about main { max-width: 720px; }

.pivot {
  margin-top: 56px;
  overflow: hidden; /* clearfix for float */
}

.pivot-photo {
  float: left;
  width: 220px;
  margin: 0 28px 12px 0;
  border-radius: 6px;
  overflow: hidden;
}

.pivot-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.pivot-photo figcaption {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-style: italic;
}

.pivot-text p {
  font-family: 'Newsreader', serif;
  font-variation-settings: 'opsz' 24;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.6;
  color: var(--accent);
}

.throughline {
  clear: both;
  max-width: 56ch;
  margin: 96px auto 0;
  font-size: 1.02rem;
  color: var(--text-primary);
}

.credentials {
  max-width: 56ch;
  margin: 96px auto 0;
  padding-top: 40px;
  border-top: 1px solid rgba(185, 168, 143, 0.35);
}

.credentials h2 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 1.25rem;
}

.credentials ul { list-style: none; }

.credentials li {
  font-size: 0.98rem;
  color: var(--text-primary);
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(185, 168, 143, 0.25);
}

.credentials li:last-child { border-bottom: none; }

.philosophy {
  max-width: 50ch;
  margin: 96px auto 0;
  padding: 2rem 2.25rem;
  border: 1px solid var(--taupe);
  border-radius: 6px;
}

.philosophy p {
  font-family: 'Newsreader', serif;
  font-variation-settings: 'opsz' 24;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  line-height: 1.6;
  color: var(--accent);
}

.about-cta {
  text-align: center;
  margin: 96px auto 160px;
}

@media (max-width: 560px) {
  .pivot-photo {
    float: none;
    width: 100%;
    margin: 0 0 24px;
  }
}

/* ---------- How I Work ---------- */

.how-i-work main { max-width: 720px; }

.beats {
  margin-top: 88px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.beat h2 {
  font-family: 'Newsreader', serif;
  font-variation-settings: 'opsz' 24;
  font-weight: 500;
  font-size: clamp(1.3rem, 2.8vw, 1.6rem);
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.beat p {
  font-size: 1.02rem;
  color: var(--text-primary);
  max-width: 58ch;
}

.expect {
  margin-top: 96px;
  background: #F1EBDF;
  border-radius: 8px;
  padding: clamp(2rem, 4vw, 2.75rem) clamp(1.75rem, 4vw, 2.5rem);
}

.expect h2 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 1.5rem;
}

.expect ul { list-style: none; }

.expect li {
  position: relative;
  padding: 0.75rem 0 0.75rem 1.5rem;
  font-size: 0.98rem;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(185, 168, 143, 0.3);
}

.expect li:last-child { border-bottom: none; }

.expect li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--taupe);
}

.hiw-cta {
  text-align: center;
  margin: 96px auto 160px;
}

.hiw-cta p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ---------- Stories ---------- */

.stories main { max-width: 760px; }

.stories .page-title { max-width: 20ch; }

.preview {
  max-width: 56ch;
  margin: 2rem auto 0;
  text-align: center;
  font-size: 1.02rem;
  color: var(--text-secondary);
}

.story-list {
  margin-top: 96px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.story {
  padding: clamp(1.75rem, 4vw, 2.25rem) clamp(1.75rem, 4vw, 2.25rem);
  border: 1px solid rgba(185, 168, 143, 0.4);
  border-radius: 8px;
}

.story-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

.story-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--taupe);
}

.story-tag.draft {
  color: var(--text-secondary);
  background: rgba(185, 168, 143, 0.18);
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
}

.story h2 {
  font-family: 'Newsreader', serif;
  font-variation-settings: 'opsz' 24;
  font-weight: 500;
  font-size: clamp(1.2rem, 2.4vw, 1.4rem);
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.story p {
  font-size: 0.98rem;
  color: var(--text-primary);
}

/* Personal story — visually distinct, closes the page */
.story--personal {
  background: var(--accent);
  border-color: var(--accent);
}

.story--personal .story-tag { color: var(--taupe); }
.story--personal .story-tag.draft {
  background: rgba(250, 247, 242, 0.15);
  color: #E7E1D6;
}
.story--personal h2 { color: var(--bg); }
.story--personal p { color: #E7E1D6; }

.stories-cta {
  text-align: center;
  margin: 96px auto 160px;
}

.stories-cta p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

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

.contact main {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 2rem);
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.contact-block {
  text-align: center;
  margin: 0 auto;
  padding: 140px 0 160px;
}

.contact-block h1 {
  font-family: 'Newsreader', serif;
  font-variation-settings: 'opsz' 14;
  font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 2.9rem);
  letter-spacing: -0.01em;
  color: var(--accent);
}

.contact-block p {
  margin-top: 32px;
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

.contact-block .email {
  display: inline-block;
  margin-top: 40px;
  font-family: 'Newsreader', serif;
  font-variation-settings: 'opsz' 24;
  font-weight: 500;
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  color: var(--accent);
  border-bottom: 1px solid var(--taupe);
  padding-bottom: 4px;
  transition: border-color 0.25s ease;
}

.contact-block .email:hover { border-color: var(--accent); }
