/* WhatToSay - calm, readable, no frameworks. System fonts only (nothing to download). */
:root {
  --bg: #fbf8f2;
  --bg-tint: #f3eee3;
  --surface: #fffdf9;
  --text: #26261f;
  --text-muted: #55524a;
  --border: #e2dccd;
  --accent: #2e5645;
  --accent-dark: #213f32;
  --accent-soft: #e6efe9;
  --warm: #f4e9d6;
  --warm-text: #5f4210;
  --warm-border: #e3d2b0;
  --focus: #1b4fd8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(38, 38, 31, 0.05), 0 6px 18px rgba(38, 38, 31, 0.04);
  --measure: 44rem;
  --wide: 66rem;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

img, svg { max-width: 100%; }

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-dark); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 0.75rem; top: -4rem; z-index: 100;
  background: var(--accent-dark); color: #fff; padding: 0.7rem 1rem; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

.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;
}

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header-inner {
  max-width: var(--wide); margin: 0 auto; padding: 0.85rem 1.25rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem;
}
.logo { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--serif); font-size: 1.45rem; font-weight: 700; color: var(--accent-dark); text-decoration: none; letter-spacing: -0.01em; min-height: 44px; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo:hover { color: var(--accent); }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.1rem 0.4rem; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.7rem; border-radius: 999px;
  color: var(--text); text-decoration: none; font-size: 0.97rem; font-weight: 500;
}
.site-nav a:hover { background: var(--bg-tint); }
.site-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-dark); font-weight: 650; }

/* Layout */
.site-main { max-width: var(--wide); margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.article { max-width: var(--measure); margin: 0 auto; }
.article > * { max-width: 100%; }

.crumbs { font-size: 0.92rem; color: var(--text-muted); margin: 0 0 1rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.15rem 0.5rem; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; color: #8a867a; }
.crumbs a { color: var(--text-muted); }
.crumbs [aria-current] { color: var(--text); }

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; letter-spacing: -0.012em; color: var(--text); }
h1 { font-size: clamp(1.9rem, 4.6vw, 2.75rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); margin: 2.6rem 0 0.6rem; }
h3 { font-size: 1.2rem; margin: 1.4rem 0 0.4rem; }
p { margin: 0 0 1rem; }

.lead { font-size: 1.2rem; line-height: 1.55; color: var(--text-muted); margin: 0 0 1rem; }
.byline { font-size: 0.92rem; color: var(--text-muted); margin: 0 0 1.5rem; }
.eyebrow { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--accent); margin: 0 0 0.6rem; }
.section-intro { color: var(--text-muted); margin-top: 0; }

/* Quick-answer block */
.quick {
  background: linear-gradient(180deg, var(--accent-soft), #f3f7f4);
  border: 1px solid #cfe0d6; border-radius: var(--radius); padding: 1.25rem 1.25rem 0.5rem; margin: 1.5rem 0 1.25rem;
}
.quick h2 { margin: 0 0 0.9rem; font-size: 1.35rem; }

/* Message cards: the product */
.msg {
  position: relative; margin: 0 0 0.85rem; padding: 1rem 1.1rem 0.9rem 1.2rem;
  background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--accent);
  border-radius: 10px; box-shadow: var(--shadow);
}
.msg-tag {
  display: inline-block; font-family: var(--sans); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--warm-text); background: var(--warm); border: 1px solid var(--warm-border);
  border-radius: 999px; padding: 0.1rem 0.6rem; margin-bottom: 0.45rem;
}
.msg-text { font-family: var(--serif); font-size: 1.22rem; line-height: 1.5; margin: 0; padding-right: 0; }
.copy-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px;
  margin-top: 0.4rem; padding: 0 1rem; font: inherit; font-size: 0.92rem; font-weight: 600;
  color: var(--accent-dark); background: transparent; border: 1px solid var(--accent); border-radius: 999px; cursor: pointer;
}
.copy-btn:hover { background: var(--accent-soft); }
.copy-btn[data-copied="true"] { background: var(--accent); color: #fff; }

/* Jump menu */
.jump { margin: 1.5rem 0 0; padding: 0; }
.jump summary { cursor: pointer; font-weight: 650; min-height: 44px; display: flex; align-items: center; }
.jump ul { list-style: none; margin: 0.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.jump a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.9rem; border-radius: 999px; font-size: 0.93rem;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none;
}
.jump a:hover { border-color: var(--accent); color: var(--accent-dark); }

/* What not to say */
.dont-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.7rem; }
.dont-list li { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0.8rem 1rem; }
.dont-list strong { display: block; font-family: var(--serif); font-size: 1.08rem; }
.dont-list span { color: var(--text-muted); font-size: 0.98rem; }
.tips li { border-left: 4px solid var(--warm-border); }

