/* Cutlist marketing site — matches the app's identity:
   paper #f6f1e8, Iowan Old Style serif, layout-fluid blue for marking. */

:root {
  --paper: #f6f1e8;
  --paper-deep: #efe7d8;
  --ink: #262019;
  --ink-soft: #6b6152;
  --ply-face: #ddcba8;
  --ply-edge: #b8965f;
  --blue: #2947b8;
  --blue-soft: #d8ddf2;
  --line: #e0d5c0;
  --max: 68rem;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.legal-page {
  padding: 72px 0 96px;
}

.legal-page article {
  max-width: 760px;
}

.legal-page h1 {
  margin-bottom: 8px;
}

.legal-page h2 {
  margin-top: 36px;
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.legal-page p,
.legal-page li {
  color: var(--ink-soft);
  line-height: 1.7;
}

.legal-page li + li {
  margin-top: 8px;
}

.legal-updated {
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.support-page .support-intro {
  margin: 1rem 0 1.25rem;
  font-size: 1.12rem;
}

.support-page .btn {
  display: inline-block;
  margin-bottom: 0.75rem;
}

body {
  font-family: var(--serif);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

img, svg { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  padding-top: 0.9rem; padding-bottom: 0.9rem;
}
.brand {
  font-size: 1.35rem; font-weight: 700; letter-spacing: 0.01em;
  color: var(--ink); text-decoration: none; margin-right: auto;
}
.brand:hover { text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 0.98rem; }
.site-nav a:hover { color: var(--blue); text-decoration: underline; }

.btn {
  display: inline-block;
  background: var(--ink); color: var(--paper);
  padding: 0.62rem 1.3rem;
  text-decoration: none;
  border-radius: 3px;
  font-size: 1rem;
  border: 1px solid var(--ink);
}
.btn:hover { background: #3a3226; text-decoration: none; }
.btn.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.blue:hover { background: #1f3895; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--paper-deep); }

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

.hero { padding: 4rem 0 3.5rem; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1.1rem;
}
.hero .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
  max-width: 34em;
}
.hero .cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; }
.hero .cta-note {
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* the sheet diagram */
.sheet-figure { margin: 0; }
.sheet-figure figcaption {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
  text-align: center;
}

/* ---------- ticket strip ---------- */

.ticket-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-deep); }
.ticket-strip .wrap {
  display: flex; flex-wrap: wrap; gap: 0.5rem 2.5rem;
  justify-content: center;
  padding-top: 0.8rem; padding-bottom: 0.8rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.ticket-strip span::before { content: "▸ "; color: var(--blue); }

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

section { padding: 3.75rem 0; }
section + section { border-top: 1px solid var(--line); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.7rem;
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
}
.section-intro { color: var(--ink-soft); max-width: 44em; margin-bottom: 2.25rem; }

/* steps — a real sequence, so numbers carry meaning */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  color: var(--blue);
  font-size: 0.85rem;
  display: block;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.4rem;
  margin-bottom: 0.75rem;
}
.steps h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.steps p { color: var(--ink-soft); font-size: 0.98rem; }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature {
  border: 1px solid var(--line);
  background: #fbf8f1;
  border-radius: 4px;
  padding: 1.4rem 1.4rem 1.5rem;
}
.feature h3 { font-size: 1.1rem; margin-bottom: 0.45rem; }
.feature p { color: var(--ink-soft); font-size: 0.95rem; }
.feature .dim {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--blue);
  display: block;
  margin-bottom: 0.6rem;
}

/* guides */
.guide-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.guide-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.4rem;
  background: #fbf8f1;
  text-decoration: none;
  color: var(--ink);
  display: block;
}
.guide-card:hover { border-color: var(--blue); text-decoration: none; }
.guide-card h3 { font-size: 1.1rem; margin-bottom: 0.45rem; color: var(--blue); }
.guide-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 0.7rem; color: var(--ink-soft); max-width: 46em; }

/* closing CTA */
.closing { text-align: center; background: var(--paper-deep); }
.closing h2 { margin-bottom: 0.6rem; }
.closing p { color: var(--ink-soft); margin-bottom: 1.6rem; }

/* ---------- article pages ---------- */

.article { padding: 3.5rem 0 4rem; }
.article .wrap { max-width: 46rem; }
.breadcrumbs {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}
.breadcrumbs a { color: var(--ink-soft); }
.article h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 0.9rem;
}
.article .byline {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 2.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.article h2 { font-size: 1.45rem; margin: 2.25rem 0 0.75rem; }
.article h3 { font-size: 1.15rem; margin: 1.75rem 0 0.5rem; }
.article p { margin-bottom: 1rem; }
.article ul, .article ol { margin: 0 0 1rem 1.4rem; }
.article li { margin-bottom: 0.4rem; }
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}
.article th, .article td {
  text-align: left;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
}
.article th { background: var(--paper-deep); font-family: var(--mono); font-size: 0.8rem; }
.article td:nth-child(n+2) { font-family: var(--mono); font-size: 0.88rem; }
.article .callout {
  border-left: 3px solid var(--blue);
  background: var(--blue-soft);
  padding: 0.9rem 1.1rem;
  border-radius: 0 4px 4px 0;
  margin: 1.25rem 0;
}
.article .callout p:last-child { margin-bottom: 0; }
.article .cta-block {
  margin-top: 2.5rem;
  border: 1px solid var(--line);
  background: var(--paper-deep);
  border-radius: 4px;
  padding: 1.5rem;
  text-align: center;
}
.article .cta-block p { color: var(--ink-soft); margin-bottom: 1rem; }

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

.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 1rem 2.5rem;
  justify-content: space-between; align-items: baseline;
  font-size: 0.92rem; color: var(--ink-soft);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-footer a { color: var(--ink-soft); }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero { padding: 2.5rem 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 2.25rem; }
  .steps, .feature-grid, .guide-list { grid-template-columns: 1fr; }
  section { padding: 2.75rem 0; }
  .site-nav a:not(.btn) { display: none; }
}
