/* 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);
}

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;
}

/* ---------- 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);
}
