:root {
  color-scheme: light;
  --ink: #1e2933;
  --muted: #5c6873;
  --line: #d4dce3;
  --paper: #ffffff;
  --background: #edf1f4;
  --header: #202b35;
  --header-line: #365b77;
  --accent: #176da6;
  --accent-dark: #10557f;
  --hero: #dde8ef;
  --hero-line: #c4d3de;
  --focus: #10557f;
  --focus-header: #e29b24;
  --success: #176b3a;
  --error: #a12222;
}

* { box-sizing: border-box; }
html { font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: var(--background); }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; line-height: 1.55; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.container { width: min(1080px, calc(100% - 32px)); margin-inline: auto; }

.site-header { background: var(--header); border-bottom: 3px solid var(--header-line); color: var(--paper); }
.site-header a:focus-visible { outline-color: var(--focus-header); }
.header-inner { display: flex; align-items: flex-start; flex-direction: column; gap: 12px; padding-block: 16px; }
.brand { color: var(--paper); text-decoration: none; font-size: 25px; font-weight: 800; letter-spacing: .6px; }
.brand span { margin-left: 9px; font-size: 11px; font-weight: 400; letter-spacing: 1.5px; color: #b9cfdf; }
nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: #e2edf5; text-decoration: none; font-size: 14px; }
nav a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }

.hero { background: var(--hero); border-bottom: 1px solid var(--hero-line); padding: 30px 0 26px; }
.eyebrow { margin: 0 0 6px; color: var(--accent-dark); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; }
h1 { margin: 0 0 12px; font-size: clamp(32px, 6vw, 44px); line-height: 1.15; letter-spacing: -.5px; }
.lead { max-width: 700px; margin: 0; font-size: 18px; color: #3f505e; }
.status-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 26px 0 0; padding: 20px 0 0; border-top: 1px solid var(--hero-line); }
.status-list div { min-width: 0; }
.status-list dt { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.status-list dd { margin: 3px 0 0; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }

.services { padding-block: 28px; }
.section-heading { margin-bottom: 18px; }
.section-heading h2 { margin: 0 0 5px; font-size: 23px; line-height: 1.25; }
.section-heading p { margin: 0; color: var(--muted); }
.services-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.service-card { position: relative; display: block; min-width: 0; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 1px 2px rgb(20 35 45 / 5%); color: var(--ink); }
a.service-card { text-decoration: none; transition: background-color 180ms ease-out, border-color 180ms ease-out; }
a.service-card:hover { background: #f8fafb; border-color: #9fb3c1; }
.service-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.service-card h3 { margin: 0; font-size: 20px; line-height: 1.25; }
.service-type { flex: none; padding-top: 3px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.service-card .url { display: inline-block; margin-bottom: 10px; color: var(--accent-dark); font-family: "Courier New", monospace; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.service-card .description { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.service-card .open-label { display: inline-block; margin-top: 16px; color: var(--accent); font-size: 14px; font-weight: 700; }
a.service-card:hover .open-label { text-decoration: underline; text-underline-offset: 3px; }

.actions { display: flex; flex-direction: column; gap: 12px; margin: 18px 0 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid transparent; border-radius: 3px; padding: 10px 16px; font: inherit; font-size: 15px; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; transition: background-color 180ms ease-out, border-color 180ms ease-out, color 180ms ease-out; }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.button.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--paper); }
.button.secondary { background: var(--paper); border-color: #9fb3c1; color: var(--accent-dark); }
.button.secondary:hover { background: #edf4f8; }
.button:active { background: #dce8ef; }
.button:disabled { cursor: wait; opacity: .65; }
.button.copied { background: #edf8f0; border-color: #a8d3b5; color: var(--success); }
.button.copy-error { background: #fff1f1; border-color: #e0b0b0; color: var(--error); }
.copy-status { min-height: 23px; margin: 0 0 10px; color: var(--success); font-size: 13px; }
.copy-status.error { color: var(--error); }

.site-footer { margin-top: auto; padding: 20px 0 26px; color: var(--muted); border-top: 1px solid var(--line); font-size: 13px; }
.site-footer p { margin: 0; }
.site-footer p + p { margin-top: 5px; }

@media (min-width: 700px) {
  .header-inner { align-items: center; flex-direction: row; justify-content: space-between; min-height: 70px; padding-block: 0; gap: 24px; }
  .hero { padding: 42px 0 34px; }
  .status-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .service-card { padding: 24px; }
  .actions { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 430px) {
  .button { width: 100%; }
  .service-heading { flex-direction: column; gap: 4px; }
  .service-type { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  a.service-card, .button { transition: none; }
}
