/* Reviewable brand layer.
   Tokens and shared page chrome for every public page. Load this before a page's own
   <style> block so page-specific rules win at equal specificity.
   A page must never need to redefine a token declared here. */

:root {
  color-scheme: light;
  --paper: #f6f1ea;
  --paper-raised: #fffdfa;
  --paper-sunken: #eee4d8;
  --ink: #26282a;
  --ink-soft: #4f5353;
  --muted: #67635e;
  --line: #d8cdc0;
  --line-strong: #c4b6a6;
  --oxide: #a54b32;
  --oxide-deep: #79321f;
  --oxide-hover: #63271a;
  --oxide-tint: #f0d8cc;
  --focus: #005fcc;
  --radius: 12px 4px 12px 4px;
  --sans: "Segoe UI", system-ui, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --mono: "Cascadia Mono", Consolas, monospace;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--paper); }
a { color: var(--oxide-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--oxide-hover); }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.045em; text-wrap: balance; }
h3 { letter-spacing: -.02em; }
p { color: var(--ink-soft); line-height: 1.6; }
code { font-family: var(--mono); font-size: .92em; }

.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 14px; font-weight: 760; letter-spacing: .01em; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px 8px 8px 2px; color: #fff; background: var(--oxide); font-family: var(--serif); font-size: 17px; line-height: 1; }
.workspace-link { color: var(--ink); font-size: 13px; font-weight: 700; text-decoration-color: var(--oxide); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.workspace-link:hover { color: var(--oxide-deep); }

.eyebrow { margin-bottom: 18px; color: var(--oxide-deep); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }

/* The offset block under the primary action reads as a physical key rather than a flat rectangle. */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 17px; border: 1px solid var(--oxide); border-radius: 6px; color: #fff; background: var(--oxide); box-shadow: 0 5px 0 var(--oxide-deep); font-size: 14px; font-weight: 740; text-decoration: none; transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease; }
.button:hover { color: #fff; background: var(--oxide-hover); border-color: var(--oxide-hover); transform: translateY(2px); box-shadow: 0 3px 0 var(--oxide-deep); }
.button:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--oxide-deep); }
.button.secondary { color: var(--ink); background: transparent; border-color: var(--ink); box-shadow: none; }
.button.secondary:hover { color: var(--ink); background: var(--paper-sunken); border-color: var(--ink); transform: none; box-shadow: none; }
.button.secondary:active { transform: translateY(1px); box-shadow: none; }

pre { max-width: 100%; margin: 0; padding: 24px; overflow-x: auto; border-radius: var(--radius); color: #f6f1ea; background: var(--ink); box-shadow: 8px 8px 0 var(--oxide-tint); font: 13px/1.7 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }

.site-footer { border-top: 1px solid var(--line); background: var(--paper-sunken); }
.footer-inner { display: flex; justify-content: space-between; gap: 22px; padding: 28px 0 40px; }
.footer-inner p { max-width: 580px; margin-bottom: 0; color: var(--muted); font-size: 13px; }
.footer-inner a { align-self: start; color: var(--ink); font-size: 13px; font-weight: 700; white-space: nowrap; text-decoration-color: var(--oxide); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.footer-inner a:hover { color: var(--oxide-deep); }

@media (max-width: 760px) {
  .shell { width: min(100% - 32px, 1120px); }
}

@media (max-width: 460px) {
  .site-header { align-items: flex-start; }
  .brand { max-width: 185px; }
  .workspace-link { padding-top: 5px; text-align: right; }
  pre { padding: 18px; box-shadow: 5px 5px 0 var(--oxide-tint); font-size: 12px; }
  .footer-inner { display: grid; }
  .footer-inner a { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .button:hover, .button:active, .button.secondary:active { transform: none; }
}
