/* N4mation / Foundation 01. See BRAND.md for the design rules. */
:root {
  --paper: #f5f6f8; --surface: #ffffff; --ink: #181b24; --muted: #565c6a;
  --accent: #294bff; --accent-hover: #1836d5; --line: #d9dde6;
  --font: Arial, Helvetica, sans-serif; --mono: ui-monospace, Consolas, monospace;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;
  --radius: 4px; --content: 1280px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 5px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; border-radius: 2px; }
img, svg { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
.shell { width: min(var(--content), 100%); margin: auto; padding: 0 clamp(24px, 5vw, 72px); }
.masthead { min-height: 126px; display: flex; justify-content: space-between; align-items: center; gap: 28px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 15px; text-decoration: none; }
.wordmark img { width: 49px; height: 40px; }
.wordmark-name { font-weight: 700; font-size: 24px; letter-spacing: -1px; line-height: 1; }
.wordmark-name small { display: block; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 2px; margin-top: 8px; }
.header-link { font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 20px; padding: 12px 0; }
.header-link:hover { color: var(--accent); }
.arrow { font-family: var(--font); font-size: 22px; line-height: 1; }
.hero { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 100px); padding: clamp(64px, 8vw, 104px) 0 72px; align-items: end; }
.eyebrow { color: var(--muted); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 1.4px; margin: 0 0 30px; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(54px, 7.8vw, 104px); font-weight: 500; line-height: .99; letter-spacing: -.065em; margin: 0; }
h1 em { font-style: normal; color: var(--accent); }
.hero-note { padding-bottom: 5px; }
.hero-note p { font-size: 20px; line-height: 1.55; margin-bottom: 25px; max-width: 29ch; }
.hero-note .subtle { color: var(--muted); font-size: 16px; margin: 0; max-width: 33ch; }
.details { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 100px); border-top: 1px solid var(--line); padding: 42px 0 58px; }
.details h2 { font-size: 14px; font-weight: 600; margin: 0 0 18px; }
.about-copy { font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 53ch; margin-bottom: 26px; }
.focus-list { display: flex; flex-wrap: wrap; list-style: none; gap: 8px 20px; padding: 0; margin: 0; font-size: 14px; }
.focus-list li { display: flex; align-items: center; gap: 8px; }
.focus-list li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }
.contact { scroll-margin-top: 32px; }
.contact p { color: var(--muted); font-size: 16px; margin: 0 0 20px; max-width: 32ch; }
.contact-link { color: var(--accent); display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; font-size: 17px; padding: 8px 0; text-decoration: none; border-bottom: 1px solid var(--accent); max-width: 100%; }
.contact-link span:first-child { overflow-wrap: anywhere; }
.contact-link:hover { color: var(--accent-hover); border-color: var(--accent-hover); }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; border-top: 1px solid var(--line); padding: 24px 0 32px; color: var(--muted); font-size: 12px; }
.footer a { text-decoration: none; padding: 8px 0; }
.footer a:hover { text-decoration: underline; }
.skip-link { position: absolute; top: -120px; left: 24px; background: var(--surface); color: var(--ink); padding: 12px 20px; z-index: 10; }
.skip-link:focus { top: 16px; }
.document { max-width: 740px; padding: 64px 0 80px; }
.document h1 { font-size: clamp(42px, 6vw, 64px); margin: 0 0 32px; }
.document h2 { font-size: 20px; margin: 32px 0 12px; letter-spacing: -.4px; }
.document p { color: var(--muted); }
.document a { color: var(--accent); }
.system-section { padding: 40px 0; border-top: 1px solid var(--line); }
.system-section h2 { font-size: 22px; letter-spacing: -.5px; }
.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.swatch { border: 1px solid var(--line); background: var(--surface); }
.swatch-color { height: 100px; }
.swatch p { padding: 12px; margin: 0; font-size: 14px; }
.swatch code { display: block; color: var(--muted); font-size: 12px; }
.brand-samples { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.brand-sample { display: flex; min-height: 160px; padding: 32px; align-items: center; background: var(--surface); border: 1px solid var(--line); }
.brand-sample.dark { background: var(--ink); color: white; }
.brand-sample img { width: 80px; }
@media (min-width: 1400px) { .shell { min-height: 100svh; display: flex; flex-direction: column; } .shell > main { flex: 1; display: flex; flex-direction: column; justify-content: center; } }
@media (max-width: 760px) {
  .masthead { min-height: 100px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 56px 0 40px; }
  h1 { font-size: clamp(58px, 12.8vw, 94px); }
  .eyebrow { margin-bottom: 24px; }
  .hero-note p, .hero-note .subtle { max-width: 42ch; }
  .hero-note p { margin-bottom: 14px; }
  .details { grid-template-columns: 1fr; gap: 36px; padding: 32px 0 44px; }
  .contact { padding-top: 28px; border-top: 1px solid var(--line); }
  .contact p { max-width: none; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) { .wordmark-name { font-size: 21px; } .wordmark { gap: 10px; } .wordmark img { width: 38px; } .header-link { gap: 10px; } .brand-samples { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
