:root {
  --bg: #f5f5f2;
  --ink: #171717;
  --muted: #4f514d;
  --quiet: #77736d;
  --line: #d4d4ce;
  --accent: #98271f;
  --paper: #ffffff;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

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

.page-shell,
.page-shell-narrow {
  width: min(1080px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0 1rem;
  border-bottom: 1px solid var(--line);
}

.site-brand {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.9rem 1.2rem;
  font-size: 0.95rem;
}

.site-nav a,
.text-link,
.footer-links a {
  position: relative;
  color: inherit;
  text-decoration: none;
}

.site-nav a {
  color: var(--muted);
}

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

.site-nav a::after,
.text-link::after,
.footer-links a::after {
  position: absolute;
  left: 0;
  bottom: -0.14rem;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: currentColor;
  content: "";
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.text-link:hover::after,
.footer-links a:hover::after {
  transform: scaleX(1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2rem;
  align-items: end;
  padding: 2.8rem 0 2.3rem;
}

.eyebrow,
.card-tag,
.card-meta,
.filter-label,
.filter-summary {
  font-family: var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 14ch;
  font-size: clamp(2.8rem, 6.3vw, 5.25rem);
  line-height: 0.96;
}

h2 {
  max-width: 28ch;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.02;
}

h3 {
  font-size: 1.45rem;
  line-height: 1.1;
}

p,
li,
dd,
dt {
  line-height: 1.6;
  text-align: left;
}

.hero-intro,
.path-summary p,
.about-copy p,
.footer-copy {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-intro {
  margin: 1.2rem 0 0;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 1.55rem 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: 0;
  border: 0;
  color: var(--accent);
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.button::after {
  margin-left: 0.35rem;
  content: "→";
}

.hero-portrait {
  margin: 0;
}

.portrait-frame,
.aside-portrait {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.section {
  margin-top: 2.25rem;
  padding: 2.25rem 0 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin-bottom: 0.5rem;
}

.section-heading .eyebrow {
  margin-bottom: 0.6rem;
}

.work-heading {
  align-items: end;
}

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

.work-grid-home {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 100%;
}

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

.work-thumb {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  aspect-ratio: 16 / 10;
}

.work-thumb-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  background: var(--paper);
}

.thumb-kicker {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.thumb-quote {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.3;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card a {
  text-decoration: none;
}

.work-card h3 a:hover,
.clean-link:hover {
  color: var(--accent);
}

.card-tag,
.card-meta {
  margin: 0;
  color: var(--quiet);
  font-size: 0.72rem;
  line-height: 1.3;
}

.card-tag {
  color: var(--quiet);
  font-weight: 500;
}

.work-card h3 {
  font-size: 1.42rem;
}

.section-actions {
  margin-top: 1.4rem;
}

.section-path {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.3rem 0;
}

.section-path .section-heading {
  display: block;
  margin: 0;
  border: 0;
}

.section-path .section-heading .eyebrow {
  margin-bottom: 0.35rem;
}

.section-path h2 {
  max-width: none;
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
}

.path-summary {
  display: contents;
}

.path-summary p {
  grid-column: 1;
  margin: 0;
}

.path-summary .button {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  white-space: nowrap;
}

.filter-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  min-width: min(100%, 17rem);
}

.filter-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.filter-label,
.filter-summary {
  color: var(--quiet);
  font-size: 0.72rem;
  font-weight: 700;
}

.filter-select {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.65rem 2.4rem 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 1.05rem) calc(50% - 0.12rem),
    calc(100% - 0.72rem) calc(50% - 0.12rem);
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
}

.about-main {
  padding: 2.8rem 0 0;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding-bottom: 2.25rem;
}

.about-hero .hero-intro {
  margin: 0;
}

.work-page-title,
.about-page-title {
  max-width: 13ch;
  font-size: clamp(2.8rem, 5.4vw, 4.85rem);
  line-height: 0.96;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2rem;
  align-items: start;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.about-copy {
  max-width: 68ch;
}

.about-copy p {
  margin: 0 0 1rem;
}

.about-copy p:first-child {
  margin-top: 0;
}

.about-aside {
  margin: 0;
}

.aside-portrait {
  max-width: 280px;
  margin: 0;
}

.aside-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
}

.site-footer {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--line);
}

.site-footer > div:first-child {
  min-width: 0;
}

.footer-copy {
  margin: 0;
}

.footer-links {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem 1.1rem;
}

@media (max-width: 900px) {
  .hero,
  .about-layout,
  .work-grid,
  .work-grid-home,
  .section-path {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: start;
    padding-top: 3rem;
  }

  .hero-portrait,
  .about-aside {
    max-width: 18rem;
  }

  .path-summary {
    display: block;
  }

  .path-summary .button {
    margin-top: 0.65rem;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell,
  .page-shell-narrow {
    width: min(100vw - 1rem, 100%);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero,
  .about-main {
    padding-top: 1.65rem;
  }

  h1,
  .work-page-title,
  .about-page-title {
    font-size: clamp(2.35rem, 11.5vw, 3.7rem);
  }

  .hero-intro,
  .path-summary p,
  .about-copy p,
  .footer-copy {
    font-size: 1rem;
  }

  .work-card h3 {
    font-size: 1.28rem;
  }
}
