/* ==========================================================================
   WorksheetGrove — paper-warm static site
   Pure CSS. No build step, no framework, no external runtime.
   Sections: tokens · base · header · buttons · hero · sections · tool UI ·
   sheet · letter pack · FAQ · footer · prose · 404 · responsive · print
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --paper: #fbf8f1;
  --paper-deep: #f3eee2;
  --paper-card: #fffdf8;
  --ink: #22302b;
  --ink-soft: #52605a;
  --muted: #7d877f;
  --faint: #a2aaa3;
  --line: #e4decf;
  --line-strong: #cfc7b5;
  --green: #2f6b4f;
  --green-deep: #24543e;
  --green-soft: #eaf2ec;
  --green-line: #cfe0d4;
  --amber: #b9762c;
  --amber-soft: #fbf2e4;
  --white: #ffffff;

  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", "Songti SC", serif;
  --font-cursive: "Cedarville Cursive", "Segoe Script", "Bradley Hand", cursive;
  --font-print: "Patrick Hand", "Segoe Print", "Comic Sans MS", Arial, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 1px 2px rgba(34, 48, 43, .04), 0 18px 42px -30px rgba(34, 48, 43, .38);
  --shadow-paper: 0 2px 6px rgba(34, 48, 43, .08), 0 24px 50px -24px rgba(34, 48, 43, .42);
  --max: 1120px;
}

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

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

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.62;
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 520px at 88% -8%, rgba(47, 107, 79, .09), transparent 62%),
    radial-gradient(circle at 1px 1px, rgba(34, 48, 43, .045) 1px, transparent 0);
  background-size: auto, 24px 24px;
  background-attachment: fixed, scroll;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin-top: 0; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.12;
  color: var(--ink);
}
p { margin-bottom: 1em; }
::selection { background: #d9e8de; color: #173026; }

:focus-visible {
  outline: 3px solid rgba(47, 107, 79, .42);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.muted { color: var(--muted); }
.small { font-size: 13.5px; }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 248, 241, .9);
  border-bottom: 1px solid rgba(228, 222, 207, .85);
}
@supports (backdrop-filter: blur(10px)) {
  .site-head { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 9px;
  box-shadow: 0 2px 5px rgba(34, 48, 43, .2);
}
.brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -.02em;
}
.brand-name em {
  font-style: italic;
  color: var(--green);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.site-nav a {
  display: inline-block;
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background .16s ease, color .16s ease;
}
.site-nav a:hover { color: var(--green-deep); background: var(--green-soft); }
.site-nav a[aria-current="page"] { color: var(--green-deep); background: var(--green-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 21px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--green);
  border-color: var(--green);
  color: #fffdf6;
  box-shadow: 0 10px 20px -12px rgba(47, 107, 79, .8);
}
.btn-primary:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fffdf6; }
.btn-ghost {
  background: rgba(255, 253, 248, .7);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green-deep); background: var(--white); }
.btn-small { min-height: 38px; padding: 8px 15px; font-size: 13.5px; }
.btn-tiny {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.btn-tiny:hover { border-color: var(--green); color: var(--green-deep); background: var(--green-soft); }
.btn .ico { width: 17px; height: 17px; flex: 0 0 auto; }

/* ---------- kicker + headings ---------- */
.kicker {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}
.kicker .sep { opacity: .5; padding: 0 6px; }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  align-items: center;
  gap: 54px;
  padding-top: 62px;
  padding-bottom: 66px;
}
.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 5vw, 61px);
  line-height: 1.02;
  letter-spacing: -.026em;
}
.hero-copy h1 .accent {
  display: inline;
  color: var(--green);
  font-style: italic;
}
.lead {
  max-width: 58ch;
  margin-bottom: 26px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust li::before {
  content: "";
  width: 15px; height: 15px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l2.8 2.8 6.2-6.4' fill='none' stroke='%232f6b4f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}

.hero-art {
  position: relative;
  width: 100%;
  max-width: 430px;
  justify-self: end;
  transform: rotate(-1.4deg);
  transition: transform .3s ease;
}
.hero-art:hover { transform: rotate(0deg); }
.hero-art::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  z-index: 3;
  width: 116px;
  height: 30px;
  transform: translateX(-50%) rotate(2.4deg);
  background: rgba(214, 196, 150, .58);
  border-left: 1px dashed rgba(137, 116, 72, .34);
  border-right: 1px dashed rgba(137, 116, 72, .34);
  box-shadow: 0 1px 2px rgba(80, 64, 32, .08);
}
.hero-sheet {
  width: 100%;
  aspect-ratio: 816 / 1056;
  background: #fff;
  border: 1px solid #e9e3d6;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-paper);
}
.hero-sheet svg { display: block; width: 100%; height: 100%; }
.hero-caption {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

/* ---------- sections ---------- */
.section { padding-top: 58px; padding-bottom: 58px; }
.section-tight { padding-top: 34px; padding-bottom: 34px; }
.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(29px, 3.4vw, 40px);
}
.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16.5px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.tool-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 25px 24px 22px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--green-line);
  box-shadow: 0 24px 48px -30px rgba(34, 48, 43, .5);
}
.tool-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 17px;
  border-radius: 13px;
  background: var(--green-soft);
  color: var(--green);
}
.tool-icon svg { width: 24px; height: 24px; }
.tool-card h3 {
  margin: 0 0 8px;
  font-size: 23px;
  line-height: 1.15;
}
.tool-card p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.58;
}
.card-link {
  margin-top: auto;
  color: var(--green-deep);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
}
.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.card-link span { transition: transform .16s ease; display: inline-block; }
.tool-card:hover .card-link span { transform: translateX(4px); }

