/* Skynthesis site. A maker's page, not a product page: the skins come first and
   the text reads like a devlog. Warm charcoal (dark) and paper (light) grounds
   so the skins carry the colour; Serum's LED green for links and "never sent";
   Barlow Condensed, the face Serum's own captions use, only for skin names. */

@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap;
  src: url(/fonts/barlow-condensed-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap;
  src: url(/fonts/barlow-condensed-700.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 200 800; font-display: swap;
  src: url(/fonts/atkinson-next.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap;
  src: url(/fonts/plex-mono-500.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --ground: #131211;
  --deck: #1c1b19;
  --recess: #252321;
  --line: #312e2a;
  --ink: #eeeae3;
  --ink-dim: #a7a198;
  --link: #8fe06f;
  --led: #8be26a;

  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --body: "Atkinson Hyperlegible Next", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --s-small: .9375rem; /* 15 */
  --s-body: 1.0625rem; /* 17 */
  --col: 40rem;   /* the reading column; the gallery and screenshots run wider */
  --wide: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --ground: #f4f1ea;
    --deck: #fbf9f4;
    --recess: #ebe6dc;
    --line: #dbd4c7;
    --ink: #1d1b18;
    --ink-dim: #5b554c;
    --link: #2e6f16;
    --led: #2e7d16;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --ground: #f4f1ea;
  --deck: #fbf9f4;
  --recess: #ebe6dc;
  --line: #dbd4c7;
  --ink: #1d1b18;
  --ink-dim: #5b554c;
  --link: #2e6f16;
  --led: #2e7d16;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  padding-inline: var(--gutter);
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--s-body)/1.6 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wide); margin-inline: auto; }
.prose { display: grid; gap: 1rem; }
/* One centred reading column, like a long post; only the gallery and the
   screenshots break out of it. */
section > :not(.gallery, .step), .step > .prose { max-width: var(--col); margin-inline: auto; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.meta { font: 500 .8125rem/1.6 var(--mono); color: var(--ink-dim); }

/* ---- header: the name and a few plain links ---- */
.top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .6rem 2rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: .55rem;
  color: var(--ink); text-decoration: none;
  font: 700 1.125rem/1 var(--body);
}
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.links { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; margin: 0; padding: 0; list-style: none; }
.links a { color: var(--ink-dim); text-decoration: none; font-size: var(--s-small); white-space: nowrap; }
@media (max-width: 30rem) { .links { gap: .3rem .85rem; } .links a { font-size: .875rem; } }
.links a:hover, .links a[aria-current] { color: var(--ink); text-decoration: underline; }

/* ---- sections: a thin rule and a sentence-case heading, like a long post ---- */
section { padding-block: clamp(2rem, 4vw, 3.25rem) 0; scroll-margin-top: 1rem; }
section + section { margin-top: clamp(2rem, 4vw, 3.25rem); border-top: 1px solid var(--line); }
section.first { padding-top: 0; }
h2 { font: 700 clamp(1.5rem, 2.6vw, 2rem)/1.2 var(--body); letter-spacing: -.01em; margin-bottom: 1.25rem; }
.prose h2 { margin-bottom: .25rem; }
h3 { font: 700 1.25rem/1.3 var(--body); }
.prose h3 { margin-top: 1rem; }

/* ---- the skins, first thing on the page ---- */
.intro { padding-block: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: .9rem; }
.intro h1 { font: 700 clamp(1.85rem, 4vw, 2.75rem)/1.12 var(--body); letter-spacing: -.015em; }
.intro .lede { font-size: 1.1875rem; line-height: 1.55; }
.gallery {
  display: grid; gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr));
  margin: 0; padding: 0; list-style: none;
}
.skin { margin: 0; display: grid; gap: .65rem; }
.skin a { display: block; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.skin a:hover { box-shadow: 0 0 0 2px var(--link); }
.skin img { width: 100%; }
.skin figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .7rem; }
.skin .name { font: 700 1.3rem/1.1 var(--display); letter-spacing: .07em; text-transform: uppercase; }
.skin .from { color: var(--ink-dim); font-size: var(--s-small); }
.skin .seed { font: 500 .75rem/1 var(--mono); color: var(--ink-dim); margin-left: auto; }
.aside { margin-top: 1.5rem; font-size: var(--s-small); color: var(--ink-dim); }

/* ---- the maker's note, in the owner's own words ---- */
.maker { display: grid; gap: .9rem; }
.maker + p { margin-top: 1.75rem; }   /* the sign-off ends the note; what follows is not part of it */
.sign { color: var(--ink-dim); }

/* ---- how it works: short entries, each with its picture underneath ---- */
.step { display: grid; gap: 1.25rem; }
.step + .step { margin-top: clamp(2.25rem, 4vw, 3.25rem); }
/* Two figure widths: wide (the editor, the welcome tour) and the reading column.
   Every caption sits on the reading column, whatever the picture's width. */
.step figure { margin: 0 auto; display: grid; gap: .6rem; max-width: 62rem; }
.step figure.narrow { max-width: var(--col); }
/* The screenshots are transparent round-cornered cards; the shadow follows
   their alpha, so it works on both grounds with no plate behind them. */
