/* ==========================================================================
   Well Planned Homes — main stylesheet
   Column layout uses the Bootstrap grid (bootstrap-grid.min.css, loaded first).
   1 Tokens · 2 Base · 3 Header · 4 Buttons · 5 Hero · 6 Project sequencer
   7 Services · 8 Sections · 9 Blog · 10 Forms · 11 Footer
   12 Responsive · 13 Motion & print
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --paper: #fdfbf5;
  --paper-2: #f6f1e4;
  --ink: #1d3557;
  --ink-900: #142740;
  --ink-700: #2b4a73;
  --text: #22303f;
  --muted: #5a6372;
  --line: #e2d9c6;
  --coral: #c8452f;
  --coral-700: #a5361f;
  --coral-soft: #ef6f5e;
  --yellow: #ffd95a;
  --yellow-soft: #fff1b8;
  --mint: #c6ebdf;
  --sky: #d3e5f6;
  --pink: #fbd7cf;
  --white: #ffffff;
  --on-dark: #d7e0ec;
  --danger: #a3241a;
  --danger-bg: #fbeae8;
  --success: #22603a;
  --success-bg: #e2f1e6;

  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Lexend", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;

  --fs-sm: .9375rem;
  --fs-base: 1.02rem;
  --fs-lg: 1.14rem;
  --fs-h3: 1.3rem;
  --fs-h2: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
  --fs-h1: clamp(2.4rem, 1.5rem + 3.8vw, 4.3rem);

  --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 6.5rem;
  --r: 10px;
  --r-lg: 16px;
  --shadow: 0 18px 30px -18px rgba(20, 39, 64, .45);
  --note-shadow: 0 10px 18px -10px rgba(20, 39, 64, .5);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --graph: linear-gradient(rgba(29, 53, 87, .07) 1px, transparent 1px) 0 0 / 26px 26px, linear-gradient(90deg, rgba(29, 53, 87, .07) 1px, transparent 1px) 0 0 / 26px 26px;
  --lines: repeating-linear-gradient(transparent 0 31px, rgba(29, 53, 87, .12) 31px 32px);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--font-body); font-size: var(--fs-base); font-weight: 300; line-height: 1.75; -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
img { object-fit: cover; background: var(--paper-2); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; margin: 0 0 var(--s-4); color: var(--ink); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
a { color: var(--coral-700); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
ul, ol { padding-left: 1.2rem; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
.bg-ink :focus-visible, .site-footer :focus-visible, .side-card-ink :focus-visible, .contact-card :focus-visible { outline-color: var(--yellow); }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 300; background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: var(--r); font-weight: 500; }
.skip-link:focus { top: .75rem; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container-narrow { max-width: 920px; }
.lead { font-size: var(--fs-lg); color: var(--muted); line-height: 1.7; }
.hand { font-family: var(--font-hand); font-weight: 600; font-size: 1.5rem; line-height: 1.2; color: var(--coral-700); letter-spacing: 0; }
.overline { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); background: var(--yellow); padding: .25rem .65rem; border-radius: 4px; margin-bottom: var(--s-4); transform: rotate(-1.5deg); }
.highlight { background: linear-gradient(104deg, transparent 2%, var(--yellow) 3%, var(--yellow) 96%, transparent 97%) 0 72% / 100% 46% no-repeat; }
.tick-ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--sky); color: var(--ink); flex: none; }
.tick-ico svg { width: 24px; height: 24px; }
img.img-failed { object-position: -9999px -9999px; background: var(--graph), var(--paper-2); }

/* 3. Header ---------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 2px solid var(--ink); }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(253, 251, 245, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; gap: var(--s-5); min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); white-space: nowrap; flex: none; }
.brand img { width: 42px; height: 42px; background: none; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.32rem; letter-spacing: -.03em; line-height: 1; }
.brand:hover { color: var(--ink); }
.primary-nav { margin-left: auto; align-self: stretch; display: flex; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-end; gap: .3rem; }
.nav-link { display: block; padding: .55rem 1rem .5rem; border: 2px solid transparent; border-bottom: 0; border-radius: 10px 10px 0 0; font-weight: 500; font-size: .95rem; color: var(--text); text-decoration: none; margin-bottom: -2px; transition: background-color .2s; }
.nav-link:hover { background: var(--paper-2); color: var(--ink); }
.nav-link[aria-current="page"] { background: var(--yellow); border-color: var(--ink); color: var(--ink); }
.mobile-extra { display: none; }
.nav-toggle { display: none; align-items: center; gap: .45rem; min-height: 46px; padding: 0 1rem; border: 2px solid var(--ink); background: var(--white); color: var(--ink); border-radius: var(--r); font: inherit; font-weight: 500; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close, .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* 4. Buttons --------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: .75rem 1.45rem; border-radius: var(--r); border: 2px solid transparent; font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: .5rem 1.1rem; }
.btn-block { width: 100%; }
.btn-coral { background: var(--coral); color: var(--white); }
.btn-coral:hover { background: var(--coral-700); color: var(--white); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-700); color: var(--white); }
.btn-ink-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ink-line:hover { background: var(--ink); color: var(--white); }
.btn-paper { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn-paper:hover { background: var(--yellow); color: var(--ink); }
.btn-text { background: none; border: 0; padding: .3rem 0; font: inherit; font-weight: 500; color: var(--coral-700); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: pointer; }
.btn:disabled { opacity: .7; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.btn-row-end { justify-content: flex-end; }
.more-link { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-head); font-weight: 600; color: var(--ink); text-decoration: none; background: linear-gradient(var(--yellow), var(--yellow)) 0 100% / 100% 40% no-repeat; padding: 0 .15rem; }
.more-link svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.more-link:hover { color: var(--coral-700); }
.more-link:hover svg { transform: translateX(4px); }
.label-tab { display: inline-block; font-family: var(--font-head); font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: var(--mint); padding: .2rem .6rem; border-radius: 4px; margin-bottom: var(--s-3); }

/* 5. Hero ------------------------------------------------------------------ */
.hero { padding: var(--s-8) 0; background: var(--graph), var(--paper); border-bottom: 2px solid var(--ink); overflow: hidden; }
.hero h1 { max-width: 14ch; }
.hero .lead { max-width: 38rem; margin-bottom: var(--s-6); }
.hero-hand { margin-top: var(--s-5); font-size: 1.8rem; }
.hero-board { position: relative; max-width: 520px; margin-left: auto; padding: var(--s-4) var(--s-6) var(--s-8) 0; }
.hero-board .polaroid figcaption.hand { text-align: left; padding-left: .3rem; }
.polaroid { position: relative; margin: 0; padding: 12px 12px 14px; background: var(--white); box-shadow: var(--shadow); }
.polaroid::before { content: ""; position: absolute; left: 50%; top: -14px; width: 110px; height: 30px; margin-left: -55px; background: rgba(255, 217, 90, .75); transform: rotate(-3deg); }
.polaroid img { width: 100%; aspect-ratio: 4 / 3; }
.polaroid figcaption { padding-top: .5rem; font-size: .9rem; color: var(--muted); }
.polaroid figcaption.hand { font-size: 1.45rem; color: var(--ink); text-align: center; }
.polaroid-tilt { transform: rotate(2deg); }
.polaroid-tilt-left { transform: rotate(-2deg); }
.polaroid-hero { max-width: 400px; margin-left: auto; transform: rotate(2deg); }
.polaroid-hero img { aspect-ratio: 1; }
.hero-sticky { position: absolute; right: -6px; bottom: -34px; width: 180px; padding: var(--s-4) var(--s-4) var(--s-5); background: var(--yellow); box-shadow: var(--note-shadow); transform: rotate(-4deg); }
.hero-sticky .hand { display: block; font-size: 1.7rem; color: var(--ink); margin-bottom: .2rem; }
.hero-sticky ul { list-style: none; margin: 0; padding: 0; font-family: var(--font-hand); font-weight: 600; font-size: 1.25rem; line-height: 1.35; color: var(--ink); }
.hero-sticky li::before { content: "\2713 "; color: var(--coral-700); }

