/* ==========================================================================
   INK — the atelier desktop. Rice-paper ground, ink-wash neutrals, one
   cinnabar seal used sparingly. Vertical inscriptions, an enso circle,
   and the patience of a handscroll.
   ========================================================================== */

.theme-ink {
  --paper:        #f7f4ec;
  --paper-2:      #f0ece0;
  --paper-3:      #e6e1d2;
  --dark:         #17150f;
  --dark-2:       #201d15;
  --dark-3:       #2a261c;
  --ink:          #1c1a17;
  --ink-2:        #454138;
  --muted:        #8d867a;
  --muted-dark:   #a59d8e;
  --clay:         #b3342a;
  --clay-deep:    #8f251e;
  --clay-soft:    #f0d9d3;
  --sky:          #5a6b5d;
  --sage:         #5a6b5d;
  --line:         rgba(28, 26, 23, 0.14);
  --line-strong:  rgba(28, 26, 23, 0.3);
  --line-dark:    rgba(247, 244, 236, 0.14);
  --r-xs: 0;
  --r-sm: 0;
  --r:    0;
  --r-lg: 0;
  --r-xl: 0;
  --r-pill: 0;
  --serif: "Newsreader", "Songti SC", "Noto Serif SC", SimSun, serif;
  --sans:  "Inter", sans-serif;
}

.theme-ink ::selection { background: var(--clay-soft); }
.theme-ink :focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

/* ---- chrome ---------------------------------------------------------- */

.theme-ink .site-header { background: rgba(247, 244, 236, 0.9); }
.theme-ink .promo { background: var(--dark); }
.theme-ink .brand-mark { color: var(--clay); }
.theme-ink .nav-link, .theme-ink .nav-trigger { font-family: var(--serif); font-size: 16px; }
.theme-ink .nav-link:hover, .theme-ink .nav-trigger:hover { background: var(--paper-2); color: var(--ink); }
.theme-ink .mega { background: var(--paper); }
.theme-ink .mega__link:hover { background: var(--paper-2); color: var(--clay-deep); }
.theme-ink .drawer { background: var(--paper); }

/* ---- links & buttons -------------------------------------------------- */

.theme-ink .btn { font-family: var(--serif); font-size: 15px; letter-spacing: 0.02em; }
.theme-ink .btn--primary { background: var(--ink); color: var(--paper); }
.theme-ink .btn--primary:hover { background: var(--clay); }
.theme-ink .btn--clay { background: var(--clay); color: #fbf8f2; }
.theme-ink .btn--clay:hover { background: var(--clay-deep); }
.theme-ink .btn--outline { border-color: var(--line-strong); }
.theme-ink .btn--outline:hover { background: var(--ink); border-color: var(--ink); }
.theme-ink .arrow-link { color: var(--ink); font-family: var(--serif); }
.theme-ink .arrow-link:hover { color: var(--clay-deep); }
.theme-ink .hub-link:hover, .theme-ink .lang-toggle:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---- type ------------------------------------------------------------- */

.theme-ink .hero h1,
.theme-ink .page-hero h1,
.theme-ink .section-head h2,
.theme-ink .callout__copy h2,
.theme-ink .card h3,
.theme-ink .tile__title,
.theme-ink .release__title,
.theme-ink .timeline__item h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; }
.theme-ink .hero h1 a { color: var(--clay-deep); }
.theme-ink .eyebrow { color: var(--clay); }
.theme-ink .mission em { font-style: normal; color: var(--clay); }
.theme-ink .prose blockquote { border-left-color: var(--clay); font-style: normal; }
.theme-ink .prose ul li::before { background: var(--clay); border-radius: 0; width: 5px; height: 5px; }
.theme-ink .chip { border-radius: 0; font-family: var(--serif); }
.theme-ink .chip--clay { color: var(--clay); border-color: rgba(179, 52, 42, 0.45); }
.theme-ink .lede { font-family: var(--serif); }

/* ---- surfaces --------------------------------------------------------- */

.theme-ink .hero__glow {
  background:
    radial-gradient(closest-side at 68% 30%, rgba(28, 26, 23, 0.07), transparent 72%),
    radial-gradient(closest-side at 30% 70%, rgba(28, 26, 23, 0.05), transparent 70%);
}
.theme-ink .card:hover { border-color: var(--line-strong); box-shadow: none; }
.theme-ink .tile:hover { background: var(--paper-2); }
.theme-ink .tile__arrow { color: var(--clay); }
.theme-ink .callout__viz {
  background:
    radial-gradient(120% 90% at 80% 15%, rgba(28, 26, 23, 0.5), transparent 60%),
    var(--paper-3);
}
.theme-ink .callout__viz svg { color: rgba(28, 26, 23, 0.8); }
.theme-ink .table thead th { background: var(--paper-2); color: var(--ink); font-family: var(--serif); }
.theme-ink .tier { background: var(--clay); }
.theme-ink .stat dd { color: var(--clay-deep); }
.theme-ink .section--paper2 { background: var(--paper-2); }
.theme-ink .timeline__year { color: var(--clay); font-family: var(--serif); }
.theme-ink .job:hover { color: var(--clay-deep); }
.theme-ink .filter { border-radius: 0; font-family: var(--serif); }
.theme-ink .filter.is-active { background: var(--ink); }
.theme-ink .footer__brand .brand-mark { color: var(--clay); }
.theme-ink .footer__wordmark { font-family: var(--serif); }

/* ==========================================================================
   INK home — the handscroll architecture.
   ========================================================================== */