.step figure img { width: 100%; filter: drop-shadow(0 .4rem .9rem rgb(0 0 0 / .32)); }
.step figcaption { width: 100%; max-width: var(--col); margin-inline: auto; }
figcaption { font-size: var(--s-small); color: var(--ink-dim); }

/* ---- changelog ---- */
.log { list-style: none; margin: 0; padding: 0; }
.log > li { display: grid; gap: .35rem 2rem; padding-block: 1rem; border-top: 1px solid var(--line); }
.log > li:first-child { border-top: 0; padding-top: 0; }
.ver { font: 500 1rem/1.5 var(--mono); }
.ver > span, .ver > time { display: block; white-space: nowrap; font: 400 var(--s-small)/1.5 var(--body); color: var(--ink-dim); }
.log ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .3rem; list-style: disc; }
.log li li::marker { color: var(--ink-dim); }
@media (min-width: 48rem) { .log > li { grid-template-columns: 9rem 1fr; } }

/* ---- getting a copy: a plain form, no big call-to-action button ---- */
.btn {
  padding: .7rem 1rem;
  border-radius: 4px;
  font: 700 var(--s-small)/1 var(--body);
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--recess); color: var(--ink);
}
.btn:hover { border-color: var(--link); color: var(--link); }
form.waitlist { display: flex; flex-wrap: wrap; gap: .5rem; max-width: 32rem; margin-block: .25rem .5rem; }
form.waitlist label { flex-basis: 100%; font-weight: 700; font-size: var(--s-small); }
form.waitlist input {
  flex: 1 1 14rem; min-width: 0;
  padding: .7rem .8rem;
  background: var(--deck); color: var(--ink);
  border: 1px solid var(--line); border-radius: 4px;
  font: inherit;
}
#waitlist-msg { flex-basis: 100%; font-size: var(--s-small); }
#waitlist-msg.ok { color: var(--led); }
#waitlist-msg.err { color: #f87171; }
/* ---- the table of what leaves the Mac ---- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; background: var(--deck); margin-block: 1.25rem; }
table { width: 100%; border-collapse: collapse; font-size: var(--s-small); }
th, td { text-align: left; vertical-align: top; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th { background: var(--recess); }
tbody th { font-weight: 400; }
table.net { min-width: 40rem; }
td code { font: 500 .875rem/1.4 var(--mono); }
td.never { color: var(--led); font-weight: 700; }
@media (max-width: 40rem) {
  table.net { min-width: 0; }
  table.net thead { display: none; }
  table.net, table.net tbody, table.net tr, table.net td { display: block; }
  table.net tr { padding-block: .4rem; border-bottom: 1px solid var(--line); }
  table.net tr:last-child { border-bottom: 0; }
  table.net td { border: 0; padding: .3rem 1rem; }
  table.net td::before {
    content: attr(data-label); display: block;
    font: 500 .75rem/1.5 var(--mono); color: var(--ink-dim);
  }
}
.note { font-size: var(--s-small); color: var(--ink-dim); }

/* ---- questions: every answer visible ---- */
.faq { margin: 0; }
.qa { padding-block: 1rem; border-top: 1px solid var(--line); display: grid; gap: .35rem 2.5rem; }
.qa:first-child { border-top: 0; padding-top: 0; }
.qa dt { font-weight: 700; }
.qa dd { margin: 0; }

/* ---- footer ---- */
footer {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--line);
  display: grid; gap: 1.25rem 3rem; align-items: start;
  font-size: var(--s-small); color: var(--ink-dim);
}
footer .brand { font-size: 1rem; }
footer .brand img { width: 22px; height: 22px; border-radius: 5px; }
.foot-body { display: grid; gap: .8rem; }
footer nav ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
footer nav a { color: var(--ink-dim); font-weight: 700; text-decoration: none; }
footer nav a:hover, footer nav a[aria-current] { color: var(--ink); text-decoration: underline; }
footer p { max-width: 52rem; }
@media (min-width: 40rem) { footer { grid-template-columns: auto 1fr; } }

/* ---- policy pages ---- */
.doc { max-width: 44rem; margin-inline: auto; padding-block: clamp(2rem, 5vw, 3.5rem) 0; display: grid; gap: 1.1rem; }
.doc h1 { font: 700 clamp(2rem, 5vw, 3rem)/1.1 var(--body); letter-spacing: -.015em; }
.doc h2 { font-size: 1.3rem; margin: 1.4rem 0 0; }
.doc ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.doc .updated { color: var(--ink-dim); font-size: var(--s-small); }
.doc .key { font: 600 clamp(1.4rem, 5vw, 1.9rem)/1.4 var(--mono); letter-spacing: .06em; user-select: all; overflow-wrap: anywhere; padding: 1rem 1.1rem; background: var(--deck); border: 1px solid var(--line); border-radius: 4px; }
dl.contact { display: grid; grid-template-columns: max-content 1fr; gap: .6rem 1.5rem; margin: 0; }
dl.contact dt { font-weight: 700; }
dl.contact dd { margin: 0; }
@media (max-width: 30rem) { dl.contact { grid-template-columns: 1fr; gap: .2rem; } dl.contact dd { margin-bottom: .6rem; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
