/* minidauth site
   One off-white ground. Almost nothing is drawn: edges are gradients of the
   ground itself, and only the things you press are raised out of it. */

:root {
  --ground:   #eaedf1;
  --ground-2: #eff1f5;
  --surface:  #f4f6f9;

  --edge-hi:  rgba(255,255,255,.95);
  --edge-lo:  rgba(176,187,203,.5);
  --line:     #d9dee5;

  --ink:    #15181e;
  --ink-2:  #515b68;
  --ink-3:  #8d97a4;

  --signal: #c8371f;
  --deep:   #216c80;

  --lift:  6px 7px 16px rgba(158,171,190,.34), -6px -6px 14px rgba(255,255,255,.95);
  --press: inset 4px 4px 10px rgba(158,171,190,.42), inset -4px -4px 10px rgba(255,255,255,.95);
  --block: 2px;

  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink-2);
  font: 400 17px/1.7 "Barlow", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: "Antonio", ui-sans-serif, system-ui, sans-serif;
  font-weight: 400; letter-spacing: .02em; text-transform: uppercase;
  text-wrap: balance; color: var(--ink); margin: 0; line-height: 1.08;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 3.6rem); }
h2 { font-size: 1.5rem; }
h3 { font-family: "Barlow", sans-serif; font-weight: 600; font-size: 1.05rem; color: var(--ink); margin: 0 0 8px; }

p { margin: 0 0 1.1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--deep); text-decoration-color: rgba(33,108,128,.28); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--deep); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 3px; }

code, .mono { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; }
p code, li code, td code, dd code { color: var(--ink); background: rgba(158,171,190,.16); padding: .1em .36em; border-radius: 3px; }

.lede { font-size: 1.2rem; line-height: 1.6; max-width: 58ch; }

.label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .64rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 16px;
}

/* ---------- shell ---------- */

.shell {
  max-width: 1040px; margin: 0 auto; padding-inline: 24px;
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 56px; align-items: start;
}

.rail { position: sticky; top: 28px; display: flex; flex-direction: column; gap: 3px; padding-block: 30px; }
.rail .brand { display: block; margin-bottom: 22px; }
.rail .brand img { width: 118px; height: auto; display: block; }
.rail .knee {
  height: 22px; margin-bottom: 14px; border-radius: var(--block);
  background: var(--signal);
}
.pill {
  display: block; padding: 8px 12px; border-radius: var(--block);
  border-left: 3px solid transparent; background: var(--ground-2);
  font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); text-decoration: none;
  transition: color .16s ease, border-color .16s ease;
}
.pill:hover { color: var(--ink); }
.pill.is-active, .pill[aria-current="page"] { color: var(--ink); border-left-color: var(--signal); }
.rail .foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

main { padding-block: 64px 0; min-width: 0; }
section { margin-bottom: 88px; scroll-margin-top: 88px; }
section > h2 { margin-bottom: 26px; display: flex; align-items: center; gap: 14px; }
section > h2::before {
  content: ""; flex: 0 0 auto; width: 11px; height: 11px;
  background: var(--signal); border-radius: 1px;
}

/* ---------- hero ---------- */

.hero { margin-bottom: 104px; }
.hero h1 span { display: block; color: var(--ink-3); }
.hero .lede { margin-top: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.btn {
  display: inline-flex; align-items: center; padding: 13px 26px; border-radius: var(--block);
  border: 1px solid transparent; background-origin: border-box; background-clip: padding-box, border-box;
  font-family: "Barlow", sans-serif; font-size: .82rem; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); cursor: pointer;
  background-image:
    linear-gradient(var(--ground-2), var(--ground-2)),
    linear-gradient(145deg, var(--edge-hi), rgba(255,255,255,0) 52%, var(--edge-lo));
  box-shadow: var(--lift);
  transition: box-shadow .16s ease;
}
.btn:active { box-shadow: var(--press); }
.btn--primary {
  color: #fff;
  background-image: linear-gradient(var(--signal), #ad2d18), linear-gradient(145deg, rgba(255,255,255,.45), rgba(255,255,255,0) 60%);
  box-shadow: 6px 8px 18px -8px rgba(200,55,31,.5), -5px -5px 12px rgba(255,255,255,.9);
}

/* ---------- the cohort, drawn as what it is ---------- */

.cohort { margin-top: 44px; }
.cohort .units { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 14px; padding: 0; list-style: none; }
.cohort .units li { width: 22px; height: 22px; border-radius: 1px; background: var(--ground-2); box-shadow: var(--press); }
.cohort .units li.on { background: var(--deep); box-shadow: none; }
.cohort figcaption { font-family: "IBM Plex Mono", monospace; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- screenshots, each next to the claim it backs ---------- */

.shot { margin: 30px 0 0; }
.shot img {
  display: block; width: 100%; height: auto; border-radius: var(--block);
  box-shadow: var(--lift); background: var(--ground-2);
}
.shot figcaption {
  margin-top: 12px; font-family: "IBM Plex Mono", monospace;
  font-size: .66rem; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-3);
}

/* status chips on the projects list */
.chip {
  display: block; width: max-content; margin: 8px 0 0 18px; padding: 3px 8px; border-radius: 1px;
  font-family: "IBM Plex Mono", monospace; font-size: .58rem; letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--ground); color: var(--ink-3); box-shadow: var(--press);
}
.chip--live { color: #fff; background: var(--deep); box-shadow: none; }

/* ---------- numbered steps: the one place order matters ---------- */

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 22px;
  padding: 24px 0; border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: "IBM Plex Mono", monospace; font-size: .74rem; letter-spacing: .06em;
  color: var(--ink-3); background: var(--ground-2); border-radius: 1px;
  height: 26px; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--press);
}
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; font-size: .98rem; }

/* ---------- rows: the only repeated structure ---------- */

.rows { margin: 0; padding: 0; }
.rows .row {
  display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 28px;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.rows .row:last-child { border-bottom: 1px solid var(--line); }
.rows dt { font-weight: 600; color: var(--ink); }
.rows dt::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 11px;
  vertical-align: middle; position: relative; top: -1px;
  background: var(--ink-3); border-radius: 1px;
}
.rows dd { margin: 0; }

.pull {
  margin: 0; padding: 2px 0 2px 24px; border-left: 1px solid var(--line);
  font-family: "Antonio", sans-serif; font-weight: 400;
  font-size: 1.45rem; letter-spacing: .02em; text-transform: uppercase;
  color: var(--ink); line-height: 1.24; max-width: none;
}

.note {
  padding: 2px 0 2px 20px; border-left: 2px solid var(--signal);
  font-size: .97rem; max-width: 68ch;
}
.note strong { color: var(--ink); font-weight: 600; }

/* ---------- closing call to action ---------- */

.cta {
  padding: 34px 36px; border-radius: var(--block);
  border: 1px solid transparent; background-origin: border-box; background-clip: padding-box, border-box;
  background-image:
    linear-gradient(var(--ground-2), var(--ground-2)),
    linear-gradient(150deg, var(--edge-hi), rgba(255,255,255,0) 55%, var(--edge-lo));
  box-shadow: var(--lift);
}
.cta h2 { margin-bottom: 10px; }
.cta h2::before { display: none; }
.cta .hint { font-family: "IBM Plex Mono", monospace; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 22px; }
.cta .code { background: var(--surface); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.micro { font-family: "IBM Plex Mono", monospace; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-top: 16px; }

/* ---------- code ---------- */

.code {
  position: relative; border-radius: var(--block); padding: 20px 56px 20px 22px;
  background: var(--surface); box-shadow: var(--press); overflow-x: auto;
}
.code pre { margin: 0; font-family: "IBM Plex Mono", monospace; font-size: .8rem; line-height: 1.9; color: var(--ink); }
.code .c { color: var(--ink-3); }
.code .k { color: var(--deep); }
.code .s { color: var(--signal); }
.copy {
  position: absolute; top: 12px; right: 12px; border: 0; cursor: pointer;
  font-family: "IBM Plex Mono", monospace; font-size: .56rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); background: var(--ground-2); border-radius: var(--block); padding: 6px 11px;
  box-shadow: var(--lift); transition: color .15s ease;
}
.copy:hover { color: var(--ink); }

/* ---------- tables (posts) ---------- */

.tw { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 12px 18px 12px 0; vertical-align: top; }
thead th {
  font-family: "IBM Plex Mono", monospace; font-size: .6rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 400;
  border-bottom: 1px solid var(--line); padding-bottom: 10px;
}
tbody tr { border-bottom: 1px solid var(--line); }
tbody td:first-child { color: var(--ink); }

/* ---------- posts ---------- */

.posts { display: block; }
.post-link {
  display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 24px; align-items: baseline;
  border-left: 3px solid transparent; padding-left: 0;
  text-decoration: none; color: inherit; padding: 24px 0; border-top: 1px solid var(--line);
}
.posts .post-link:last-child { border-bottom: 1px solid var(--line); }
.post-link:hover { border-left-color: var(--signal); padding-left: 16px; }
.post-link:hover h3 { color: var(--deep); }
.post-link time { font-family: "IBM Plex Mono", monospace; font-size: .68rem; letter-spacing: .1em; color: var(--ink-3); }
.post-link { transition: border-color .18s ease, padding-left .18s ease; }
.post-link h3 { font-size: 1.12rem; transition: color .18s ease; }
.post-link p { font-size: .95rem; margin: 0; color: var(--ink-2); }

article.post { max-width: 68ch; }
article.post h2 { margin-top: 56px; margin-bottom: 16px; }
article.post h3 { margin-top: 34px; }
article.post ul, article.post ol { padding-left: 20px; }
article.post li { margin-bottom: .6em; }
article.post .code, article.post .note, article.post .pull, article.post .tw { margin: 28px 0; }
.byline { display: flex; gap: 12px; margin: 16px 0 44px; font-family: "IBM Plex Mono", monospace; font-size: .68rem; letter-spacing: .12em; color: var(--ink-3); text-transform: uppercase; }

/* ---------- footer ---------- */

footer {
  margin-top: 40px; padding: 26px 0 64px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between;
  color: var(--ink-3); font-size: .85rem;
}
footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
footer > div { max-width: 52ch; }
.disclaimer { display: block; margin-top: 6px; font-size: .8rem; color: var(--ink-3); opacity: .85; }

/* ---------- narrow ---------- */

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0,1fr); gap: 0; }
  .rail {
    position: sticky; top: 0; z-index: 20; flex-direction: row; align-items: center; gap: 20px;
    overflow-x: auto; padding-block: 14px; background: var(--ground);
  }
  .rail .pill { border-left: 0; border-bottom: 3px solid transparent; }
  .rail .pill.is-active, .rail .pill[aria-current="page"] { border-bottom-color: var(--signal); }
  .rail .brand { margin: 0 4px 0 0; flex: 0 0 auto; }
  .rail .brand img { width: 104px; }
  .rail .knee { display: none; }
  .rail .foot { margin: 0; padding: 0; border: 0; }
  .pill { white-space: nowrap; }
  main { padding-block: 32px 0; }
  .hero { margin-bottom: 72px; }
  section { margin-bottom: 68px; }
}

@media (max-width: 640px) {
  .rows .row { grid-template-columns: minmax(0,1fr); gap: 6px; }
  .steps li { grid-template-columns: 30px minmax(0,1fr); gap: 16px; }
  .post-link { grid-template-columns: minmax(0,1fr); gap: 6px; }
}
