/* uxp labs — one quiet page. Ink, white line, grey weather, one spot. */
:root {
  --ink: #0b0b0c;
  --paper: #f4f1ea;
  --grey: #8c8c90;
  --rule: #26262a;
  --spot: #8a5cf6;
  --measure: 36rem;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--ink); color: var(--paper); }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 400 0.9375rem/1.6 var(--mono);
  -webkit-font-smoothing: antialiased;
}

.page {
  flex: 1;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(3rem, 12vh, 8rem) 1.5rem 4rem;
}

.mark { display: block; width: 88px; height: 88px; margin: 0 0 1.5rem -12px; }

h1 { margin: 0; font-size: 1rem; font-weight: 600; letter-spacing: 0.02em; }

/* the one spot of color */
h1::after {
  content: "";
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  margin-left: 0.45em;
  border-radius: 50%;
  background: var(--spot);
  vertical-align: 0.1em;
}

.lede { margin: 0.25rem 0 0; color: var(--grey); }

section { margin-top: 3.5rem; }

h2 {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--grey);
  text-transform: lowercase;
}

.list { list-style: none; margin: 0; padding: 0; }

.list li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--rule);
}

.list time, .label { color: var(--grey); }

.list p { margin: 0.25rem 0 0; color: var(--grey); }

a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 0.2em;
  transition: text-decoration-color 120ms ease;
}

a:hover { text-decoration-color: var(--spot); }

a:focus-visible { outline: 2px solid var(--spot); outline-offset: 3px; border-radius: 2px; }

::selection { background: var(--spot); color: var(--ink); }

.foot {
  padding: 4.5rem 1.5rem 1.5rem;
  background: url("waves.svg") center bottom / 640px 48px repeat-x;
  opacity: 0.9;
}

.foot p {
  max-width: calc(var(--measure) - 3rem);
  margin: 0 auto 2.5rem;
  font-size: 0.8125rem;
  color: var(--grey);
}

@media (max-width: 30rem) {
  .list li { grid-template-columns: 1fr; }
  .list time, .label { font-size: 0.8125rem; }
}

@media (prefers-reduced-motion: reduce) { a { transition: none; } }