/* 6. Project sequencer ----------------------------------------------------- */
.seq-note { font-size: var(--fs-sm); color: var(--muted); padding: var(--s-4); background: var(--white); border-left: 4px solid var(--yellow); }
.sequencer { padding: clamp(1.25rem, 4vw, 2.5rem); background: var(--white); border: 2px solid var(--ink); border-radius: var(--r-lg); box-shadow: 8px 8px 0 var(--ink); }
.sequencer fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.sequencer legend { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--ink); margin-bottom: var(--s-3); padding: 0; }
.seq-checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.seq-checks li { position: relative; }
.seq-checks input { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin: -10px 0 0; accent-color: var(--coral); cursor: pointer; }
.seq-checks label { display: flex; align-items: center; gap: .55rem; min-height: 50px; padding: .5rem .8rem .5rem 46px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--paper); cursor: pointer; font-size: .95rem; font-weight: 400; transition: border-color .2s, background-color .2s; }
.seq-checks label svg { width: 20px; height: 20px; color: var(--ink); flex: none; }
.seq-checks input:checked + label { border-color: var(--ink); background: var(--yellow-soft); }
.seq-actions { display: flex; gap: var(--s-5); margin: var(--s-3) 0 var(--s-5); }
.seq-plan { border-top: 2px dashed var(--line); padding-top: var(--s-5); }
.seq-plan h3 { font-size: 1.45rem; }
.seq-empty { color: var(--muted); }
.seq-empty[hidden], .seq-list[hidden] { display: none; }
.seq-list { list-style: none; padding: 0 0 0 var(--s-5); margin: 0 0 var(--s-5); border-left: 3px dotted var(--coral-soft); display: grid; gap: var(--s-4); }
.seq-list > li { position: relative; }
.seq-list > li::before { content: ""; position: absolute; left: calc(var(--s-5) * -1 - 10px); top: .35rem; width: 17px; height: 17px; border-radius: 50%; background: var(--coral); border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--coral); }
.seq-phase { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; color: var(--ink); background: var(--mint); padding: .1rem .55rem; border-radius: 4px; }
.seq-why { margin: .3rem 0 .4rem; font-size: .92rem; color: var(--muted); }
.seq-items { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.seq-items li { font-size: .9rem; font-weight: 500; padding: .2rem .65rem; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--white); }

