:root {
  --paper: #f2efe7;
  --paper-deep: #e5e0d5;
  --ink: #181713;
  --ink-soft: #45423b;
  --line: rgba(24, 23, 19, 0.22);
  --signal: #e44b25;
  --white: #fff;
  --shell: min(1240px, calc(100vw - 40px));
  --reading: min(760px, calc(100vw - 40px));
  --radius: 2px;
  --space: clamp(72px, 10vw, 150px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--signal); }
button, input, textarea, select { font: inherit; }
button, .button-link { min-height: 44px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 0.96; letter-spacing: -0.045em; }
h1 { font-size: clamp(4rem, 11vw, 9.4rem); font-weight: 720; }
h2 { font-size: clamp(2.8rem, 6vw, 6rem); font-weight: 700; }
h3 { font-size: clamp(1.45rem, 2vw, 2rem); }
::selection { background: var(--signal); color: var(--white); }

.screen-reader-text, .skip-link:not(:focus) {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.skip-link:focus { position: fixed; z-index: 9999; top: 12px; left: 12px; padding: 10px 14px; background: var(--white); color: var(--ink); }
.site-shell { width: var(--shell); margin-inline: auto; }
.site-shell--reading { width: var(--reading); }
.eyebrow {
  margin-bottom: 18px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.3;
  text-transform: uppercase;
}
.section { padding-block: var(--space); }
.section--ink { background: var(--ink); color: var(--paper); }
.section-heading { margin-bottom: clamp(42px, 6vw, 80px); }
.section-heading h2 { margin-bottom: 0; }
.section-heading--split { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.7fr); gap: 7vw; align-items: end; }
.section-heading--split > p { margin: 0 0 6px; color: var(--ink-soft); font-size: 1.05rem; }
.section--ink .section-heading--split > p { color: rgba(242, 239, 231, 0.64); }
.text-link { display: inline-flex; gap: 18px; align-items: center; font-weight: 700; }
.button-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
}
.button-link:hover { background: var(--ink); color: var(--paper); }
.button-link--light { border-color: var(--paper); }
.button-link--light:hover { background: var(--paper); color: var(--ink); }
.section-action { margin: 60px 0 0; text-align: right; }
.editor-note { padding: 24px; border: 1px dashed currentColor; }

/* Header */
.site-header { position: relative; z-index: 50; border-bottom: 1px solid var(--line); }
.site-header__inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-mark { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.04em; text-decoration: none; text-transform: lowercase; }
.site-mark__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.site-menu, .footer-menu { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); margin: 0; padding: 0; list-style: none; }
.site-menu a { font-size: 0.83rem; font-weight: 700; text-decoration: none; }
.site-menu > li { position: relative; }
.site-menu .sub-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 14px);
  left: 50%;
  min-width: 190px;
  margin: 0;
  padding: 10px;
  list-style: none;
  background: var(--ink);
  color: var(--paper);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}
.site-menu .sub-menu::before { position: absolute; inset: -16px 0 auto; height: 16px; content: ""; }
.site-menu .sub-menu a { display: block; padding: 8px 10px; white-space: nowrap; }
.site-menu li:hover > .sub-menu,
.site-menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.menu-toggle { display: none; border: 0; background: transparent; color: inherit; font-size: 0.8rem; font-weight: 700; }

