/* Burkett OS shell — matches burkettinv.com marketing chrome */

@font-face {
  font-family: "Geist";
  src: url("./fonts/geist-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("./fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08080a;
  --bg-2: #0d0d10;
  --panel: #111114;
  --elevated: #17171b;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.17);
  --fg: #f4f4f5;
  --muted: #9b9ba4;
  --dim: #6a6a73;
  --gold: #ead4a2;
  --gold-deep: #b6a57e;
  --gold-wash: rgba(234, 212, 162, 0.12);
  --bk-red: #e31937;
  --bk-blue: #3e6ae1;
  --logo-primary: #ffffff;
  --logo-accent: #ead4a2;
  --grain-opacity: 0.05;
  --duration-micro: 140ms;
  --duration-control: 200ms;
  --duration-panel: 280ms;
  --duration-reveal: 500ms;
  --duration-line: 550ms;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* Legacy aliases for Command Center / older pages */
  --ink: var(--bg);
  --steel: var(--panel);
  --steel-2: var(--elevated);
  --bone: var(--fg);
  --mute: var(--muted);
  --grey: var(--muted);
  --grey-light: var(--muted);
  --paper: var(--bg);
  --chrome: #000000;
  --chrome-fg: #ffffff;
  --chrome-muted: #8a8a8a;
  --hairline: var(--line);
  --nav-hover: rgba(255, 255, 255, 0.06);
  --nav-active: var(--gold);
  --accent-bar: var(--gold);
  --input-bg: var(--panel);
  --code-bg: var(--elevated);
  --bg-elevated: var(--panel);
  --fg-muted: var(--muted);
  --text-dark: var(--fg);
  --text-mid: var(--muted);
  --text-light: var(--dim);
  --surface-elevated: var(--panel);
  --border: var(--line);
  --font-ui: var(--font-sans);
  --font-display: var(--font-sans);
  --content-max: 1240px;
  --radius: 0.5rem;
  --radius-sm: 0.375rem;
  --radius-lg: 0.75rem;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #f6f6f7;
  --panel: #f4f4f5;
  --elevated: #ffffff;
  --line: rgba(0, 0, 0, 0.12);
  --line-2: rgba(0, 0, 0, 0.2);
  --fg: #08080a;
  --muted: #55555d;
  --dim: #8a8a92;
  --gold: #8a7231;
  --gold-deep: #6f5c24;
  --gold-wash: rgba(138, 114, 49, 0.1);
  --logo-primary: #08080a;
  --logo-accent: #b6a57e;
  --grain-opacity: 0.03;
  --nav-hover: rgba(0, 0, 0, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--line);
}

html {
  scroll-behavior: smooth;
}

body.os-body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

body.os-body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

::selection {
  background: var(--gold);
  color: #08080a;
}

:focus-visible {
  outline: 2px solid var(--bk-blue);
  outline-offset: 2px;
}

.os-main {
  flex: 1;
  width: 100%;
  padding-top: 3.25rem;
}

.os-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .os-container {
    padding: 0 2.5rem;
  }
}

/* —— Nav (matches marketing SiteNav) —— */
.os-nav-sentinel {
  position: absolute;
  top: 0;
  height: 1px;
  width: 100%;
  pointer-events: none;
}

.os-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition:
    background-color var(--duration-panel) var(--ease-out-expo),
    border-color var(--duration-panel) var(--ease-out-expo),
    right 180ms ease;
}

/* Deals provenance drawer reserves the same right inset as main content */
body.deals-prov-open .os-header {
  right: var(--deals-prov-w, 0px);
}

.os-header.is-scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.os-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: 3.25rem;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .os-nav {
    padding: 0 2.5rem;
  }
}

.os-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.os-logo img {
  height: 1.15rem;
  width: auto;
  display: block;
}

.os-logo img.os-mark {
  height: 1.75rem;
  width: 1.75rem;
}

.os-logo img.os-wordmark-only {
  height: 1.15rem;
  width: auto;
}

@media (min-width: 640px) {
  .os-logo img {
    height: 1.25rem;
  }

  .os-logo img.os-mark {
    height: 1.85rem;
    width: 1.85rem;
  }

  .os-logo img.os-wordmark-only {
    height: 1.25rem;
  }
}

/* Product direction 2026-08-03: no top-bar link strip; hamburger only */
.os-nav-links {
  display: none !important;
}

.os-nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-transform: none;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--duration-control) var(--ease-out-expo);
}

