/* EOW production stylesheet (2026-10 refresh).
   Same light editorial tone as the approved A layout; the bold move is the 2026 poster wall.
   Edit this file, then run scripts/build-production.py. Never edit assets/site/style.css. */

:root {
  /* Color */
  --paper: #fafbf7;
  --ink: #171a16;
  --muted: #5c6359;
  --line: #dde1d8;
  --mat: #eceee7;
  --signal: #ff4d00;      /* EOW logo orange: marks, rules, focus */
  --signal-ink: #c23b00;  /* logo orange darkened for text (AA on paper) */

  /* Type */
  --serif: 'DM Serif Display', Georgia, 'AppleMyungjo', serif;
  --sans: Inter, 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --t-xs: 12px;
  --t-sm: 14px;
  --t-base: 16px;
  --t-md: 20px;
  --t-lg: 25px;
  --t-xl: 32px;
  --t-2xl: 44px;
  --t-display: clamp(56px, 7.2vw, 112px);

  /* Space */
  --pad: clamp(20px, 3.3vw, 56px);
  --s-1: 8px;
  --s-2: 12px;
  --s-3: 20px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 72px;
  --gap-col: clamp(16px, 2vw, 32px);
}
html[lang="ko"] { --sans: 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif; }
/* DM Serif Display has no Hangul: Korean headings use the sans family instead of an OS serif fallback. */
html[lang="ko"] .about-heading h2,
html[lang="ko"] .work-intro h1,
html[lang="ko"] .dialog-copy h2 { font-family: var(--sans); font-weight: 700; letter-spacing: -.04em; }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t-base)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { line-height: 1.2; font-weight: 600; }
p, h1, h2, h3, li { word-break: keep-all; overflow-wrap: break-word; }
button, a, summary, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
::selection { background: #ffd4c0; color: var(--ink); }
.skip { position: absolute; left: 20px; top: -80px; z-index: 9; }
.skip:focus { top: 24px; background: #fff; padding: 12px; }
main { padding-inline: var(--pad); }
@media (min-width: 1700px) { main { max-width: 1900px; margin-inline: auto; } }

.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: var(--t-sm);
  text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 6px; text-decoration-color: var(--line);
}
.text-link:hover { color: var(--signal-ink); text-decoration-color: currentColor; }

/* Header */
.site-header { padding: var(--s-3) var(--pad); display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.brand { display: flex; align-items: center; gap: var(--s-2); }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.brand > span { font-size: var(--t-xs); line-height: 1.25; font-weight: 700; letter-spacing: .04em; }
.site-header nav { display: flex; gap: var(--s-4); }
.site-header nav a { font-size: var(--t-sm); min-height: 44px; display: flex; align-items: center; }
.site-header nav a:hover { color: var(--signal-ink); }
.site-header [aria-current] { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; text-decoration-color: var(--signal); }
.site-header .language { color: var(--muted); font-size: var(--t-xs); }

/* Home intro */
.intro {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: var(--s-6); align-items: start;
  padding: var(--s-4) 0 var(--s-6);
}
.wordmark { font: 400 var(--t-display)/.92 var(--serif); letter-spacing: -.035em; }
.intro-copy { padding-top: 14px; }
.statement { font-size: var(--t-lg); line-height: 1.35; letter-spacing: -.03em; font-weight: 500; }
.subcopy { color: var(--muted); margin-top: var(--s-2); max-width: 40ch; }
.intro-copy .text-link { margin-top: var(--s-1); }

/* Now preparing (replaces the boxed "In progress" cards) */
.now { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--s-2); margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--line); max-width: 46ch; }
.now::before { content: ""; grid-row: 1 / span 3; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); margin-top: 8px; }
.now-label { font-size: var(--t-xs); color: var(--muted); }
.now-name { font-weight: 600; letter-spacing: -.01em; }
.now-meta { font-size: var(--t-sm); color: var(--muted); }
.work-intro .now { margin-top: 0; }

/* Section headings */
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-3); }
.section-heading h2 { font-size: var(--t-lg); letter-spacing: -.035em; }

