:root {
  color-scheme: light dark;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--canvas);
  font-size: 15px;
  line-height: 1.5;

  --canvas: light-dark(#fff, #000);
  --surface: light-dark(#f6f6f6, #151515);
  --text: light-dark(#181818, #f4f4f4);
  --muted: light-dark(#616161, #b5b5b5);
  --line: light-dark(#858585, #767676);
  --accent: light-dark(#b7430b, #ff8b3d);
  --selection: color-mix(in srgb, var(--accent) 7%, var(--canvas));
}

:root[data-appearance="light"] {
  color-scheme: light;
}

:root[data-appearance="dark"] {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

main {
  max-width: 70rem;
  margin: auto;
  padding: clamp(1rem, 3vw, 1.5rem);
}

h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
}

header p {
  color: var(--muted);
  margin: 0.35rem 0 1rem;
}

.sample-note {
  display: block;
  padding: 0.7rem 0.85rem;
  border-left: 3px solid var(--accent);
  background: var(--selection);
  font-size: 0.85rem;
}

form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
  margin: 1rem 0;
}

.station-field {
  flex: 1 1 12rem;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}

input,
select,
button {
  min-height: 2.75rem;
  border-radius: 4px;
  font: inherit;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  padding: 0.5rem 0.65rem;
  color: inherit;
  background: var(--canvas);
}

button {
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent);
  color: var(--canvas);
  background: var(--accent);
  cursor: pointer;
}

.release-channel {
  flex: 0 1 12rem;
}

.source-note {
  color: var(--muted);
  font-size: 0.85rem;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

#status {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

#observations {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--canvas);
}

caption {
  text-align: left;
  color: var(--muted);
  font-size: 0.8rem;
  padding-bottom: 0.5rem;
}

th,
td {
  padding: 0.7rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

thead th {
  background: var(--selection);
  font-size: 0.8rem;
  font-weight: 600;
}

tbody th {
  font-weight: 500;
}

.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

time {
  display: block;
  font-size: 0.8rem;
  white-space: nowrap;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

@media (width <= 28rem) {
  table,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  caption {
    display: block;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  table {
    background: transparent;
  }

  tr {
    margin-bottom: 0.75rem;
    border: 1px solid var(--line);
    background: var(--canvas);
    border-radius: 4px;
    overflow: hidden;
  }

  tbody th {
    background: var(--selection);
  }

  td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    border: 0;
  }

  td::before {
    content: attr(data-label);
    font-size: 0.8rem;
    color: var(--muted);
  }
}
