/* Sacred Wire 28 website mock layer: built on the print design system (bundle.css).
   Same ink and paper, same three families; screen-only additions: nav, buttons, inputs, grids. */

.w { box-sizing: border-box; background: #fff; color: #000; font-family: "PT Serif", Georgia, serif; font-size: 16px; line-height: 1.55; }
.w *, .w *::before, .w *::after { box-sizing: border-box; }
.w a { color: #000; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.w code, .w .kw { font-family: "Ubuntu Mono", monospace; font-weight: 700; font-size: 0.95em; border-bottom: 1px dotted #000; }

/* Top bar: the form header of every page */
.w-nav { display: flex; align-items: stretch; height: 52px; background: #000; color: #fff; padding: 0 32px; gap: 4px; }
.w-nav__brand { display: flex; align-items: center; gap: 10px; margin-right: 22px; font-family: "Saira Condensed", sans-serif; font-weight: 800; font-size: 22px; letter-spacing: 2px; text-transform: uppercase; }
.w-nav__brand i { width: 14px; height: 14px; background: #fff; display: inline-block; }
.w-nav a { color: #fff; text-decoration: none; display: flex; align-items: center; padding: 0 12px; font-family: "Saira Condensed", sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; }
.w-nav a.on { background: #fff; color: #000; }
.w-nav .sp { flex: 1; }
.w-nav .meta { font-family: "Ubuntu Mono", monospace; font-size: 12px; letter-spacing: 0.5px; color: #fff; display: flex; align-items: center; padding: 0 8px; }
.w-formbar { display: flex; justify-content: space-between; padding: 6px 32px; border-bottom: 1px solid #000; font-family: "Ubuntu Mono", monospace; font-size: 12px; letter-spacing: 0.5px; text-transform: uppercase; }

.w-wrap { max-width: 1120px; margin: 0 auto; padding: 0 40px; }
.w-sec { padding: 44px 0; border-bottom: 1px solid #000; }
.w-sec:last-child { border-bottom: 0; }
.w-kicker { font-family: "Ubuntu Mono", monospace; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.w-h1 { font-family: "Saira Condensed", sans-serif; font-weight: 800; font-size: 92px; line-height: 0.86; letter-spacing: 1px; text-transform: uppercase; margin: 0; }
.w-h2 { font-family: "Saira Condensed", sans-serif; font-weight: 800; font-size: 40px; line-height: 0.95; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 18px 0; display: flex; align-items: flex-end; gap: 14px; }
.w-h2 .n { font-size: 40px; padding-right: 14px; border-right: 2px solid #000; }
.w-h3 { font-family: "Saira Condensed", sans-serif; font-weight: 700; font-size: 20px; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 6px 0; }
.w-lead { font-size: 19px; line-height: 1.5; font-style: italic; max-width: 680px; }

/* Buttons: signal amber (the Core Rules cover stock) for the one primary action per page, outline for the rest.
   Amber marks "do this" and "live now" only: never headings, tiles or large areas. */
.w-btn { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border: 2px solid #000; background: #fff; color: #000; font-family: "Saira Condensed", sans-serif; font-weight: 800; font-size: 17px; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: none !important; white-space: nowrap; }
.w-btn--ink { background: #f6df5e; color: #0c0c0c !important; border-color: #000; }
.w-btn--sm { height: 34px; padding: 0 12px; font-size: 14px; }
/* Arrow: cable ending in a square plug, drawn by CSS (HTML carries an empty aria-hidden span). Right by default;
   --down / --up / --left rotate it. Hover or focus on the parent link retracts the cable: the plug slides toward the text. */
.sw-arrow { --t: 0px; display: inline-block; flex: none; position: relative; width: 22px; height: 8px; vertical-align: middle; margin: 0 0 0.12em 0.1em; color: inherit; pointer-events: none; }
.sw-arrow::before { content: ""; position: absolute; left: 0; top: 3px; height: 2px; width: calc(16px - var(--t)); background: currentColor; }
.sw-arrow::after { content: ""; position: absolute; right: 0; top: 0; width: 6px; height: 8px; background: currentColor; transform: translateX(calc(-1 * var(--t))); }
.sw-arrow--left { transform: scaleX(-1); margin: 0 0.1em 0.12em 0; }
.sw-arrow--down, .sw-arrow--up { width: 8px; height: 22px; margin: 0 0 0 0.1em; }
.sw-arrow--down::before, .sw-arrow--up::before { left: 3px; top: 0; width: 2px; height: calc(16px - var(--t)); }
.sw-arrow--down::after, .sw-arrow--up::after { left: 0; right: auto; top: auto; bottom: 0; width: 8px; height: 6px; transform: translateY(calc(-1 * var(--t))); }
.sw-arrow--up { transform: scaleY(-1); }
.sw-arrow::before, .sw-arrow::after { transition: width 150ms linear, height 150ms linear, transform 150ms linear; }
:is(a, button):is(:hover, :focus-visible) .sw-arrow { --t: 8px; }
@media (prefers-reduced-motion: reduce) { .sw-arrow::before, .sw-arrow::after { transition: none; } }

.w-grid { display: grid; gap: 20px; }
.w-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.w-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.w-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.w-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* Tiles: framed links to a resource */
.w-tile { display: flex; flex-direction: column; border: 1.5px solid #000; padding: 16px 18px; text-decoration: none !important; min-height: 100%; }
.w-tile__k { font-family: "Ubuntu Mono", monospace; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.w-tile__t { font-family: "Saira Condensed", sans-serif; font-weight: 800; font-size: 26px; line-height: 1; text-transform: uppercase; margin: 6px 0 8px 0; }
.w-tile__d { font-size: 15px; line-height: 1.45; }
.w-tile__f { margin-top: auto; padding-top: 12px; font-family: "Ubuntu Mono", monospace; font-size: 12px; display: flex; justify-content: space-between; border-top: 1px solid #000; }
.w-tile--ink { background: #000; color: #fff; }
.w-tile--ink .w-tile__f { border-top-color: #fff; }

/* Inputs: paper fields with ink labels (write-in rule holds on screen too) */
.w-field { display: flex; align-items: stretch; border: 1.5px solid #000; height: 42px; }
.w-field label { background: #000; color: #fff; display: flex; align-items: center; padding: 0 10px; font-family: "Saira Condensed", sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap; }
.w-field span { flex: 1; display: flex; align-items: center; padding: 0 12px; font-family: "Ubuntu Mono", monospace; font-size: 15px; }
.w-field span.ph { color: #555; }

.w-chipnum { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; border: 1.5px solid #000; font-family: "Ubuntu Mono", monospace; font-weight: 700; font-size: 14px; }
.w-chipnum.on { background: #000; color: #fff; border-width: 2px; }

.w-foot { background: #000; color: #fff; padding: 28px 0; font-family: "Ubuntu Mono", monospace; font-size: 13px; line-height: 1.6; }
.w-foot a { color: #fff; }

/* Mobile frame */
.w-phone { width: 390px; }
.w-phone .w-nav { padding: 0 16px; height: 52px; }
.w-phone .w-wrap { padding: 0 16px; }
.w-phone .w-h1 { font-size: 64px; }
.w-phone .w-h2 { font-size: 30px; }
.w-phone .w-h2 .n { font-size: 30px; }
.w-phone .w-grid--2, .w-phone .w-grid--3 { grid-template-columns: minmax(0, 1fr); }
.w-burger { margin-left: auto; display: flex; align-items: center; gap: 8px; font-family: "Saira Condensed", sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 1.5px; }
.w-burger b { display: inline-block; width: 22px; height: 14px; border-top: 2px solid #fff; border-bottom: 2px solid #fff; position: relative; }
.w-burger b::after { content: ""; position: absolute; left: 0; right: 0; top: 4px; border-top: 2px solid #fff; }
.w .w-tile--ink, .w .w-tile--ink * { color: #fff; }