.band {
  background: linear-gradient(180deg, #f4efe3, #f7f2e7);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.step { padding: 4px 0; }
.step-num {
  display: block;
  margin-bottom: 9px;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  opacity: .8;
}
.step h3 { margin: 0 0 7px; font-size: 19px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.audience-card {
  padding: 24px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.audience-card .label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.audience-card h3 { margin: 0 0 7px; font-size: 20px; }
.audience-card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

.callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 30px 32px;
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  border-radius: var(--radius);
}
.callout .leaf {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  color: var(--green);
}
.callout h2 { margin: 0 0 8px; font-size: 27px; }
.callout p { margin: 0 0 10px; color: var(--ink-soft); font-size: 15px; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- page intro / breadcrumbs ---------- */
.page-intro { padding-top: 44px; padding-bottom: 8px; }
.page-intro h1 {
  margin: 0 0 14px;
  font-size: clamp(35px, 4.6vw, 52px);
  letter-spacing: -.022em;
}
.page-intro .lead { margin-bottom: 0; font-size: 17.5px; }
.page-intro .intro-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}
.page-intro .intro-meta li::before {
  content: "·";
  margin-right: 8px;
  color: var(--line-strong);
}
.page-intro .intro-meta li:first-child::before { content: none; margin: 0; }
.crumbs {
  padding-top: 20px;
  color: var(--muted);
  font-size: 12.5px;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green); }

/* ---------- tool layout ---------- */
.tool-section { padding-top: 26px; padding-bottom: 30px; }
.tool-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.control-card {
  position: sticky;
  top: 88px;
  padding: 22px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.control-card + .control-card { margin-top: 16px; }
.control-heading {
  margin: 0 0 16px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
}
.control-group { margin-bottom: 19px; }
.control-group:last-of-type { margin-bottom: 0; }
.control-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}
.field input,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  font-size: 16.5px;
  line-height: 1.3;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 107, 79, .14);
}
.field .hint { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }

.seg {
  display: flex;
  gap: 3px;
  padding: 4px;
  background: var(--paper-deep);
  border-radius: 11px;
}
.seg-btn {
  flex: 1 1 0;
  min-height: 36px;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}
.seg-btn:hover { color: var(--green-deep); }
.seg-btn.is-active {
  background: #fff;
  color: var(--green-deep);
  box-shadow: 0 1px 3px rgba(34, 48, 43, .14);
}

