/* Hallmark · shape: name-first ledger · genre: editorial · theme: custom · job: attend · idea: "the name is the poster; the works and the one show date carry the rest" · vibe: "quiet paper, loud name, vivid works"
 * paper: #FAF8F4 (work order) · accent: #9C5B3B (work order, links and small marks only) · display: Jost · body: Hanken Grotesk + Noto Sans TC · hero: Ledge, the wordmark across the container resting at the base, 林昭緯 and one line above it · nav: edge-aligned, wordmark left, five links right · footer: colophon line · imagery: the artist's official works from the gallery, contained in 4:5 frames · signature: "Pigo Lin" set edge to edge over nine vivid works
 * axes: light/grotesk-light/warm · posture: Ledge · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P2 H2 E2 S2 R2 V2 · weakest: R (a fact-heavy exhibition section), the facts sit in a four-row definition list beside the title instead of prose */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --font-body: "Hanken Grotesk", "Noto Sans TC", "PingFang TC", ui-sans-serif, sans-serif;
  --font-zh: "Noto Sans TC", "PingFang TC", ui-sans-serif, sans-serif;
  --container: 1280px;
  --gutter: 48px;
  --text-wordmark: clamp(4.5rem, 29.5vw, 24rem);
  --text-date: clamp(2rem, 7vw, 6rem);
}
:lang(zh-Hant) { font-family: var(--font-zh); }

/* nav */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: color-mix(in oklab, var(--color-paper) 94%, transparent); border-bottom: var(--rule-hair) solid var(--color-rule); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: var(--space-lg); }
.nav__mark { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); text-decoration: none; }
.nav__links { display: flex; gap: var(--space-lg); list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; }
.nav__links a { font-family: var(--font-display); font-size: var(--text-sm); color: var(--color-muted); padding-block: var(--space-xs); transition: color var(--dur-micro) var(--ease-out); }
.nav__links a:hover { color: var(--color-ink); }
.nav__links a:active { color: var(--color-accent); }
a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; transition: none; }

/* hero: Ledge */
.hero { min-height: calc(100svh - 64px); display: flex; align-items: flex-end; padding-block: var(--space-2xl) var(--space-3xl); border-bottom: var(--rule-hair) solid var(--color-rule); }
.hero__inner { display: grid; gap: var(--space-sm); width: 100%; }
.hero__zh { font-family: var(--font-zh); font-weight: 500; font-size: var(--text-section); letter-spacing: 0.3em; line-height: 1.2; }
.hero__meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap-columns); align-items: end; }
.hero__lead { font-size: var(--text-lead); color: var(--color-ink-2); max-width: 30ch; }
.hero__action { justify-self: end; text-align: right; display: grid; gap: var(--space-xs); justify-items: end; }
.hero__date { font-family: var(--font-display); font-size: var(--text-title); color: var(--color-ink-2); }
.hero__wordmark { margin-top: var(--space-md); font-family: var(--font-display); font-weight: 300; font-size: var(--text-wordmark); line-height: 1; letter-spacing: -0.035em; margin-left: -0.04em; white-space: nowrap; }

.text-link { font-family: var(--font-display); font-size: var(--text-lead); text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 0.3em; transition: color var(--dur-micro) var(--ease-out); }
.text-link--sm { font-size: inherit; font-family: inherit; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--color-accent); }
.text-link:active { color: var(--color-ink-2); }

/* sections */
.section { padding-block: var(--section-gap); border-bottom: var(--rule-hair) solid var(--color-rule); }
.section--band { background: var(--color-paper-2); }
.head { display: flex; align-items: baseline; gap: var(--space-md); margin-bottom: var(--space-2xl); }
.head h2 { font-weight: 400; font-size: var(--text-section); letter-spacing: -0.01em; }
.head p { font-size: var(--text-sm); color: var(--color-muted); }
.mark { width: 8px; height: 8px; background: var(--color-accent); flex-shrink: 0; align-self: center; }
.note { font-size: var(--text-sm); color: var(--color-muted); }
.note--works { margin: calc(var(--space-xl) * -1) 0 var(--space-xl); }
.links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-xl); margin-top: var(--space-xl); }