/* 7. Services -------------------------------------------------------------- */
.note-board { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); }
.sticky-note { display: flex; flex-direction: column; gap: .4rem; height: 100%; min-height: 190px; padding: var(--s-5) var(--s-4) var(--s-4); color: var(--ink); text-decoration: none; box-shadow: var(--note-shadow); transition: transform .25s var(--ease), box-shadow .25s; }
.sticky-note:hover { transform: rotate(0) translateY(-4px) !important; box-shadow: 0 18px 26px -14px rgba(20, 39, 64, .55); color: var(--ink); }
.note-0 { background: var(--yellow-soft); transform: rotate(-1.5deg); }
.note-1 { background: var(--mint); transform: rotate(1.2deg); }
.note-2 { background: var(--sky); transform: rotate(-.8deg); }
.note-3 { background: var(--pink); transform: rotate(1.6deg); }
.note-ico { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .7); margin-bottom: .3rem; }
.note-ico svg { width: 22px; height: 22px; }
.note-name { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; line-height: 1.2; letter-spacing: -.02em; }
.note-short { font-size: .88rem; color: #3b4656; }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--s-6); }
.chip-row a { padding: .4rem .9rem; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--white); font-size: .88rem; font-weight: 500; color: var(--ink); text-decoration: none; transition: background-color .2s; }
.chip-row a:hover { background: var(--yellow); }
.svc-card { display: flex; flex-direction: column; height: 100%; padding: 12px 12px 0; background: var(--white); box-shadow: var(--shadow); scroll-margin-top: 110px; }
.svc-card-photo { position: relative; aspect-ratio: 10 / 7; }
.svc-card-photo img { width: 100%; height: 100%; }
.phase-tag { position: absolute; right: -6px; top: 14px; font-family: var(--font-hand); font-size: 1.35rem; font-weight: 600; color: var(--ink); background: var(--yellow); padding: .1rem .8rem; box-shadow: var(--note-shadow); transform: rotate(3deg); }
.svc-card-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: var(--s-5) var(--s-3) var(--s-5); }
.svc-card-body h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.45rem; }
.svc-card-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--sky); color: var(--ink); flex: none; }
.svc-card-ico svg { width: 22px; height: 22px; }
.svc-card-body > p:not(.card-note) { color: var(--muted); margin-bottom: var(--s-5); }
.svc-card-body .btn { margin-top: auto; }
.card-note { font-size: var(--fs-sm); background: var(--yellow-soft); padding: .6rem .9rem; border-radius: 6px; margin-bottom: var(--s-5); }

