/* Hallmark · shape: Register & Rows · genre: modern-minimal · theme: Blueprint (deal 1/3, seed hosts-creator-kubernetes-sidecar-resolves-4511·c447e925·2026-11-23·r0) · job: try · draw: hosts-creator-kubernetes-sidecar-resolves-4511
 * hero: Stage · nav: edge-aligned · footer: colophon · imagery: a diagram of the real system, no photographs · signature: the Pod section with one shared /etc/hosts · blueprint: cyanotype
 * axes: mid/geometric-sans/neutral · posture: drenched · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P5 H4 E4 S4 R5 V4 · weakest: E, Japanese heads need a kana face at every weight, so the display token is Noto Sans JP and mono is kept for code and measurements only */
@import url("./tokens.css");
@import url("./base.css");

/* theme adaptation for Japanese: the display face is the kana gothic, the
   outlier keeps entirely to code and measurements */
:root {
  --font-display: "Noto Sans JP", "Hiragino Sans", ui-sans-serif, sans-serif;
  --font-body: "IBM Plex Sans", "Noto Sans JP", "Hiragino Sans", ui-sans-serif, sans-serif;
  --text-display: clamp(2.5rem, 4.2vw + 1rem, 4.5rem);
  --nav-h: 72px;
  --display-weight: 700;
}

body { line-height: 1.75; letter-spacing: 0.01em; }
h1, h2 { text-transform: none; line-height: 1.16; letter-spacing: 0.005em; }
h3 { letter-spacing: 0.01em; }
p { font-size: 17px; }
.prose { font-size: 17px; line-height: 1.75; }
code { font-family: var(--font-outlier); font-size: 0.9em; }

/* ---------- nav ---------- */
.nav { height: var(--nav-h); border-bottom: var(--rule-hair) solid var(--color-rule-2); position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-xl); }
.wordmark { font-family: var(--font-outlier); font-weight: 500; font-size: var(--text-sm); letter-spacing: 0.16em; text-decoration: none; }
.nav__links { display: flex; align-items: center; gap: var(--space-xl); list-style: none; margin: 0; padding: 0; }
.nav__links > li > a:not(.btn) { font-size: var(--text-sm); text-decoration: none; color: var(--color-ink-2); }
.nav__links > li > a:not(.btn):hover { color: var(--color-ink); text-decoration: underline; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: var(--space-sm) var(--space-lg); border: var(--rule-hair) solid var(--color-rule); background: transparent; color: var(--color-ink); font-weight: 500; font-size: var(--text-md); text-decoration: none; white-space: nowrap; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.btn:hover { background: var(--color-paper-2); }
.btn:active { background: var(--color-paper-3); }
.btn--primary { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-accent-ink); }
.btn--primary:hover { background: var(--color-ink-2); border-color: var(--color-ink-2); color: var(--color-accent-ink); }
.btn--small { min-height: 40px; padding: var(--space-2xs) var(--space-md); font-size: var(--text-sm); }

/* ---------- hero ---------- */
.hero { min-height: calc(100dvh - var(--nav-h)); display: grid; align-items: center; padding-block: var(--space-2xl) calc(var(--space-2xl) * 1.35); }
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-2xl); align-items: center; }
.hero__text { grid-column: 1 / span 5; min-width: 0; }
.hero__text h1 { max-width: 14ch; }
.hero__text .lead { margin-top: var(--space-lg); color: var(--color-ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }

.fig { margin: 0; border: var(--rule-hair) solid var(--color-rule); padding: var(--space-md); position: relative; }
.fig::after { content: ""; position: absolute; inset: 5px; border: var(--rule-hair) solid var(--color-rule-2); pointer-events: none; }
.hero__fig { grid-column: 6 / span 6; min-width: 0; background-image: linear-gradient(var(--color-grid) 1px, transparent 1px), linear-gradient(90deg, var(--color-grid) 1px, transparent 1px), linear-gradient(var(--color-grid-2) 1px, transparent 1px), linear-gradient(90deg, var(--color-grid-2) 1px, transparent 1px); background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px; background-position: 0 0, 0 0, 0 0, 0 0; }
.fig figcaption { margin-top: var(--space-sm); padding-inline: var(--space-2xs); font-size: var(--text-sm); color: var(--color-muted); }

.diagram { width: 100%; height: auto; color: var(--color-ink); }
.d-line rect, .d-line path, .d-dim path { fill: none; stroke: currentColor; stroke-width: 1; }
.d-label, .d-name, .d-sub { fill: currentColor; }
.d-label { font-family: var(--font-body); font-size: 13px; font-weight: 500; }
.d-name { font-family: var(--font-body); font-size: 15px; font-weight: 500; }
.d-sub { font-family: var(--font-outlier); font-size: 12px; fill: var(--color-muted); }

/* ---------- sections ---------- */
.section { padding-block: var(--section-gap); }
.section--band { background: var(--color-paper-2); color: var(--color-ink); padding-block: var(--section-gap-s); }
.section h2 { max-width: 24ch; }
.section > .container > h2 + * { margin-top: var(--space-2xl); }
.subhead { margin-top: var(--space-2xl); max-width: none; }
.subhead + .table-wrap { margin-top: var(--space-lg); }
.note { margin-top: var(--space-lg); font-size: var(--text-md); color: var(--color-muted); max-width: 62ch; }

/* rows: a register sheet, parted by hairlines */
.rows { border-top: var(--rule-hair) solid var(--color-rule); }
.row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); padding-block: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule-2); }
.row h3 { grid-column: 1 / span 4; }
.row p { grid-column: 5 / span 8; color: var(--color-ink-2); max-width: 62ch; font-size: 17px; }

