/* robrundata.com — "case file" look: paper, ink, caution tape, red stamps. */
@font-face { font-family: "Archivo"; src: url(/assets/fonts/archivo.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Inter"; src: url(/assets/fonts/inter.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/assets/fonts/plex-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #f4f0e6; --paper-2: #ebe5d5; --card: #fbf9f3; --ink: #17150f; --ink-2: #4d483d; --ink-3: #7a7466;
  --line: #d8d0bc; --tape: #f5c518; --stamp: #c3361f; --ok: #2c7a4b; --warn: #b5761a; --link: #1f4fa8;
  --head: "Archivo", "Arial Narrow", system-ui, sans-serif; --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 6px; --w: 1180px; --prose: 720px;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #15140f; --paper-2: #1e1c16; --card: #1b1a14; --ink: #efe9da; --ink-2: #c3bba8; --ink-3: #8f8877; --line: #34312a; --link: #8fb3ff; --stamp: #ff6a4d; --ok: #5cc287; --warn: #e6a94a; }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16.5px/1.62 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--tape); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--tape); color: #000; padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); font-size: .78em; letter-spacing: .04em; text-transform: uppercase; }

/* ---- header ------------------------------------------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 50; background: #12110d; color: #f4f0e6; }
.top::after { content: ""; display: block; height: 6px; background: repeating-linear-gradient(-45deg, var(--tape) 0 14px, #12110d 14px 28px); }
.top-in { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: 800 19px/1 var(--head); font-stretch: 85%; letter-spacing: .01em; text-transform: uppercase; white-space: nowrap; }
.brand svg { flex: none; }
.brand b { color: var(--tape); font-weight: 800; }
.nav { display: flex; gap: 2px; margin-left: 8px; }
.nav > a, .nav summary { color: #e8e2d2; text-decoration: none; padding: 8px 11px; border-radius: var(--r); font-size: 14.5px; font-weight: 550; cursor: pointer; list-style: none; }
.nav summary::-webkit-details-marker { display: none; }
.nav > a:hover, .nav summary:hover, .nav details[open] summary { background: #2a2720; }
.nav > a[aria-current], .nav details.cur summary { color: var(--tape); }
.nav details { position: relative; }
.nav .menu { position: absolute; top: 44px; left: 0; min-width: 250px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 14px 40px rgba(0,0,0,.22); padding: 8px; display: grid; }
.nav .menu a { color: var(--ink); text-decoration: none; padding: 7px 10px; border-radius: 4px; font-size: 14.5px; }
.nav .menu a:hover { background: var(--paper-2); }
.nav .menu a[aria-current] { font-weight: 700; }
.top-search { margin-left: auto; display: flex; align-items: center; gap: 8px; background: #24221c; border: 1px solid #3a372e; border-radius: 99px; padding: 0 14px; height: 38px; color: #a9a291; text-decoration: none; font-size: 14px; }
.top-search:hover { border-color: var(--tape); color: #f4f0e6; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid #3a372e; color: #f4f0e6; border-radius: var(--r); height: 38px; padding: 0 12px; font: inherit; font-size: 14px; }
@media (max-width: 980px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 66px; background: #12110d; flex-direction: column; padding: 8px 20px 18px; max-height: calc(100vh - 66px); overflow: auto; }
  .nav.open { display: flex; }
  .nav .menu { position: static; box-shadow: none; background: #1d1b16; border-color: #2e2b24; }
  .nav .menu a { color: #e8e2d2; }
  .nav .menu a:hover { background: #2a2720; }
  .menu-btn { display: block; }
  .top-search { margin-left: 0; }
  .top-search span { display: none; }
}

/* ---- page header ---------------------------------------------------------------------------------------------- */
.phead { border-bottom: 1px solid var(--line); background: var(--paper-2); position: relative; overflow: hidden; }
.phead-in { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; padding-top: 34px; padding-bottom: 34px; align-items: center; }
.phead.no-img .phead-in { grid-template-columns: minmax(0, 1fr); }
.crumbs { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--head); line-height: 1.08; letter-spacing: -.005em; }
h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 850; font-stretch: 78%; text-transform: uppercase; margin: 14px 0 12px; }
.lede { font-size: 19px; line-height: 1.5; color: var(--ink-2); max-width: 640px; margin: 0; }
.phead figure { margin: 0; transform: rotate(1.6deg); background: #fff; padding: 8px 8px 30px; box-shadow: 0 10px 30px rgba(40,30,10,.18); position: relative; }
.phead figure::before { content: ""; position: absolute; top: -12px; left: 50%; width: 110px; height: 26px; margin-left: -55px; background: rgba(245,197,24,.82); transform: rotate(-3deg); }
.phead figcaption { position: absolute; bottom: 7px; left: 10px; right: 10px; font: 500 10.5px/1.2 var(--mono); color: #6d6759; text-transform: uppercase; letter-spacing: .04em; }
.stamp { display: inline-block; border: 2.5px solid var(--stamp); color: var(--stamp); font: 800 13px/1 var(--head); font-stretch: 80%; letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px 5px; transform: rotate(-2deg); border-radius: 3px; }
.checked { margin-top: 16px; font: 500 12px/1.4 var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 860px) { .phead-in { grid-template-columns: 1fr; } .phead figure { max-width: 420px; } }

/* ---- body layout ---------------------------------------------------------------------------------------------- */
.body { display: grid; grid-template-columns: minmax(0, var(--prose)) 250px; gap: 56px; justify-content: space-between; padding-top: 36px; padding-bottom: 60px; }
.body.wide { grid-template-columns: minmax(0, 1fr); }
.toc { position: sticky; top: 90px; align-self: start; font-size: 14px; border-left: 3px solid var(--ink); padding-left: 16px; }
.toc p { margin: 0 0 8px; }
.toc a { display: block; color: var(--ink-2); text-decoration: none; padding: 4px 0; line-height: 1.3; }
.toc a:hover, .toc a.on { color: var(--ink); font-weight: 650; }
@media (max-width: 1020px) { .body { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }

.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 30px; font-weight: 800; font-stretch: 82%; text-transform: uppercase; margin: 2em 0 .5em; padding-top: 14px; border-top: 2px solid var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; font-weight: 750; margin: 1.6em 0 .3em; }
.prose p, .prose li { max-width: var(--prose); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose strong { font-weight: 680; }
.prose code, kbd { font-family: var(--mono); font-size: .86em; background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
kbd { border-bottom-width: 2px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--card); border: 1px solid var(--line); }
.prose th { text-align: left; font: 500 11.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); background: var(--paper-2); }
.prose th, .prose td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.tbl { overflow-x: auto; }
.prose ol.steps { list-style: none; padding: 0; counter-reset: s; }
.prose ol.steps > li { counter-increment: s; position: relative; padding: 2px 0 2px 58px; min-height: 44px; }
.prose ol.steps > li + li { margin-top: 14px; }
.prose ol.steps > li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 44px; height: 44px; display: grid; place-items: center; background: var(--ink); color: var(--tape); font: 800 18px/1 var(--head); border-radius: 4px; }

.callout { border: 2px solid var(--ink); background: var(--card); padding: 14px 18px; border-radius: var(--r); position: relative; }
.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }
.callout .callout-t { font: 800 14px/1 var(--head); font-stretch: 85%; letter-spacing: .08em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.callout.tip { border-color: var(--ok); }
.callout.tip .callout-t { color: var(--ok); }
.callout.warn { border-color: var(--stamp); }
.callout.warn .callout-t { color: var(--stamp); }
.callout.note { border-left: 10px solid var(--tape); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--line); margin: 0; border: 2px solid var(--ink); background: var(--card); border-radius: var(--r); overflow: hidden; }
.facts div { padding: 12px 14px; background: var(--card); }
.facts dt { font: 500 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.facts dd { margin: 4px 0 0; font: 750 19px/1.2 var(--head); font-stretch: 90%; }

figure.shot { margin: 1.4em 0; }
figure.shot img { border-radius: 4px; border: 1px solid var(--line); }
figure.shot figcaption { font-size: 13.5px; color: var(--ink-3); margin-top: 6px; }

.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r); overflow: hidden; }
.video button { all: unset; cursor: pointer; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #2b2820, #0e0d0a); }
.video button span { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 20px; }
.video button i { width: 68px; height: 48px; border-radius: 12px; background: var(--stamp); display: grid; place-items: center; font-style: normal; font-size: 22px; }
.video button b { font: 700 18px/1.3 var(--head); }
.video button small { font: 500 11px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: #c9c2b0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.prose h2#sources + ul, .prose h2#sources + ol { font-size: 14px; color: var(--ink-2); }
.prose h2#faq ~ h3 { font-size: 18px; }

/* ---- cards / home --------------------------------------------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; color: var(--ink); text-decoration: none; transition: transform .12s, border-color .12s, box-shadow .12s; }
.card:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: 4px 4px 0 var(--tape); }
.card b { display: block; font: 750 18px/1.2 var(--head); font-stretch: 90%; }
.card span { display: block; font-size: 14.5px; color: var(--ink-2); margin-top: 4px; }
.card .mono { color: var(--ink-3); display: block; margin-bottom: 6px; }
.section-h { display: flex; align-items: baseline; gap: 14px; margin: 44px 0 14px; }
.section-h h2 { margin: 0; font-size: 28px; font-weight: 820; font-stretch: 80%; text-transform: uppercase; }
.section-h .mono { color: var(--ink-3); }
.hero { background: #12110d; color: #f4f0e6; position: relative; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero .wrap { position: relative; padding-top: 70px; padding-bottom: 60px; }
.hero h1 { font-size: clamp(42px, 7vw, 86px); margin: 10px 0 14px; max-width: 900px; }
.hero h1 em { font-style: normal; color: var(--tape); }
.hero p { font-size: 20px; max-width: 620px; color: #ddd6c4; margin: 0; }
.hero .live { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 10px; background: rgba(18,17,13,.8); border: 1px solid #3a372e; border-radius: 99px; padding: 9px 16px; color: #f4f0e6; text-decoration: none; font-size: 15px; }
.pill:hover { border-color: var(--tape); }
.pill b { font: 800 20px/1 var(--head); font-stretch: 85%; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); flex: none; }
.dot.up { background: #3fd07a; box-shadow: 0 0 0 4px rgba(63,208,122,.2); }
.dot.bad { background: #ff5a3c; box-shadow: 0 0 0 4px rgba(255,90,60,.2); }
.dot.warn { background: var(--tape); }

/* ---- tools ---------------------------------------------------------------------------------------------------- */
.tool { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); padding: 18px 20px; margin: 1.4em 0; }
.tool-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.tool-h .mono { color: var(--ink-3); }
.big { font: 850 clamp(48px, 9vw, 92px)/1 var(--head); font-stretch: 80%; letter-spacing: -.01em; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chip { font: inherit; font-size: 14px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); border-radius: 99px; padding: 6px 14px; cursor: pointer; }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); color: var(--paper); }
.chip:hover { box-shadow: 2px 2px 0 var(--tape); }
.btn { font: 650 15px/1 var(--body); border: 2px solid var(--ink); background: var(--tape); color: #12110d; border-radius: var(--r); padding: 11px 16px; cursor: pointer; text-decoration: none; display: inline-block; }
.btn:hover { box-shadow: 3px 3px 0 var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
input[type="text"], input[type="search"], select { font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); padding: 9px 12px; min-width: 0; }
.regions { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.region { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: var(--paper); }
.region .state { font: 850 40px/1 var(--head); font-stretch: 80%; text-transform: uppercase; margin: 6px 0; }
.region[data-state="up"] .state { color: var(--ok); }
.region[data-state="unknown"] .state { color: var(--ink-3); }
.region[data-state="inferred_problem"] .state, .region[data-state="confirmed_maintenance"] .state { color: var(--warn); }
.region[data-state="confirmed_outage"] .state { color: var(--stamp); }
.deps { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 14.5px; }
.deps span { display: inline-flex; align-items: center; gap: 7px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .ax { font: 500 11px var(--mono); fill: var(--ink-3); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 10px 0 14px; }
.stats div { border-left: 3px solid var(--tape); padding-left: 10px; }
.stats b { display: block; font: 800 24px/1.1 var(--head); font-stretch: 85%; }
.stats small { color: var(--ink-3); font-size: 13px; }
.srv-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.srv-table th { font: 500 11px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); text-align: left; padding: 8px 10px; border-bottom: 2px solid var(--ink); cursor: pointer; white-space: nowrap; }
.srv-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.srv-table tr.mine td { background: rgba(245,197,24,.18); }
.srv-table td.id { font-family: var(--mono); font-size: 13.5px; white-space: nowrap; }
.count { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.result { margin-top: 14px; padding: 14px 16px; border-left: 6px solid var(--tape); background: var(--paper); }
.result .big { font-size: clamp(40px, 7vw, 64px); }
.hidden { display: none !important; }
#map-wrap { position: relative; border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; background: #2a2219; }
#map-wrap img { width: 100%; }

/* ---- search --------------------------------------------------------------------------------------------------- */
.search-box { display: flex; gap: 10px; }
.search-box input { flex: 1; font-size: 18px; padding: 12px 14px; }
.hits { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.hits a { display: block; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.hits a:hover { border-color: var(--ink); }
.hits b { display: block; font: 750 17px/1.25 var(--head); }
.hits span { font-size: 14px; color: var(--ink-2); }

/* ---- next / footer -------------------------------------------------------------------------------------------- */
.next { border-top: 1px solid var(--line); padding: 30px 0 46px; }
.foot { background: #12110d; color: #b9b2a0; font-size: 14px; }
.foot::before { content: ""; display: block; height: 6px; background: repeating-linear-gradient(-45deg, var(--tape) 0 14px, #12110d 14px 28px); }
.foot-in { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; padding-top: 40px; padding-bottom: 40px; }
.foot h4 { color: #f4f0e6; font: 750 14px/1 var(--head); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 12px; }
.foot a { color: #ddd6c4; text-decoration: none; display: block; padding: 3px 0; }
.foot a:hover { color: var(--tape); }
.foot p { margin: 0 0 10px; max-width: 420px; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-in > :first-child { grid-column: 1 / -1; } }
.foot a.inline { display: inline; color: var(--tape); }
.grow { flex: 1; min-width: 180px; }
.w180 { width: 180px; }
.mt { margin-top: 12px; }
.scroll { max-height: 620px; overflow: auto; }
.nav .menu.cols { grid-template-columns: repeat(3, minmax(190px, 1fr)); gap: 4px 10px; min-width: 640px; }
.nav .menu.cols > div { display: grid; align-content: start; }
.nav .menu .sub { font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); padding: 8px 10px 6px; }
@media (max-width: 980px) { .nav .menu.cols { grid-template-columns: 1fr; min-width: 0; } }