/* Poster cards */
.work-card { min-width: 0; }
.poster-button { width: 100%; display: block; background: none; padding: 0; border: 0; text-align: left; position: relative; }
.art { aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--mat); }
.art > img { width: 100%; height: 100%; object-fit: contain; }
.art-open {
  position: absolute; right: 10px; bottom: 10px;
  background: var(--paper); padding: 6px 10px; font-size: var(--t-xs);
  opacity: 0; transition: opacity .15s;
}
.poster-button:hover .art-open, .poster-button:focus-visible .art-open { opacity: 1; }
.artist-art { flex-direction: column; justify-content: space-between; align-items: stretch; padding-block: 18px; background: #e1e8df; color: #24352a; }
.artist-art .artist-word { font: 400 clamp(26px, 2.6vw, 46px)/.96 var(--serif); letter-spacing: -.025em; margin-inline: 18px; }
.artist-art > img { width: 100%; height: auto; object-fit: contain; }
.artist-tour { font-size: 11px; letter-spacing: .04em; line-height: 1.5; padding-inline: 18px; }
.card-meta { display: flex; justify-content: space-between; gap: var(--s-2); margin-top: var(--s-2); font-size: var(--t-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.card-name { display: block; padding: 0; border: 0; background: none; text-align: left; font: 600 var(--t-md)/1.3 var(--sans); letter-spacing: -.025em; margin-top: 6px; }
.card-name:hover { color: var(--signal-ink); }
.card-role, .card-excerpt { font-size: var(--t-sm); color: var(--muted); line-height: 1.6; margin-top: 6px; }
.card-website { display: inline-block; font-size: var(--t-sm); margin-top: var(--s-1); text-decoration: underline; text-underline-offset: 4px; }
.card-website:hover { color: var(--signal-ink); }

/* The poster wall: every project of the current year at one size, then a tile into the full list. */
.selected { padding-bottom: var(--s-6); }
.wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5) var(--gap-col); align-items: start; }
.all-tile {
  aspect-ratio: 4 / 5; display: flex; flex-direction: column; justify-content: space-between;
  padding: var(--s-3); border: 1px solid var(--ink); transition: background .2s, color .2s;
}
.all-tile strong { font: 400 clamp(64px, 7vw, 120px)/.9 var(--serif); letter-spacing: -.03em; }
/* DM Serif's plus is hairline-thin at display size; a stroke of its own colour gives it body. */
.all-tile em, .fact em { font-style: normal; color: var(--signal); -webkit-text-stroke: .035em var(--signal); paint-order: stroke fill; }
.all-tile span { font-size: var(--t-sm); color: var(--muted); max-width: 18ch; }
.all-tile .all-tile-link { font-size: var(--t-md); color: var(--ink); letter-spacing: -.02em; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; max-width: none; }
.all-tile:hover { background: var(--ink); color: var(--paper); }
.all-tile:hover span, .all-tile:hover .all-tile-link { color: var(--paper); }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.wall > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }
@media (prefers-reduced-motion: reduce) {
  .wall > * { animation: none; }
  .all-tile { transition: none; }
  .art-open { transition: none; }
}

/* About: type-led, no team photo. The heading column stays in view beside the visible service list. */
.about {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: var(--s-5) var(--s-6); padding-block: var(--s-5) var(--s-6);
  border-top: 1px solid var(--line);
}
.about-heading { position: sticky; top: var(--s-4); align-self: start; }
.about-heading h2 { font: 400 var(--t-2xl)/1.1 var(--serif); letter-spacing: -.025em; }
.about-heading > p { color: var(--muted); margin-top: var(--s-3); max-width: 46ch; }
.fact { margin-top: var(--s-5); max-width: 280px; border-top: 1px solid var(--ink); padding-top: var(--s-2); }
.fact strong { display: block; font: 400 clamp(64px, 6.4vw, 104px)/1 var(--serif); letter-spacing: -.03em; }
.fact span { display: block; font-size: var(--t-sm); color: var(--muted); margin-top: var(--s-1); }
.services ol { margin: 0; padding: 0; list-style: none; }
.services li {
  display: grid; grid-template-columns: 40px minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s-1) var(--s-3);
  padding-block: var(--s-3); border-top: 1px solid var(--line);
}
.services li:last-child { border-bottom: 1px solid var(--line); }
.service-no { font-size: var(--t-xs); color: var(--signal-ink); font-variant-numeric: tabular-nums; padding-top: 5px; }
.services h3 { font-size: var(--t-md); font-weight: 500; letter-spacing: -.02em; line-height: 1.35; }
.services li p { color: var(--muted); font-size: var(--t-sm); line-height: 1.7; }
.epks { display: flex; align-items: baseline; gap: var(--s-1) var(--s-3); flex-wrap: wrap; padding-top: var(--s-4); font-size: var(--t-sm); }
.epks h3 { font-size: var(--t-xs); font-weight: 500; color: var(--muted); margin-right: var(--s-1); }
.epks a { text-decoration: underline; text-underline-offset: 4px; }
.epks a:hover { color: var(--signal-ink); }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: var(--s-4) var(--pad); display: flex; justify-content: space-between; align-items: end; gap: var(--s-3); }
.footer-label { display: block; color: var(--muted); font-size: var(--t-xs); }
.email { display: inline-block; font: 400 clamp(28px, 3.4vw, 44px)/1.3 var(--serif); letter-spacing: -.02em; }
.email:hover { color: var(--signal-ink); }
footer > div:last-child { font-size: var(--t-xs); color: var(--muted); text-align: right; line-height: 1.8; }