.style-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.style-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 10px 6px 9px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.style-chip:hover { border-color: var(--line-strong); color: var(--ink); }
.style-chip.is-active {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green-deep);
}
.dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f7f5ef;
}
.dot-dashed { border: 2px dashed #94a09a; }
.dot-faded { background: #d3dad4; }
.dot-hollow { border: 2px solid #94a09a; }

.print-btn {
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  font-size: 15.5px;
}
.print-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.control-divider {
  height: 1px;
  margin: 18px 0;
  background: var(--line);
  border: 0;
}
.tool-tip {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}
.tool-tip svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 2px; color: var(--amber); }

.preview-card {
  overflow: hidden;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: #fffdf8;
}
.preview-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.preview-title .live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 107, 79, .13);
}
.preview-meta { color: var(--muted); font-size: 12px; white-space: nowrap; }
.sheet-wrap {
  padding: 22px;
  background:
    linear-gradient(90deg, rgba(34, 48, 43, .035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(34, 48, 43, .035) 1px, transparent 1px),
    #f5f0e5;
  background-size: 24px 24px, 24px 24px, auto;
}
.sheet {
  width: 100%;
  max-width: 610px;
  margin: 0 auto;
  aspect-ratio: 816 / 1056;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e9e3d6;
  border-radius: 7px;
  box-shadow: var(--shadow-paper);
}
.sheet svg { display: block; width: 100%; height: 100%; }
.sheet-loading {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 24px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* ---------- pack grid ---------- */
.pack-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 14px 18px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}
.pack-style {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
.pack-style .control-label { margin: 0 4px 0 0; }
.pack-style .style-row {
  display: flex;
  gap: 7px;
}
.pack-style .style-chip {
  flex-direction: row;
  gap: 7px;
  padding: 7px 11px;
  font-size: 12.5px;
}
.pack-style .dot { width: 16px; height: 16px; }
.pack-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12.5px;
}
.letter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 22px;
}
.letter-card {
  padding: 11px 11px 8px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(34, 48, 43, .04);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.letter-card:hover {
  transform: translateY(-2px);
  border-color: var(--green-line);
  box-shadow: 0 16px 30px -24px rgba(34, 48, 43, .5);
}
.letter-card-sheet {
  aspect-ratio: 816 / 1056;
  overflow: hidden;
  background: #fff;
  border: 1px solid #eee8db;
  border-radius: 5px;
}
.letter-card-sheet .sheet {
  max-width: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.letter-card-sheet svg { display: block; width: 100%; height: 100%; }
.letter-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 2px 2px;
}
.letter-name {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink);
}
.letter-name span { color: var(--muted); font-family: var(--font-ui); font-size: 12px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  position: relative;
  padding: 17px 36px 17px 0;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.45;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  color: var(--green);
  font-family: var(--font-ui);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p {
  margin: 0 0 18px;
  padding-right: 26px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.62;
}

/* ---------- related ---------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.related-card {
  display: block;
  padding: 22px 22px 20px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .16s ease, transform .16s ease;
}
.related-card:hover { border-color: var(--green-line); transform: translateY(-2px); }
.related-card .kicker { margin-bottom: 8px; font-size: 10.5px; }
.related-card h3 { margin: 0 0 6px; font-size: 20px; color: var(--ink); }
.related-card p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.55; }

/* ---------- footer ---------- */
.site-foot {
  margin-top: 30px;
  padding: 48px 0 30px;
  background: #22302b;
  color: #d8e1db;
}
.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 34px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(216, 225, 219, .16);
}
.foot-brand .brand-name { color: #f3efe4; font-size: 23px; }
.foot-brand .brand-name em { color: #a8cdb3; }
.foot-brand p {
  max-width: 38ch;
  margin: 12px 0 0;
  color: #a9b7ae;
  font-size: 13.5px;
  line-height: 1.6;
}
.foot-col h4 {
  margin: 2px 0 11px;
  color: #f3efe4;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.foot-col ul { margin: 0; padding: 0; list-style: none; }
.foot-col li { margin-bottom: 7px; }
.foot-col a { color: #bcc9c0; font-size: 13.5px; text-decoration: none; }
.foot-col a:hover { color: #fff; text-decoration: underline; }
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 22px;
  color: #8fa096;
  font-size: 12px;
  line-height: 1.5;
}
.foot-bottom a { color: #a9b7ae; text-decoration: none; }
.foot-bottom a:hover { color: #fff; }

/* ---------- prose pages ---------- */
.prose { max-width: 740px; }
.prose h1 { margin: 0 0 18px; font-size: clamp(34px, 4.2vw, 48px); }
.prose h2 { margin: 36px 0 10px; font-size: 25px; }
.prose h2:first-of-type { margin-top: 26px; }
.prose p, .prose li { color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 7px; }
.prose .lead { font-size: 17.5px; color: var(--ink-soft); }
.prose .contact-box {
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  border-radius: 14px;
  font-size: 15px;
}
.prose .contact-box p { margin: 0; color: var(--ink-soft); }
.prose code {
  padding: 1px 5px;
  background: #f2eee4;
  border-radius: 5px;
  font-size: .92em;
}

/* ---------- 404 ---------- */
.not-found {
  max-width: 560px;
  margin: 0 auto;
  padding: 90px 24px 100px;
  text-align: center;
}
.not-found .code {
  margin: 0 0 8px;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 92px;
  line-height: 1;
  opacity: .9;
}
.not-found h1 { margin: 0 0 12px; font-size: 32px; }
.not-found p { margin: 0 0 24px; color: var(--ink-soft); }

/* ---------- noscript ---------- */
.noscript {
  margin: 0 0 20px;
  padding: 14px 16px;
  background: var(--amber-soft);
  border: 1px solid #ecd7b6;
  border-radius: 12px;
  color: #7a5423;
  font-size: 13.5px;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-top: 44px;
    padding-bottom: 52px;
  }
  .hero-art { justify-self: center; max-width: 400px; }
  .tool-cards, .steps, .audience-grid { grid-template-columns: 1fr; gap: 16px; }
  .steps { gap: 22px; }
  .tool-layout { grid-template-columns: 1fr; }
  .control-card { position: static; }
  .preview-meta { display: none; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .wrap { padding-left: 18px; padding-right: 18px; }
  .head-inner {
    flex-wrap: wrap;
    gap: 6px 14px;
    padding-top: 9px;
    padding-bottom: 9px;
  }
  .brand-name { font-size: 20px; }
  .site-nav {
    width: 100%;
    flex-wrap: wrap;
    padding-bottom: 2px;
  }
  .site-nav a { flex: 0 0 auto; padding: 7px 10px; font-size: 13px; }
  .hero { padding-top: 34px; padding-bottom: 44px; }
  .hero-actions .btn { width: 100%; }
  .lead { font-size: 16.5px; }
  .section { padding-top: 42px; padding-bottom: 42px; }
  .sheet-wrap { padding: 12px; }
  .pack-toolbar { align-items: flex-start; flex-direction: column; }
  .pack-toolbar .btn { width: 100%; }
  .letter-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 13px; }
  .letter-card { padding: 7px 7px 5px; border-radius: 10px; }
  .letter-card-meta { padding: 6px 1px 1px; }
  .letter-name { font-size: 14px; }
  .letter-name span { display: none; }
  .btn-tiny { min-height: 26px; padding: 4px 7px; font-size: 10.5px; }
  .related-grid { grid-template-columns: 1fr; }
  .faq-item summary { font-size: 15px; }
  .callout { grid-template-columns: 1fr; padding: 24px; }
  .foot-top { grid-template-columns: 1fr; gap: 26px; }
  .page-intro { padding-top: 28px; }
  .tool-section { padding-top: 16px; }
  .control-card { padding: 18px; }
}

@media (max-width: 430px) {
  .hero-copy h1 { font-size: 36px; }
  .letter-grid { grid-template-columns: 1fr 1fr; }
  .style-row { grid-template-columns: 1fr 1fr 1fr; }
  .style-chip { font-size: 11.5px; padding: 8px 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .hero-art { transform: none; }
}

/* ---------- print ---------- */
@media print {
  @page { size: 8.5in 11in; margin: 0; }

  html, body {
    background: #fff !important;
    background-image: none !important;
    color: #000;
  }

  .site-head,
  .site-foot,
  .no-print,
  .page-intro,
  .crumbs,
  .hero,
  .tool-intro,
  .control-card,
  .preview-head,
  .pack-toolbar,
  .pack-note,
  .letter-card-meta,
  .section-head,
  .faq,
  .related,
  .callout,
  .noscript,
  .hero-caption { display: none !important; }

  main { margin: 0 !important; padding: 0 !important; }
  .wrap { max-width: none !important; padding: 0 !important; }
  .section, .tool-section, .pack-section { padding: 0 !important; margin: 0 !important; }
  .tool-layout { display: block !important; }

  .preview-card {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
  }
  .sheet-wrap { padding: 0 !important; background: #fff !important; }

  .sheet {
    width: 8.5in !important;
    height: 11in !important;
    max-width: none !important;
    aspect-ratio: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
  }
  .sheet svg { width: 100% !important; height: 100% !important; display: block !important; }

  .letter-grid {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .letter-card {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    break-after: page;
    page-break-after: always;
  }
  .letter-card:last-child {
    break-after: auto;
    page-break-after: auto;
  }
  .letter-card-sheet {
    width: 8.5in !important;
    height: 11in !important;
    aspect-ratio: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
  }
  .letter-card-sheet .sheet {
    width: 8.5in !important;
    height: 11in !important;
  }

  body.print-one .letter-card:not(.printing) { display: none !important; }
  body.print-one .letter-card.printing {
    break-after: auto;
    page-break-after: auto;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}