/* opening: enso + statement, vertical inscription on the edge */
.ik-hero {
  position: relative;
  max-width: 1120px;
  margin-inline: auto;
  padding: clamp(56px, 9vw, 120px) var(--gutter) clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(180px, 300px) 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  overflow: hidden;
}
.ik-enso { width: 100%; max-width: 300px; height: auto; }
.ik-enso .ik-stroke { stroke: var(--ink); }
.ik-enso .ik-stroke--faint { stroke: rgba(28, 26, 23, 0.18); }
.ik-eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0;
}
.ik-hero h1 {
  margin: 20px 0 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.18;
  letter-spacing: -0.015em;
}
.ik-hero h1 em { font-style: normal; color: var(--clay); }
.ik-lede { margin: 20px 0 0; max-width: 46ch; font-size: clamp(15.5px, 1.7vw, 18px); line-height: 1.8; color: var(--ink-2); }
.ik-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

/* vertical inscription, hung off the scroll's edge */
.ik-vertical {
  position: absolute;
  top: clamp(40px, 6vw, 80px);
  right: var(--gutter);
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.42em;
  color: var(--muted);
  user-select: none;
}
.ik-vertical::after {
  content: "";
  display: block;
  width: 1px;
  height: 56px;
  background: var(--line-strong);
  margin-block-start: 14px;
  margin-inline-start: auto;
}
@media (max-width: 760px) {
  .ik-hero { grid-template-columns: 1fr; }
  .ik-enso { max-width: 180px; }
  .ik-vertical { display: none; }
}

/* the scroll sections: 一二三四五六 */
.ik-scroll { max-width: 1120px; margin-inline: auto; padding: clamp(20px, 3vw, 40px) var(--gutter) 0; }
.ik-section {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: clamp(18px, 4vw, 48px);
  align-items: baseline;
  padding: clamp(28px, 4.5vw, 52px) 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.3s var(--ease);
}
.ik-section:first-child { border-top: 0; }
.ik-section:hover { background: rgba(28, 26, 23, 0.025); }
.ik-no {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  line-height: 1;
  color: var(--paper-3);
  -webkit-text-stroke: 1px rgba(28, 26, 23, 0.35);
  transition: color 0.3s var(--ease);
}
.ik-section:hover .ik-no { color: var(--clay-soft); }
.ik-title { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 3vw, 32px); letter-spacing: 0.01em; }
.ik-couplet { margin: 10px 0 0; max-width: 52ch; font-family: var(--serif); font-size: 16px; line-height: 1.85; color: var(--ink-2); }
.ik-go {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--muted);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.ik-section:hover .ik-go { color: var(--clay); transform: translateX(4px); }
@media (max-width: 640px) { .ik-section { grid-template-columns: 64px 1fr; } .ik-go { display: none; } }

/* three instruments */
.ik-instruments { max-width: 1120px; margin-inline: auto; padding: clamp(36px, 6vw, 64px) var(--gutter); }
.ik-instrument {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: clamp(16px, 3vw, 36px);
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.ik-instrument:last-of-type { border-bottom: 1px solid var(--line); }
.ik-instrument:hover .ik-inst-name { color: var(--clay-deep); }
.ik-inst-name { font-family: var(--serif); font-size: 22px; transition: color 0.25s; }
.ik-inst-note { font-family: var(--serif); font-size: 15px; color: var(--ink-2); }
.ik-inst-price { font-family: var(--mono); font-size: 12px; color: var(--muted); }
@media (max-width: 640px) { .ik-instrument { grid-template-columns: 1fr; gap: 4px; } }

/* fresh ink: log lines */
.ik-log { max-width: 1120px; margin-inline: auto; padding: clamp(20px, 3vw, 40px) var(--gutter) clamp(36px, 5vw, 64px); }
.ik-log-line {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px dashed var(--line);
  text-decoration: none;
  font-family: var(--serif);
}
.ik-log-line:hover .ik-log-msg { color: var(--clay-deep); }
.ik-log-date { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.ik-log-msg { font-size: 15.5px; color: var(--ink); transition: color 0.2s; }

/* poem band + seal */
.ik-poem {
  background: var(--dark);
  color: var(--paper);
  padding: clamp(64px, 10vw, 128px) var(--gutter);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ik-poem::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 50% 42%, rgba(247, 244, 236, 0.06), transparent 70%);
  pointer-events: none;
}
.ik-poem-line {
  position: relative;
  margin: 0 auto;
  max-width: 26ch;
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.5;
  letter-spacing: 0.06em;
}
.ik-poem-line em { font-style: normal; color: var(--clay-soft); }
.ik-seal {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-top: 34px;
  background: var(--clay);
  color: #fbf8f2;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.1;
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px rgba(251, 248, 242, 0.25), inset 0 0 0 5px var(--clay);
  user-select: none;
}

/* colophon */
.ik-colophon {
  max-width: 1120px;
  margin-inline: auto;
  padding: 22px var(--gutter) 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.ik-colophon a { color: var(--ink); }
.ik-colophon a:hover { color: var(--clay); }

/* CJK tuning */
html[lang^="zh"] .theme-ink .hero h1,
html[lang^="zh"] .ik-hero h1 { line-height: 1.3; letter-spacing: 0.01em; }
html[lang^="zh"] .ik-couplet { letter-spacing: 0.02em; }

/* colophon footer shared-markup styling (as on helix) */
.theme-ink .at-colophon {
  max-width: 1120px;
  margin-inline: auto;
  padding: 18px var(--gutter) 40px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.theme-ink .at-colophon a { color: var(--clay); }