/* 8. Sections -------------------------------------------------------------- */
.section { padding: var(--s-9) 0; }
.section-tight { padding: var(--s-6) 0; }
.section-top-tight { padding-top: var(--s-6); }
.bg-grid { background: var(--graph), var(--paper-2); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.bg-paper-lines { background: var(--lines), var(--paper); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.bg-ink { background: var(--ink); color: var(--on-dark); }
.bg-ink h2, .bg-ink h3 { color: var(--white); }
.bg-ink .section-title p, .on-dark { color: var(--on-dark); }
.section-title { max-width: 46rem; margin-bottom: var(--s-7); }
.section-title p { color: var(--muted); font-size: var(--fs-lg); }
.section-title-center { margin-left: auto; margin-right: auto; text-align: center; }
.title-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-7); }
.title-row .section-title { margin-bottom: 0; }
.socal-card { height: 100%; padding: var(--s-6) var(--s-5); border-radius: var(--r-lg); background: var(--ink-700); border: 1px dashed rgba(255, 255, 255, .3); }
.socal-ico { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--yellow); color: var(--ink); margin-bottom: var(--s-4); }
.socal-ico svg { width: 24px; height: 24px; }
.socal-card p { font-size: var(--fs-sm); }
.pillar-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-5); }
.pillar-list li { display: flex; gap: var(--s-4); align-items: flex-start; }
.pillar-list h3 { margin-bottom: var(--s-2); }
.pillar-list p { color: var(--muted); }
.checklist-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-4); }
.checklist-steps li { display: grid; grid-template-columns: 44px 1fr; gap: var(--s-4); align-items: start; padding: var(--s-5); background: rgba(255, 255, 255, .85); border: 2px solid var(--ink); border-radius: var(--r-lg); }
.check-box { display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 8px; background: var(--yellow); color: var(--coral-700); }
.check-box svg { width: 24px; height: 24px; stroke-width: 3; }
.checklist-steps h3 { margin-bottom: .3rem; }
.checklist-steps p { color: var(--muted); }
.value-card { height: 100%; padding: var(--s-6) var(--s-5); border-radius: var(--r-lg); background: var(--ink-700); border: 1px dashed rgba(255, 255, 255, .3); }
.value-card .tick-ico { background: var(--yellow); margin-bottom: var(--s-4); }
.who-card { height: 100%; padding: var(--s-6) var(--s-5); box-shadow: var(--note-shadow); }
.who-card .tick-ico { background: rgba(255, 255, 255, .7); margin-bottom: var(--s-4); }
.who-card p { color: #3b4656; }
.faq-box { display: grid; gap: var(--s-3); }
.faq-box details { background: var(--white); border: 2px solid var(--ink); border-radius: var(--r); }
.faq-box summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) var(--s-5); font-family: var(--font-head); font-weight: 600; font-size: 1.08rem; color: var(--ink); cursor: pointer; list-style: none; }
.faq-box summary::-webkit-details-marker { display: none; }
.faq-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--yellow); color: var(--ink); flex: none; transition: transform .25s var(--ease); }
.faq-mark svg { width: 18px; height: 18px; }
details[open] .faq-mark { transform: rotate(45deg); background: var(--coral-soft); color: var(--white); }
.faq-body { padding: 0 var(--s-5) var(--s-5); color: var(--muted); }
.lined-card { position: relative; padding: var(--s-7) clamp(1.25rem, 4vw, 3.5rem) var(--s-7) clamp(2rem, 6vw, 5rem); background: var(--lines), var(--white); border: 2px solid var(--ink); border-radius: var(--r-lg); }
.lined-card::before { content: ""; position: absolute; left: clamp(1rem, 3vw, 2.5rem); top: 0; bottom: 0; width: 2px; background: var(--coral-soft); opacity: .6; }
.lined-card h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); }
.lined-card p { color: var(--muted); }
.cta-note { padding: var(--s-8) clamp(1.25rem, 5vw, 4rem); background: var(--yellow); border: 2px solid var(--ink); border-radius: 4px; box-shadow: 10px 10px 0 var(--ink); transform: rotate(-.6deg); }
.cta-note .overline { background: var(--white); }
.cta-note p { color: var(--ink-900); }
.page-hero { padding: var(--s-8) 0; background: var(--graph), var(--paper); border-bottom: 2px solid var(--ink); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { max-width: 42rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 var(--s-5); font-size: .9rem; color: var(--muted); }
.breadcrumb li + li::before { content: "\203A"; margin-right: .4rem; color: var(--coral-700); font-weight: 600; }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }
.status-page { padding: var(--s-9) 0; }
.status-page h1 { max-width: 16ch; }
.status-page .lead { max-width: 38rem; margin-bottom: var(--s-6); }
.callout { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); padding: var(--s-5); border-radius: var(--r); background: var(--yellow-soft); border-left: 5px solid var(--yellow); color: var(--text); margin-top: var(--s-6); }
.callout svg { width: 24px; height: 24px; color: var(--coral-700); margin-top: 2px; }

