/* Layout: dark shell (nav + hero) over a white body, joined by a 3px amber seam. One accent, amber. */
:root {
  --ink: #040F16;
  --ink-2: #0B1820;
  --paper: #FBFBFF;
  --amber: #F2A33A;
  --sapphire: #0B4F6C;
  --on-dark: #FBFBFF;
  --on-dark-2: rgba(251,251,255,0.72);
  --on-dark-3: rgba(251,251,255,0.5);
  --line-dark: rgba(251,251,255,0.14);
  --body: rgba(4,15,22,0.78);
  --muted: rgba(4,15,22,0.66);
  --rule: rgba(4,15,22,0.14);
  --font-display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
a { color: var(--sapphire); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.on-paper :focus-visible { outline-color: var(--sapphire); }

/* band inner wrapper: carries the side gutter */
.in {
  max-width: 1120px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.dark { background: var(--ink); color: var(--on-dark-2); }
.seam { border-bottom: 3px solid var(--amber); }

.eyebrow { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.dark .eyebrow { color: var(--amber); }
.paper .eyebrow { color: var(--sapphire); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.6vw, 3.5rem); line-height: 1.04; color: var(--on-dark); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); line-height: 1.12; color: var(--ink); letter-spacing: -0.025em; }
h3 { font-size: 1.3rem; line-height: 1.25; color: var(--ink); letter-spacing: -0.02em; }
p { margin: 0; }
.lede { font-size: 1.1rem; line-height: 1.7; max-width: 58ch; }
.dark .lede { color: var(--on-dark-2); }

/* nav */
.nav-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 1.5rem; }
.mark { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--on-dark); font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; }
.mark svg { width: 26px; height: 14px; flex: none; }
.mark path { stroke: var(--amber); fill: none; stroke-width: 2.4; stroke-linecap: round; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.75rem; font-size: 0.9rem; }
.nav a { color: var(--on-dark-3); text-decoration: none; padding-block: 0.3rem; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--on-dark); }
.nav a[aria-current="page"] { color: var(--on-dark); border-bottom-color: var(--amber); }
.nav a.cta { background: var(--amber); color: var(--ink); font-weight: 500; padding: 0.55rem 1.1rem; border-radius: 8px; border-bottom: 0; }
.nav a.cta:hover { filter: brightness(1.06); color: var(--ink); }
.nav a.cta[aria-current="page"] { outline: 2px solid var(--on-dark); outline-offset: 2px; }

/* hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 3rem; padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5.5rem); }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 1.4rem; }
.hero-text h1 { max-width: 16ch; }
.hero-text.wide h1 { max-width: 20ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.5rem; padding-top: 0.3rem; }
.btn { display: inline-block; text-decoration: none; font-weight: 500; font-size: 0.95rem; background: var(--amber); color: var(--ink); padding: 0.8rem 1.5rem; border-radius: 8px; }
.btn:hover { filter: brightness(1.06); color: var(--ink); }
.dark .link { color: var(--on-dark); }
.link { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--amber); font-weight: 500; font-size: 0.95rem; }
.paper .link { color: var(--sapphire); }

/* config snippet */
.snippet { flex: 1 1 360px; min-width: 0; background: var(--ink-2); border: 0.5px solid var(--line-dark); border-radius: 8px; padding: 1.25rem 1.4rem; display: flex; flex-direction: column; gap: 0.9rem; }
.snippet-head { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-3); }
.snippet pre { margin: 0; font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.85; color: var(--on-dark-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.snippet .k { color: var(--amber); }
.snippet .c { color: rgba(251,251,255,0.4); }
.snippet .s { color: #97C459; }

/* paper body */
.paper { background: var(--paper); }
.section { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.section + .section { border-top: 0.5px solid var(--rule); }
.stack { display: flex; flex-direction: column; gap: 0.75rem; }
.stack-lg { display: flex; flex-direction: column; gap: 2rem; }

.cards { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.card { flex: 1 1 290px; min-width: 0; border: 0.5px solid var(--rule); border-radius: 8px; padding: 1.75rem; display: flex; flex-direction: column; gap: 0.9rem; background: var(--paper); }
.card p { font-size: 0.95rem; line-height: 1.75; }
.stackline { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); padding-top: 0.25rem; }

.steps { display: flex; flex-wrap: wrap; gap: 2rem 1.75rem; list-style: none; margin: 0; padding: 0; }
.steps li { flex: 1 1 150px; min-width: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.steps li::before { content: ""; width: 36px; height: 4px; background: var(--amber); }
.steps b { font-size: 1rem; font-weight: 500; color: var(--ink); }
.steps span { font-size: 0.9rem; line-height: 1.7; color: var(--muted); }

.callout { background: rgba(4,15,22,0.04); border-left: 3px solid var(--amber); border-radius: 0 8px 8px 0; padding: 1.4rem 1.6rem; color: var(--ink); max-width: 70ch; }

/* work rows */
.rows { border-bottom: 0.5px solid var(--rule); }
.row { display: grid; grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr); gap: 0.75rem 2.5rem; padding-block: 1.75rem; border-top: 0.5px solid var(--rule); }
.row-head { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.row-body { display: flex; flex-direction: column; gap: 0.9rem; min-width: 0; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags li { font-family: var(--font-mono); font-size: 0.75rem; padding: 0.15rem 0.55rem; border: 1px solid var(--rule); color: var(--muted); border-radius: 4px; }

/* contact */
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.mail code { font-family: var(--font-mono); font-size: clamp(1.15rem, 3.6vw, 1.7rem); background: #fff; border: 0.5px solid var(--rule); border-radius: 8px; padding: 0.55rem 1rem; color: var(--ink); user-select: all; overflow-wrap: anywhere; }
.copy-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: transparent; color: var(--sapphire); border: 1px solid var(--sapphire); border-radius: 8px; cursor: pointer; }
.copy-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.copy-icon .i-check { display: none; }
.copy-icon.done .i-copy { display: none; }
.copy-icon.done .i-check { display: block; }
.btn-mail { margin-left: 0.25rem; }
.copy-icon:hover { background: rgba(11,79,108,0.08); }
.checklist { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; max-width: 62ch; }
.checklist li::marker { color: var(--sapphire); }

footer { padding-block: 2.25rem; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; font-size: 0.85rem; color: var(--on-dark-3); }
.foot .mark { font-size: 1.15rem; }
.foot .mark svg { width: 22px; height: 12px; }

@media (max-width: 680px) {
  .row { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* sticky top bar */
.top { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
@media (max-width: 600px) {
  .nav-row { padding-block: 0.9rem; gap: 0.5rem 1rem; }
  .nav { gap: 0.4rem 1.1rem; }
}
@media (max-width: 420px) {
  .nav-row { flex-wrap: nowrap; }
  .mark { font-size: 1.25rem; gap: 0.45rem; }
  .nav { flex-wrap: nowrap; gap: 0.9rem; font-size: 0.85rem; }
  .nav a.cta { padding: 0.5rem 0.85rem; }
}

/* Hero before/after panel */
.ba { display: flex; flex-direction: column; gap: 0.35rem; }
.ba p { margin: 0; font-size: 0.92rem; line-height: 1.65; color: var(--on-dark-2); }
.ba .ba-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-3); }
.ba.after { border-top: 0.5px solid var(--line-dark); padding-top: 0.9rem; }
.ba.after .ba-label { color: #97C459; }
.ba.after p:not(.ba-label) { color: var(--on-dark); }
