:root {
  color-scheme: light;
  --ink: #17201b;
  --ink-soft: #4d5a52;
  --paper: #fbfaf6;
  --paper-deep: #f0eee6;
  --line: #d8d3c7;
  --line-strong: #bcb5a6;
  --moss: #52664d;
  --moss-dark: #2e3d31;
  --rust: #9b4f2f;
  --gold: #c29a45;
  --blue: #336070;
  --blue-soft: #dfe9e8;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(30, 37, 31, 0.18);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(240, 238, 230, 0.92);
  border-bottom: 1px solid var(--line-strong);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  min-height: 78px;
  padding: 14px clamp(18px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  transition:
    min-height 180ms ease,
    box-shadow 180ms ease;
  z-index: 20;
}

.site-header.scrolled {
  box-shadow: 0 8px 30px rgba(30, 37, 31, 0.1);
  min-height: 60px;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 750;
  gap: 10px;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-subtitle {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  max-width: 440px;
}

.brand-mark {
  border-radius: 50%;
  height: 34px;
  object-fit: cover;
  width: 34px;
}

.nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(6px, 1.4vw, 12px);
  font-size: 0.94rem;
}

.nav a,
.nav-filter {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  min-height: 34px;
  padding: 6px 11px;
  text-decoration: none;
}

.nav a:hover,
.nav-filter:hover,
.nav-filter.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.nav-filter:hover:not(.active) {
  background: rgba(23, 32, 27, 0.06);
  color: var(--ink);
}

.hero {
  min-height: 92svh;
  overflow: hidden;
  padding: 120px clamp(20px, 6vw, 84px) 72px;
  position: relative;
}

.index-section {
  padding: clamp(118px, 13vw, 152px) clamp(20px, 5vw, 64px) clamp(64px, 10vw, 120px);
}

.index-inner {
  margin: 0 auto;
  max-width: 1160px;
}

.index-heading {
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 12px;
  padding-bottom: 20px;
}

.index-note {
  color: var(--ink-soft);
  font-size: clamp(0.98rem, 1.55vw, 1.12rem);
  margin: 0;
  max-width: 680px;
}

.hero-image,
.hero-scrim {
  inset: 0;
  position: absolute;
}

.hero-image {
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
  z-index: 0;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(251, 250, 246, 0.95) 0%, rgba(251, 250, 246, 0.75) 38%, rgba(251, 250, 246, 0.18) 72%),
    linear-gradient(0deg, rgba(251, 250, 246, 0.92) 0%, rgba(251, 250, 246, 0) 30%);
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 720px;
  min-height: calc(92svh - 192px);
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--rust);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(4.3rem, 15vw, 9.5rem);
  letter-spacing: 0;
  line-height: 0.88;
  margin-bottom: 28px;
  max-width: 7ch;
}

