/* ========================================
   TOKENS
======================================== */
:root {
  --cream:          #F5F0E8;
  --cream-dark:     #EDE8DC;
  --paper:          #FBF8F2;
  --ink:            #1C1C1C;
  --ink-soft:       #4A4A4A;
  --ink-muted:      #6B665C;
  --green:          #2C4A1E;
  --green-mid:      #3D6B2A;
  --green-light:    #EAF0E4;
  --gold:           #7A5F12;
  --rule:           #D4CCB8;
  --white:          #FFFFFF;

  --serif:          'Playfair Display', Georgia, serif;
  --sans:           'DM Sans', system-ui, sans-serif;
  --max:            1100px;
  --gutter:         2.5rem;
}


/* ========================================
   RESET & BASE
======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background-color: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul, ol {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--ink);
  color: var(--cream);
  padding: 0.5rem 1rem;
  z-index: 200;
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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


/* ========================================
   NAV
======================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  height: 68px;
  gap: 1.5rem;
}

.nav-name {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-name:hover {
  color: var(--green);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-right a {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  transition: color 0.2s;
  white-space: nowrap;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.nav-right a:hover {
  color: var(--green);
}

.nav-right a.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-left: 1.4rem;
  border-left: 1px solid var(--rule);
}

.nav-right .nav-social a {
  font-size: 1.1rem;
  color: var(--ink-soft);
  border-bottom: none;
  padding: 0;
  display: flex;
}

.nav-right .nav-social a:hover {
  color: var(--green);
}


/* ========================================
   SHARED TYPE
======================================== */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--green);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

/* Publication / category line above a headline */
.story-kicker {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
}

.kicker-sep {
  color: var(--rule);
  margin: 0 0.15rem;
}

.award-line {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.award-line::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  transform: translateY(-1px);
}

.paywall-note {
  font-style: italic;
}

/* Headline links: underline grows in on hover */
.front-headline a,
.story-line-headline a,
.job-clips a {
  background-image: linear-gradient(var(--green), var(--green));
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: color 0.2s, background-size 0.3s;
}

.front-headline a:hover,
.story-line-headline a:hover,
.job-clips a:hover {
  color: var(--green);
  background-size: 100% 1px;
}


/* ========================================
   BUTTONS
======================================== */
.btn-primary-custom,
.btn-outline-custom {
  padding: 0.75rem 1.6rem;
  border-radius: 3px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-block;
  transition: background 0.2s, color 0.2s;
  border: 1.5px solid var(--green);
}

.btn-primary-custom {
  background: var(--green);
  color: var(--white);
}

.btn-primary-custom:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
}

.btn-outline-custom {
  background: transparent;
  color: var(--green);
}

.btn-outline-custom:hover {
  background: var(--green);
  color: var(--white);
}


/* ========================================
   SECTION LAYOUT
======================================== */
.section-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem var(--gutter) 0;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 3px double var(--ink);
}

.view-all {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  white-space: nowrap;
}

.view-all:hover .arrow {
  transform: translateX(3px);
}

.arrow {
  display: inline-block;
  transition: transform 0.2s;
}


/* ========================================
   HOME — HERO
======================================== */
.hero {
  display: grid;
  grid-template-columns: 1fr 260px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem var(--gutter) 3rem;
  align-items: center;
  gap: 4rem;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4.5vw, 3.5rem);
  line-height: 1.12;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.2rem;
}


.hero-bio {
  font-size: 1.08rem;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 1.8rem;
}

.hero-bio strong {
  color: var(--ink);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-photo-panel {
  position: relative;
  margin: 0 0 1.2rem;
}

.hero-caption {
  position: absolute;
  right: -0.8rem;
  bottom: -1.2rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 0.95rem;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.hero-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border-radius: 2px;
  background: var(--cream-dark);
  border: 1px solid var(--rule);
}


/* ========================================
   HOME — BYLINES
======================================== */
.credentials {
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--max) - 2 * var(--gutter));
  margin: 0 auto;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
}

.bylines {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.8rem;
  padding: 1.1rem 0;
}

.bylines-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
}

.bylines a {
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--ink);
  transition: color 0.2s;
}

.bylines a:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ========================================
   HOME — SELECTED WORK
   Two even columns divided by rules, like a section front
