:root {
  --bg: #fcfbf8;
  --text: #181714;
  --mid: #5e5a53;
  --soft: #9a9388;
  --line: #e7e2d8;
  --accent: #8d2f26;
  --quote-bg: #f5f4f0;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }

/* LAYOUT */
.wrap { max-width: 820px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 32px; }

/* HEADER */
header { padding: 36px 0 0; }
.header-row { display: flex; justify-content: space-between; align-items: baseline; }
.site-name { font-family: var(--serif); font-size: 1.1rem; font-weight: bold; }
.site-sub { font-size: 0.72rem; color: var(--soft); margin-top: 3px; letter-spacing: 0.04em; }
.lang-nav { display: flex; gap: 12px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; color: var(--soft); }
.lang-nav a:hover, .lang-nav a[aria-current] { color: var(--accent); }
.back { font-size: 0.78rem; color: var(--soft); }
.back:hover { color: var(--accent); }

/* HERO */
.hero { padding: 100px 0 72px; }
.hero h1 { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 28px; max-width: 16ch; }
.hero-text { font-family: var(--serif); font-size: 1.08rem; line-height: 1.7; color: var(--mid); max-width: 38rem; margin-bottom: 14px; }
.hero-text em { font-style: italic; color: var(--text); }

/* CLUSTERS */
.cluster { padding: 48px 0 0; border-top: 1px solid var(--line); }
.cluster-title { font-family: var(--serif); font-size: 1.2rem; font-weight: bold; letter-spacing: -0.01em; margin-bottom: 24px; color: var(--text); }

/* WORK ITEMS (homepage) */
.work-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.25s ease;
}
.work-item:first-of-type { border-top: 1px solid var(--line); }
.work-item:hover { padding-left: 6px; }
.work-title { font-family: var(--serif); font-size: 1.05rem; font-weight: bold; line-height: 1.3; letter-spacing: -0.01em; transition: color 0.2s; }
.work-item:hover .work-title { color: var(--accent); }
.work-desc { font-size: 0.85rem; color: var(--mid); margin-top: 3px; line-height: 1.5; }
.work-side { text-align: right; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; color: var(--soft); white-space: nowrap; }

/* NOTE SECTIONS */
.note-section { padding: 48px 0 0; border-top: 1px solid var(--line); }
.note-label { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--soft); display: block; margin-bottom: 12px; }
.note-section p { font-family: var(--serif); font-size: 0.95rem; line-height: 1.65; color: var(--mid); max-width: 38rem; }
.note-section a { color: var(--accent); border-bottom: 1px solid transparent; }
.note-section a:hover { border-color: var(--accent); }

/* COLOPHON */
.colophon { padding: 48px 0 40px; border-top: 1px solid var(--line); margin-top: 48px; }
.colophon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; }
.colophon dt { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--soft); margin-bottom: 2px; }
.colophon dd { font-size: 0.88rem; color: var(--mid); margin-bottom: 12px; }
.colophon dd a { color: var(--accent); }

/* CASE PAGE */
.case-header { padding: 80px 0 48px; }
.case-cluster { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin-bottom: 16px; }
.case-title { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 24px; max-width: 18ch; }
.case-meta { display: grid; grid-template-columns: repeat(3, auto); gap: 12px 36px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-meta dt { font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--soft); margin-bottom: 2px; }
.case-meta dd { font-size: 0.88rem; color: var(--mid); }
.case-body { padding: 48px 0; }
.case-body p { font-family: var(--serif); font-size: 1.02rem; line-height: 1.72; color: var(--mid); margin-bottom: 18px; max-width: 40rem; }

/* FRAGMENTS */
.fragments { padding: 0 0 48px; }
.fragments-label { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--soft); margin-bottom: 20px; }
.fragment { background: var(--quote-bg); border-left: 3px solid var(--line); padding: 20px 24px; margin-bottom: 16px; }
.fragment p { font-family: var(--serif); font-size: 1.05rem; font-style: italic; line-height: 1.6; color: var(--text); margin: 0; }

/* READ FULL */
.read-full { padding: 32px 0 56px; border-top: 1px solid var(--line); }
.read-full-link { font-family: var(--serif); font-size: 1.1rem; color: var(--accent); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.read-full-link:hover { border-color: var(--accent); }
.read-full-note { font-size: 0.82rem; color: var(--soft); margin-top: 6px; }

/* CASE NAV */
.case-nav { padding: 32px 0 56px; border-top: 1px solid var(--line); }
.case-nav-inner { display: flex; justify-content: space-between; gap: 24px; }
.case-nav a { max-width: 50%; }
.case-nav .nav-label { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); margin-bottom: 4px; }
.case-nav .nav-title { font-family: var(--serif); font-size: 0.95rem; line-height: 1.3; color: var(--text); transition: color 0.2s; }
.case-nav a:hover .nav-title { color: var(--accent); }
.case-nav .next { text-align: right; }

/* FOOTER */
footer { padding: 18px 0 32px; border-top: 1px solid var(--line); font-size: 0.7rem; color: var(--soft); }
.footer-row { display: flex; justify-content: space-between; }

/* RESPONSIVE */
@media (max-width: 640px) {
  .wrap, .wrap-narrow { padding: 0 22px; }
  .hero { padding: 64px 0 52px; }
  .work-item { grid-template-columns: 1fr; gap: 4px; }
  .work-side { text-align: left; }
  .colophon-grid { grid-template-columns: 1fr; }
  .case-header { padding: 56px 0 36px; }
  .case-meta { grid-template-columns: 1fr; }
  .case-nav-inner { flex-direction: column; }
  .case-nav a { max-width: 100%; }
  .case-nav .next { text-align: left; }
}

/* ANIMATION */
@keyframes settle { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.hero h1, .hero-text { animation: settle 0.5s ease-out both; }
.hero-text { animation-delay: 0.08s; }
.case-title { animation: settle 0.5s ease-out both; }
