:root {
  --cream: #fdf8f3;
  --paper: #ffffff;
  --ink: #2e2a28;
  --muted: #6f665e;
  --line: #e5dacf;
  --rose: #b85c6e;
  --rose-dark: #9e4a5c;
  --sage: #5f7161;
  --sage-dark: #4c5c4e;
  --sand: #efe7dd;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.6;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
h1, h2, h3 { font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-weight: 600; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(32px, 5vw, 46px); margin: 6px 0 10px; }
h2 { font-size: 27px; margin: 34px 0 8px; }
h3 { font-size: 20px; margin: 24px 0 6px; }
p { margin: 8px 0; }
a { color: var(--rose-dark); }
a:hover { text-decoration-thickness: 2px; }
.eyebrow { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 26px 0 0; font-weight: 600; }
.lede { font-size: 19px; color: #4a443f; max-width: 720px; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { font-family: "Playfair Display", Georgia, serif; font-size: 24px; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 9px; font-weight: 600; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--rose); color: #fff; font-size: 19px; }
.site-header nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-header nav a { color: var(--ink); text-decoration: none; padding: 7px 11px; border-radius: 999px; font-size: 15px; font-weight: 500; }
.site-header nav a:hover, .site-header nav a.current { background: var(--sand); }
main { padding-bottom: 44px; }
.site-footer { background: var(--ink); color: #e8e0d8; margin-top: 20px; padding: 34px 0 26px; }
.site-footer a { color: #f3cdd4; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.footer-brand { font-family: "Playfair Display", Georgia, serif; font-size: 22px; color: #fff; margin: 0 0 4px; }
.site-footer nav { display: grid; gap: 6px; align-content: start; }
.footer-note { font-size: 13.5px; color: #c9bfb6; margin-top: 26px; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }

/* Cards / grids */
.grid { display: grid; gap: 18px; margin: 22px 0; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .grid.two, .grid.three { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h2, .card h3 { margin-top: 0; }
.card p { color: #4a443f; }
.btn { display: inline-block; background: var(--rose); color: #fff; text-decoration: none; font-weight: 600; padding: 11px 18px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; }
.btn:hover { background: var(--rose-dark); color: #fff; }
.btn.secondary { background: var(--sand); color: var(--ink); }
.btn.sage { background: var(--sage); color: #fff; }
.btn.sage:hover { background: var(--sage-dark); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.callout { background: #fff6f0; border: 1px solid #ecd9cf; border-radius: var(--radius); padding: 16px 18px; margin: 20px 0; }
.callout p { margin: 4px 0; }
ul.tight li, ol.tight li { margin-bottom: 6px; }
.small { font-size: 14.5px; color: var(--muted); }
.kicker { display: inline-block; background: var(--ink); color: #fff; border-radius: 999px; padding: 3px 11px; font-size: 12px; letter-spacing: .05em; font-weight: 600; }

/* Generator layout */
.generator { display: grid; grid-template-columns: 330px 1fr; gap: 20px; align-items: start; margin-top: 20px; }
@media (max-width: 860px) { .generator { grid-template-columns: 1fr; } }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 76px; }
@media (max-width: 860px) { .panel { position: static; } }
.panel label { display: block; font-size: 13.5px; font-weight: 600; margin: 14px 0 5px; }
.panel label:first-child { margin-top: 0; }
.panel input[type="text"], .panel input[type="number"], .panel select, .panel textarea {
  width: 100%; padding: 9px 10px; border: 1px solid #cfc4b8; border-radius: 8px; font: inherit; background: #fff; color: var(--ink);
}
.panel textarea { min-height: 74px; resize: vertical; }
.panel .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; font-size: 14.5px; font-weight: 400; }
.check input { width: auto; margin-top: 4px; }
.panel button { width: 100%; margin-top: 10px; padding: 11px 12px; border: 0; border-radius: 9px; font: inherit; font-weight: 600; cursor: pointer; }
.panel .primary { background: var(--sage); color: #fff; }
.panel .secondary { background: var(--sand); color: var(--ink); }
.status { min-height: 20px; margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.preview-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.preview-wrap h2 { margin: 0 0 4px; font-size: 21px; }
.preview-wrap > p { margin: 0 0 12px; color: var(--muted); font-size: 14.5px; }
.sheet-holder { background: #d9d2c9; border-radius: 8px; padding: 12px; overflow: auto; }
.sheet-holder svg { display: block; margin: 0 auto; width: 100%; max-width: 612px; height: auto; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.18); }
.notes { font-size: 14px; line-height: 1.55; color: var(--muted); margin-top: 16px; }
.notes li { margin-bottom: 6px; }
.design-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 4px; }
.design-thumbs button { border: 2px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 6px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink); }
.design-thumbs button[aria-pressed="true"] { border-color: var(--rose); background: #fff6f0; font-weight: 600; }

/* Tools */
.prompt-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin: 20px 0; }
.prompt-box blockquote { font-family: "Playfair Display", Georgia, serif; font-size: 26px; line-height: 1.35; margin: 0 0 8px; }
.quiz-option { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: inherit; margin: 8px 0; cursor: pointer; color: var(--ink); }
.quiz-option:hover { border-color: var(--rose); }
.result-box { background: #fff6f0; border: 1px solid #ecd9cf; border-radius: var(--radius); padding: 20px; margin-top: 16px; }
table { border-collapse: collapse; width: 100%; margin: 14px 0; background: #fff; }
th, td { border: 1px solid var(--line); padding: 9px 11px; text-align: left; font-size: 15.5px; }
th { background: var(--sand); }

/* Print: only the sheet */
@media print {
  .site-header, .site-footer, .panel, .eyebrow, .preview-wrap h2, .preview-wrap > p, .notes, .no-print { display: none !important; }
  body { background: #fff; }
  main { padding: 0; }
  .wrap { max-width: none; padding: 0; }
  .generator { display: block; }
  .preview-wrap { border: 0; padding: 0; }
  .sheet-holder { background: #fff; padding: 0; }
  .sheet-holder svg { max-width: none; width: 100%; box-shadow: none; }
  @page { size: auto; margin: 0; }
}
