/* Zinimal — one stylesheet for the whole site.
   The app's chrome is quiet so the photos can be loud; the site keeps the
   same manners: paper white, ink black, one pink from the app icon. */

@font-face {
  font-family: "Special Elite";
  src: url("/fonts/SpecialElite-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #111111;
  --ink-soft: #55504c;
  --muted: #857e79;
  --ground: #fbfaf8;
  --paper: #ffffff;
  --rule: #e7e3de;
  --pink: #d71b60;
  --pink-deep: #a81249;
  --heart: #e01030;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --type: "Special Elite", "Courier New", Courier, monospace;

  --measure: 34rem;
  --wide: 54rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ece9e5;
    --ink-soft: #bab4ae;
    --muted: #8d8781;
    --ground: #131211;
    --paper: #1c1a19;
    --rule: #302c29;
    --pink: #ff5588;
    --pink-deep: #ff87aa;
    --heart: #ff4155;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0 1.5rem 4rem;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: var(--wide);
  margin: 0 auto;
}

.narrow {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}

a {
  color: var(--pink);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--pink-deep);
}

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

.masthead {
  text-align: center;
  padding: 4.5rem 0 2.5rem;
}

.mark {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  display: block;
  margin: 0 auto 1.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.1);
}

.wordmark {
  font-size: clamp(2.6rem, 9vw, 3.9rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 1.1rem;
}

.tagline {
  font-family: var(--type);
  font-size: 0.94rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 0;
}

.tagline .dot {
  color: var(--pink);
  padding: 0 0.35em;
}

.lede {
  font-size: 1.14rem;
  line-height: 1.6;
  color: var(--ink-soft);
  text-align: center;
  margin: 2.5rem auto 0;
  text-wrap: balance;
}

/* ---------- the finished zine ---------- */

.photo-figure {
  margin: 3.5rem auto 0;
  max-width: 44rem;
}

.photo-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 18px 40px -18px rgba(0, 0, 0, 0.3);
}

/* ---------- the printed sheet ---------- */

.sheet-figure {
  margin: 3.5rem auto 0;
  max-width: 44rem;
}

.sheet-figure img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 18px 40px -18px rgba(0, 0, 0, 0.3);
}

/* Front and back of one sheet, side by side; on narrow screens they stack. */
.sheet-figure--duplex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.sheet-figure--duplex img {
  flex: 1 1 16rem;
  min-width: 0;
  max-width: 26rem;
}

.sheet-figure--duplex figcaption {
  flex-basis: 100%;
}

figcaption {
  font-family: var(--type);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: center;
  margin-top: 1rem;
}

/* ---------- sections ---------- */

section {
  padding-top: 4.5rem;
}

h2 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 1.4rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--rule);
}

h2::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--pink);
  border-radius: 50%;
  margin-right: 0.6rem;
  vertical-align: 0.05em;
}

h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

li {
  margin-bottom: 0.45rem;
}

li::marker {
  color: var(--pink);
}

/* ---------- fold steps ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
}

@media (max-width: 34rem) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1.25rem;
  }
}

.steps li {
  margin: 0;
  min-width: 0;
  text-align: center;
}

.steps img {
  width: 100%;
  height: auto;
  max-width: min(13rem, 100%);
}

.step-n {
  font-family: var(--type);
  font-size: 0.78rem;
  color: var(--pink);
  display: block;
  margin: 0.65rem 0 0.15rem;
}

.step-t {
  font-size: 0.87rem;
  line-height: 1.45;
  color: var(--ink-soft);
  display: block;
}

.after-steps {
  margin-top: 2.5rem;
  font-size: 0.93rem;
  text-align: center;
}

/* ---------- the app itself ---------- */

/* The one dark thing on the page: paper, then the screen, then paper again.
   Fixed near-black rather than a token, so it reads as a recessed panel on
   the light ground and on the dark one alike. */
.band {
  margin-top: 5rem;
  padding: 3rem 2rem 2.5rem;
  border-radius: 20px;
  background: #0d0b0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.band h2 {
  color: #f4f1ee;
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

/* Every paragraph in the panel, however deeply nested — not just the direct
   children. The band's ground is fixed near-black in BOTH themes, so its text
   cannot come from the theme tokens: on the light theme those are dark ink,
   and dark ink on near-black is exactly what this rule exists to prevent. A
   paragraph wrapped in .narrow used to miss out and come out unreadable. */
.band p {
  color: rgba(244, 241, 238, 0.62);
}

/* The lead-in line under the heading sits a touch smaller than prose that
   follows it further down the panel. */
.band > p {
  font-size: 0.93rem;
}

/* Prose in a panel keeps its reading measure but stays flush with the heading.
   Centred, the heading and the text disagree about where the left edge is,
   which reads as a mistake rather than as a choice. */
.band .narrow {
  margin-left: 0;
}

/* Prose at its measure leaves room in a wide panel; a figure takes it. */
.band-split {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
}

.band-split .narrow {
  flex: 1 1 auto;
  min-width: 0;
}

.band-figure {
  flex: 0 0 auto;
  width: 11rem;
  margin: 0;
}

.band-figure img {
  width: 100%;
  height: auto;
}

/* figcaption takes its colour from a theme token, which the fixed near-black
   panel cannot use — the same trap the paragraphs fell into. */
.band figcaption {
  color: rgba(244, 241, 238, 0.5);
  margin-top: 0.75rem;
}

@media (max-width: 46rem) {
  /* Below this the prose is no longer at its measure, so there is no spare
     room beside it: the figure goes under the text rather than squeezing it. */
  .band-split {
    display: block;
  }

  .band-figure {
    width: 9rem;
    margin: 2.5rem auto 0;
  }
}

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem 1.75rem;
  margin-top: 2rem;
}

.shot {
  min-width: 0;
  text-align: center;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 44px -22px rgba(0, 0, 0, 0.9);
}

.shot span {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--type);
  font-size: 0.76rem;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: rgba(244, 241, 238, 0.55);
}

/* ---------- feature columns ---------- */

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 2rem;
}

.cols > * {
  min-width: 0;
}

.cols ul {
  font-size: 0.93rem;
}

/* ---------- formats ---------- */

.formats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.25rem;
}

.card {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
}

.card p {
  font-size: 0.92rem;
  margin: 0;
}

.card .meta {
  font-family: var(--type);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  display: block;
  margin-bottom: 0.55rem;
}

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

.cta-hero {
  margin-top: 2.5rem;
}

.cta {
  text-align: center;
  padding-top: 4.5rem;
}

.pill {
  display: inline-block;
  background: var(--ink);
  color: var(--ground);
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

a.pill:hover {
  background: var(--pink);
  color: #fff;
}

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

footer {
  margin-top: 5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

footer p {
  color: var(--muted);
  margin: 0.35rem 0;
}

.heart {
  color: var(--heart);
  font-style: normal;
}

footer .sep {
  padding: 0 0.5em;
  color: var(--rule);
}

/* ---------- legal pages ---------- */

.legal {
  max-width: var(--measure);
  margin: 0 auto;
  padding-top: 4rem;
}

.legal h1 {
  font-size: 1.9rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

.legal .subtitle {
  font-family: var(--type);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 2.5rem;
}

.legal section {
  padding-top: 2.4rem;
}

.legal .claim {
  font-size: 1.1rem;
  color: var(--ink);
}