/* 9. Blog ------------------------------------------------------------------ */
.post-card { display: flex; flex-direction: column; height: 100%; padding: 12px 12px 0; background: var(--white); box-shadow: var(--shadow); }
.post-card-photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.post-card-photo img { width: 100%; height: 100%; transition: transform .6s var(--ease); }
.post-card:hover .post-card-photo img { transform: scale(1.05); }
.post-card-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: var(--s-5) var(--s-3); }
.post-card h2, .post-card h3 { font-size: 1.3rem; }
.post-card h2 a, .post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--coral-soft); }
.post-card p { color: var(--muted); }
.post-card .more-link { margin-top: auto; }
.entries { display: grid; gap: var(--s-6); }
.entry { display: grid; grid-template-columns: 300px 1fr; gap: var(--s-6); align-items: center; padding: var(--s-5); background: var(--lines), var(--white); border: 2px solid var(--ink); border-radius: var(--r-lg); }
.entry-photo { display: block; padding: 8px 8px 22px; background: var(--white); box-shadow: var(--shadow); transform: rotate(-1.5deg); }
.entry:nth-child(even) .entry-photo { transform: rotate(1.5deg); }
.entry-photo img { width: 100%; aspect-ratio: 4 / 3; }
.entry-body h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); }
.entry-body h2 a { color: var(--ink); text-decoration: none; }
.entry-body h2 a:hover { text-decoration: underline; text-decoration-color: var(--coral-soft); }
.entry-body p { color: var(--muted); }
.article-head { padding: var(--s-7) 0; background: var(--graph), var(--paper); border-bottom: 2px solid var(--ink); }
.article-head h1 { font-size: clamp(2.1rem, 1.45rem + 2.5vw, 3.3rem); }
.byline { font-family: var(--font-hand); font-size: 1.4rem; font-weight: 600; color: var(--coral-700); }
.prose { max-width: var(--measure, 68ch); }
.prose h2 { font-size: clamp(1.45rem, 1.2rem + .9vw, 1.9rem); margin-top: var(--s-7); scroll-margin-top: 110px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0 0 var(--s-5); padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 1.8rem; margin-bottom: .55rem; }
.prose li::before { content: "\2713"; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--coral-700); }
.article-foot { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 2px dashed var(--line); }
.copy-status { margin-top: var(--s-3); font-weight: 500; color: var(--success); }
.copy-status:empty { display: none; }
.sidebar { position: sticky; top: 104px; display: grid; gap: var(--s-5); }
.side-card { padding: var(--s-6) var(--s-5); background: var(--white); border: 2px solid var(--ink); border-radius: var(--r-lg); }
.side-card h2 { font-size: 1.25rem; }
.side-card-ink { background: var(--ink); color: var(--on-dark); }
.side-card-ink h2 { color: var(--white); }
.side-card-ink .tick-ico { background: var(--yellow); margin-bottom: var(--s-4); }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.toc a { display: block; padding: .35rem .5rem; border-radius: 6px; color: var(--text); text-decoration: none; font-size: var(--fs-sm); }
.toc a:hover { background: var(--yellow-soft); color: var(--ink); }
.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.tick-list li { display: grid; grid-template-columns: 22px 1fr; gap: .6rem; }
.tick-list svg { width: 22px; height: 22px; color: var(--coral-700); margin-top: 2px; }

