/* Built by scripts/build.mjs from design/tokens.css, design/brands.css and scripts/site.css. Do not edit. */
/* Duewright shared design system: plain CSS, no build step. Light only. */

:root {
  --background: #ffffff;
  --foreground: #18181b;
  --card: #ffffff;
  --card-foreground: #18181b;
  --muted: #f4f4f5;
  --muted-foreground: #52525b;
  --border: #e4e4e7;
  --input: #d4d4d8;
  --ring: #18181b;
  --focus-ring: #71717a;
  --primary: #2f4a5e;
  --primary-foreground: #ffffff;
  --accent-soft: #eef2f5;
  --success: #166534;
  --success-foreground: #ffffff;
  --info: #1d4ed8;
  --info-foreground: #ffffff;
  --warning: #9a5b0c;
  --warning-foreground: #ffffff;
  --destructive: #b42318;
  --destructive-foreground: #ffffff;
  --radius: 0.625rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --hairline: 1px;
  --text-xs: 0.6875rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-lg: 1.0625rem;
  --text-xl: 1.1875rem;
  --text-2xl: 1.4375rem;
  --text-3xl: 1.8125rem;
  --text-4xl: 2.1875rem;
  --text-5xl: 2.9375rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font: 400 var(--text-base)/1.6 var(--font);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

body h1, body h2, body h3 {
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

body h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); }
body h2 { font-size: clamp(var(--text-xl), 2.6vw, var(--text-2xl)); }
body h3 { font-size: var(--text-base); }
body p { margin: 0 0 1em; }
body a { color: var(--primary); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
body a:hover { text-decoration-thickness: 2px; }
body code { font-family: var(--mono); font-size: var(--text-sm); background: var(--muted); padding: 0.1em 0.35em; border-radius: var(--radius-sm); }

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--focus-ring);
  border-radius: var(--radius-sm);
}

/* Layout */
.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.site-header { border-bottom: var(--hairline) solid var(--border); }
.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 0.9rem;
}

.site-footer {
  border-top: var(--hairline) solid var(--border);
  padding-block: 2rem 3rem;
  font-size: var(--text-sm);
  color: var(--muted-foreground);
}

.site-footer a { color: var(--muted-foreground); }

.prose { max-width: 44rem; padding-block: 2rem 3rem; }

/* Buttons: 36px tall, 44px on coarse pointers */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0 0.875rem;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--primary-foreground);
  font: 500 var(--text-sm)/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.1s ease;
  touch-action: manipulation;
}

.btn:hover { filter: brightness(0.92); }
.btn:active { transform: translateY(1px); }

.btn-outline {
  background: var(--background);
  color: var(--foreground);
  box-shadow: inset 0 0 0 var(--hairline) var(--border);
}

.btn-outline:hover { background: var(--muted); filter: none; }

.btn-ghost {
  background: transparent;
  color: var(--foreground);
}

.btn-ghost:hover { background: var(--muted); filter: none; }

@media (pointer: coarse) {
  .btn { min-height: 2.75rem; }
}

/* Input: h-9, 44px on coarse pointers */
.input {
  width: 100%;
  min-height: 2.25rem;
  padding: 0 0.75rem;
  font: 400 var(--text-sm)/1.4 var(--font);
  color: var(--foreground);
  background: var(--background);
  border: var(--hairline) solid var(--input);
  border-radius: var(--radius-md);
}

.input::placeholder { color: var(--muted-foreground); }

.input:focus-visible {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

@media (pointer: coarse) {
  .btn, .input { min-height: 2.75rem; }
  .input { font-size: max(16px, 1rem); }
}

/* Card: hairline ring, radius-xl, no shadow */
.card {
  background: var(--card);
  color: var(--card-foreground);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1rem;
}

/* Badge: 20px tall, text-xs, outline with a status dot */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 1.25rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--foreground);
  background: var(--background);
  box-shadow: inset 0 0 0 var(--hairline) var(--border);
}

.badge::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--badge-accent, var(--muted-foreground));
}

