/* pgtoast.com holding page. Palette: Postgres blue for ink and links, toast gold for the one
   thing that is not finished yet, slate paper behind. System fonts only (the CSP allows no
   others): a heavy serif for the name, the system monospace for the chunk table. */
:root {
  color-scheme: light dark;
  --paper: #eef1f4;
  --ink: #14212b;
  --muted: #4d5f6d;
  --blue: #336791;
  --gold: #a8680f;
  --rule: #b9c4cd;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1a22;
    --ink: #e6edf2;
    --muted: #9db0be;
    --blue: #7fb0d9;
    --gold: #e3a94b;
    --rule: #2d4150;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
}
main {
  width: min(42rem, 100% - 3rem);
  margin: 0 auto;
  padding: clamp(3rem, 14vh, 9rem) 0 4rem;
}

h1 {
  margin: 0;
  font-size: clamp(3.5rem, 17vw, 8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.lede {
  margin: 1.25rem 0 clamp(2.5rem, 8vh, 4.5rem);
  max-width: 28rem;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--blue);
}

#note {
  max-width: 34rem;
  margin: 0 0 1rem;
  color: var(--muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.9375rem;
  line-height: 1.5;
}
th, td {
  padding: 0.7rem 0.9rem 0.7rem 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}
thead th {
  color: var(--muted);
  font-weight: 400;
  border-bottom: 2px solid var(--ink);
}
th:first-child, td:first-child { width: 7.5rem; color: var(--muted); }
thead th:first-child { width: 7.5rem; }
td:first-child { font-variant-numeric: tabular-nums; }

/* The unfinished chunk: dashed, in toast gold, so "pending" is seen before it is read. */
tr.pending td { border-bottom-style: dashed; border-bottom-color: var(--gold); color: var(--gold); }
tr.pending td:first-child { color: var(--gold); }

a { color: var(--blue); text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

/* The one moment of motion: the three chunks arrive one after another, like a result set coming
   back. Once, on load. Nothing else moves. */
@media (prefers-reduced-motion: no-preference) {
  tbody tr { animation: arrive 1ms linear both; }
  tbody tr:nth-child(1) { animation-delay: 0.35s; }
  tbody tr:nth-child(2) { animation-delay: 0.75s; }
  tbody tr:nth-child(3) { animation-delay: 1.15s; }
}
@keyframes arrive { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 30rem) {
  th:first-child, td:first-child, thead th:first-child { width: 5.5rem; }
  table { font-size: 0.875rem; }
}