.os-nav-links a:hover,
.os-nav-links a.is-active {
  color: var(--gold);
}

.os-nav-more {
  position: relative;
  display: flex;
  align-items: center;
}

.os-nav-more-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  text-transform: none;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--duration-control) var(--ease-out-expo);
}

.os-nav-more-toggle:hover,
.os-nav-more-toggle.is-active,
.os-nav-more-toggle[aria-expanded="true"] {
  color: var(--gold);
}

.os-nav-more-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  z-index: 60;
  min-width: 15.5rem;
  padding: 0.55rem 0 0.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg, 0.75rem);
  background: var(--bg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.os-nav-more-menu[hidden] {
  display: none !important;
}

.os-nav-more-heading {
  margin: 0 0 0.35rem;
  padding: 0 0.95rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--dim);
}

.os-nav-more-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem 0.95rem;
  text-decoration: none;
  color: var(--fg);
}

a.os-nav-more-item:hover,
a.os-nav-more-item.is-active {
  background: color-mix(in srgb, var(--gold) 10%, transparent);
}

.os-nav-more-item.is-soon {
  opacity: 0.55;
  cursor: default;
}

.os-nav-more-label {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.os-nav-more-meta {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--dim);
  overflow: hidden;
  text-overflow: ellipsis;
}

.os-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.os-nav-cta {
  display: none !important;
}

.os-theme-btn,
.os-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius, 0.5rem);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  line-height: 0;
  transition:
    border-color var(--duration-control) var(--ease-out-expo),
    color var(--duration-control) var(--ease-out-expo);
}

.os-theme-btn:hover,
.os-menu-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Hamburger always available (menu holds all destinations) */
.os-menu-btn {
  display: inline-flex;
}

/* Theme-paired assets (img SVGs cannot read CSS vars) */
:root[data-theme="dark"] .light-only,
:root:not([data-theme="light"]) .light-only {
  display: none !important;
}
:root[data-theme="light"] .dark-only {
  display: none !important;
}

.os-theme-btn svg,
.os-menu-btn svg {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

/* Mobile sheet */
.os-sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity var(--duration-panel) var(--ease-out-expo),
    visibility var(--duration-panel) var(--ease-out-expo);
}

.os-sheet.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.os-sheet-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 28rem;
  margin-left: auto;
  padding: 1.15rem 1.25rem 2rem;
  background: var(--bg);
  border-left: 1px solid var(--line);
  box-shadow: -12px 0 32px rgba(0, 0, 0, 0.08);
}

.os-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.os-sheet-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.os-sheet-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius, 0.5rem);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  line-height: 0;
}

.os-sheet-close:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.os-sheet-label {
  margin: 1rem 0 0.25rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--dim);
}

.os-sheet-label:first-child {
  margin-top: 0;
}

.os-sheet-links a {
  display: block;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  text-decoration: none;
}

.os-sheet-links a.is-active {
  color: var(--gold);
}

.os-sheet-soon {
  display: block;
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0;
  font-size: 0.88rem;
  color: var(--dim);
}

.os-sheet-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.os-sheet-cta {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  background: color-mix(in srgb, var(--gold) 16%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line));
  padding: 0.3rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-decoration: none;
}

html[data-theme="dark"] .os-sheet-cta,
:root:not([data-theme="light"]) .os-sheet-cta {
  background: var(--gold-wash, rgba(234, 212, 162, 0.14));
  border-color: color-mix(in srgb, var(--gold) 38%, transparent);
  color: var(--gold);
}

.os-sheet .os-theme-btn {
  display: inline-flex;
}

/* —— Footer —— */
.os-footer {
  border-top: 1px solid var(--line);
  background: transparent;
  margin-top: auto;
}

.os-footer-quiet {
  padding: 0;
}

.os-footer-quiet .os-footer-bottom {
  border-top: 0;
  padding: 0.75rem 0;
  margin: 0;
  justify-content: center;
  text-align: center;
}

.os-footer-quiet .os-footer-bottom p {
  font-size: 0.7rem;
  color: var(--dim);
  letter-spacing: 0.01em;
  margin: 0;
}

.os-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .os-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.os-footer .os-logo img {
  height: 1.5rem;
}

.os-footer .os-logo img.os-mark {
  height: 2rem;
  width: 2rem;
}

.os-footer .os-logo img.os-wordmark-only {
  height: 1.35rem;
  width: auto;
}

