:root {
  color-scheme: light;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  color: #17241e;
  background: #f3f6f2;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #17241e;
  --muted: #64736a;
  --green: #2e7d59;
  --line: #d7e0d8;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background-image: linear-gradient(90deg, transparent 49.95%, #dfe7df 50%, transparent 50.05%);
  background-size: 100% 100%;
}

.page {
  width: min(100% - 48px, 1120px);
  min-height: 100vh;
  margin: 0 auto;
}

.topbar {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  color: var(--ink);
  font-size: 25px;
  font-weight: 800;
  text-decoration: none;
}

.wordmark span { color: var(--green); }

.environment {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.environment-dot, .status-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #72a986;
}

.clock {
  width: min(100%, 680px);
  margin: clamp(72px, 15vh, 150px) auto 0;
  animation: arrive 500ms ease-out both;
}

.eyebrow {
  margin: 0 0 17px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 500;
  line-height: 1.05;
}

.intro {
  margin: 16px 0 42px;
  color: var(--muted);
  font-size: 16px;
}

.time-panel {
  padding: 27px 0 21px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.time-value {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(38px, 8vw, 68px);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  margin-top: 13px;
}

.status-row p {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.status-mark { background: #a0aaa3; }
.status-row[data-state="ready"] .status-mark { background: var(--green); }
.status-row[data-state="error"] .status-mark { background: #bd4d3a; }

button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

button:hover { border-color: var(--green); color: var(--green); }
button:disabled { cursor: wait; opacity: 0.55; }
button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.footnote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 12px;
}

.footnote > span:first-child {
  color: var(--green);
  font-weight: 700;
  text-transform: uppercase;
}

code { color: var(--ink); font-size: 12px; }
.separator { color: #aab5ac; }

@keyframes arrive {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 540px) {
  .page { width: min(100% - 32px, 1120px); }
  .topbar { height: 68px; }
  .clock { margin-top: 78px; }
  .intro { margin-bottom: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}