:root {
  color-scheme: light;
  --ink: #172338;
  --muted: #657188;
  --line: #dce2eb;
  --surface: #ffffff;
  --soft: #f1f5f8;
  --accent: #176b87;
  --accent-dark: #0f536b;
  --success: #187052;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #eef3f6;
}

a {
  color: inherit;
}

.site-header,
main,
footer {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  border-bottom: 1px solid rgba(23, 35, 56, 0.1);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 750;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: white;
  background: var(--ink);
  border-radius: 8px;
  font-family: Georgia, serif;
}

.service-label,
.location-label,
.metric-note,
.test-message,
footer {
  color: var(--muted);
}

.header-meta {
  display: flex;
  gap: 14px;
  align-items: center;
}

.service-label,
.location-label {
  font-size: 0.88rem;
}

.location-label {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
}

main {
  padding: 86px 0 70px;
}

.hero {
  max-width: 780px;
  margin-bottom: 54px;
}

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

h1,
h2,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 7vw, 5.25rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

.lede {
  max-width: 650px;
  margin: 26px 0 0;
  color: #536078;
  font-size: 1.08rem;
  line-height: 1.65;
}

.panel {
  padding: clamp(24px, 5vw, 48px);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(23, 35, 56, 0.11);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(31, 49, 70, 0.09);
  backdrop-filter: blur(12px);
}

.panel-heading {
  display: flex;
  gap: 20px;
  align-items: start;
  justify-content: space-between;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 500;
  letter-spacing: 0;
}

.status-badge {
  padding: 7px 11px;
  color: var(--accent-dark);
  background: #e4f2f5;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 750;
}

.status-badge.running {
  color: #775711;
  background: #fff1bf;
}

.status-badge.complete {
  color: var(--success);
  background: #e2f3ec;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 38px 0 32px;
  border-block: 1px solid var(--line);
}

.metric {
  min-width: 0;
  padding: 28px;
}

.metric:first-child {
  padding-left: 0;
}

.metric + .metric {
  border-left: 1px solid var(--line);
}

.metric-label,
.metric-note {
  display: block;
}

.metric-label {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.metric strong {
  display: block;
  font-size: clamp(1.8rem, 5vw, 3.1rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.metric small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0;
}

.metric-note {
  min-height: 1.2em;
  margin-top: 9px;
  font-size: 0.76rem;
}

.actions {
  display: flex;
  gap: 18px;
  align-items: center;
}

.primary-button {
  appearance: none;
  min-width: 126px;
  padding: 13px 18px;
  color: white;
  background: var(--ink);
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 750;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

.primary-button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

.test-message {
  margin: 0;
  font-size: 0.82rem;
}

.notes {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(300px, 1.2fr);
  gap: 60px;
  padding: 70px 10px 20px;
}

.notes > p {
  margin: 0;
  color: #58657b;
  line-height: 1.7;
}

.site-details {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.2fr);
  gap: 60px;
  padding: 54px 10px 30px;
  border-top: 1px solid rgba(23, 35, 56, 0.1);
}

.site-details > p {
  margin: 0;
  color: #58657b;
  line-height: 1.7;
}

.looking-glass {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.2fr);
  gap: 60px;
  padding: 54px 10px 30px;
  border-top: 1px solid rgba(23, 35, 56, 0.1);
}

.location-card > p:last-child {
  margin: 20px 0 0;
  color: #58657b;
  line-height: 1.7;
}

.download-list {
  border: 1px solid var(--line);
  background: var(--surface);
}

.download-row {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  text-decoration: none;
  transition: background 150ms ease;
}

.download-row:hover {
  background: var(--soft);
}

.download-row + .download-row {
  border-top: 1px solid var(--line);
}

.download-row strong,
.download-row small {
  display: block;
}

.download-row small {
  margin-top: 5px;
  color: var(--muted);
}

.file-size {
  flex: 0 0 auto;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.download-note {
  margin: 0;
  padding: 18px 24px;
  color: var(--muted);
  background: var(--soft);
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  line-height: 1.55;
}

.article-main {
  max-width: 900px;
}

.article-main h1 {
  font-size: clamp(2.5rem, 7vw, 4.6rem);
}

.article-section {
  max-width: 660px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.article-section > p {
  color: #58657b;
  line-height: 1.7;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 24px 0 36px;
  border-top: 1px solid rgba(23, 35, 56, 0.1);
  font-size: 0.75rem;
}

.error-page {
  display: flex;
  flex-direction: column;
}

.error-main {
  display: grid;
  flex: 1;
  padding-block: 60px;
  place-items: center;
}

.error-card {
  max-width: 610px;
  padding: clamp(32px, 7vw, 64px);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(31, 49, 70, 0.09);
}

.error-card h1 {
  font-size: clamp(2rem, 7vw, 3.6rem);
  line-height: 1.05;
}

.error-card > p:not(.error-code) {
  margin: 20px auto 28px;
  color: var(--muted);
}

.error-code {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.link-button {
  display: inline-block;
  text-decoration: none;
}

@media (max-width: 700px) {
  .service-label {
    display: none;
  }

  main {
    padding-top: 58px;
  }

  .metrics {
    grid-template-columns: 1fr;
  }

  .metric,
  .metric:first-child {
    padding: 22px 0;
  }

  .metric + .metric {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .notes {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-details {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .looking-glass {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}