/* Projects page */
.work-intro { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--s-6); align-items: end; padding-block: var(--s-4) var(--s-5); }
.work-intro h1 { font: 400 clamp(56px, 6vw, 92px)/1 var(--serif); letter-spacing: -.035em; }
.work-intro p.lede { color: var(--muted); margin-top: var(--s-1); }
.archive-jump {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 48px; margin-top: var(--s-3);
  padding: 0 var(--s-3); border: 1px solid var(--ink); border-radius: 999px; font-size: var(--t-sm); font-weight: 500;
  transition: background .2s, color .2s;
}
.archive-jump span { color: var(--signal); }
.archive-jump:hover { background: var(--ink); color: var(--paper); }
.year-line { display: flex; justify-content: space-between; font-size: var(--t-sm); padding-block: var(--s-2); border-top: 1px solid var(--line); margin-bottom: var(--s-3); }
.work-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5) var(--gap-col); align-items: start; }
.work-grid .artist-word { font-size: clamp(28px, 2.8vw, 48px); }

/* Archive: a disclosure (details/summary). The summary reads as a panel with a labelled button, not a hairline row. */
.archive { margin-block: var(--s-6) var(--s-5); background: var(--mat); }
.archive > summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-3);
  min-height: 128px; padding: var(--s-4) var(--s-4);
}
.archive-title { font: 400 var(--t-2xl)/1.1 var(--serif); letter-spacing: -.025em; }
html[lang="ko"] .archive-title { font-family: var(--sans); font-weight: 700; letter-spacing: -.04em; font-size: var(--t-xl); }
.archive small { display: block; font: 400 var(--t-sm)/1.5 var(--sans); letter-spacing: 0; margin-top: var(--s-1); color: var(--muted); }
.toggle {
  flex: none; display: inline-flex; align-items: center; gap: var(--s-2); min-height: 52px; padding: 0 var(--s-2) 0 var(--s-3);
  border-radius: 999px; background: var(--ink); color: var(--paper); font-size: var(--t-sm); font-weight: 500;
  transition: background .2s;
}
.toggle-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--signal); color: #fff; font-size: 18px; transition: transform .2s;
}
.archive > summary:hover .toggle { background: var(--signal-ink); }
.archive[open] .toggle { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.archive[open] .toggle-icon { transform: rotate(45deg); }
.archive .when-open, .archive[open] .when-closed { display: none; }
.archive[open] .when-open { display: inline; }
.archive-inner { padding: 0 var(--s-4) var(--s-4); }
.archive-note { font-size: var(--t-sm); color: var(--muted); margin-bottom: var(--s-3); }
.archive label { font-size: var(--t-sm); }
.archive input { display: block; background: var(--paper); border: 1px solid var(--line); padding: 12px; margin-block: 8px var(--s-3); width: min(360px, 100%); }
.archive input:focus { border-color: var(--ink); outline: none; }
.archive-count { font-size: var(--t-sm); color: var(--muted); padding-bottom: var(--s-2); }
.archive-rows { max-height: 480px; overflow: auto; overscroll-behavior: contain; }
.archive-row {
  width: 100%; display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 260px) 20px; gap: var(--s-3);
  background: none; border: 0; border-top: 1px solid #d3d8cd;
  padding: 14px 0; font-size: var(--t-sm); text-align: left;
}
.archive-row:hover { color: var(--signal-ink); }
.archive-row > span:first-child { font-variant-numeric: tabular-nums; color: var(--muted); }
.archive-role { color: var(--muted); text-align: right; }
.archive-open { color: var(--muted); }
#no-results { font-size: var(--t-sm); color: var(--muted); padding-top: var(--s-2); }
@media (prefers-reduced-motion: reduce) { .toggle, .toggle-icon, .archive-jump { transition: none; } }