h2 {
  font-size: clamp(2rem, 5vw, 4.2rem);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.34rem;
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero-copy {
  color: var(--moss-dark);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.button {
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  display: inline-flex;
  font-weight: 750;
  min-height: 48px;
  padding: 12px 20px;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
}

.button.secondary {
  background: rgba(251, 250, 246, 0.66);
  color: var(--ink);
}

.section,
.section-band {
  padding: clamp(64px, 10vw, 128px) clamp(20px, 5vw, 64px);
}

.section-inner {
  margin: 0 auto;
  max-width: 1160px;
}

.section-band {
  background: var(--ink);
  color: var(--paper);
}

.section-band .eyebrow {
  color: var(--gold);
}

.intro-grid,
.now-grid,
.writing-layout {
  display: grid;
  gap: clamp(28px, 6vw, 72px);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.intro p,
.now-list,
.section-heading p {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.section-band .intro-grid > p {
  color: rgba(251, 250, 246, 0.78);
  font-size: clamp(1.12rem, 2vw, 1.42rem);
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: clamp(28px, 5vw, 54px);
}

.section-heading.stacked {
  align-items: start;
  display: block;
  margin-bottom: 0;
}

.section-heading.stacked p:last-child {
  max-width: 440px;
}

.filters,
.photo-controls {
  display: flex;
  gap: 8px;
}

.filter-button,
.icon-button {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
}

.filter-button {
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  min-height: 38px;
  padding: 8px 14px;
}

.filter-button.active,
.filter-button:hover {
  background: var(--moss-dark);
  border-color: var(--moss-dark);
  color: var(--paper);
}

.icon-button {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  font-size: 1.5rem;
  height: 42px;
  justify-content: center;
  line-height: 1;
  width: 42px;
}

.icon-button:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.project-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.2fr repeat(2, minmax(0, 0.9fr));
}

.post-list {
  display: grid;
}

.post-row {
  align-items: start;
  border-bottom: 1px solid var(--line);
  color: inherit;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(110px, 0.18fr) minmax(0, 1fr);
  padding: 14px 12px;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

.post-row:hover {
  background: rgba(23, 32, 27, 0.035);
  border-color: var(--line-strong);
}

.post-row.is-hidden {
  display: none;
}

.post-date {
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1;
  padding-top: 1px;
}

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

.post-type {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.post-tags span {
  background: var(--blue-soft);
  border: 1px solid rgba(51, 96, 112, 0.16);
  border-radius: 999px;
  color: var(--moss-dark);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1;
  padding: 6px 9px;
}

.post-main h2 {
  font-size: clamp(1.2rem, 2.1vw, 1.7rem);
  line-height: 1.14;
  margin-bottom: 8px;
}

.post-main p:last-child {
  margin-bottom: 0;
}

.post-main p {
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.post-image {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  margin-top: 18px;
  object-fit: cover;
  width: min(100%, 560px);
}

.entry-shell {
  padding-left: clamp(20px, 6vw, 92px);
  padding-right: clamp(20px, 5vw, 64px);
}

.entry {
  max-width: 980px;
  padding: clamp(118px, 13vw, 152px) 0 clamp(64px, 10vw, 120px);
}

.entry-header {
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 28px;
}

.back-link {
  color: var(--rust);
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 28px;
  text-decoration: none;
}

.back-link:hover {
  color: var(--ink);
}

.entry-header h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  line-height: 1.04;
  margin-bottom: 16px;
  max-width: 760px;
}

.entry-summary {
  color: var(--ink-soft);
  font-size: clamp(1.04rem, 2vw, 1.28rem);
  margin-bottom: 18px;
  max-width: 760px;
}

.entry-meta {
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.92rem;
  gap: 8px 16px;
  margin: 0;
}

.entry-hero {
  margin: 34px 0 40px;
}

.entry-hero img,
.entry-gallery img {
  border-radius: 8px;
  width: 100%;
}

.entry-hero figcaption,
.entry-gallery figcaption {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 10px;
}

.entry-body {
  border-bottom: 1px solid var(--line);
  margin-bottom: 42px;
  padding-bottom: 24px;
}

.entry-body p {
  color: var(--ink);
  font-size: 1.02rem;
  margin-bottom: 20px;
  max-width: 760px;
}

.entry-gallery {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.entry-gallery h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.entry-gallery figure {
  margin: 0;
}

.gallery-thumb {
  background: transparent;
  border: 0;
  cursor: zoom-in;
  display: block;
  padding: 0;
  text-align: left;
  width: 100%;
}

.gallery-thumb:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 3px;
}

.gallery-thumb img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition:
    filter 160ms ease,
    transform 160ms ease;
}

.gallery-thumb:hover img {
  filter: saturate(1.06) contrast(1.03);
  transform: translateY(-1px);
}

.lightbox {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--ink);
  max-height: calc(100svh - 40px);
  max-width: min(1040px, calc(100vw - 36px));
  padding: 16px;
  width: fit-content;
}

.lightbox::backdrop {
  background: rgba(23, 32, 27, 0.72);
}

.lightbox img {
  border-radius: 6px;
  display: block;
  max-height: calc(100svh - 150px);
  max-width: min(960px, calc(100vw - 68px));
  object-fit: contain;
}

.lightbox p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin: 12px 0 0;
}

.lightbox-close {
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--paper);
  cursor: pointer;
  float: right;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  margin-bottom: 10px;
  min-height: 34px;
  padding: 6px 12px;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(30, 37, 31, 0.04);
  display: flex;
  flex-direction: column;
  min-height: 290px;
  padding: 26px;
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.project-card.featured-project {
  background:
    linear-gradient(135deg, rgba(223, 233, 232, 0.9), rgba(255, 255, 255, 0.92)),
    var(--white);
  border-color: rgba(51, 96, 112, 0.28);
}

.project-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.project-card.is-hidden {
  display: none;
}

.project-kicker {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 38px;
  text-transform: uppercase;
}

.featured-project .project-kicker {
  color: var(--rust);
}

.project-card p:not(.project-kicker) {
  color: var(--ink-soft);
}

.project-card a {
  color: var(--rust);
  font-weight: 800;
  margin-top: auto;
  text-decoration: none;
}

.muted {
  background: var(--paper-deep);
}

.essay-list {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.essay-row {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 78px;
  padding: 20px 24px;
  text-decoration: none;
}

.essay-row + .essay-row {
  border-top: 1px solid var(--line);
}

.essay-row span {
  font-size: 1.08rem;
  font-weight: 750;
}

.essay-row time {
  color: var(--ink-soft);
  flex: 0 0 auto;
  font-size: 0.92rem;
}

.essay-row:hover span {
  color: var(--rust);
}

.photo-strip {
  display: grid;
  gap: 16px;
  grid-auto-columns: minmax(260px, 36%);
  grid-auto-flow: column;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--moss) transparent;
}

.photo-strip figure {
  margin: 0;
  scroll-snap-align: start;
}

.photo-strip img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.photo-strip figcaption {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin-top: 10px;
}

.now-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.now-list li {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.now-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.site-footer {
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 64px);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--paper);
  text-decoration-color: rgba(251, 250, 246, 0.45);
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    min-height: 92px;
  }

  .brand-subtitle {
    max-width: 300px;
  }

  .hero {
    min-height: 88svh;
    padding-top: 144px;
  }

  .hero-content {
    min-height: calc(88svh - 216px);
  }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(251, 250, 246, 0.96) 0%, rgba(251, 250, 246, 0.7) 58%, rgba(251, 250, 246, 0.28) 100%),
      linear-gradient(0deg, rgba(251, 250, 246, 0.94) 0%, rgba(251, 250, 246, 0) 36%);
  }

  .intro-grid,
  .now-grid,
  .writing-layout,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .index-heading {
    padding-bottom: 18px;
  }

  .post-row {
    grid-template-columns: minmax(84px, 0.28fr) minmax(0, 1fr);
  }

  .entry-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters {
    flex-wrap: wrap;
  }

  .project-card {
    min-height: 230px;
  }

  .photo-strip {
    grid-auto-columns: minmax(240px, 82%);
  }
}

@media (max-width: 560px) {
  .nav {
    font-size: 0.86rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    width: 100%;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav-filter {
    flex: 0 0 auto;
  }

  .brand-subtitle {
    font-size: 0.74rem;
    max-width: none;
  }

  .index-section {
    padding-top: 142px;
  }

  .entry {
    padding-top: 142px;
  }

  h1 {
    font-size: clamp(3.7rem, 22vw, 5.6rem);
  }

  .entry-header h1 {
    font-size: clamp(1.8rem, 9vw, 2.7rem);
  }

  .entry-gallery {
    grid-template-columns: 1fr;
  }

  .button {
    justify-content: center;
    width: 100%;
  }

  .essay-row,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .post-row {
    gap: 8px;
    grid-template-columns: 1fr;
    padding: 14px 12px;
  }

}
