:root {
  --paper: #fffdf7;
  --cream: #f6f0df;
  --ink: #173f3b;
  --muted: #6f6a59;
  --line: rgba(41, 62, 50, .15);
  --coral: #f26f64;
  --pink: #f39ab6;
  --teal: #20a7a0;
  --sky: #8bcfdf;
  --sun: #f7be3d;
  --leaf: #78a851;
  --lilac: #a48bd5;
  --shadow: 0 24px 70px rgba(44, 48, 35, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 6% 8%, rgba(243, 154, 182, .2), transparent 22rem),
    radial-gradient(circle at 94% 14%, rgba(139, 207, 223, .24), transparent 24rem),
    var(--cream);
  color: var(--ink);
  font-family: "DM Sans", Inter, system-ui, sans-serif;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.printables-page main { overflow: hidden; }
.printables-hero {
  width: min(1240px, calc(100% - 32px));
  margin: 22px auto 0;
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .86fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  padding: clamp(42px, 6vw, 84px);
  border: 1px solid var(--line);
  border-radius: 46px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, .95), rgba(255, 250, 237, .88)),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(23, 63, 59, .025) 24px);
  box-shadow: var(--shadow);
}
.printables-eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.printables-hero h1,
.catalog-heading h2,
.printables-note h2 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .98;
}
.printables-hero h1 { max-width: 10ch; font-size: clamp(3.4rem, 6.2vw, 6.25rem); }
.printables-lede { max-width: 670px; margin: 25px 0 0; color: #5e6255; font-size: clamp(1.05rem, 1.7vw, 1.28rem); font-weight: 650; line-height: 1.6; }
.printables-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.printables-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.printables-button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(23, 63, 59, .14); }
.printables-button-primary { background: var(--ink); color: white; }
.printables-proof { display: flex; flex-wrap: wrap; gap: 18px; margin: 26px 0 0; padding: 0; color: var(--muted); list-style: none; font-size: 13px; font-weight: 800; }
.printables-proof li::before { content: "✓"; margin-right: 6px; color: var(--leaf); font-weight: 900; }

