:root {
  --paper: #ffffff;
  --paper-aged: #e7e0cf;
  --ink: #18211d;
  --ink-muted: #526058;
  --green: #275f46;
  --botanical: #b5c4ac;
  --line: rgba(24, 33, 29, 0.22);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  margin: 0;
}

.intro {
  min-height: 100vh;
  padding: 4rem 8vw;
  box-sizing: border-box;

  display: grid;
  grid-template-columns: minmax(240px, 400px) minmax(0, 32rem);
  gap: 6vw;
  align-items: center;
  justify-content: center;
}

.intro h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
}

.intro p {
  max-width: 32rem;
  color: var(--ink-muted);
  font-size: 1.25rem;
  line-height: 1.5;
}

.work-link {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--green);
  border-radius: 2px;
  background: var(--green);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.work-link:hover {
  transform: translateY(-2px);
  background: var(--paper);
  color: var(--green);
}

.work-link:focus-visible {
  outline: 3px solid var(--botanical);
  outline-offset: 3px;
}

.portrait {
  display: block;
  width: 100%;
  height: auto;
}

.work-page {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0 7rem;
}

.work-page > h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
}

.work-section {
  margin-top: 4rem;
}

.work-section > h2 {
  margin: 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  color: var(--green);
  font-size: 1.5rem;
  font-weight: 400;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.story-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.story-card:hover {
  transform: translateY(-2px);
  border-color: var(--green);
  box-shadow: 0 10px 24px rgba(24, 33, 29, 0.1);
}

.story-card:focus-visible {
  outline: 3px solid var(--botanical);
  outline-offset: 3px;
}

.story-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--paper-aged);
}

.story-card-copy {
  padding: 1.25rem;
}

.story-meta {
  margin: 0 0 0.75rem;
  color: var(--ink-muted);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.story-card h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.2;
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.data-viz {
  min-width: 0;
  overflow: hidden;
  padding: 0.75rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.embed-credit {
  margin: 0.35rem 0 0;
  font-family: var(--sans);
  font-size: 0.7rem;
  text-align: right;
}

.embed-credit a {
  color: var(--ink-muted);
}

@media (max-width: 900px) {
  .story-grid,
  .data-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .work-page {
    padding-top: 3rem;
  }

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

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

.site-header {
  min-height: 4.5rem;
  padding: 0 8vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
}

.site-header a {
  color: var(--ink);
  text-decoration: none;
}

.site-header a:hover {
  color: var(--green);
}

.site-header .site-name {
  color: var(--green);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-footer {
  padding: 3.5rem 8vw;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-name {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.footer-email {
  color: var(--green);
  font-family: var(--sans);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-email:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.footer-socials a {
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  color: var(--green);
  text-decoration: none;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.footer-socials svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: currentColor;
}

.footer-socials a:hover {
  transform: translateY(-2px);
  color: var(--ink);
}

.site-header nav {
  display: flex;
  gap: 2rem;
}

.content-page {
  width: min(46rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0 7rem;
}

.content-page h1 {
  margin: 0 0 2.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--green);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 400;
}

.page-body {
  color: var(--ink-muted);
  font-size: 1.2rem;
  line-height: 1.7;
}

.story-card--featured {
  background: rgba(39, 95, 70, 0.06);
  border-color: rgba(39, 95, 70, 0.35);
}