/* Hero */
.hero { min-height: calc(100svh - 78px); padding-block: clamp(70px, 10vh, 120px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.72fr); gap: 6vw; align-items: center; }
.hero h1 { max-width: 820px; margin-bottom: 30px; }
.hero__intro { max-width: 720px; margin-bottom: 34px; font-size: clamp(1.2rem, 2vw, 1.75rem); line-height: 1.32; letter-spacing: -0.02em; }
.hero__mosaic { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; gap: 10px; transform: rotate(1.25deg); }
.hero__tile { position: relative; overflow: hidden; background: var(--paper-deep); color: var(--white); text-decoration: none; }
.hero__tile:nth-child(1), .hero__tile:nth-child(4) { grid-row: span 2; }
.hero__tile:nth-child(5) { grid-column: span 2; }
.hero__tile img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) contrast(1.02); transition: transform 350ms ease; }
.hero__tile.post-3118 { background: #181818; }
.hero__tile.post-3118 img { object-fit: contain; padding: 8px; }
.hero__tile.post-3112 { background: #fff; }
.hero__tile.post-3112 img { object-fit: contain; }
.hero__tile.post-3130 img { object-position: center top; }
.hero__tile:hover img { transform: scale(1.025); }
.hero__tile span { position: absolute; inset: auto 8px 8px; padding: 4px 7px; background: rgba(24,23,19,.86); font-family: "SFMono-Regular", monospace; font-size: 0.62rem; line-height: 1.2; }

/* Projects */
.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(28px, 4vw, 56px) 22px; }
.project-card { grid-column: span 4; }
.project-card:nth-child(1), .project-card:nth-child(5) { grid-column: span 7; }
.project-card:nth-child(2), .project-card:nth-child(6) { grid-column: span 5; padding-top: clamp(30px, 7vw, 100px); }
.project-card__media { display: block; aspect-ratio: 4/3; overflow: hidden; background: #2a2924; text-decoration: none; }
.project-card:nth-child(1) .project-card__media, .project-card:nth-child(5) .project-card__media { aspect-ratio: 16/10; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 350ms ease, filter 350ms ease; }
.project-card.post-3118 .project-card__media { background: #181818; }
.project-card.post-3118 .project-card__media img { object-fit: contain; }
.project-card.post-3112 .project-card__media { background: #fff; }
.project-card.post-3112 .project-card__media img { object-fit: contain; }
.project-card.post-3130 .project-card__media img { object-position: center top; }
.project-card:hover .project-card__media img { transform: scale(1.018); filter: saturate(1.1); }
.project-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-family: "SFMono-Regular", monospace; font-size: clamp(5rem, 12vw, 12rem); color: rgba(242,239,231,.18); }
.project-card__body { padding-top: 18px; }
.project-card__meta { display: flex; justify-content: space-between; min-height: 1rem; margin-bottom: 14px; font-family: "SFMono-Regular", monospace; font-size: 0.67rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.62; }
.project-card h2, .project-card h3 { margin-bottom: 12px; }
.project-card h2 a, .project-card h3 a { text-decoration: none; }
.project-card p { max-width: 46ch; color: rgba(242,239,231,.65); }
.project-grid--archive .project-card p { color: var(--ink-soft); }

/* Currently */
.currently { border-bottom: 1px solid var(--line); }
.currently__grid { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 8vw; }
.currently__items { border-top: 1px solid var(--line); }
.currently__item { display: grid; grid-template-columns: 90px minmax(150px, .7fr) 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.currently__date { font-family: "SFMono-Regular", monospace; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.currently__item h3 { margin: 0; font-size: clamp(1.25rem, 2vw, 1.75rem); }
.currently__item h3 a { text-decoration: none; }
.currently__item p { margin: 0; color: var(--ink-soft); font-size: .9rem; }

/* Artifact cards */
.artifact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.artifact-card { min-height: 280px; background: var(--white); }
.artifact-card:nth-child(3n+1) { transform: translateY(18px); }
.artifact-card__link { height: 100%; display: flex; flex-direction: column; text-decoration: none; }
.artifact-card__media { aspect-ratio: 4/3; overflow: hidden; background: var(--paper-deep); }
.artifact-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.artifact-card:hover img { transform: scale(1.02); }
.artifact-card__body { padding: 17px; }
.artifact-card__date { display: block; margin-bottom: 30px; font-family: "SFMono-Regular", monospace; font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.artifact-card h2, .artifact-card h3 { margin: 0; font-size: clamp(1.15rem, 1.7vw, 1.55rem); line-height: 1.05; }
.artifact-card--text { min-height: 280px; background: var(--signal); color: var(--white); }
.artifact-card--text .artifact-card__date { color: rgba(255,255,255,.68); }

/* Experience */
.experience-strip { background: var(--paper-deep); }
.experience-strip__grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 8vw; align-items: end; }
.experience-strip h2 { max-width: 900px; }
.experience-strip__copy { font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.42; }

/* Archives */
.archive-page { padding-block: clamp(80px, 11vw, 150px); }
.archive-header { max-width: 980px; margin-bottom: clamp(65px, 9vw, 120px); }
.archive-header h1 { margin-bottom: 28px; }
.archive-header > p:last-child { max-width: 680px; font-size: 1.25rem; color: var(--ink-soft); }
.timeline-list { border-top: 1px solid var(--line); }
.timeline-year { margin: 80px 0 20px; font-family: "SFMono-Regular", monospace; font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 500; letter-spacing: -.05em; }
.timeline-entry { border-top: 1px solid var(--line); }
.timeline-entry:last-child { border-bottom: 1px solid var(--line); }
.timeline-entry > a { min-height: 108px; display: grid; grid-template-columns: 90px 1fr 76px 30px; gap: 24px; align-items: center; padding: 18px 0; text-decoration: none; }
.timeline-entry time { font-family: "SFMono-Regular", monospace; font-size: .7rem; text-transform: uppercase; }
.timeline-entry h3 { margin: 0 0 6px; font-size: clamp(1.3rem, 2.2vw, 2rem); }
.timeline-entry p { margin: 0; color: var(--ink-soft); }
.timeline-entry__thumb { width: 76px; height: 70px; overflow: hidden; }
.timeline-entry__thumb img { width: 100%; height: 100%; object-fit: cover; }
.timeline-entry__arrow { text-align: right; }
.nav-links { margin-top: 60px; display: flex; justify-content: space-between; gap: 20px; }

/* Project detail */
.project-hero { padding-block: clamp(70px, 9vw, 130px); }
.project-hero__copy { max-width: 1040px; }
.project-hero h1 { margin-bottom: 25px; }
.project-hero__premise { max-width: 780px; margin-bottom: 32px; font-size: clamp(1.25rem, 2.2vw, 2rem); line-height: 1.3; }
.project-hero__media { margin-top: clamp(50px, 7vw, 100px); aspect-ratio: 16/9; overflow: hidden; background: var(--paper-deep); }
.project-hero__media img { width: 100%; height: 100%; object-fit: cover; }
body.postid-3118 .project-hero__media { background: #181818; }
body.postid-3118 .project-hero__media img { object-fit: contain; padding: clamp(12px, 2.5vw, 36px); }
body.postid-3112 .project-hero__media img,
body.postid-3130 .project-hero__media img { object-position: center top; }
.project-details { display: grid; grid-template-columns: 270px minmax(0, 760px); justify-content: space-between; gap: 8vw; padding-bottom: var(--space); }
.project-facts { align-self: start; border-top: 1px solid var(--line); }
.project-facts > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.project-facts span { display: block; margin-bottom: 7px; font-family: "SFMono-Regular", monospace; font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; }
.project-facts p { margin: 0; font-size: .9rem; }
.entry-content { font-size: 1.06rem; }
.entry-content > * { margin-bottom: 1.45em; }
.entry-content h2 { margin-top: 1.2em; font-size: clamp(2.2rem, 4vw, 4rem); }
.entry-content h3 { margin-top: 1.8em; font-size: clamp(1.5rem, 2.5vw, 2.4rem); }
.entry-content figure { margin-inline: 0; }
.entry-content .alignwide { width: min(1100px, calc(100vw - 40px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.project-evidence { padding-block: var(--space); }
.evidence-list { border-top: 1px solid rgba(242,239,231,.24); }
.evidence-list article a { min-height: 82px; display: grid; grid-template-columns: 110px 1fr 30px; gap: 20px; align-items: center; border-bottom: 1px solid rgba(242,239,231,.24); text-decoration: none; }
.evidence-list time { font-family: "SFMono-Regular", monospace; font-size: .68rem; opacity: .62; }
.evidence-list h3 { margin: 0; font-size: clamp(1.2rem, 2vw, 1.8rem); }

/* Posts and pages */
.post-header, .page-header { padding-top: clamp(80px, 11vw, 150px); padding-bottom: clamp(45px, 6vw, 80px); }
.post-header h1, .page-header h1 { font-size: clamp(3.4rem, 8vw, 7.6rem); }
.post-header__excerpt { font-size: 1.25rem; color: var(--ink-soft); }
.post-feature { margin-bottom: clamp(55px, 8vw, 110px); }
.post-feature img { width: 100%; max-height: 80vh; object-fit: cover; }
.post-single .entry-content, .page-single .entry-content { padding-bottom: var(--space); }
.post-footer { padding-bottom: var(--space); }
.post-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 50px; }
.post-tags a { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .75rem; text-decoration: none; }
.post-navigation .nav-links { border-top: 1px solid var(--line); padding-top: 24px; }
.post-navigation a { max-width: 46%; display: grid; gap: 6px; font-weight: 700; text-decoration: none; }
.post-navigation span { font-family: "SFMono-Regular", monospace; font-size: .64rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 400; }
.comments-wrap { padding-bottom: var(--space); }
.comment-list { padding-left: 0; list-style: none; }
.comment-list .comment { padding: 24px 0; border-top: 1px solid var(--line); }
.search-form { display: flex; gap: 8px; }
.search-field { min-height: 44px; padding: 8px 12px; border: 1px solid var(--ink); background: var(--white); }
.search-form button { padding: 8px 14px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); }
.not-found { min-height: 70vh; padding-block: 12vw; }
.not-found h1 { max-width: 1000px; }
.not-found__actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }

/* Footer */
.site-footer { padding-top: 85px; background: var(--ink); color: var(--paper); }
.site-footer__grid { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: end; }
.site-footer__statement { max-width: 700px; font-size: clamp(2rem, 5vw, 4.7rem); font-weight: 700; line-height: .98; letter-spacing: -.045em; }
.site-footer__links { display: grid; gap: 12px; justify-items: end; }
.site-footer__links a { font-weight: 700; text-decoration: none; }
.footer-menu { display: grid; gap: 10px; justify-items: end; }
.site-footer__base { margin-top: 80px; padding-block: 20px; display: flex; justify-content: space-between; border-top: 1px solid rgba(242,239,231,.2); font-family: "SFMono-Regular", monospace; font-size: .64rem; letter-spacing: .04em; text-transform: uppercase; }

@media (max-width: 980px) {
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero__mosaic { max-width: 680px; grid-auto-rows: 140px; transform: none; }
  .project-card, .project-card:nth-child(n) { grid-column: span 6; padding-top: 0; }
  .artifact-grid { grid-template-columns: repeat(2, 1fr); }
  .experience-strip__grid, .currently__grid { grid-template-columns: 1fr; }
  .project-details { grid-template-columns: 220px minmax(0, 1fr); }
}

@media (max-width: 720px) {
  :root { --shell: min(100% - 28px, 1240px); --reading: min(100% - 28px, 760px); }
  h1 { font-size: clamp(3.6rem, 18vw, 6rem); }
  .section-heading--split { grid-template-columns: 1fr; gap: 22px; }
  .menu-toggle { display: inline-flex; gap: 10px; align-items: center; cursor: pointer; }
  .menu-toggle__lines, .menu-toggle__lines::before { display: block; width: 19px; height: 1px; background: currentColor; content: ""; }
  .menu-toggle__lines::before { transform: translateY(-5px); }
  .site-nav { display: none; position: fixed; inset: 78px 0 0; padding: 45px 22px; background: var(--ink); color: var(--paper); }
  .site-nav.is-open { display: block; }
  .site-menu { display: grid; gap: 5px; }
  .site-menu a { display: block; padding: 13px 0; font-size: 2.25rem; line-height: 1; }
  .site-menu .sub-menu {
    position: static;
    min-width: 0;
    padding: 0 0 10px 18px;
    background: transparent;
    color: inherit;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  .site-menu .sub-menu::before { display: none; }
  .site-menu .sub-menu a { padding: 8px 0; font-size: 1.15rem; white-space: normal; }
  .hero { padding-block: 65px 90px; }
  .hero__mosaic { grid-auto-rows: 100px; }
  .project-grid { display: grid; grid-template-columns: 1fr; gap: 50px; }
  .project-card, .project-card:nth-child(n) { grid-column: auto; }
  .project-card__media, .project-card:nth-child(n) .project-card__media { aspect-ratio: 4/3; }
  .currently__item { grid-template-columns: 70px 1fr; }
  .currently__item p { grid-column: 2; }
  .artifact-grid { grid-template-columns: 1fr; }
  .artifact-card:nth-child(n) { transform: none; }
  .experience-strip__grid { grid-template-columns: 1fr; }
  .timeline-entry > a { grid-template-columns: 58px 1fr 22px; gap: 12px; }
  .timeline-entry__thumb, .timeline-entry p { display: none; }
  .project-details { grid-template-columns: 1fr; }
  .project-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .evidence-list article a { grid-template-columns: 78px 1fr 18px; gap: 12px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__links, .footer-menu { justify-items: start; }
  .site-footer__base { display: grid; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
