:root {
  --ink: #17171a;
  --ink-2: #45454d;
  --muted: #5d5d66;
  --paper: #fffdf8;
  --paper-2: #f6f2e8;
  --rule: #e2dccd;
  --accent: #d6452b;
  --accent-ink: #ffffff;
  --accent-dark: #a9311c;
  --radius: 14px;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body.tattoo {
  --paper: #fbfaf8;
  --paper-2: #efece7;
  --rule: #dcd7cf;
  --accent: #1d1d22;
  --accent-ink: #ffffff;
  --accent-dark: #000000;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}

a { color: var(--ink); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 720px) { .wrap { padding-left: 32px; padding-right: 32px; } }

/* Header */
.top { border-bottom: 1px solid var(--rule); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.wordmark { white-space: nowrap; font-weight: 800; letter-spacing: -0.01em; text-decoration: none; font-size: 18px; display: inline-flex; align-items: center; gap: 8px; }
.wordmark svg { width: 22px; height: 22px; }
.nav { display: flex; gap: 14px; font-size: 14px; white-space: nowrap; }
@media (min-width: 560px) { .nav { gap: 18px; font-size: 15px; } }
.nav a { text-decoration: none; color: var(--ink-2); display: inline-block; padding: 12px 2px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { padding-top: 32px; padding-bottom: 32px; display: grid; gap: 28px; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.05fr 0.95fr; align-items: center; padding-top: 64px; padding-bottom: 48px; } }
.kicker { font-size: 14px; font-weight: 600; color: var(--accent-dark); letter-spacing: 0.02em; margin-bottom: 12px; }
body.tattoo .kicker { color: var(--muted); }
h1 { font-size: 38px; line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; }
@media (min-width: 720px) { h1 { font-size: 54px; } }
.lede { margin-top: 16px; font-size: 19px; color: var(--ink-2); max-width: 34em; }
.cta-row { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 18px; text-decoration: none; border: 0; cursor: pointer;
}
.btn:hover { background: var(--accent-dark); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.fine { font-size: 14px; color: var(--muted); }

.hero-art { position: relative; }
.hero-art .sheet {
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 10px; box-shadow: 0 1px 0 var(--rule), 0 18px 40px -24px rgba(0,0,0,0.35);
}
.hero-art .sheet img { border-radius: 8px; }
.hero-art .sheet.tilt { transform: rotate(-2deg); max-width: min(300px, 80%); margin: 0 auto; }
@media (min-width: 860px) { .hero-art .sheet.tilt { max-width: 320px; } }
.hero-art .caption { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }
.hero-art .caption q { color: var(--ink-2); }

/* Sections */
section { padding: 40px 0; border-top: 1px solid var(--rule); }
h2 { font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
@media (min-width: 720px) { h2 { font-size: 34px; } }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 22px; }

/* Example gallery */
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 860px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { margin: 0; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 8px; display: flex; flex-direction: column; }
.card img { border-radius: 8px; width: 100%; height: auto; }
.card figcaption { padding: 10px 4px 4px; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.card figcaption b { display: block; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; margin-bottom: 2px; }

/* Before and after */
.change { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; }
.change .card figcaption { font-size: 14px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { counter-increment: s; background: var(--paper-2); border-radius: var(--radius); padding: 18px 18px 20px; }
.steps li::before {
  content: counter(s); display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink);
  font-weight: 800; margin-bottom: 10px;
}
.steps h3 { font-size: 19px; margin-bottom: 4px; }
.steps p { color: var(--ink-2); font-size: 16px; }

/* Ideas list */
.ideas { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.ideas li { border: 1.5px dashed var(--ink-2); border-radius: 999px; padding: 7px 14px; font-size: 15px; background: #fff; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; padding: 14px 16px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin-top: 8px; color: var(--ink-2); }

/* Make your own */
.own { background: var(--ink); color: #fff; border-radius: 20px; padding: 28px 22px; display: grid; gap: 14px; }
@media (min-width: 720px) { .own { padding: 40px; } }
.own h2 { color: #fff; }
.own p { color: #d9d9de; max-width: 40em; }
.own .btn { background: #fff; color: var(--ink); text-align: center; line-height: 1.2; padding: 12px 24px; }
.own .btn:hover { background: #ececec; color: var(--ink); }

/* Done page */
.done { padding-top: 40px; padding-bottom: 40px; max-width: 640px; display: grid; gap: 18px; }

/* Plain pages */
.page { padding-top: 40px; padding-bottom: 64px; max-width: 760px; }
.page h1 { font-size: 34px; margin-bottom: 16px; }
.page h2 { font-size: 22px; margin: 28px 0 8px; }
.page p, .page li { color: var(--ink-2); }
.page p + p { margin-top: 10px; }

/* Footer */
.foot { border-top: 1px solid var(--rule); padding: 32px 0 96px; font-size: 14px; color: var(--muted); }
@media (min-width: 860px) { .foot { padding-bottom: 40px; } }
.foot-row { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; margin-top: 24px; }
.foot a { color: var(--muted); }
.foot-cols { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.foot-cols h2 { font-size: 14px; letter-spacing: 0; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { text-decoration: underline; }

/* Embedded QuestionPunk survey */
.embed-box { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.embed-box iframe { display: block; }
.embed-fallback { margin-top: 12px; }

/* Tool cards (home, related, done) */
.tools { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 860px) { .tools { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.tool { display: grid; align-content: start; gap: 6px; text-decoration: none; background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 8px 8px 14px; }
.tool:hover { border-color: var(--ink); }
.tool .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 6px; }
.tool .pair img { border-radius: 9px; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; width: 100%; height: auto; background: var(--paper-2); }
.tool .tag { font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 4px; }
.tool h3 { font-size: 17px; line-height: 1.2; padding: 0 4px; }
.tool p { font-size: 14px; color: var(--ink-2); padding: 0 4px; line-height: 1.4; }
@media (min-width: 560px) { .tool h3 { font-size: 20px; } .tool p { font-size: 15px; } }
.tools.small .tool p { display: none; }
.season { background: var(--paper-2); }

/* Home hero */
.home-hero { padding-bottom: 24px; }
.hero-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.hero-strip img { border-radius: 10px; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; width: 100%; height: auto; border: 1px solid var(--rule); background: #fff; }
@media (min-width: 860px) { .home-hero { grid-template-columns: 1fr 1fr; } .hero-strip { gap: 10px; } }

/* Before and after hero */
.ba { display: grid; grid-template-columns: 1fr auto 1.25fr; align-items: center; gap: 8px; max-width: 520px; margin: 0 auto; }
.ba figure { margin: 0; }
.ba figure img { border-radius: 10px; width: 100%; height: auto; border: 1px solid var(--rule); }
.ba figcaption { font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; margin-top: 6px; }
.ba .ba-after { background: #fff; padding: 6px; border-radius: var(--radius); box-shadow: 0 18px 40px -24px rgba(0,0,0,0.35); }
.ba .ba-arrow { font-size: 22px; color: var(--muted); }
.ba .caption { grid-column: 1 / -1; }
.ba.wide { grid-template-columns: 1fr; max-width: 560px; }
.ba.wide .ba-arrow { transform: rotate(90deg); justify-self: center; line-height: 1; }
.ba.wide .ba-before { max-width: 60%; justify-self: center; }

/* Wide galleries (landscape pictures) */
.gallery.wide { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .gallery.wide { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Printables */
.print-link { position: relative; display: block; }
.print-tag { position: absolute; right: 8px; bottom: 8px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }

/* What you get / limits */
.two { display: grid; gap: 28px; }
@media (min-width: 860px) { .two { grid-template-columns: 1fr 1fr; gap: 48px; } }
.two h2 { margin-bottom: 14px; }
.ticks, .limits { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li, .limits li { padding-left: 28px; position: relative; color: var(--ink-2); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 14px; height: 8px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }
.limits li::before { content: ''; position: absolute; left: 3px; top: 11px; width: 13px; height: 3px; background: var(--muted); border-radius: 2px; }

/* Card maker hand-off */
.out-box { border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; padding: 20px; max-width: 760px; }
.out-box p { color: var(--ink-2); }

/* Gallery page */
.page-head { padding-top: 36px; padding-bottom: 28px; }
.page-head h1 { margin-bottom: 4px; }
.section-head h2 a { text-decoration: none; }
.section-head > a.fine { display: inline-block; padding: 12px 0; }

/* Sticky start button on phones */
.sticky-cta { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; display: none; text-align: center; padding: 15px 20px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.45); }
@media (max-width: 859px) { .sticky-cta.on { display: block; } }
