/* Shared by every server-rendered page. No build step or external dependency. */
:root {
  --paper: #f7f7f2;
  --ink: #252621;
  --muted: #71726a;
  --line: #d7d8cf;
  --accent: #6b765c;
  --font: Arial, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.7 var(--font); -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere; }
::selection { background: #dce1d0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
a:hover { color: var(--accent); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 500; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
.image-top { object-position: top; }
.image-bottom { object-position: bottom; }
.image-left { object-position: left; }
.image-right { object-position: right; }
.site-shell { width: min(100% - 112px, 1440px); margin: 0 auto; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 116px; border-bottom: 1px solid var(--ink); }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 700; letter-spacing: -.8px; }
.wordmark-dot { width: 6px; height: 6px; background: var(--accent); }
.site-header nav { display: flex; gap: 38px; }
.site-header nav a { display: flex; align-items: baseline; gap: 8px; font-size: 14px; min-height: 44px; padding: 10px 0; }
.site-header nav a span { font-size: 12px; color: var(--muted); }
.site-header nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; }
.eyebrow { font-size: 12px; line-height: 1.6; letter-spacing: .04em; font-weight: 400; }
.mono { font: 12px/1.6 "Courier New", monospace; }
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 64px 0 76px; }
.page-intro .eyebrow { margin-bottom: 24px; }
h1 { font-size: clamp(48px, 5.2vw, 82px); line-height: 1.16; letter-spacing: -.065em; }
.title-dot { color: var(--accent); }
.intro-note { font-size: 14px; padding-bottom: 7px; line-height: 1.9; }
.intro-note span { display: block; color: var(--muted); font-size: 12px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--ink); padding: 16px 0 28px; }
.section-heading h2 { font-size: 13px; }
.section-heading .mono { color: var(--muted); }
.projects-grid { display: grid; grid-template-columns: 1.15fr 1fr; column-gap: 40px; row-gap: 64px; align-items: start; }
.project-card:nth-child(even) { padding-top: 88px; }
.project-link { display: block; }
.project-cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.project-card:nth-child(3n + 2) .project-cover { aspect-ratio: 1 / 1; }
.tone-1 { background: #e4e2d8; color: #626257; }
.tone-2 { background: #dfe2db; color: #596456; }
.tone-3 { background: #e1e3e3; color: #606869; }
.image-placeholder { height: 100%; width: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.placeholder-center { font-size: 13px; font-weight: 400; letter-spacing: .03em; }
.placeholder-index { position: absolute; bottom: 20px; left: 22px; font: 11px/1.5 "Courier New", monospace; letter-spacing: .04em; }
.cover-open { position: absolute; right: 18px; top: 12px; font-size: 24px; color: var(--ink); opacity: 0; transition: opacity .18s ease; }
.project-link:hover .cover-open, .project-link:focus-visible .cover-open { opacity: 1; }
.project-caption { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; padding-top: 18px; }
.project-name { display: flex; align-items: baseline; gap: 14px; }
.project-number { color: var(--muted); }
.project-name h3 { font-size: 19px; letter-spacing: -.04em; }
.project-meta { display: flex; align-items: baseline; gap: 10px; color: var(--muted); font-size: 12px; }
.sample-label { font-size: 11px; font-weight: 400; color: var(--muted); border: 1px solid #babdb0; line-height: 1.5; padding: 1px 5px; letter-spacing: 0; vertical-align: middle; }
.empty-state { padding: 64px 0; color: var(--muted); }
.index-end { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; border-top: 1px solid var(--line); margin-top: 100px; padding: 32px 0 64px; }
.index-end p { color: var(--muted); font-size: 13px; }
.text-link { display: inline-flex; align-items: center; gap: 28px; font-size: 14px; min-height: 44px; }
.text-link > span { font-size: 20px; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--ink); padding: 24px 0 30px; font-size: 11px; }
.site-footer > span:nth-child(2) { color: var(--muted); }
.site-footer a { padding: 6px 0 6px 12px; }
.site-footer a span { margin-left: 14px; font-size: 15px; }
.project-intro { padding: 32px 0 46px; }
.back-link { display: inline-flex; gap: 14px; align-items: center; min-height: 44px; font-size: 12px; }
.project-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-top: 40px; }
.project-title-row .eyebrow { margin-bottom: 18px; }
.project-title-row .sample-label { margin-left: 14px; }
.project-title-row h1 { font-size: clamp(40px, 5vw, 72px); }
.project-type { font-size: 13px; padding-bottom: 8px; }
.project-hero { aspect-ratio: 16 / 9; }
.project-information { display: grid; grid-template-columns: .75fr 1.6fr 1fr; gap: 36px; padding: 60px 0 72px; border-bottom: 1px solid var(--line); }
.project-information h2 { padding-top: 4px; color: var(--muted); }
.project-description { font-size: 16px; line-height: 1.95; }
.project-description p + p { margin-top: 20px; }
.project-facts { margin: 0; font-size: 12px; }
.project-facts div { display: grid; grid-template-columns: 60px 1fr; gap: 12px; padding: 4px 0; }
.project-facts dt { color: var(--muted); }
.project-facts dd { margin: 0; }
.project-gallery { padding-top: 64px; display: grid; gap: 44px; }
.gallery-image { aspect-ratio: 3 / 2; }
/* Full original images in the detail gallery; covers alone are cropped. */
.gallery-image:has(img) { aspect-ratio: auto; background: transparent; }
.gallery-image img { height: auto; object-fit: contain; }
figcaption { font-size: 12px; line-height: 1.8; color: var(--muted); margin-top: 10px; }
.project-pagination { display: flex; justify-content: space-between; align-items: flex-end; gap: 36px; border-top: 1px solid var(--line); margin-top: 72px; padding: 30px 0 72px; }
.next-project { display: grid; gap: 10px; text-align: right; }
.next-project > span:last-child { font-size: 25px; letter-spacing: -.04em; }
.next-project > span:last-child > span { margin-left: 24px; }
.next-project .eyebrow { color: var(--muted); }
.about-heading { padding: 64px 0 60px; }
.about-heading .eyebrow { margin-bottom: 24px; }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; }
.portrait-image { aspect-ratio: 4 / 5; }
.about-copy { padding-top: 12px; }
.about-copy > .eyebrow { color: var(--muted); }
.about-copy h2 { font-size: 32px; letter-spacing: -.05em; margin-top: 8px; }
.about-paragraphs { margin-top: 36px; max-width: 420px; font-size: 16px; line-height: 1.95; }
.about-paragraphs p + p { margin-top: 20px; }
.contact-section { border-top: 1px solid var(--line); margin-top: 64px; padding-top: 24px; }
.contact-section h3 { font-size: 12px; margin-bottom: 16px; }
.contact-link { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; font-size: 16px; }
.contact-pending, .contact-location { font-size: 13px; color: var(--muted); }
.contact-location { margin-top: 12px; }
.not-found { padding: 100px 0 160px; }
.not-found h1 { font-size: clamp(30px, 4vw, 52px); margin: 24px 0; }
.not-found p:not(.eyebrow) { color: var(--muted); margin-bottom: 24px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; transform: translateY(-200%); background: var(--ink); color: white; padding: 10px 18px; }
.skip-link:focus { transform: translateY(0); color: white; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (min-width: 1800px) { .page-intro { padding-top: 80px; padding-bottom: 90px; } }
@media (max-width: 1000px) {
  .site-shell { width: calc(100% - 64px); }
  .projects-grid { column-gap: 28px; }
  .project-caption { display: block; }
  .project-meta { padding-left: 29px; margin-top: 6px; }
  .about-layout { gap: 56px; }
  .project-information { grid-template-columns: 1.5fr 1fr; gap: 24px; }
  .project-information h2 { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .site-shell { width: calc(100% - 40px); }
  .site-header { min-height: 88px; gap: 16px; }
  .wordmark { font-size: 17px; }
  .site-header nav { gap: 22px; }
  .site-header nav a { font-size: 13px; }
  .site-header nav a span { display: none; }
  .page-intro { display: block; padding: 44px 0 42px; }
  h1 { font-size: clamp(40px, 9vw, 58px); }
  .page-intro .eyebrow { margin-bottom: 22px; }
  .intro-note { margin-top: 28px; font-size: 12px; }
  .intro-note span { display: inline; margin-left: 12px; font-size: 11px; }
  .section-heading { padding-bottom: 22px; }
  .projects-grid { grid-template-columns: 1fr; row-gap: 36px; }
  .project-card:nth-child(even) { padding-top: 0; }
  .project-card:nth-child(3n + 2) .project-cover { aspect-ratio: 4 / 3; }
  .project-caption { display: flex; }
  .project-name h3 { font-size: 18px; }
  .project-meta { padding-left: 0; margin-top: 0; }
  .placeholder-index { bottom: 14px; left: 16px; }
  .cover-open { opacity: 1; font-size: 20px; }
  .index-end { margin-top: 60px; padding: 24px 0 44px; }
  .index-end p { font-size: 12px; }
  .text-link { font-size: 13px; gap: 18px; }
  .site-footer { flex-wrap: wrap; gap: 8px 20px; padding-top: 20px; }
  .site-footer > span:nth-child(2) { order: 3; width: 100%; }
  .site-footer a { margin-left: auto; }
  .project-intro { padding-top: 20px; padding-bottom: 32px; }
  .project-title-row { display: block; margin-top: 24px; }
  .project-title-row h1 { font-size: 38px; }
  .project-type { display: block; margin-top: 16px; padding: 0; }
  .project-hero { aspect-ratio: 4 / 3; }
  .project-information { grid-template-columns: 1fr; padding: 32px 0 40px; gap: 20px; }
  .project-information h2 { grid-column: auto; }
  .project-description { font-size: 15px; }
  .project-facts { margin-top: 12px; }
  .project-gallery { padding-top: 36px; gap: 28px; }
  .project-pagination { margin-top: 40px; padding-bottom: 48px; gap: 20px; }
  .next-project > span:last-child { font-size: 20px; }
  .next-project > span:last-child > span { margin-left: 10px; }
  .about-heading { padding: 44px 0 36px; }
  .about-layout { grid-template-columns: 1fr; gap: 36px; }
  .portrait-image { aspect-ratio: 4 / 3; }
  .about-copy { padding: 0; }
  .about-copy h2 { font-size: 28px; }
  .about-paragraphs { margin-top: 24px; font-size: 15px; }
  .contact-section { margin-top: 40px; }
  .not-found { padding: 64px 0 100px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