.os-footer-blurb {
  margin-top: 1rem;
  max-width: 32ch;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.os-footer-meta {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.os-footer h3 {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.os-footer ul {
  list-style: none;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.os-footer a {
  font-size: 0.92rem;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--duration-control) var(--ease-out-expo);
}

.os-footer a:hover {
  color: var(--fg);
}

.os-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 0;
  margin-top: 0;
  font-size: 0.74rem;
  color: var(--dim);
}

@media (min-width: 640px) {
  .os-footer-bottom {
    flex-direction: row;
    align-items: center;
  }
}

.os-footer-bottom .data {
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* —— Page primitives —— */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

.os-page {
  padding: 3rem 0 5rem;
}

.os-page-narrow {
  max-width: 760px;
}

.os-page h1,
.section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--fg);
  margin: 0.75rem 0 1rem;
}

.os-page .lede,
.os-page > p,
.os-page-narrow > p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 48ch;
}

.accent-line {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 1.25rem;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 0 1.25rem;
}

/* Home module index */
.os-home-hero {
  padding: 4rem 0 2rem;
}

.os-home-hero h1 {
  max-width: 16ch;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 1rem 0 0;
}

.os-home-hero h1 .gold {
  color: var(--gold);
}

.os-home-hero .lede {
  margin-top: 1.5rem;
  max-width: 42ch;
}

.os-primary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  background: var(--bg-2);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s var(--ease-out-expo), background 0.2s var(--ease-out-expo);
}

.os-primary:hover {
  border-color: var(--gold);
  background: var(--panel);
}

.os-primary-kicker {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.os-primary strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.os-primary span:not(.os-primary-kicker):not(.os-primary-go) {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.os-primary-go {
  color: var(--gold);
  font-size: 1.2rem;
}

.os-modules {
  list-style: none;
  margin: 2.5rem 0 0;
  border-top: 1px solid var(--line);
}

.os-modules li {
  border-bottom: 1px solid var(--line);
}

.os-modules a {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 0;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.os-modules a:hover {
  background: var(--nav-hover);
}

.os-modules strong {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--fg);
}

.os-modules .desc {
  font-size: 0.9rem;
  color: var(--muted);
}

.os-modules .status {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm, 0.375rem);
  padding: 0.15rem 0.4rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .os-modules a,
  .os-primary {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .os-primary-go {
    display: none;
  }
}

/* Buttons — compact, rounded, system type (match burkett-tokens) */
.bk-btn,
.os-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.5rem;
  padding: 0.2rem 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid transparent;
  border-radius: var(--radius, 0.5rem);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bk-btn-sm,
.os-btn-sm {
  min-height: 1.35rem;
  padding: 0.12rem 0.4rem;
  font-size: 0.7rem;
  border-radius: var(--radius-sm, 0.375rem);
}

.bk-btn-lg,
.os-btn-lg {
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  font-size: 0.8125rem;
}

/* Soft gold wash primary / outline ghost (no solid gold + black) */
.os-btn-primary,
.bk-btn-primary {
  background: color-mix(in srgb, var(--gold) 16%, var(--bg));
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
  color: var(--gold-deep);
}

.os-btn-ghost,
.bk-btn-ghost {
  background: var(--bg);
  border-color: color-mix(in srgb, var(--gold) 50%, var(--line));
  color: var(--gold-deep);
}

html[data-theme="dark"] .os-btn-primary,
html[data-theme="dark"] .bk-btn-primary,
:root:not([data-theme="light"]) .os-btn-primary,
:root:not([data-theme="light"]) .bk-btn-primary {
  background: var(--gold-wash, rgba(234, 212, 162, 0.14));
  border-color: color-mix(in srgb, var(--gold) 38%, transparent);
  color: var(--gold);
}

html[data-theme="dark"] .os-btn-ghost,
html[data-theme="dark"] .bk-btn-ghost,
:root:not([data-theme="light"]) .os-btn-ghost,
:root:not([data-theme="light"]) .bk-btn-ghost {
  background: transparent;
  border-color: color-mix(in srgb, var(--gold) 45%, transparent);
  color: var(--gold);
}

.os-btn-primary:hover,
.bk-btn-primary:hover {
  background: color-mix(in srgb, var(--gold) 26%, var(--bg));
  border-color: var(--gold);
  color: var(--gold-deep);
}

.os-btn-ghost:hover,
.bk-btn-ghost:hover {
  background: color-mix(in srgb, var(--gold) 10%, var(--bg));
  border-color: var(--gold);
  color: var(--gold-deep);
}

html[data-theme="dark"] .os-btn-primary:hover,
html[data-theme="dark"] .bk-btn-primary:hover,
:root:not([data-theme="light"]) .os-btn-primary:hover,
:root:not([data-theme="light"]) .bk-btn-primary:hover {
  background: color-mix(in srgb, var(--gold) 22%, var(--bg));
  color: var(--gold);
  border-color: var(--gold);
}

html[data-theme="dark"] .os-btn-ghost:hover,
html[data-theme="dark"] .bk-btn-ghost:hover,
:root:not([data-theme="light"]) .os-btn-ghost:hover,
:root:not([data-theme="light"]) .bk-btn-ghost:hover {
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  color: var(--gold);
  border-color: var(--gold);
}

/* Guide cards / legacy helpers */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  margin-top: 1.5rem;
}

.guide-card {
  background: var(--bg);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: var(--radius-lg, 0.75rem);
  overflow: hidden;
}

.guide-card:hover {
  background: var(--bg-2);
}

.guide-card .tag {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--dim);
  margin-bottom: 0.5rem;
}