/* Project dialog */
dialog { width: min(1080px, calc(100vw - 32px)); max-height: calc(100svh - 48px); padding: 0; border: 0; background: var(--paper); color: var(--ink); overflow: auto; }
dialog::backdrop { background: rgb(23 26 22 / .55); }
.dialog-bar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; padding: var(--s-2) var(--s-3); background: var(--paper); }
#close-dialog { background: none; border: 0; min-height: 44px; font-size: var(--t-sm); }
#close-dialog:hover { color: var(--signal-ink); }
.dialog-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-5); padding: 0 var(--s-4) var(--s-5); align-items: start; }
.dialog-body.without-art { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
.project-visual { background: var(--mat); }
.project-visual img { width: 100%; max-height: 70svh; object-fit: contain; }
.dialog-caption { display: flex; justify-content: space-between; gap: var(--s-2); font-size: var(--t-xs); color: var(--muted); padding: var(--s-1) 0; background: var(--paper); }
.dialog-caption a { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.dialog-period { font-size: var(--t-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.dialog-copy h2 { font: 400 var(--t-2xl)/1.1 var(--serif); letter-spacing: -.02em; margin-top: var(--s-1); }
.project-status { font-size: var(--t-xs); color: var(--muted); margin-top: var(--s-1); }
.detail-scope { margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.detail-scope h3 { font-size: var(--t-xs); color: var(--muted); font-weight: 500; }
.detail-scope ul { margin-top: var(--s-1); }
.detail-scope li { font-size: var(--t-md); letter-spacing: -.02em; line-height: 1.45; }
.dialog-text { margin-top: var(--s-3); color: var(--muted); max-width: 52ch; }
.dialog-copy .card-website { margin-top: var(--s-3); }

.noscript-note { padding: 16px; color: var(--muted); }

/* Responsive */
@media (max-width: 1100px) {
  .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .intro, .work-intro { grid-template-columns: 1fr; gap: var(--s-4); }
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: 1fr; }
  .about-heading { position: static; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dialog-body { grid-template-columns: 1fr; padding-inline: var(--s-3); }
}
@media (max-width: 560px) {
  .site-header { gap: var(--s-2); padding-block: 14px; }
  .site-header nav { gap: 14px; }
  .site-header nav a { font-size: 13px; }
  .brand img { width: 40px; height: 40px; }
  .brand > span { display: none; }
  .statement { font-size: var(--t-md); }
  .wall, .work-grid { gap: var(--s-4) 14px; }
  .card-name { font-size: 17px; }
  .services li { grid-template-columns: 32px minmax(0, 1fr); }
  .services li p { grid-column: 2; }
  .all-tile { padding: 14px; }
  .card-meta { font-size: 11px; }
  .about-heading h2 { font-size: var(--t-xl); }
  .archive > summary { flex-direction: column; align-items: flex-start; padding: var(--s-3); min-height: 0; }
  .archive-title { font-size: var(--t-xl); }
  .archive-inner { padding-inline: var(--s-3); }
  .archive-row { grid-template-columns: 44px minmax(0, 1fr) 16px; }
  .archive-role { grid-column: 2; text-align: left; }
  .archive-open { grid-row: 1; grid-column: 3; }
  footer { flex-direction: column; align-items: start; }
  footer > div:last-child { text-align: left; }
  .dialog-copy h2 { font-size: var(--t-xl); }
}
@media (max-width: 350px) {
  .site-header nav { gap: 10px; }
  .wordmark { font-size: 48px; }
}
