:root {
  --ink: #17181a;
  --paper: #efece2;
  --paper-hover: #e5e1d4;
  --rule: #c9c4b4;
  --body: #3c3e38;
  --muted: #6b675b;
  --rust: #8a4a30;
  --gold: #e2b25e;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --condensed: "Archivo Narrow", "Arial Narrow", sans-serif;
  --sans: "Archivo", system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

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

*, *::before, *::after { box-sizing: border-box; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.portfolio-shell {
  width: min(100%, 1180px);
  margin-inline: auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 24px 60px -20px rgb(0 0 0 / 32%);
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--ink);
  color: #f4f1e7;
}

.hero-image {
  position: absolute;
  inset-block: 0;
  left: -21%;
  width: 170%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 72%;
  opacity: 0.88;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(23 24 26 / 92%) 0%, rgb(23 24 26 / 78%) 44%, rgb(23 24 26 / 22%) 76%, rgb(23 24 26 / 6%) 100%),
    linear-gradient(180deg, rgb(23 24 26 / 60%) 0%, transparent 30%, transparent 62%, rgb(23 24 26 / 55%) 100%);
}

.primary-nav {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.4rem;
  padding: 1.4rem 3.5rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #e0dccf;
}

.primary-nav a {
  padding-block: 0.25rem;
  text-decoration: none;
  text-underline-offset: 0.35rem;
}

.primary-nav a:hover { text-decoration: underline; }
.primary-nav span { color: var(--gold); }

.hero-copy {
  position: absolute;
  z-index: 1;
  inset: auto 3.5rem 3rem;
}

.hero h1 {
  max-width: 6ch;
  margin: 0;
  font-family: var(--condensed);
  font-size: clamp(7rem, 11.2vw, 8.25rem);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.hero-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
  margin-top: 1.25rem;
}

.hero-meta p {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-meta .hero-caption {
  display: flex;
  flex-direction: column;
  font-size: 0.625rem;
  line-height: 1.7;
  letter-spacing: 0.1em;
  text-align: right;
  color: #d8d3c5;
}

.section {
  padding: 4rem 3.5rem;
  scroll-margin-top: 1.5rem;
}

.section + .section { padding-top: 0; }

.section-heading {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--condensed);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-number {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: var(--rust);
}

.section-rule {
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr);
  gap: 3.25rem;
  align-items: start;
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  color: var(--body);
  font-size: 1.125rem;
  line-height: 1.66;
}

.about-copy p { margin: 0; }

.about-copy .about-lead {
  color: var(--ink);
  font-family: var(--condensed);
  font-size: 1.9375rem;
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.portrait { margin: 0; }

.portrait img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center 26%;
  background: #dcd8cc;
}

