/* atmon.ai/docs
   Generated by `just docs` from internal/docs/render_html.go. Edit the source, not this file.
   The register is docs/design/site-design-book.md section 10; the palette and
   its measured contrast are docs/decisions/0004-console-paper-terracotta-palette.md. */

:root {
  --paper-50: #f1ece1;
  --paper-100: #e9e2d4;
  --paper-200: #ded5c3;
  --rust-500: #bf5f3b;
  --rust-600: #a34a2a;
  --rust-700: #7f3819;
  --ink: #2b2118;
  /* The hairline register from ADR 0004: the accent at 22% alpha. */
  --rule: rgba(191, 95, 59, 0.22);
  --serif: "Instrument Serif", "Iowan Old Style", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--paper-50);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)' opacity='0.055'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

/* Chrome ------------------------------------------------------------------ */

.skip {
  position: absolute;
  left: -9999px;
  background: var(--rust-600);
  color: var(--paper-50);
  padding: 10px 16px;
  z-index: 2;
}
.skip:focus { left: 12px; top: 12px; }

.masthead {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: baseline;
  justify-content: space-between;
  padding: 22px 40px 18px;
  border-bottom: 1px solid var(--rule);
}

.mark { text-decoration: none; }
.mark-name {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--rust-500);
  letter-spacing: 0.01em;
}
.mark-kind {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--rust-700);
}

.corner {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--rust-700);
  display: flex;
  gap: 16px;
  align-items: baseline;
}
.corner-path { opacity: 0.75; }

/* The way in and the way back. Same two actions the marketing masthead offers,
   in this tree's own type, so a reader who arrives on a docs page from a search
   engine can sign in and can reach the site. */
.masthead-end {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: baseline;
}
.account {
  display: flex;
  gap: 16px;
  align-items: baseline;
}
.account-link {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--rust-600);
  text-decoration: none;
}
.account-link:hover { color: var(--rust-700); text-decoration: underline; }
.account-door {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--paper-50);
  background: var(--rust-600);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 6px 12px;
  text-decoration: none;
}
.account-door:hover { background: var(--rust-700); }
.account-door:active { box-shadow: none; transform: translate(3px, 3px); }

.shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 56px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px;
}

/* The numbered sidebar ---------------------------------------------------- */

.sidebar {
  align-self: start;
  position: sticky;
  top: 32px;
  background: var(--paper-100);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 24px 22px;
}
.sidebar .sect {
  margin: 26px 0 8px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--rust-700);
}
.sidebar .sect:first-child { margin-top: 0; }
.sidebar .num { color: var(--rust-500); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { margin: 0; }
.sidebar a {
  display: block;
  padding: 4px 0 4px 18px;
  font-size: 15px;
  color: var(--rust-600);
  text-decoration: none;
  border-bottom: none;
}
.sidebar a:hover { color: var(--rust-700); text-decoration: underline; }
.sidebar a[aria-current="page"] {
  color: var(--rust-700);
  font-weight: 600;
  position: relative;
}
/* The circle-with-dot marks the page you are on, per the design book. */
.sidebar a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--rust-500);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--paper-100), inset 0 0 0 5px var(--rust-500);
}

/* The page ---------------------------------------------------------------- */

main { min-width: 0; }

.crumbs { margin-bottom: 28px; }
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--rust-700);
}
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.55; }
.crumbs a { color: var(--rust-600); text-decoration: none; }
.crumbs a:hover { color: var(--rust-700); text-decoration: underline; }

article { max-width: 74ch; }

article h1, article h2, article h3, article h4, article h5, article h6 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.005em;
}
article h1 { font-size: 52px; margin: 8px 0 28px; color: var(--rust-500); }
article h2 {
  font-size: 31px;
  margin: 56px 0 16px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: var(--rust-500);
}
article h3 { font-size: 23px; margin: 36px 0 12px; color: var(--ink); }
article h4 { font-size: 19px; margin: 28px 0 10px; color: var(--ink); }
article h5, article h6 { font-size: 17px; margin: 24px 0 8px; color: var(--ink); }

article h1 .anchor, article h2 .anchor, article h3 .anchor,
article h4 .anchor, article h5 .anchor, article h6 .anchor {
  color: inherit;
  text-decoration: none;
}
article h2 .anchor:hover, article h3 .anchor:hover,
article h4 .anchor:hover { text-decoration: underline; }

article p { margin: 0 0 18px; }
article ul, article ol { margin: 0 0 18px; padding-left: 24px; }
article li { margin: 0 0 8px; }
article li::marker { color: var(--rust-600); }

article a { color: var(--rust-600); text-decoration: underline; text-underline-offset: 2px; }
article a:hover { color: var(--rust-700); }

article strong { font-weight: 600; color: var(--ink); }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--ink);
  background: var(--paper-100);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0.5px 4px;
}

/* The deep fill is the code well, which is the job ADR 0004 gives it. */
pre {
  background: var(--paper-200);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 16px 18px;
  overflow-x: auto;
  margin: 0 0 22px;
}
pre code { background: none; border: none; padding: 0; font-size: 13.5px; line-height: 1.6; }

.table-wrap { overflow-x: auto; margin: 0 0 24px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td {
  text-align: left;
  vertical-align: top;
  padding: 9px 14px 9px 0;
  border-bottom: 1px solid var(--rule);
}
thead th {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rust-700);
  border-bottom: 1px solid var(--rust-500);
}
tbody tr:hover { background: var(--paper-100); }
td code { background: none; border: none; padding: 0; }

.page-foot {
  margin-top: 72px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--rust-700);
}
.page-foot a { color: var(--rust-600); }

/* Focus and reduced motion ------------------------------------------------ */

a:focus-visible {
  outline: 2px solid var(--rust-700);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Nothing on this surface animates or transitions, so a reduced-motion
   preference has nothing to switch off. */

/* Narrow screens ---------------------------------------------------------- */

@media (max-width: 940px) {
  .shell { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 24px 20px; }
  .masthead { padding: 18px 20px 14px; }
  /* The navigation stays first in the document, where a screen reader and the
     tab order both expect it, and scrolls inside itself so the page it
     introduces is still on the first screen. */
  .sidebar { position: static; max-height: 45vh; overflow-y: auto; }
  .sidebar ul { columns: 2; column-gap: 24px; }
  article h1 { font-size: 40px; }
  article h2 { font-size: 26px; }
}