.badge-info { --badge-accent: var(--info); }
.badge-success { --badge-accent: var(--success); }
.badge-warning { --badge-accent: var(--warning); }

/* FAQ: details/summary with hairline dividers */
.faq { border-top: var(--hairline) solid var(--border); }

.faq details { border-bottom: var(--hairline) solid var(--border); }

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid var(--muted-foreground);
  border-bottom: 1.5px solid var(--muted-foreground);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex: none;
}

.faq details[open] summary::after { transform: rotate(-135deg); }

.faq details p { color: var(--muted-foreground); font-size: var(--text-sm); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Brand accents. A product sets only --primary, --primary-foreground,
   and optionally --accent-soft. All other tokens come from tokens.css. */

.brand-duewright {
  --primary: #2f4a5e;
  --primary-foreground: #ffffff;
  --accent-soft: #eef2f5;
}

.brand-mergecanvas {
  --primary: #4338ca;
  --primary-foreground: #ffffff;
  --accent-soft: #eef2ff;
}

.brand-tariff-digest {
  --primary: #0f5e63;
  --primary-foreground: #ffffff;
  --accent-soft: #e6f1f1;
}

.brand-sweep-recall {
  --primary: #9a5b0c;
  --primary-foreground: #ffffff;
  --accent-soft: #fdf3e1;
}

.brand-alarm-cert-de {
  --primary: #b42318;
  --primary-foreground: #ffffff;
  --accent-soft: #fbe9e7;
}

/* duewright.com only. Layered on design/tokens.css and design/brands.css. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ink-panel: #18181b;
  --ink-panel-text: #e4e4e7;
  --ink-panel-dim: #a1a1aa;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--background);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
}
.skip:focus { left: 0.75rem; z-index: 10; }

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

/* ---------- header and footer ---------- */

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1rem;
}
.wordmark {
  font-weight: 750;
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
  color: var(--foreground);
  text-decoration: none;
}
.site-header ul,
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-header a:not(.wordmark) { color: var(--foreground); font-size: var(--text-sm); text-decoration: none; }
.site-header a:not(.wordmark):hover { text-decoration: underline; }
.site-footer .wrap { display: grid; gap: 0.75rem; padding-block: 2rem; font-size: var(--text-sm); }
.site-footer p { margin: 0; color: var(--muted-foreground); }

/* ---------- hero: the two doors ---------- */

.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2rem, 5vw, 4rem); border-bottom: var(--hairline) solid var(--border); }
.hero h1 {
  max-width: 15ch;
  font-size: clamp(2.25rem, 6.2vw, 4.25rem);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}
.lede { max-width: 38rem; font-size: var(--text-lg); color: var(--muted-foreground); }