.note { background: var(--warm); border: 1px solid var(--warm-border); border-radius: 10px; padding: 0.8rem 1rem; color: #3f2f10; font-size: 0.97rem; }

/* CTA */
.cta-box {
  background: var(--accent-dark); color: #fff; border-radius: var(--radius); padding: 1.4rem 1.4rem 1.2rem; margin: 2.5rem 0 1rem;
}
.cta-box h2 { color: #fff; margin: 0 0 0.5rem; font-size: 1.4rem; }
.cta-box p { color: #e6efe9; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.4rem; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 650; text-decoration: none; border: 2px solid var(--accent); font: inherit; font-weight: 650; cursor: pointer;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.cta-box .btn { background: #fff; color: var(--accent-dark); border-color: #fff; }
.cta-box .btn:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn-secondary { background: transparent; color: var(--accent-dark); }
.btn-secondary:hover { background: var(--accent-soft); color: var(--accent-dark); }

/* Affiliate (secondary) */
.aff { margin-top: 2.5rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.aff h2 { font-size: 1.3rem; }
.disclosure-line { font-size: 0.95rem; color: var(--text-muted); background: var(--bg-tint); border-radius: 10px; padding: 0.7rem 0.9rem; }
.aff-grid { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 1rem; }
.aff-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0.9rem 1rem 1rem; }
.aff-card h3 { margin: 0.4rem 0 0.3rem; font-size: 1.05rem; }
.aff-card p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.aff-card a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.95rem; }
.badge { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--warm-text); background: var(--warm); border: 1px solid var(--warm-border); padding: 0.1rem 0.55rem; border-radius: 999px; }

/* Related */
.related { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.related li { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 0.7rem 1rem; }
.related a { font-weight: 650; }
.related span { color: var(--text-muted); font-size: 0.95rem; display: block; }

.updated-note { font-size: 0.92rem; color: var(--text-muted); margin-top: 2rem; }

/* Home + hubs */
.hero { padding: 1.5rem 0 1rem; display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 52rem) { .hero { grid-template-columns: 1.15fr 0.85fr; padding: 2.5rem 0 1.5rem; } }
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.1rem; }
.hero-card { transform: rotate(1.2deg); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.4rem 1.5rem 1.2rem; box-shadow: 0 10px 30px rgba(38, 38, 31, 0.09); }
.hero-card p.msg-text { font-size: 1.4rem; }
.hero-card .msg-tag { margin-bottom: 0.7rem; }
.hero-card small { display: block; margin-top: 0.8rem; color: var(--text-muted); font-size: 0.88rem; }
@media (prefers-reduced-motion: reduce) { .hero-card { transform: none; } }

.band { margin: 2.5rem 0 0; }
.band h2 { margin-top: 0; }
.card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); margin: 1rem 0 0; }
.card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1rem; text-decoration: none; color: var(--text); box-shadow: var(--shadow);
}
.card:hover { border-color: var(--accent); }
.card h3 { margin: 0 0 0.35rem; font-size: 1.2rem; color: var(--accent-dark); }
.card p { color: var(--text-muted); font-size: 0.97rem; margin-bottom: 0.6rem; }
.card-meta { margin-top: auto; font-weight: 650; font-size: 0.93rem; color: var(--accent); }
.principles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin-top: 1rem; }
.principle { background: var(--bg-tint); border-radius: var(--radius); padding: 1rem 1.2rem; }
.principle h3 { margin-top: 0; font-size: 1.1rem; }
.principle p { margin: 0; color: var(--text-muted); font-size: 0.97rem; }