/* exhibition */
.show { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: end; }
.show__title { display: grid; gap: var(--space-xs); font-weight: 400; }
.show__title [lang="zh-Hant"] { font-weight: 500; font-size: var(--text-xl); line-height: 1.5; }
.show__en { font-family: var(--font-display); font-size: var(--text-display-s); line-height: 1.05; letter-spacing: -0.01em; }
.show__kind { margin-top: var(--space-md); font-size: var(--text-lead); }
.show__date { margin-top: var(--space-lg); font-family: var(--font-display); font-weight: 300; font-size: var(--text-date); line-height: 0.95; letter-spacing: -0.03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.facts { margin: 0; display: grid; border-top: var(--rule-hair) solid var(--color-rule); }
.facts div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-md); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.facts dt { font-size: var(--text-sm); color: var(--color-muted); }
.facts dd { margin: 0; }
.past { margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.past__h { font-family: var(--font-zh); font-size: var(--text-md); font-weight: 500; margin-bottom: var(--space-sm); }
.past ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); font-size: var(--text-sm); color: var(--color-ink-2); }

/* works */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2xl) var(--gap-columns); list-style: none; margin: 0; padding: 0; }
.work figure { margin: 0; display: grid; gap: var(--space-md); }
.work__frame { display: grid; place-items: center; aspect-ratio: 4 / 5; background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); padding: var(--space-lg); transition: border-color var(--dur-micro) var(--ease-out); }
.work__frame img { width: 100%; height: 100%; object-fit: contain; }
.work__frame:hover { border-color: var(--color-ink-2); }
.work__frame:active { border-color: var(--color-accent); }
.work h3 { font-family: var(--font-body); font-size: var(--text-md); font-weight: 500; line-height: 1.4; display: grid; }
.work h3 [lang="en"] { font-weight: 400; color: var(--color-ink-2); }
.work figcaption p { margin-top: var(--space-2xs); font-size: var(--text-sm); color: var(--color-muted); line-height: 1.6; }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: start; }
.about__zh { font-size: var(--text-xl); line-height: 1.75; }
.about__en { font-size: var(--text-lead); line-height: 1.6; color: var(--color-ink-2); }

/* gallery */
.gallery { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: start; }
.gallery__name .text-link { font-size: var(--text-section); text-decoration-thickness: 2px; }
.gallery__line { margin-top: var(--space-lg); font-size: var(--text-xl); line-height: 1.6; }
.gallery__line [lang="en"] { font-size: var(--text-lead); color: var(--color-ink-2); }
.gallery__sub { margin-top: var(--space-md); color: var(--color-ink-2); }
.gallery__addr { font-style: normal; line-height: 1.9; padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }

/* contact */
.contact { display: grid; gap: var(--space-lg); }
.contact > p { font-size: var(--text-lead); color: var(--color-ink-2); }
.contact__addr { font-style: normal; display: grid; gap: var(--space-md); justify-items: start; }
.mail { font-family: var(--font-display); font-weight: 300; font-size: var(--text-display-s); line-height: 1.1; letter-spacing: -0.02em; overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; text-underline-offset: 0.18em; transition: color var(--dur-micro) var(--ease-out); }
.mail:hover { color: var(--color-accent); }
.mail:active { color: var(--color-ink-2); }

.footer { padding-block: var(--space-2xl) var(--space-3xl); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }

@media (max-width: 60rem) {
  .show, .about, .gallery { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); }
}
@media (max-width: 40rem) {
  :root { --gutter: 20px; }
  .nav__links { gap: var(--space-sm); }
  .nav__links a { font-size: var(--text-xs); }
  .nav__mark { font-size: var(--text-md); }
  .hero { min-height: auto; padding-block: var(--space-2xl) var(--space-lg); }
  .hero__meta { grid-template-columns: minmax(0, 1fr); gap: var(--space-md); }
  .hero__action { justify-self: start; text-align: left; justify-items: start; }
  .hero__wordmark { font-size: 29vw; }
  .head { margin-bottom: var(--space-xl); }
  .work__frame { padding: var(--space-sm); }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
}
@media (max-width: 24rem) { .nav__links { gap: var(--space-xs); } .nav__mark { font-size: var(--text-sm); } }