.doors {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (min-width: 52rem) {
  .doors { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
}
.door {
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  min-width: 0;
}
.door h2 { font-size: var(--text-xl); margin-bottom: 0.75rem; }
.door-people { background: var(--accent-soft); }
.door-people p { max-width: 30rem; }
.door-people p:last-child { margin-bottom: 0; }
.door-agents { background: var(--ink-panel); color: var(--ink-panel-text); }
.door-agents h2 { color: #ffffff; }
.exchange {
  margin: 0;
  overflow-x: auto;
  font: 400 var(--text-sm)/1.6 var(--mono);
  white-space: pre;
}
.exchange code { background: none; padding: 0; color: inherit; font-size: inherit; }
.exchange .req { color: #ffffff; }
.reply-label { margin: 1rem 0 0.5rem; color: var(--ink-panel-dim); font-size: var(--text-sm); }
.tool-names {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tool-names li {
  font: 500 var(--text-sm)/1 var(--mono);
  padding: 0.45rem 0.6rem;
  border: var(--hairline) solid #3f3f46;
  border-radius: var(--radius-md);
  color: #ffffff;
}

/* ---------- sections ---------- */

.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-bottom: var(--hairline) solid var(--border); }
.narrow > * { max-width: 48rem; }
.section-lede { max-width: 44rem; color: var(--muted-foreground); }

/* ---------- products ledger ---------- */

.ledger { border-top: var(--hairline) solid var(--foreground); margin-top: 1.5rem; }
.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem 2rem;
  padding: 1.5rem 0 1.5rem 1.25rem;
  border-bottom: var(--hairline) solid var(--border);
  position: relative;
}
.product::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.5rem;
  bottom: 1.5rem;
  width: 4px;
  border-radius: 2px;
  background: var(--primary);
}
@media (min-width: 60rem) {
  .product { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.6fr) minmax(0, 1.15fr); }
}
.product h3 { font-size: var(--text-xl); margin-bottom: 0.4rem; }
.product h3 a { color: var(--foreground); text-decoration: none; }
.product h3 a:hover { text-decoration: underline; }
.product .job { margin-bottom: 0.4rem; }
.product .who,
.product .price { color: var(--muted-foreground); font-size: var(--text-sm); margin-bottom: 0.3rem; }
.path h4 { font-size: var(--text-sm); font-weight: 650; margin: 0 0 0.5rem; color: var(--primary); }
.links,
.endpoints { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.links a { font-weight: 550; }
.endpoints a { text-decoration: none; }
.endpoints code { background: var(--muted); color: var(--foreground); }
.host { margin: 0 0 0.4rem; font-size: var(--text-sm); color: var(--muted-foreground); }
.host code { color: var(--foreground); }
code.tool { display: inline-block; white-space: nowrap; margin: 0 0.25rem 0.25rem 0; }
.endpoints a:hover code { background: var(--accent-soft); }
.tools { margin: 0.6rem 0 0; font-size: var(--text-sm); color: var(--muted-foreground); }
.tools code { color: var(--foreground); }

/* ---------- directories table ---------- */

.directories { width: 100%; border-collapse: collapse; font-size: var(--text-sm); margin-top: 1rem; }
.directories caption { text-align: left; color: var(--muted-foreground); padding-bottom: 0.5rem; }
.directories th,
.directories td { text-align: left; vertical-align: top; padding: 0.75rem 0.75rem 0.75rem 0; border-bottom: var(--hairline) solid var(--border); }
.directories thead th { font-weight: 600; border-bottom-color: var(--foreground); }
.directories td code { overflow-wrap: normal; word-break: normal; }
.status { display: inline-block; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: var(--text-xs); }
.status-live { background: #dcfce7; color: #14532d; }
.status-coming { background: var(--muted); color: var(--foreground); }
@media (max-width: 40rem) {
  .directories thead { position: absolute; left: -999px; }
  .directories tr { display: grid; padding-block: 0.5rem; border-bottom: var(--hairline) solid var(--border); }
  .directories th,
  .directories td { border: 0; padding: 0.15rem 0; }
}

/* ---------- principles ---------- */

.principles { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.principles li { padding-left: 1rem; border-left: 2px solid var(--primary); }
.principles strong { font-weight: 650; }

/* ---------- agents page ---------- */

.prose { padding-inline: 1rem; margin-inline: auto; }
.prose h1 { font-weight: 760; letter-spacing: -0.03em; }
.prose h2 { margin-top: 2.25rem; }
.steps { padding-left: 1.25rem; display: grid; gap: 1.25rem; }
.steps > li,
.prose > * { min-width: 0; }
.prose { max-width: 46rem; width: 100%; }
.steps h3 { margin-bottom: 0.35rem; }
.prose pre {
  background: var(--ink-panel);
  color: var(--ink-panel-text);
  border-radius: var(--radius-lg);
  padding: 1rem;
  overflow-x: auto;
  font: 400 var(--text-sm)/1.6 var(--mono);
}
.prose pre code { background: none; padding: 0; color: inherit; }
.prose pre { white-space: pre-wrap; overflow-wrap: normal; word-break: normal; }
@media (max-width: 30rem) {
  .prose pre { font-size: var(--text-xs); padding: 0.85rem; }
  .steps { padding-left: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

@media (max-width: 30rem) {
  .site-header ul { gap: 0.25rem 0.9rem; }
}