/* Form (stubbed) */
.form-stub label { display: block; font-weight: 650; margin-bottom: 0.3rem; }
.form-stub input { font: inherit; padding: 0.65rem 0.8rem; border-radius: 8px; border: 1px solid var(--border); width: 100%; max-width: 22rem; background: #f3f1ea; }
.form-note { font-size: 0.92rem; color: var(--text-muted); }
.pack-group { break-inside: avoid; }

/* Footer */
.site-footer { background: var(--bg-tint); border-top: 1px solid var(--border); margin-top: 2rem; }
.site-footer-inner { max-width: var(--wide); margin: 0 auto; padding: 1.5rem 1.25rem 2rem; display: grid; gap: 1rem; font-size: 0.95rem; }
@media (min-width: 52rem) { .site-footer-inner { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer h2 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 0.4rem; font-family: var(--sans); color: var(--text-muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { display: inline-flex; align-items: center; min-height: 36px; }
.site-footer p { margin: 0 0 0.4rem; color: var(--text-muted); }

@media (max-width: 36rem) {
  body { font-size: 1.02rem; }
  .site-header-inner { padding: 0.6rem 1rem; }
  .site-nav a { padding: 0 0.55rem; font-size: 0.92rem; }
  .site-main { padding: 1rem 1rem 2.5rem; }
  .msg-text { font-size: 1.14rem; }
}

/* Print: used by the free wording pack */
@media print {
  body { background: #fff; font-size: 11pt; }
  .site-header, .site-footer, .skip-link, .copy-btn, .no-print, .cta-box, .aff, .crumbs { display: none !important; }
  .msg { box-shadow: none; border: 1px solid #bbb; border-left: 4px solid #444; break-inside: avoid; }
  a { color: #000; text-decoration: none; }
  h2 { break-after: avoid; }
}

/* Gift ideas: image-led, linked images */
.gift-inline { margin: 1.25rem 0 2rem; padding: 1rem 1.1rem 1.1rem; background: var(--bg-tint); border: 1px solid var(--border); border-radius: 12px; }
.gift-title { margin: 0 0 0.8rem; font-size: 1.05rem; font-family: var(--sans); }
.gift-grid { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); }
.gift { margin: 0; }
.gift-img { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.gift-img img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.gift-img:hover img { opacity: 0.92; }
.gift h3 { margin: 0.5rem 0 0.2rem; font-size: 1rem; }
.gift p { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.aff .gift-grid { margin-top: 1rem; }
@media print { .gift-inline { display: none !important; } }

/* Gift banners (round 2): quiet, editorial, whole banner is one link. Overrides round 1 tile styles. */
.gift-inline { margin: 1.5rem 0 2rem; padding: 0; background: none; border: 0; border-radius: 0; }
.gift-banner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0.8rem 0.7rem 1rem; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px; color: var(--text); text-decoration: none; min-height: 44px; }
.gift-banner:hover { background: var(--bg-tint); }
.gift-banner:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.gift-text { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
.gift-label { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }
.gift-name { font-family: var(--serif); font-size: 1.05rem; line-height: 1.3; }
.gift-desc { font-size: 0.9rem; line-height: 1.4; color: var(--text-muted); }
.gift-banner img { flex: 0 0 auto; display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 6px; }
.gift-list { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); margin-top: 1rem; }
@media (max-width: 480px) { .gift-banner img { width: 60px; height: 60px; } }
@media print { .gift-inline { display: none !important; } }

/* round 3: label sits above and outside the banner */
.gift-kicker { margin: 0 0 0.35rem; font-family: var(--sans); font-size: 0.864rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }
