:root {
  color-scheme: light;
  --ink: #16212a;
  --muted: #61717e;
  --line: #d7e1e5;
  --paper: #f7f5ef;
  --white: #ffffff;
  --teal: #116a73;
  --teal-dark: #0b444b;
  --amber: #d59038;
  --green: #2f855a;
  --red: #b5473b;
  --blue: #2d5f9a;
  --shadow: 0 18px 50px rgba(19, 34, 42, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 245, 239, 0.9);
  border-bottom: 1px solid rgba(22, 33, 42, 0.08);
  backdrop-filter: blur(14px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal-dark);
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0;
}

.nav {
  gap: clamp(14px, 3vw, 28px);
  color: #354653;
  font-size: 0.94rem;
}

.nav a {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  border-color: var(--amber);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(247, 245, 239, 0.94) 0%, rgba(247, 245, 239, 0.78) 34%, rgba(247, 245, 239, 0.12) 68%),
    linear-gradient(0deg, rgba(247, 245, 239, 0.86) 0%, rgba(247, 245, 239, 0) 34%);
}

.hero-content {
  width: min(620px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 84px);
  padding-top: 74px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.02;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3.4rem, 8vw, 7.6rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.lede {
  max-width: 48ch;
  margin: 24px 0 0;
  color: #33424d;
  font-size: clamp(1.08rem, 2vw, 1.36rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  background: var(--white);
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  border-color: var(--teal-dark);
  background: var(--teal-dark);
  color: var(--white);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.78);
}

.button.compact {
  margin-top: 20px;
  width: 100%;
}

.section {
  padding: clamp(58px, 8vw, 108px) clamp(18px, 5vw, 64px);
}

.section-head {
  width: min(1120px, 100%);
  margin: 0 auto 28px;
}

.tools-band {
  background: #f7f5ef;
}

.tool-grid {
  display: grid;
  width: min(1120px, 100%);
  margin: 0 auto;
  grid-template-columns: 1.15fr 0.9fr 0.95fr;
  gap: 18px;
}

.tool-card,
.status-panel,
.notes-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(25, 42, 50, 0.08);
}

.tool-card {
  min-height: 318px;
  padding: 22px;
}

.card-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-height: 70px;
}

.card-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.icon {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: #e8f3f1;
  color: var(--teal-dark);
  font-size: 0.73rem;
  font-weight: 850;
}

.time-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.time-row,
.status-row,
.date-facts div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  border-bottom: 1px solid #edf2f3;
}

.time-row:last-child,
.status-row:last-child,
.date-facts div:last-child {
  border-bottom: 0;
}

.time-row span,
.status-row span,
.date-facts dt {
  color: var(--muted);
}

.time-row strong,
.date-facts dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.meter {
  display: grid;
  min-height: 136px;
  align-content: center;
  margin-top: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #edf7f4, #fff7ea);
  padding: 18px;
}

#latency-value {
  color: var(--teal-dark);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 850;
  line-height: 1;
}

#latency-detail {
  margin-top: 8px;
  color: var(--muted);
}

.date-facts {
  display: grid;
  gap: 6px;
  margin: 20px 0 0;
}

.status-band {
  background: #15232b;
  color: var(--white);
}

.status-layout,
.contact-layout {
  display: grid;
  width: min(1120px, 100%);
  margin: 0 auto;
  grid-template-columns: 1fr minmax(300px, 420px);
  gap: clamp(26px, 6vw, 84px);
  align-items: center;
}

.status-layout p {
  max-width: 60ch;
  color: #c8d6dc;
}

.status-panel {
  background: #fdfcf8;
  color: var(--ink);
  padding: 12px 18px;
}

.ok,
#health-state.online {
  color: var(--green);
}

#health-state.offline {
  color: var(--red);
}

.notes-band {
  background: #eef3f4;
}

.notes-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.notes-loading p {
  color: var(--muted);
}

.notes-list {
  display: grid;
  width: min(1120px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.notes-list article {
  padding: 22px;
}

.notes-list time {
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 760;
}

.notes-list p,
.contact-layout p {
  color: var(--muted);
}

.contact-band {
  background: var(--paper);
}

.contact-layout .button {
  width: 100%;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .topbar {
    position: absolute;
    align-items: flex-start;
  }

  .nav {
    display: none;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(247, 245, 239, 0.96) 0%, rgba(247, 245, 239, 0.7) 58%, rgba(247, 245, 239, 0.24) 100%),
      linear-gradient(0deg, rgba(247, 245, 239, 0.9) 0%, rgba(247, 245, 239, 0) 40%);
  }

  .tool-grid,
  .notes-list,
  .status-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .hero-content {
    width: calc(100% - 32px);
    margin-inline: 16px;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 4.8rem);
  }

  .hero-actions,
  .footer {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .time-row,
  .status-row,
  .date-facts div {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
  }
}
