/* remainstheday.com. Linked with ?v=<md5> (web/check.sh), so an edit is a new URL to every cache. */
:root {
  --bg: #fff;
  --fg: #000;
  --muted: #5c5c5c;
  --line: #000;
  --measure: 65.5rem;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #000; --fg: #fff; --muted: #a3a3a3; --line: #fff; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }

.skip { position: absolute; left: -999px; top: 0; background: var(--fg); color: var(--bg); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.top, main, .foot { width: min(100% - 2.5rem, var(--measure)); margin-inline: auto; }

.top {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-block: 1.5rem; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: .875rem;
}
.wordmark { font-weight: 700; text-decoration: none; letter-spacing: .02em; }
.top nav { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; }

.eyebrow, .visit, .foot {
  font-family: var(--mono); font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase;
}
.eyebrow { margin: 0 0 1.5rem; color: var(--muted); }
h1 {
  margin: 0; font-weight: 700; letter-spacing: -.03em;
  font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.06;
  text-wrap: balance;
}
/* The title between two animated ASCII panels (js/home.js) */
.intro {
  display: grid; align-items: center;
  padding-block: clamp(3rem, 9vw, 7rem) clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 28rem) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
}
.intro h1 { text-align: center; }
/* The title's last words, set in reversed mono. */
.turn {
  display: block; margin-top: .3em;
  font-family: var(--mono); font-size: .74em; font-weight: 600; letter-spacing: -.04em; word-spacing: -.3em; line-height: 1.3;
  text-wrap: wrap;
}
.turn-text {
  background: var(--fg); color: var(--bg); padding: 0 .14em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.art { display: block; width: 100%; height: clamp(13rem, 22vw, 16rem); }

.lede { margin: 2rem 0 0; font-size: 1.25rem; color: var(--muted); }

/* Product grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
  column-gap: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.card {
  display: flex; flex-direction: column;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 1rem;
}
.frame {
  display: grid; place-items: center;
  aspect-ratio: 16 / 10; overflow: hidden;
  border: 1px solid var(--line); margin: 0 0 1.5rem;
  background: var(--bg);
}
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.card-head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  margin-bottom: 1rem;
}
.name { display: flex; align-items: center; gap: .85rem; }
/* App icons, cropped to the tile; the ring keeps a black tile's edge on the dark theme. */
.icon { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 22.5%; }
@media (prefers-color-scheme: dark) {
  .icon { box-shadow: 0 0 0 1px #3a3a3a; }
}
h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; line-height: 1.1; }
.visit {
  border: 1px solid var(--line); padding: .5rem .85rem; text-decoration: none; white-space: nowrap;
}
a.visit:hover { background: var(--fg); color: var(--bg); }
.card p { margin: 0 0 1rem; }
.card .stack {
  margin: auto 0 0; padding-top: .5rem;
  font-family: var(--mono); font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted);
}

.foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding-block: 2rem 3rem; border-top: 1px solid var(--line); color: var(--muted);
}
.foot .links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
/* "Cookie settings": a button that reads as one of the footer's links. js/ph-init.js shows it. */
.linklike {
  appearance: none; border: 0; padding: 0; background: none; color: inherit; font: inherit;
  letter-spacing: inherit; text-transform: inherit; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em;
}
.linklike:hover { text-decoration-thickness: 2px; }
.linklike[hidden], .consent[hidden], .consent-state[hidden] { display: none; }

/* The cookie choice (js/ph-init.js builds it): a bar along the bottom, never over the whole page. */
.consent {
  position: fixed; inset: auto 0 0 0; z-index: 20;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  padding: 1rem max(1.25rem, (100% - var(--measure)) / 2);
  background: var(--bg); border-top: 1px solid var(--line);
  font-size: .9375rem; line-height: 1.45;
}
.consent:focus { outline: none; }
/* Room below the footer while the bar is up, so it never covers the end of the page. */
body.has-consent { padding-bottom: 12rem; }
@media (min-width: 761px) { body.has-consent { padding-bottom: 6rem; } }
.consent-text { flex: 1 1 22rem; max-width: 44rem; }
.consent p { margin: 0; }
.consent-state { color: var(--muted); }
.consent-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem;
  font-family: var(--mono); font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase;
}
.consent-button {
  appearance: none; border: 1px solid var(--line); border-radius: 0; padding: .5rem .85rem;
  background: var(--bg); color: var(--fg); font: inherit; letter-spacing: inherit; text-transform: inherit;
  cursor: pointer;
}
.consent-button:hover { background: var(--fg); color: var(--bg); }

/* Text pages (privacy.html) */
.prose { max-width: 44rem; padding-block: clamp(3rem, 7vw, 5rem); }
.prose h1 { margin-bottom: 1.5rem; }
.prose h2 { margin: 2.75rem 0 .75rem; font-size: 1.375rem; letter-spacing: -.01em; }
.prose p, .prose ul { margin: 0 0 1rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .35rem; }
.prose code { font-family: var(--mono); font-size: .875em; overflow-wrap: anywhere; }
.prose .updated { color: var(--muted); font-family: var(--mono); font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; }
.table { overflow-x: auto; margin: 0 0 1rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; }
.prose th, .prose td { padding: .6rem .75rem .6rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-family: var(--mono); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
/* Something the owner still has to fill in; web/check.sh refuses a project token while one is left. */
.todo { background: var(--fg); color: var(--bg); padding: 0 .3em; }

@media (max-width: 760px) {
  .top { flex-direction: column; gap: .75rem; }
  .card-head { flex-direction: column; align-items: flex-start; gap: .75rem; }
  /* The panels become bands above and below the title. */
  .intro { grid-template-columns: minmax(0, 1fr); }
  .art { height: clamp(4.5rem, 18vw, 7rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