/* 10. Forms ---------------------------------------------------------------- */
.form-shell { padding: clamp(1.5rem, 4vw, 3rem); background: var(--white); border: 2px solid var(--ink); border-radius: var(--r-lg); }
.form-intro { color: var(--muted); }
.form { display: grid; gap: var(--s-5); }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field label { font-weight: 500; color: var(--ink); }
.optional { font-weight: 300; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { width: 100%; min-height: 52px; padding: .75rem 1rem; border: 2px solid #b8b1a0; border-radius: var(--r); background: var(--white); color: var(--text); font: inherit; font-weight: 400; transition: border-color .2s, box-shadow .2s; }
textarea { min-height: 170px; resize: vertical; background: var(--lines), var(--white); line-height: 32px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 217, 90, .7); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field-error { color: var(--danger); font-size: .925rem; font-weight: 500; margin: .4rem 0 0; }
.field .field-error { margin-top: 0; }
.field-error:empty { display: none; }
.hint { font-size: .9rem; color: var(--muted); margin: 0; }
.checkbox { display: grid; grid-template-columns: 24px 1fr; gap: .7rem; align-items: start; }
.checkbox input { width: 22px; height: 22px; margin: 4px 0 0; accent-color: var(--coral); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: var(--s-4) var(--s-5); border-radius: var(--r); font-weight: 500; }
.form-alert svg { width: 22px; height: 22px; margin-top: 2px; }
.form-alert p { margin: 0; }
.form-alert[hidden] { display: none; }
.form-alert-error { background: var(--danger-bg); color: var(--danger); }
.form-alert-success { background: var(--success-bg); color: var(--success); }
.inline-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-3); align-items: start; }
.contact-card { padding: var(--s-6) var(--s-5); background: var(--ink); color: var(--on-dark); border-radius: var(--r-lg); }
.contact-card h2 { color: var(--white); font-size: 1.5rem; }
.contact-card h3 { color: var(--yellow); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .3rem; }
.contact-card a { color: var(--white); }
.contact-card .more-link { color: var(--ink); margin-top: var(--s-3); }
.contact-card .tick-ico { background: var(--yellow); }
.contact-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-5); }
.contact-rows li { display: flex; gap: var(--s-4); min-width: 0; }
.contact-rows li > div { min-width: 0; overflow-wrap: anywhere; }
.contact-rows p { margin: 0; }