/* steps: stages along one dimension string */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: stage; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); position: relative; }
.steps::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: var(--rule-hair); background: var(--color-rule); }
.step { counter-increment: stage; padding-top: var(--space-xl); position: relative; }
.step::before { content: ""; position: absolute; top: calc(var(--tick) / -2); left: 0; width: var(--rule-hair); height: var(--tick); background: var(--color-rule); transform: rotate(45deg); }
.step__n { display: block; font-family: var(--font-outlier); font-size: var(--text-sm); color: var(--color-muted); }
.step__n::before { content: counter(stage, decimal-leading-zero); }
.step h3 { margin-top: var(--space-sm); }
.step p { margin-top: var(--space-sm); color: var(--color-ink-2); max-width: 40ch; }

/* table: a drawing register */
.table-wrap { width: 100%; }
table { width: 100%; border-collapse: collapse; font-size: var(--text-md); }
th, td { text-align: left; padding: var(--space-md) var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule-2); vertical-align: top; }
thead th { border-bottom: var(--rule-heavy) solid var(--color-rule); font-weight: 500; font-size: var(--text-sm); color: var(--color-muted); white-space: nowrap; }
tbody th { font-weight: 500; font-family: var(--font-outlier); font-size: var(--text-md); white-space: nowrap; }
td:last-child, thead th:last-child { text-align: right; color: var(--color-muted); }
tbody th { width: 30%; }

/* split: config beside the manifest */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: start; }
.split__text { grid-column: 1 / span 5; }
.split__code { grid-column: 7 / span 6; }
.split p + pre, .split pre + p { margin-top: var(--space-lg); }
/* split with a generated plate */
.split--img { align-items: center; }
.split--img .split__fig { grid-column: 6 / span 7; margin: 0; }
.split--img .split__fig img { width: 100%; height: auto; display: block; }

pre { margin: 0; padding: var(--space-lg); background: var(--color-paper-3); border: var(--rule-hair) solid var(--color-rule-2); overflow-x: auto; font-family: var(--font-outlier); font-size: var(--text-sm); line-height: 1.7; color: var(--color-ink-2); }
.section--band pre { background: var(--color-paper-3); color: var(--color-ink-2); }

/* ---------- footer: a statement close ---------- */
.footer { border-top: var(--rule-hair) solid var(--color-rule); padding-block: var(--section-gap-s); }
.footer__statement { font-family: var(--font-display); font-weight: 700; font-size: var(--text-display-s); line-height: 1.22; letter-spacing: 0.005em; text-wrap: balance; }
.footer__meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-md) var(--space-xl); margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule-2); }
.footer p { font-size: var(--text-sm); color: var(--color-muted); max-width: 52ch; }
.footer__link { font-size: var(--text-sm); }

/* ---------- responsive ---------- */
@media (max-width: 60rem) {
  .hero { min-height: 0; padding-block: var(--space-2xl); }
  .hero__grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .hero__text, .hero__fig { grid-column: auto; }
  .hero__text h1 { max-width: 20ch; }
  .hero__fig { max-width: 34rem; }
  .row h3, .row p { grid-column: 1 / -1; }
  .row h3 { margin-bottom: var(--space-xs); }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { display: none; }
  .step { border-top: var(--rule-hair) solid var(--color-rule-2); padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
  .step::before { display: none; }
  .split__text, .split__code, .split--img .split__fig { grid-column: 1 / -1; }
  .split__code { margin-top: var(--space-xl); }
  .nav__links { gap: var(--space-lg); }
}

@media (max-width: 40rem) {
  .nav__links > li:not(:last-child) { display: none; }
  .hero__text h1 { font-size: clamp(2rem, 9vw, 2.75rem); }
  .hero__actions .btn { flex: 1 1 100%; }
  thead th:first-child, tbody th { width: auto; }
  th, td { padding: var(--space-sm) var(--space-2xs); }
}