.guide-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.35rem;
}

.guide-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.callout {
  background: var(--panel);
  border-left: 2px solid var(--gold);
  border-radius: var(--radius, 0.5rem);
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
}

/* Beauty pass 20260803r: system font feel, soft corners, text fit */
.os-body,
.os-body button,
.os-body input,
.os-body select,
.os-body textarea {
  font-family: var(--font-sans);
}

.os-nav-more-item {
  border-radius: var(--radius-sm, 0.375rem);
  margin: 0 0.25rem;
  max-width: calc(100% - 0.5rem);
}

.os-nav-more-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.os-modules a,
.os-primary {
  border-radius: var(--radius-lg, 0.75rem);
  overflow: hidden;
}

.os-modules h3,
.os-primary h2,
.os-primary h3 {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-body h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

.article-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.article-body p,
.article-body li {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1rem 1.2rem;
}

.article-body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--code-bg);
  padding: 0.1rem 0.3rem;
}

.article-body pre {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.8rem;
  margin: 1rem 0;
}

.tile-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  padding: 0.35rem 0.65rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.tile-badge:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Identity page */
.id-section {
  border-bottom: 1px solid var(--line);
  padding: 5rem 0;
}

.id-section.alt {
  background: var(--bg-2);
}

.id-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 5.5rem 0 4rem;
}

.id-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 20% 0%,
    rgba(234, 212, 162, 0.1),
    transparent 55%
  );
  pointer-events: none;
}

.id-lockup-frame {
  margin-top: 2.5rem;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 80%, transparent);
  padding: 2rem 1.5rem;
}

.id-lockup-frame img {
  height: 2.75rem;
  width: auto;
  max-width: 100%;
}

.id-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .id-grid.cols-2 {
    grid-template-columns: 1fr 1fr;
  }
  .id-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.id-cell {
  background: var(--bg);
  padding: 1.5rem;
}

.id-swatch {
  display: flex;
  align-items: flex-end;
  min-height: 7rem;
  border: 1px solid var(--line);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.id-preview {
  margin-top: 1.25rem;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  padding: 2rem;
}

.id-preview img {
  max-width: 100%;
  height: auto;
}

.id-preview.tall img {
  max-height: 5rem;
}

.id-preview:not(.tall) img {
  max-height: 3.5rem;
}

.copy-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  margin-top: 0.75rem;
}

.copy-chip:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.sig-card {
  border: 1px solid var(--line);
  background: var(--panel);
}

.sig-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem;
}

.sig-card-body {
  background: #f7f5f0;
  padding: 1.5rem 2rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .os-header,
  .os-sheet,
  .os-nav-links a,
  .os-primary {
    transition: none;
  }
}


/* Today spine (Home) */
.os-today {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: grid;
  gap: 1.25rem;
}
.os-today-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: baseline;
}
.os-today-meta .stage {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.os-today-meta .hint {
  font-size: 0.82rem;
  color: var(--muted);
}
.os-today-next {
  display: grid;
  gap: 0.35rem;
  max-width: 40rem;
}
.os-today-next .k {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.os-today-next strong {
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1.15;
}
.os-today-next p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 36ch;
}
.os-today-pulse {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.os-today-pulse a {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 1rem;
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  transition: background var(--duration-control) var(--ease-out-expo);
}
.os-today-pulse a:hover {
  background: var(--elevated);
}
.os-today-pulse .k {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.os-today-pulse .v {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
}
.os-today-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