/* 11. Footer --------------------------------------------------------------- */
.site-footer { background: var(--ink-900); color: var(--on-dark); padding: var(--s-8) 0 var(--s-5); margin-top: var(--s-7); }
.site-footer a { color: #eef3fa; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); text-decoration: underline; }
.site-footer .brand, .site-footer .brand:hover { color: var(--white); text-decoration: none; }
.footer-blurb { margin: var(--s-5) 0; max-width: 34rem; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-contact li { display: flex; align-items: center; gap: .6rem; min-width: 0; overflow-wrap: anywhere; }
.footer-contact svg { width: 20px; height: 20px; color: var(--yellow); flex: none; }
.footer-col h2 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); margin-bottom: var(--s-4); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-split { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-5) !important; }
.footer-sub { margin-top: var(--s-6); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px dashed rgba(255, 255, 255, .25); font-size: var(--fs-sm); }
.footer-bottom p { margin: 0; }
.footer-bottom .hand { color: var(--yellow); font-size: 1.5rem; }
.back-to-top { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 12px; border: 2px solid var(--ink); background: var(--yellow); color: var(--ink); box-shadow: var(--note-shadow); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
.back-to-top svg { width: 22px; height: 22px; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--coral-soft); }

/* 12. Responsive ----------------------------------------------------------- */
@media (max-width: 1199.98px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { margin-left: auto; }
  .primary-nav { position: fixed; top: var(--nav-top, 80px); left: 0; right: 0; bottom: 0; z-index: 120; margin: 0; background: var(--graph), var(--paper); padding: var(--s-5) clamp(16px, 4vw, 40px) var(--s-7); overflow-y: auto; display: none; }
  .primary-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: .5rem; }
  .nav-link { font-family: var(--font-head); font-weight: 600; font-size: 1.4rem; padding: .8rem 1rem; border: 2px solid var(--ink); border-radius: var(--r); background: var(--white); margin: 0; }
  .mobile-extra { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
  .m-link { display: inline-flex; align-items: center; gap: .6rem; font-weight: 500; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
  .m-link svg { width: 22px; height: 22px; color: var(--coral-700); flex: none; }
  .note-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .section { padding: var(--s-8) 0; }
  .hero-board { margin: var(--s-4) auto 0; }
  .sidebar { position: static; }
  .polaroid-hero { max-width: 320px; margin-left: 0; }
  .btn-row-end { justify-content: flex-start; }
  .section-title { margin-bottom: var(--s-6); }
  .cta-note { transform: none; }
}
@media (max-width: 767.98px) {
  .row.g-5 { --bs-gutter-x: 1.5rem; }
  .note-board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-3); }
  .sticky-note { min-height: 170px; padding: var(--s-4) var(--s-3); }
  .seq-checks { grid-template-columns: minmax(0, 1fr); }
  .inline-field { grid-template-columns: minmax(0, 1fr); }
  .inline-field .btn { width: 100%; }
  .header-cta { display: none; }
  .nav-toggle { margin-left: auto; }
  .footer-split { grid-template-columns: minmax(0, 1fr); }
  .entry { grid-template-columns: minmax(0, 1fr); }
  .sequencer { box-shadow: 5px 5px 0 var(--ink); }
  .cta-note { box-shadow: 6px 6px 0 var(--ink); }
  .hero-board { padding-right: var(--s-4); }
  .hero-sticky { width: 160px; right: -4px; }
}
@media (max-width: 480px) {
  .brand-name { font-size: 1.08rem; }
  .brand img { width: 36px; height: 36px; }
  .header-inner { gap: var(--s-3); min-height: 70px; }
  .nav-toggle-text { display: none; }
  .nav-toggle { width: 46px; padding: 0; justify-content: center; }
  .btn { padding-left: 1.1rem; padding-right: 1.1rem; }
  .note-name { font-size: 1rem; }
  .hero-sticky { width: 140px; padding: var(--s-3); }
  .hero-sticky ul { font-size: 1.1rem; }
}
@media (max-width: 360px) {
  .brand-name { font-size: .98rem; }
  .brand { gap: .5rem; }
  .note-board { grid-template-columns: minmax(0, 1fr); }
}

/* 13. Motion & print ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .site-header, .site-footer, .back-to-top, .lined-card, .cta-note, .sidebar, .hero-sticky { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; }
  .section { padding: 1.5rem 0; }
}
