:root {
  color-scheme: dark;
  --page: #141518;
  --panel: #1c1d22;
  --line: #3f4146;
  --ink: #f5f2ec;
  --muted: #b9b7b5;
  --flare: #ff795d;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --display: "Barlow Condensed", "Avenir Next Condensed", "Arial Narrow", var(--sans);
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: 1rem/1.55 var(--sans); }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #ffbb7f; outline-offset: 4px; }
.skip-link {
  position: absolute;
  top: .5rem;
  left: .5rem;
  z-index: 2;
  padding: .5rem 1rem;
  background: var(--ink);
  color: var(--page);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
.frame { width: min(100% - 3rem, 76rem); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner, .account, .brand { display: flex; align-items: center; }
.masthead-inner { min-height: 5rem; justify-content: space-between; gap: 1rem; }
.brand {
  gap: .75rem;
  font: 800 1.5rem/1 var(--display);
  letter-spacing: -.025em;
  white-space: nowrap;
}
.brand-mark {
  display: inline-block;
  width: 1.75rem;
  height: 1.25rem;
  border-bottom: .19rem solid var(--flare);
  background: radial-gradient(ellipse at center bottom, var(--flare) 58%, transparent 60%) center top / 100% 78% no-repeat;
}
.masthead-label, .account-email { color: var(--muted); font: .875rem/1.5 var(--mono); }
.account { gap: 1rem; min-width: 0; }
.account-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quiet {
  border: 1px solid var(--line);
  border-radius: .3rem;
  background: transparent;
  color: var(--ink);
  min-height: 2.75rem;
  padding: .4rem .9rem;
  white-space: nowrap;
}
.quiet:hover { border-color: var(--muted); }

.access-layout {
  min-height: calc(100svh - 5.1rem);
  display: grid;
  grid-template-columns: minmax(0, 1.27fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vh, 5rem);
}
/* A two-ink landscape with a halftone sunrise and layered ridgelines. */
.dawn-print {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1.22;
  background: linear-gradient(160deg, #47262e, #9d3a3a 62%, #c55544);
}
.dawn-print::before, .dawn-print::after, .ridge, .sun {
  content: "";
  position: absolute;
  pointer-events: none;
}
.dawn-print::before {
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 3.4rem, #ffc7a015 3.4rem calc(3.4rem + 1px));
}
.dawn-print::after {
  inset: 0;
  background-image: radial-gradient(#24131e88 .65px, transparent .95px);
  background-size: 3px 3px;
  opacity: .58;
}
.sun {
  width: 55%;
  top: 16%;
  left: 21%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(#ffaf72, #ff7555 82%);
}
.ridge { inset: 0; }
.ridge-far {
  background: #6a3038;
  clip-path: polygon(0 79%, 11% 72%, 20% 76%, 34% 65%, 41% 67%, 59% 56%, 63% 59%, 76% 51%, 82% 54%, 100% 42%, 100% 100%, 0 100%);
}
.ridge-near {
  background: linear-gradient(160deg, #382234, #241f2c 78%);
  clip-path: polygon(0 57%, 12% 60%, 20% 65%, 28% 64%, 39% 72%, 51% 78%, 57% 77%, 66% 83%, 78% 78%, 85% 71%, 89% 72%, 100% 66%, 100% 100%, 0 100%);
}
.access-panel { max-width: 30rem; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 {
  font: 750 clamp(3rem, 5.7vw, 5.2rem)/.99 var(--display);
  letter-spacing: -.05em;
}
.intro { color: var(--muted); max-width: 32ch; margin-top: 1.25rem; font-size: 1.125rem; }
.stack { display: grid; margin-top: 2.25rem; }
.stack label { margin-bottom: .5rem; font-weight: 600; }
.stack input:not([type="hidden"]) {
  width: 100%;
  min-height: 3.2rem;
  border: 1px solid #6f7077;
  border-radius: .3rem;
  background: var(--panel);
  color: var(--ink);
  padding: .65rem .85rem;
}
.primary {
  border: 0;
  border-radius: .3rem;
  min-height: 3.2rem;
  background: var(--flare);
  color: #231615;
  padding: .75rem 1.25rem;
  font-weight: 700;
}
.stack input:not([type="hidden"]) + .primary { margin-top: 1rem; }
.primary:hover { background: #ff997f; }
.notice { background: var(--panel); border-left: 3px solid var(--flare); padding: .8rem 1rem; margin-top: 1.5rem; }
.notice + .stack { margin-top: 1.25rem; }

.dashboard { padding-block: clamp(2.75rem, 7vw, 5.75rem); }
.dashboard h1 { font-size: clamp(3rem, 7vw, 5rem); }
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 2rem 0 clamp(2.5rem, 6vw, 4.5rem);
  border-block: 1px solid var(--line);
}
.metrics > div { padding: 1.25rem 1.25rem 1.25rem 0; }
.metrics dt, .last-report, .muted { color: var(--muted); }
.metrics dt { font-size: .9375rem; }
.metrics dd { margin: .25rem 0 0; font: 650 2.5rem/1.15 var(--display); font-variant-numeric: tabular-nums; }
.inventory-title, .empty h2 { font: 650 1.875rem/1.2 var(--display); letter-spacing: -.02em; }
.inventory-title { margin-bottom: 1.25rem; }
.inventory { border-top: 1px solid var(--line); }
.server { border-bottom: 1px solid var(--line); }
.server summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem 1rem;
  padding: 1rem .25rem 1rem 2rem;
  cursor: pointer;
  list-style: none;
}
.server summary::-webkit-details-marker { display: none; }
.server summary::before {
  position: absolute;
  left: .5rem;
  content: "";
  width: .5rem;
  height: .5rem;
  border: solid var(--flare);
  border-width: 1.5px 1.5px 0 0;
  transform: rotate(45deg);
}
.server[open] summary::before { transform: rotate(135deg); }
.server summary:hover { background: var(--panel); }
.server-name { font: 600 1rem/1.5 var(--mono); overflow-wrap: anywhere; }
.report-status { font: .875rem/1.4 var(--mono); }
.is-current { color: #a7d7bf; }
.is-due { color: #ffbd88; }
.report { padding: .35rem 2rem 1.5rem; overflow-wrap: anywhere; }
.last-report { font-size: .9rem; }
.last-report strong { font-weight: 500; color: var(--ink); margin-left: .35em; }
.report-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.25rem; }
.report h3 { margin-bottom: .35rem; font-size: 1rem; font-weight: 650; }
.report ul { margin: 0; padding-left: 1.2rem; }
.report li + li { margin-top: .2rem; }
.team-notes { margin-top: 1.25rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.team-notes p { white-space: pre-wrap; max-width: 80ch; }
.empty { margin-top: 2rem; padding: 2rem 0; border-block: 1px solid var(--line); }
.empty p { margin-top: .5rem; color: var(--muted); }

@media (max-width: 46rem) {
  .frame { width: min(100% - 2rem, 36rem); }
  .masthead-inner { min-height: 4rem; }
  .access-layout { min-height: auto; grid-template-columns: 1fr; gap: 2rem; padding-block: 1.5rem 3rem; }
  .dawn-print { aspect-ratio: 2.8; }
  .sun { width: 38%; top: 12%; left: 27%; }
  .access-panel { max-width: none; }
  .stack { margin-top: 1.5rem; }
  .report-checks { grid-template-columns: 1fr; }
  .account { gap: .5rem; }
}
@media (max-width: 32rem) {
  .account-email { max-width: 7rem; }
  .metrics { grid-template-columns: 1fr; }
  .metrics > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; }
  .metrics > div + div { border-top: 1px solid var(--line); }
  .metrics dd { font-size: 1.5rem; margin: 0; }
  .server summary { grid-template-columns: 1fr; gap: .15rem; }
  .report { padding-inline: .5rem; }
}
@media (max-width: 22rem) {
  .account-email { display: none; }
}
.access-panel a { color: #ffd1bd; text-underline-offset: .2em; }

.access-panel .stack + p { margin-top: 1.25rem; }
.report a { color: #ffd1bd; }
.filters { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.25rem 0; }
.filters label { display: grid; gap: .35rem; }
.filters input, .filters select { min-height: 2.75rem; padding: .4rem .75rem; border: 1px solid var(--line); border-radius: .25rem; background: var(--panel); color: var(--ink); font: inherit; }
.server[hidden] { display: none; }
