/* ABOUTME: The website's look: the board's black, the system font, one column of plain text, and the brand
   ABOUTME: yellow only in the mark. Values in rem; the page reads on a phone and on a desk the same way. */
:root {
  --bg: #000;
  --text: #f2f2f7;
  --secondary: #a1a1a6;
  --tertiary: #8e8e93;
  --hairline: rgba(255, 255, 255, 0.12);
  --band: rgba(255, 255, 255, 0.04);
  --live: #32d74b;
  --late: #ff453a;
  --brand: #e8b900;
  --tram: #d82020;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--tertiary);
  text-underline-offset: 0.15em;
}
a:hover {
  text-decoration-color: var(--text);
}
.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.top {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--hairline);
}
.wordmark {
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark::after {
  content: "′";
  color: var(--brand);
  margin-left: 0.05em;
}
.top nav {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
  font-size: 0.95rem;
}
.top nav a {
  text-decoration: none;
  color: var(--secondary);
}
.top nav a:hover,
.top nav a[aria-current="page"] {
  color: var(--text);
}
main {
  padding: 3rem 0 4rem;
}
.kicker {
  margin: 0 0 0.75rem;
  font: 600 0.8rem / 1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tertiary);
}
h1 {
  margin: 0 0 1rem;
  font-size: 2.6rem;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
}
h2 {
  margin: 2.5rem 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 1rem;
}
.lead {
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--text);
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0;
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
  color: var(--secondary);
  font-variant-numeric: tabular-nums;
}
.facts span + span::before {
  content: "·";
  margin: 0 0.6em;
  color: var(--tertiary);
}
.quiet {
  color: var(--tertiary);
  font-size: 0.95rem;
}
dl {
  margin: 0;
}
dt {
  font-weight: 600;
  margin-top: 1rem;
}
dd {
  margin: 0.15rem 0 0;
  color: var(--secondary);
}

/* The menu bar as it reads at a desk: the mode mark, the line badge and the minutes, next to the clock. */
.bar {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  height: 2.2rem;
  margin: 2.5rem 0 0.75rem;
  padding: 0 1rem;
  border-radius: 0.6rem;
  background: #1c1c1e;
  border: 1px solid var(--hairline);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  color: #f2f2f7;
}
.bar .spacer {
  flex: 1;
}
.bar .apple {
  font-weight: 600;
  color: #f2f2f7;
}
.reading {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.mark {
  display: inline-grid;
  place-items: center;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 0.12rem;
  background: var(--tram);
  color: #fff;
  font:
    700 0.7rem / 1 Helvetica,
    Arial,
    sans-serif;
}
.badge {
  padding: 0.05rem 0.3rem;
  border-radius: 0.15rem;
  background: var(--tram);
  color: #fff;
  font: 700 0.75rem / 1.3 var(--sans);
}
.countdown {
  font-weight: 500;
}
.bar .dim {
  color: var(--secondary);
}
.caption {
  color: var(--tertiary);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

figure {
  margin: 1.5rem 0 0;
}
figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.6rem;
  border: 1px solid var(--hairline);
}
figcaption {
  margin-top: 0.5rem;
  color: var(--tertiary);
  font-size: 0.9rem;
}

/* The status page's one line: a dot and the words. */
.check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.25rem;
  border-radius: 0.6rem;
  background: var(--band);
  border: 1px solid var(--hairline);
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}
.dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--tertiary);
  flex: none;
}
.dot.up {
  background: var(--live);
}
.dot.down {
  background: var(--late);
}
.host {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--secondary);
}

footer {
  padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--hairline);
  color: var(--tertiary);
  font-size: 0.9rem;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}
footer a {
  color: var(--secondary);
  text-decoration: none;
}
footer a:hover {
  color: var(--text);
}
@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }
  .lead {
    font-size: 1.15rem;
  }
  .top {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }
  .top nav {
    width: 100%;
    margin-left: 0;
    gap: 0.9rem;
  }
}