======================================== */
.front {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.front > .loading-state {
  grid-column: 1 / -1;
}

.front-story {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.6rem 2.2rem 1.6rem 0;
  border-bottom: 1px solid var(--rule);
}

.front-story:nth-child(even) {
  padding: 1.6rem 0 1.6rem 2.2rem;
  border-left: 1px solid var(--rule);
}

.front-headline {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.22;
  color: var(--ink);
}

.front-abstract {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.front-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.front-meta time {
  margin-right: 0.3rem;
}


/* ========================================
   LOADING STATE
======================================== */
.loading-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.loading-state a {
  color: var(--green);
  text-decoration: underline;
}

.loading-dot {
  animation: blink 1.2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0.2; }
  50%      { opacity: 1; }
}


/* ========================================
   FOOTER
======================================== */
footer {
  background: var(--ink);
  color: #aaa;
  padding: 1.6rem 1rem;
  margin-top: 4.5rem;
  font-size: 0.82rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.footer-name {
  font-family: var(--serif);
  font-size: 0.95rem;
  color: #ddd;
}

.footer-inner a {
  color: #bbb;
  transition: color 0.2s;
}

.footer-inner a:hover {
  color: var(--white);
}

.footer-icons {
  display: flex;
  gap: 1rem;
  font-size: 1rem;
}


/* ========================================
   INNER PAGE HEADER
======================================== */
.page-header {
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--max) - 2 * var(--gutter));
  margin: 0 auto;
  padding: 3rem 0 2rem;
}

.page-headline {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 1rem;
}


.page-dek {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 640px;
}


/* ========================================
   STORIES — LIST
======================================== */
.stories-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--ink);
  border-bottom: 3px double var(--ink);
}

.filter-btn {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 100px;
  padding: 0.38rem 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.filter-btn:hover {
  border-color: var(--green);
  color: var(--green);
}

.filter-btn[aria-pressed="true"] {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.story-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem 2rem;
  align-items: start;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule);
}

.story-line-main {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.story-line-headline {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--ink);
}

.story-line-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.9rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.story-line-pub {
  font-weight: 600;
  color: var(--green);
}

.story-line-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
  max-width: 260px;
  padding-top: 0.2rem;
}

/* Topic tag — a button on the Stories page, plain label elsewhere */
.topic-tag {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--green);
  background: var(--green-light);
  border: none;
  border-radius: 100px;
  padding: 0.18rem 0.6rem;
  white-space: nowrap;
}

button.topic-tag {
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

button.topic-tag:hover {
  background: var(--green);
  color: var(--white);
}


/* ========================================
   ABOUT — INTRO
======================================== */
.about-intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem var(--gutter) 0;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3.5rem;
  align-items: start;
}

.about-lede {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 620px;
}

.about-lede + .about-lede {
  margin-top: 1rem;
}

.glance {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--green);
  padding: 0.4rem 1.5rem;
}

.glance-row {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}

.glance-row:last-child {
  border-bottom: none;
}

.glance dt {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green);
  margin-bottom: 0.2rem;
}

.glance dd {
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.5;
}

.glance-sub {
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.glance a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-word;
}

.glance-awards li {
  font-size: 0.88rem;
  line-height: 1.4;
  padding: 0.18rem 0;
}

.glance-award-place {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-right: 0.25rem;
}

.glance-contact {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.glance .icon-btn,
.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  border: 1.5px solid var(--green);
  border-radius: 3px;
  padding: 0.45rem 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.glance .icon-btn:hover {
  background: var(--green);
  color: var(--white);
}


/* ========================================
   ABOUT — EXPERIENCE
======================================== */
.job {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
}

.job:last-child {
  border-bottom: none;
}

.job-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
}

.job-when {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  text-align: right;
  flex-shrink: 0;
}

.job-date {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.job-place {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.job-org {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
}

.job-org a:hover {
  color: var(--green);
}

.job-role {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  margin: 0.25rem 0 0.5rem;
}

.job-desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 680px;
}

.job-clips:not(:empty) {
  margin-top: 0.9rem;
  padding-left: 1rem;
  border-left: 2px solid var(--green-light);
}

.job-clips-label {
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  margin-bottom: 0.3rem;
}

.job-clips li {
  font-family: var(--serif);
  font-size: 0.98rem;
  line-height: 1.4;
  padding: 0.2rem 0;
}


/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr 200px;
    gap: 2.5rem;
    padding-top: 3rem;
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 1rem;
  }

  .site-nav {
    height: auto;
    padding: 0.8rem var(--gutter);
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .nav-name {
    font-size: 1.35rem;
  }

  .nav-right {
    gap: 1.2rem;
  }

  .nav-right a {
    font-size: 0.75rem;
  }

  .nav-social {
    padding-left: 1rem;
    gap: 0.8rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 2rem;
  }

  .hero-photo-panel {
    order: -1;
    width: 120px;
  }

  .hero-caption {
    position: static;
    display: inline-block;
    margin-top: 0.5rem;
  }

  .front {
    grid-template-columns: 1fr;
  }

  .front-story,
  .front-story:nth-child(even) {
    padding: 1.4rem 0;
    border-left: none;
  }

  .story-line {
    grid-template-columns: 1fr;
  }

  .story-line-tags {
    justify-content: flex-start;
    max-width: none;
    padding-top: 0;
  }

  .job-head {
    flex-direction: column;
    gap: 0.3rem;
  }

  .job-when {
    align-items: flex-start;
    text-align: left;
    flex-direction: row;
    gap: 0.6rem;
  }
}


/* About: pull Experience closer to the intro */
.about-intro + .section-wrap {
  padding-top: 2.25rem;
}