.printables-hero-art { position: relative; min-height: 500px; }
.hero-sheet {
  position: absolute;
  width: min(390px, 83%);
  aspect-ratio: 4 / 5.4;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(42, 55, 43, .13);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 28px 55px rgba(43, 46, 34, .2);
}
.hero-sheet-front { right: 0; top: 10px; transform: rotate(4deg); background: linear-gradient(150deg, #fff9eb, #f7fbf7); }
.hero-sheet-back { left: 0; bottom: 0; transform: rotate(-8deg); background: #fff7f8; }
.sheet-kicker { display: inline-block; padding: 6px 10px; border-radius: 999px; background: var(--coral); color: white; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.hero-sheet > strong { display: block; margin: 20px 0 24px; font: 900 32px/1.02 Fraunces, Georgia, serif; }
.hero-sheet ol { display: grid; gap: 15px; margin: 0; padding: 0; list-style: none; }
.hero-sheet li { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: center; padding: 11px; border-radius: 14px; background: rgba(139, 207, 223, .18); font-size: 13px; font-weight: 800; }
.hero-sheet li:nth-child(2n) { background: rgba(243, 154, 182, .18); }
.hero-sheet li b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--coral); }
.sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sheet-grid i { aspect-ratio: 1; display: grid; place-items: center; border: 2px solid rgba(23, 63, 59, .12); border-radius: 12px; color: var(--teal); font-size: 25px; font-style: normal; background: white; }
.hero-doodle { position: absolute; z-index: 3; display: grid; place-items: center; color: var(--coral); font: 900 44px/1 Fraunces, serif; }
.hero-doodle-one { right: -18px; bottom: 20px; transform: rotate(15deg); }
.hero-doodle-two { left: 16px; top: 24px; color: var(--teal); transform: rotate(-25deg); }

.printables-how {
  width: min(1100px, calc(100% - 32px));
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.printables-how div { position: relative; padding: 24px 24px 24px 74px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255, 253, 247, .72); }
.printables-how span { position: absolute; left: 22px; top: 22px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--sun); color: #513a00; font-weight: 900; }
.printables-how strong { display: block; font: 900 20px/1.1 Fraunces, Georgia, serif; }
.printables-how p { margin: 7px 0 0; color: var(--muted); font-size: 14px; font-weight: 650; line-height: 1.45; }

.catalog-section { width: min(1240px, calc(100% - 32px)); margin: 110px auto 0; }
.catalog-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: 28px; align-items: end; }
.catalog-heading h2 { max-width: 13ch; font-size: clamp(2.7rem, 5vw, 5rem); }
.catalog-search { display: grid; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.catalog-search input { min-height: 52px; width: 100%; padding: 0 17px; border: 2px solid transparent; border-radius: 17px; background: var(--paper); color: var(--ink); box-shadow: 0 10px 30px rgba(44, 48, 35, .09); font-weight: 800; letter-spacing: 0; text-transform: none; outline: none; }
.catalog-search input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(32, 167, 160, .14); }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 34px; }
.catalog-filters button, .catalog-empty button { padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 253, 247, .72); color: var(--ink); cursor: pointer; font-weight: 850; }
.catalog-filters button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: white; }
.catalog-count { margin: 18px 0; color: var(--muted); font-size: 13px; font-weight: 800; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.catalog-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 30px; background: var(--paper); box-shadow: 0 14px 38px rgba(44, 48, 35, .08); transition: transform 180ms ease, box-shadow 180ms ease; }
.catalog-card:hover { transform: translateY(-5px); box-shadow: 0 22px 46px rgba(44, 48, 35, .14); }
.catalog-preview { position: relative; min-height: 285px; padding: 28px; overflow: hidden; background: linear-gradient(145deg, color-mix(in srgb, var(--tone) 24%, white), color-mix(in srgb, var(--tone) 8%, #fffdf7)); }
.catalog-preview::after { content: ""; position: absolute; inset: auto -30px -50px auto; width: 150px; height: 150px; border: 30px solid color-mix(in srgb, var(--tone) 35%, transparent); border-radius: 50%; }
.catalog-preview small { display: block; color: color-mix(in srgb, var(--tone) 58%, #173f3b); font-size: 10px; font-weight: 950; letter-spacing: .13em; text-transform: uppercase; }
.catalog-preview > strong { position: relative; z-index: 1; display: block; max-width: 12ch; margin-top: 9px; font: 900 30px/.98 Fraunces, Georgia, serif; }
.catalog-preview-icon { position: absolute; right: 23px; top: 19px; width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.75); border-radius: 50%; background: color-mix(in srgb, var(--tone) 72%, white); color: white; font-size: 24px; font-weight: 900; }
.tone-coral { --tone: var(--coral); }.tone-teal { --tone: var(--teal); }.tone-sun { --tone: var(--sun); }.tone-lilac { --tone: var(--lilac); }.tone-leaf { --tone: var(--leaf); }.tone-sky { --tone: var(--sky); }
.mini-grid { position: absolute; left: 28px; right: 28px; bottom: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mini-grid i { height: 36px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.82); color: color-mix(in srgb, var(--tone) 75%, #173f3b); font-style: normal; font-weight: 900; }
.mini-route, .mini-checklist, .mini-plan { position: absolute; left: 28px; right: 28px; bottom: 22px; display: grid; gap: 7px; }
.mini-route i, .mini-checklist i, .mini-plan i { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 8px; font-style: normal; }
.mini-route b, .mini-checklist b, .mini-plan b { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: white; color: color-mix(in srgb, var(--tone) 80%, #173f3b); font-size: 11px; }
.mini-route span, .mini-checklist span, .mini-plan span { height: 16px; border-radius: 999px; background: rgba(255,255,255,.75); }
.mini-columns { position: absolute; left: 28px; right: 28px; bottom: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-columns i { height: 112px; border-radius: 12px; background: rgba(255,255,255,.78); }
.mini-postcard { position: absolute; left: 28px; right: 28px; bottom: 24px; min-height: 110px; display: grid; place-items: center; padding: 15px; border: 2px solid rgba(255,255,255,.8); border-radius: 16px; background: rgba(255,255,255,.68); }
.mini-postcard i { font: 700 17px Fraunces, serif; }.mini-postcard strong { font-size: 28px; letter-spacing: .12em; }.mini-postcard span { color: color-mix(in srgb, var(--tone) 78%, #173f3b); }
.catalog-card-body { padding: 24px; }
.catalog-card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.catalog-card-meta em { color: color-mix(in srgb, var(--tone) 75%, #173f3b); font-style: normal; }
.catalog-card h3 { margin: 14px 0 8px; font: 900 25px/1.05 Fraunces, Georgia, serif; }
.catalog-card p { min-height: 66px; margin: 0; color: var(--muted); font-size: 14px; font-weight: 650; line-height: 1.5; }
.catalog-card a { display: inline-flex; align-items: center; gap: 9px; margin-top: 19px; color: var(--ink); font-weight: 900; text-decoration: none; }
.catalog-card a span { transition: transform 160ms ease; }.catalog-card a:hover span { transform: translateX(4px); }
.catalog-empty { padding: 50px; border: 1px dashed var(--line); border-radius: 28px; background: rgba(255,255,255,.5); text-align: center; }.catalog-empty strong { font: 900 28px Fraunces, serif; }.catalog-empty p { color: var(--muted); }

.printables-note { width: min(1100px, calc(100% - 32px)); margin: 100px auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: clamp(34px, 5vw, 65px); border-radius: 38px; background: var(--ink); color: white; }
.printables-note h2 { max-width: 12ch; font-size: clamp(2.5rem, 4.3vw, 4.5rem); }.printables-note p:last-child { color: rgba(255,255,255,.78); font-size: 18px; font-weight: 650; line-height: 1.65; }
.printables-footer { min-height: 130px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; padding: 30px; border-top: 1px solid var(--line); color: var(--muted); }.printables-footer strong { color: var(--ink); font: 900 24px Fraunces, serif; }.printables-footer a { font-weight: 900; }

@media (max-width: 980px) {
  .printables-hero { grid-template-columns: 1fr; }
  .printables-hero-art { width: min(560px, 100%); margin: 0 auto; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .printables-hero { width: min(100% - 20px, 1240px); min-height: auto; padding: 35px 22px 28px; border-radius: 30px; }
  .printables-hero h1 { font-size: clamp(3rem, 16vw, 5rem); }
  .printables-hero-art { min-height: 420px; }
  .printables-how, .catalog-heading, .printables-note { grid-template-columns: 1fr; }
  .catalog-section { margin-top: 75px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-card p { min-height: 0; }
  .printables-how { gap: 10px; }
  .printables-proof { display: grid; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Printables use light paper surfaces even when the surrounding site is dark. */
html[data-theme="dark"] body.printables-page .printables-hero {
  color: #173f3b !important;
}
html[data-theme="dark"] body.printables-page .printables-hero h1,
html[data-theme="dark"] body.printables-page .hero-sheet > strong,
html[data-theme="dark"] body.printables-page .hero-sheet li,
html[data-theme="dark"] body.printables-page .printables-how strong,
html[data-theme="dark"] body.printables-page .catalog-card h3,
html[data-theme="dark"] body.printables-page .catalog-card a {
  color: #173f3b !important;
}
html[data-theme="dark"] body.printables-page .printables-lede,
html[data-theme="dark"] body.printables-page .printables-proof,
html[data-theme="dark"] body.printables-page .printables-how p,
html[data-theme="dark"] body.printables-page .catalog-card p,
html[data-theme="dark"] body.printables-page .catalog-card-meta {
  color: #5e6255 !important;
}
html[data-theme="dark"] body.printables-page .printables-button-primary {
  background: #173f3b !important;
  color: #fff !important;
}
html[data-theme="dark"] body.printables-page .printables-button:not(.printables-button-primary) {
  background: #fffdf7 !important;
  color: #173f3b !important;
}
html[data-theme="dark"] body.printables-page .catalog-search input {
  background: #fffdf7 !important;
  color: #173f3b !important;
  color-scheme: light;
}
