/* HyperRedact — Ink Minimal.
   Ink and paper are a pair. At night they swap, together, so every
   "ink background, paper text" element keeps the same relationship and
   nothing has to be restated further down the file. */

:root {
  --ink:     #0a0a0c;   /* bars, buttons, the mark */
  --paper:   #ffffff;   /* the page, and text sitting on ink */
  --text:    #0a0a0c;   /* body copy */
  --well:    #f1f1f1;
  --rule:    #e3e3e3;
  --muted:   #6b6b70;
  --measure: 38rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:   #f2f2f4;
    --paper: #0a0a0b;
    --text:  #f2f2f4;
    --well:  #141416;
    --rule:  #2a2a2d;
    --muted: #9a9aa0;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter,
        Helvetica, Arial, sans-serif;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 56rem; margin: 0 auto; padding: 0 22px; }

/* ---- header ---- */

header.site {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 26px 0 0;
}
/* The wordmark is black artwork on a clear ground, so it swaps for the white
   cut at night rather than being filtered — a filter would grey the box. */
.wordmark { display: block; height: 20px; width: auto; }
.wordmark.dark { display: none; }
@media (prefers-color-scheme: dark) {
  .wordmark.light { display: none; }
  .wordmark.dark  { display: block; }
}
header.site nav { display: flex; gap: 22px; font-size: 15px; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover { color: var(--text); }

/* ---- type ---- */

h1 {
  font-size: clamp(2.4rem, 7vw, 4rem);
  line-height: 1.02; letter-spacing: -0.035em; font-weight: 700;
  margin: 0 0 20px;
}
h2 {
  font-size: 1rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; margin: 0;
}
h3 { font-size: 1.12rem; font-weight: 650; letter-spacing: -0.015em; margin: 0 0 6px; }
p  { margin: 0 0 16px; max-width: var(--measure); }
.lede  { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
.small { font-size: 0.9rem; color: var(--muted); }
a { color: inherit; text-underline-offset: 3px; }

/* A section heading, drawn the way the app draws them: a solid bar of ink. */
.bar {
  background: var(--ink); color: var(--paper);
  padding: 9px 22px; margin: 0 -22px 26px;
}

/* What the app does, as a piece of type. */
.mark { background: var(--ink); color: var(--paper); padding: 0 .28em; border-radius: 2px; }

/* ---- layout ---- */

section { padding: 64px 0; border-top: 1px solid var(--rule); }
section:first-of-type { border-top: 0; }
.hero { padding: 64px 0 56px; }

.grid { display: grid; gap: 34px; grid-template-columns: repeat(3, 1fr); }
.grid p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; gap: 28px; }
  .row  { grid-template-columns: 1fr; gap: 30px; }
}

/* ---- controls ---- */

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 30px; }
.btn-primary {
  display: inline-block; background: var(--ink); color: var(--paper);
  text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 14px 34px; border-radius: 999px;
}
.btn-quiet {
  display: inline-block; color: var(--muted); text-decoration: none;
  font-size: 0.95rem; padding: 14px 6px;
}
.btn-quiet:hover { color: var(--text); }

/* ---- device shots ---- */

.shot {
  background: var(--well); border: 1px solid var(--rule);
  border-radius: 20px; padding: 30px; display: grid; place-items: center;
}
.shot img { max-width: 210px; width: 100%; height: auto; border-radius: 22%; display: block; }

@media (max-width: 720px) {
  .shot img { max-width: 240px; }
}

/* ---- prose pages ---- */

.prose { padding: 48px 0 72px; }
.prose h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); margin-bottom: 8px; }
.prose h2 { font-size: 1.02rem; margin: 40px 0 10px; letter-spacing: 0.06em; }
.prose ul { max-width: var(--measure); padding-left: 1.1rem; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 34px; }

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

footer.site {
  border-top: 1px solid var(--rule); padding: 30px 0 46px;
  display: flex; flex-wrap: wrap; gap: 14px 26px;
  justify-content: space-between; align-items: center;
  font-size: 0.9rem; color: var(--muted);
}
footer.site nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--text); }