.portrait figcaption {
  margin-top: 0.625rem;
  font-family: var(--mono);
  font-size: 0.625rem;
  line-height: 1.7;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.writing-section { padding-bottom: 4rem; }

.work-list { border-top: 2px solid var(--ink); }

.work-link {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 10.625rem 1.5rem;
  gap: 2rem;
  align-items: start;
  padding: 1.625rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: background-color 160ms ease, padding-inline 160ms ease;
}

.work-link:hover,
.work-link:focus-visible {
  padding-inline: 0.75rem;
  background: var(--paper-hover);
}

.work-copy,
.work-meta {
  display: flex;
  flex-direction: column;
}

.work-copy { gap: 0.5625rem; }

.work-title {
  font-family: var(--condensed);
  font-size: 1.8125rem;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.work-description {
  max-width: 62ch;
  color: #4a4c44;
  font-size: 1rem;
  line-height: 1.5;
}

.work-meta {
  gap: 0.3125rem;
  text-align: right;
  font-family: var(--mono);
}

.work-meta span {
  color: var(--rust);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-meta time { color: var(--muted); font-size: 0.75rem; }
.work-arrow { font-size: 1.125rem; line-height: 1; color: var(--rust); }

.experience-section { padding-bottom: 4rem; }

.experience-header,
.experience-row {
  display: grid;
  grid-template-columns: 5.75rem minmax(150px, 1fr) minmax(0, 1.3fr);
  gap: 1.5rem;
}

.experience-header {
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--ink);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.experience-row {
  align-items: baseline;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}

.experience-years {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.experience-outlet {
  font-family: var(--condensed);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.experience-role {
  color: #4a4c44;
  font-size: 1rem;
  line-height: 1.5;
}

.press-section {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
  background: var(--ink);
  color: var(--paper);
}

.section-heading--dark .section-number { color: var(--gold); }
.section-heading--dark .section-rule { background: #3a3c3d; }

.press-section blockquote { margin: 0; }

.press-section blockquote p {
  max-width: 34ch;
  margin: 0;
  font-family: var(--condensed);
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1.25;
  text-wrap: pretty;
}

.press-section blockquote footer {
  margin-top: 1.25rem;
  color: #aaa596;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 2.25rem 0 0;
  padding: 1px;
  list-style: none;
  background: #333536;
}

.press-grid li {
  padding: 1.375rem 1.125rem;
  background: var(--ink);
  color: #d6d1c4;
  font-family: var(--condensed);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.cited-by {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.625rem;
  align-items: baseline;
  margin-top: 2.25rem;
}

.cited-by > span {
  color: #aaa596;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cited-by p { margin: 0; color: #c3bfb2; line-height: 1.6; }

.contact-section {
  position: relative;
  padding-top: 4rem !important;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(250px, 1fr);
  gap: 3.25rem;
  align-items: start;
}

.contact-lead {
  max-width: 22ch;
  margin: 0 0 1.5rem;
  font-family: var(--condensed);
  font-size: 2.125rem;
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--rule);
  font-style: normal;
}

.contact-list a,
.contact-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 0.9375rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-list a:hover { background: var(--paper-hover); }
.contact-list span:last-child { flex: 0 0 auto; color: var(--rust); }

.phonebooth {
  width: 100%;
  height: 300px;
  object-fit: cover;
  background: #dcd8cc;
}

.back-to-top {
  display: inline-block;
  margin-top: 2.5rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.back-to-top:hover { color: var(--rust); text-decoration: underline; }

@media (max-width: 800px) {
  .primary-nav { left: 0; padding-inline: 2rem; gap: 0.75rem 1.25rem; }
  .hero-copy { inset-inline: 2rem; }
  .hero h1 { font-size: clamp(5.5rem, 17vw, 7rem); }
  .section { padding-inline: 2rem; }
  .about-grid { grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr); gap: 2rem; }
  .about-copy .about-lead { font-size: 1.625rem; }
  .work-link { grid-template-columns: minmax(0, 1fr) 8rem 1.25rem; gap: 1.25rem; }
  .work-title { font-size: 1.55rem; }
  .experience-header,
  .experience-row { grid-template-columns: 4.75rem minmax(120px, 0.8fr) minmax(0, 1.3fr); gap: 1rem; }
  .press-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { gap: 2rem; }
}

@media (max-width: 640px) {
  .portfolio-shell { box-shadow: none; }
  .hero { min-height: 590px; }
  .hero-image { left: -42%; width: 205%; object-position: center 72%; }
  .hero-shade {
    background:
      linear-gradient(90deg, rgb(23 24 26 / 88%) 0%, rgb(23 24 26 / 45%) 72%, rgb(23 24 26 / 15%) 100%),
      linear-gradient(180deg, rgb(23 24 26 / 72%) 0%, transparent 30%, transparent 52%, rgb(23 24 26 / 78%) 100%);
  }
  .primary-nav {
    justify-content: flex-start;
    padding: 1.1rem 1.25rem;
    font-size: 0.625rem;
    letter-spacing: 0.1em;
  }
  .hero-copy { inset: auto 1.25rem 2rem; }
  .hero h1 { font-size: clamp(4.7rem, 25vw, 6.6rem); }
  .hero-meta { display: block; margin-top: 1.25rem; }
  .hero-meta p { max-width: 22ch; font-size: 0.6875rem; line-height: 1.6; }
  .hero-meta .hero-caption { margin-top: 1rem; text-align: left; }
  .section,
  .press-section,
  .contact-section { padding: 3rem 1.25rem !important; }
  .section + .section { padding-top: 0 !important; }
  .section-heading { gap: 0.75rem; margin-bottom: 1.75rem; }
  .section-heading h2 { font-size: 0.875rem; }
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .about-copy { font-size: 1.0625rem; line-height: 1.6; }
  .about-copy .about-lead { font-size: 1.75rem; }
  .portrait { order: -1; }
  .portrait img { height: min(108vw, 420px); }
  .work-link { grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; }
  .work-copy { grid-column: 1 / -1; }
  .work-meta { text-align: left; }
  .work-arrow { justify-self: end; }
  .work-description { font-size: 0.9375rem; }
  .experience-header { display: none; }
  .experience-row {
    grid-template-columns: 4.75rem minmax(0, 1fr);
    gap: 0.25rem 1rem;
    padding-block: 1.125rem;
  }
  .experience-role { grid-column: 2; font-size: 0.9375rem; }
  .press-section { padding-top: 3rem !important; }
  .press-section blockquote p { font-size: 1.875rem; }
  .press-grid { grid-template-columns: 1fr 1fr; }
  .press-grid li { padding: 1rem 0.8rem; font-size: 0.975rem; }
  .contact-section { padding-top: 3rem !important; }
  .contact-lead { font-size: 1.875rem; }
  .contact-list a,
  .contact-list div { font-size: 0.8125rem; }
  .phonebooth { height: min(80vw, 320px); }
}

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