/* ============================================================
   Top eBook Ghostwriters — Design System v2 "The Manuscript"
   Paper / ink / editor's red. Fraunces + IBM Plex Mono + Inter.
   ============================================================ */

:root {
  --paper: #f7f3ea;
  --paper-deep: #efe9db;
  --paper-card: #fffdf8;
  --ink: #23201a;
  --ink-60: #5c564a;
  --rule: #d8d0bd;
  --red: #a03d2d;
  --red-deep: #7f2f22;
  --green: #4a6741;
  --mono: "IBM Plex Mono", monospace;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, sans-serif;
  --frame: 1200px;
  --pad: clamp(1.2rem, 4vw, 3rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  background-image: radial-gradient(circle at 20% 10%, rgba(160,61,45,0.03), transparent 40%);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.frame { max-width: var(--frame); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- type helpers ---------- */
.mono-label {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--red);
}
.annotation { font-family: var(--mono); font-size: 0.8rem; color: var(--red); }

/* ---------- masthead ---------- */
.masthead {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 0; border-bottom: 2px solid var(--ink);
  position: relative; z-index: 40;
}
.masthead .word {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 700;
  text-decoration: none; display: flex; align-items: center; gap: 0.6rem;
}
.masthead .word small {
  display: block; font-family: var(--mono); font-weight: 500; font-size: 0.58rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); line-height: 1.3;
}
.mast-nav { display: flex; gap: 1.7rem; align-items: center; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; }
.mast-nav a { color: var(--ink); text-decoration: none; }
.mast-nav a:hover, .mast-nav a[aria-current="page"] { color: var(--red); }
.mast-cta { border-bottom: 2px solid var(--red); color: var(--red) !important; font-weight: 500; padding-bottom: 1px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }
@media (max-width: 900px) {
  .mast-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 2px solid var(--ink);
    flex-direction: column; align-items: flex-start; padding: 1.2rem var(--pad) 1.5rem; gap: 1rem;
  }
  .mast-nav.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---------- title page (hero) ---------- */
.titlepage { padding: clamp(2.6rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.folio {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--red); margin-bottom: 2rem;
  display: flex; align-items: center; gap: 1rem;
}
.folio::after { content: ""; height: 1px; background: var(--rule); flex: 1; }
.title-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .title-grid { grid-template-columns: 1fr; } }
h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  line-height: 1.05; letter-spacing: -0.02em;
}
h1 .flourish { font-style: italic; font-weight: 600; color: var(--red); }
h1 .struck { position: relative; white-space: nowrap; }
h1 .struck::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 54%;
  height: 3px; background: var(--red); transform: rotate(-1.2deg);
}
.titlepage .annotation { margin: 1rem 0 0 0.2rem; }
.lede { font-size: 1.08rem; color: var(--ink-60); max-width: 54ch; }
.titlepage .lede { margin-top: 1.6rem; }
.dropcap {
  float: left; font-family: var(--serif); font-weight: 700; font-size: 3.3rem;
  line-height: 0.8; padding: 0.35rem 0.55rem 0 0; color: var(--ink);
}
.actionline { margin-top: 1.9rem; display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.hero-illo { justify-self: center; width: min(400px, 82vw); }

/* ---------- buttons ---------- */
.btn-ms {
  display: inline-block;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--ink); color: var(--paper); text-decoration: none;
  padding: 1rem 1.6rem; border: 1px solid var(--ink);
  box-shadow: 4px 4px 0 var(--red); cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-ms:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--red); }
.btn-ms:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.btn-ms.red { background: var(--red); border-color: var(--red); box-shadow: 4px 4px 0 var(--ink); }
.link-ms {
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em;
  color: var(--ink); text-underline-offset: 4px;
}
.link-ms:hover { color: var(--red); }

/* ---------- spec sheet ---------- */
.specsheet {
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule);
  display: grid; grid-template-columns: repeat(4, 1fr); font-size: 0.85rem;
}
@media (max-width: 800px) { .specsheet { grid-template-columns: 1fr 1fr; } }
.spec { padding: 1.2rem 1.4rem 1.2rem 0; text-decoration: none; }
.spec + .spec { padding-left: 1.4rem; border-left: 1px solid var(--rule); }
@media (max-width: 800px) { .spec:nth-child(3) { border-left: 0; padding-left: 0; } .spec:nth-child(n+3) { border-top: 1px solid var(--rule); } }
.spec b { display: block; font-family: var(--serif); font-size: 1.02rem; font-weight: 600; }
.spec span { color: var(--ink-60); font-size: 0.8rem; }
.spec .no { font-family: var(--mono); color: var(--red); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; display: block; }
a.spec:hover b { color: var(--red); }

/* ---------- chapters ---------- */
.chapter { padding-top: clamp(3rem, 8vw, 5.5rem); }
.chapter-head {
  display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem;
  align-items: baseline; border-top: 1px solid var(--rule); padding-top: 1.6rem;
}
@media (max-width: 700px) { .chapter-head { grid-template-columns: 1fr; gap: 0.4rem; } }
.chapter-no { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); }
h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.65rem, 3.4vw, 2.5rem); line-height: 1.12;
}
.chapter-head h2 { max-width: 26ch; }
h2 em, h2 .flourish { font-style: italic; color: var(--red); }
.chapter-lede { margin-top: 1rem; max-width: 62ch; color: var(--ink-60); }
h3 { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; line-height: 1.25; }

/* ---------- ledger rows ---------- */
.ledger { margin-top: 2rem; border-top: 2px solid var(--ink); }
.row {
  display: grid; grid-template-columns: 64px 1.1fr 1.6fr auto;
  gap: 1.4rem; align-items: center;
  padding: 1.3rem 0; border-bottom: 1px solid var(--rule);
  text-decoration: none; color: var(--ink);
}
@media (max-width: 800px) { .row { grid-template-columns: 48px 1fr; } .row p, .row .go { grid-column: 2; } }
.row:hover { background: var(--paper-deep); }
.row .glyph { width: 46px; height: 46px; color: var(--ink); }
.row:hover .glyph { color: var(--red); }
.row .n { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-60); display: block; margin-bottom: 0.2rem; }
.row p { font-size: 0.88rem; color: var(--ink-60); max-width: 52ch; }
.row .go { font-family: var(--mono); font-size: 0.9rem; color: var(--red); transition: transform 0.12s; }
.row:hover .go { transform: translateX(4px); }

/* ---------- margin notes (3-col annotated) ---------- */
.marginalia { margin-top: 2.2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3.5vw, 3rem); }
@media (max-width: 800px) { .marginalia { grid-template-columns: 1fr; } }
.note { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.note .glyph { width: 52px; height: 52px; margin-bottom: 0.9rem; color: var(--ink); }
.note h3 .nmark { font-family: var(--mono); font-size: 0.72rem; color: var(--red); vertical-align: super; margin-left: 0.2rem; }
.note p { font-size: 0.88rem; color: var(--ink-60); margin-top: 0.4rem; }
.note .link-ms { display: inline-block; margin-top: 0.7rem; }

/* ---------- process (numbered manuscript lines) ---------- */
.procession { margin-top: 2.2rem; border-top: 2px solid var(--ink); counter-reset: proc; }
.proc {
  display: grid; grid-template-columns: 90px 1fr; gap: 1.4rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--rule); align-items: start;
}
@media (max-width: 700px) { .proc { grid-template-columns: 56px 1fr; } }
.proc::before {
  counter-increment: proc; content: "§ " counter(proc, decimal-leading-zero);
  font-family: var(--mono); font-size: 0.8rem; color: var(--red); padding-top: 0.3rem;
}
.proc p { font-size: 0.9rem; color: var(--ink-60); max-width: 60ch; margin-top: 0.25rem; }

/* ---------- rate card ---------- */
.ratecard { margin-top: 2.2rem; border: 2px solid var(--ink); background: var(--paper-card); box-shadow: 8px 8px 0 var(--paper-deep); }
.ratecard-head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1rem 1.5rem; border-bottom: 2px solid var(--ink);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.currency-toggle { display: inline-flex; border: 1px solid var(--ink); }
.currency-toggle button {
  border: 0; background: transparent; font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.1em; padding: 0.35rem 0.9rem; cursor: pointer; color: var(--ink-60);
}
.currency-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.tier-row {
  display: grid; grid-template-columns: 1fr 1.7fr auto auto; gap: 1.5rem;
  align-items: center; padding: 1.5rem; border-bottom: 1px solid var(--rule);
}
.tier-row:last-of-type { border-bottom: 0; }
@media (max-width: 800px) { .tier-row { grid-template-columns: 1fr auto; } .tier-row .desc { display: none; } }
.tier-row h3 small {
  display: block; font-family: var(--mono); font-size: 0.64rem; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin-top: 0.25rem;
}
.tier-row .desc { font-size: 0.86rem; color: var(--ink-60); }
.tier-row .desc ul { list-style: none; margin-top: 0.4rem; }
.tier-row .desc li { padding-left: 1.1rem; position: relative; }
.tier-row .desc li::before { content: "—"; position: absolute; left: 0; color: var(--red); }
.tier-price { font-family: var(--serif); font-weight: 700; font-size: 1.75rem; white-space: nowrap; }
.tier-price small { font-family: var(--sans); font-size: 0.72rem; font-weight: 400; color: var(--ink-60); }
.tier-featured { background: var(--paper-deep); position: relative; }
.tier-featured::before {
  content: "MOST CHOSEN"; position: absolute; top: 0.6rem; right: 0.8rem;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em; color: var(--red);
}
.footnote {
  font-family: var(--mono); font-size: 0.73rem; line-height: 1.8; color: var(--ink-60);
  padding: 1.1rem 1.5rem; border-top: 1px dashed var(--rule);
}
.footnote a { color: var(--red); }

/* ---------- sealed box (guarantee) ---------- */
.sealed {
  margin-top: 2.2rem; border: 2px solid var(--ink); background: var(--paper-card);
  box-shadow: 8px 8px 0 var(--paper-deep);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 2.8rem);
  padding: clamp(1.6rem, 4vw, 2.6rem); align-items: center;
}
@media (max-width: 700px) { .sealed { grid-template-columns: 1fr; } }
.seal-illo { width: 120px; }
.sealed p { font-size: 0.92rem; color: var(--ink-60); max-width: 62ch; margin-top: 0.6rem; }
.sealed a { color: var(--red); }

/* ---------- Q&A (interrogation marks) ---------- */
.faq-ms { margin-top: 2rem; border-top: 2px solid var(--ink); max-width: 860px; }
.faq-ms details { border-bottom: 1px solid var(--rule); }
.faq-ms summary {
  cursor: pointer; list-style: none; display: grid; grid-template-columns: 44px 1fr auto;
  gap: 1rem; align-items: baseline; padding: 1.15rem 0;
  font-family: var(--serif); font-weight: 600; font-size: 1.05rem;
}
.faq-ms summary::-webkit-details-marker { display: none; }
.faq-ms summary::before { content: "Q."; font-family: var(--mono); font-size: 0.8rem; color: var(--red); }
.faq-ms summary::after { content: "+"; font-family: var(--serif); font-size: 1.3rem; color: var(--red); transition: transform 0.18s; }
.faq-ms details[open] summary::after { transform: rotate(45deg); }
.faq-a {
  display: grid; grid-template-columns: 44px 1fr; gap: 1rem; padding: 0 0 1.3rem;
  font-size: 0.9rem; color: var(--ink-60);
}
.faq-a::before { content: "A."; font-family: var(--mono); font-size: 0.8rem; color: var(--green); }
.faq-a a { color: var(--red); }

/* ---------- colophon CTA ---------- */
.colophon {
  margin-top: clamp(3rem, 8vw, 5.5rem); border-top: 2px solid var(--ink);
  padding: 3rem 0 4rem; text-align: center;
}
.colophon .orn { font-family: var(--serif); font-size: 1.6rem; color: var(--red); }
.colophon h2 {
  font-weight: 400; font-style: italic;
  font-size: clamp(1.8rem, 4.5vw, 3rem); max-width: 22ch; margin: 1rem auto 1.8rem;
}
.colophon .sub { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-60); margin-top: 1.2rem; }

/* ---------- footer ---------- */
.imprint { border-top: 2px solid var(--ink); background: var(--paper-deep); font-size: 0.85rem; }
.imprint-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding: 3rem 0 2.2rem; }
@media (max-width: 900px) { .imprint-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .imprint-grid { grid-template-columns: 1fr; } }
.imprint h4 { font-family: var(--mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); margin-bottom: 0.9rem; }
.imprint ul { list-style: none; display: grid; gap: 0.45rem; }
.imprint a { color: var(--ink-60); text-decoration: none; }
.imprint a:hover { color: var(--red); }
.imprint-brand .word { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.imprint-brand p { color: var(--ink-60); font-size: 0.82rem; max-width: 36ch; margin-top: 0.7rem; }
.imprint-bottom {
  border-top: 1px solid var(--rule); padding: 1.2rem 0 1.6rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--ink-60);
}
.imprint-bottom a { color: var(--ink-60); }
.imprint-bottom a:hover { color: var(--red); }

/* ---------- chat launcher (click-to-open only) ---------- */
.chat-launcher {
  position: fixed; bottom: 1.3rem; right: 1.3rem; z-index: 60;
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--paper-card); color: var(--ink); text-decoration: none;
  padding: 0.85rem 1.2rem; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--red);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.chat-launcher:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--red); }
.chat-launcher svg { width: 16px; height: 16px; }

/* ---------- utilities ---------- */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.center { text-align: center; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }

/* ---------- motion (respects prefers-reduced-motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* hero: the edit happens before your eyes */
  h1 .struck::after { transform-origin: left center; transform: rotate(-1.2deg) scaleX(0); animation: strike 0.5s ease-out 0.7s forwards; }
  h1 .flourish { opacity: 0; animation: inkin 0.6s ease-out 1.25s forwards; }
  .titlepage .annotation { opacity: 0; animation: inkin 0.6s ease-out 1.8s forwards; }
  @keyframes strike { to { transform: rotate(-1.2deg) scaleX(1); } }
  @keyframes inkin { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

  /* scroll reveals: sections settle onto the page like set type */
  html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease-out, transform 0.55s ease-out; }
  html.js .reveal.seen { opacity: 1; transform: none; }
  html.js .reveal-stagger > * { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
  html.js .reveal-stagger.seen > * { opacity: 1; transform: none; }
  .reveal-stagger.seen > *:nth-child(2) { transition-delay: 0.1s; }
  .reveal-stagger.seen > *:nth-child(3) { transition-delay: 0.2s; }
  .reveal-stagger.seen > *:nth-child(4) { transition-delay: 0.3s; }
  .reveal-stagger.seen > *:nth-child(5) { transition-delay: 0.4s; }

  /* wax seal: stamps down when it enters view */
  html.js .seal-illo { opacity: 0; transform: scale(1.3) rotate(-6deg); transition: opacity 0.35s ease-out, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
  html.js .sealed.seen .seal-illo { opacity: 1; transform: scale(1) rotate(0deg); }

  /* typewriter caption types itself */
  html.js .type-caption text { opacity: 0; }
  .type-caption.seen text:first-child { animation: inkin 0.01s 0.2s forwards; }
  .type-caption.seen text:last-child { animation: inkin 0.01s 1.1s forwards; }

  /* faq opening */
  .faq-ms details[open] .faq-a { animation: inkin 0.3s ease-out; }
}

/* ---------- inner pages ---------- */
.crumbs { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-60); margin: 1.6rem 0 0; }
.crumbs a { color: var(--ink-60); text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.pagehead { padding: clamp(1.6rem, 5vw, 3.2rem) 0 clamp(1rem, 3vw, 2rem); }
.pagehead h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); max-width: 20ch; }
.pagehead .lede { margin-top: 1.3rem; }

.ms-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin-top: 2rem; border-top: 2px solid var(--ink); }
.ms-table th, .ms-table td { text-align: left; padding: 1rem 1.2rem 1rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ms-table th { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); font-weight: 500; white-space: nowrap; padding-right: 2rem; }
.ms-table td { color: var(--ink-60); }

.pkg { border: 2px solid var(--ink); background: var(--paper-card); box-shadow: 8px 8px 0 var(--paper-deep); padding: clamp(1.4rem, 3vw, 2rem); position: relative; display: flex; flex-direction: column; gap: 0.8rem; }
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 2.2rem; }
@media (max-width: 900px) { .pkg-grid { grid-template-columns: 1fr; } }
.pkg .tier { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); }
.pkg .amount { font-family: var(--serif); font-weight: 700; font-size: 2.3rem; }
.pkg .amount small { font-family: var(--sans); font-size: 0.75rem; font-weight: 400; color: var(--ink-60); }
.pkg.featured { background: var(--paper-deep); }
.pkg.featured::before { content: "MOST CHOSEN"; position: absolute; top: -11px; right: 1.2rem; background: var(--red); color: var(--paper); font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em; padding: 0.2rem 0.7rem; }
.pkg ul { list-style: none; display: grid; gap: 0.45rem; font-size: 0.85rem; color: var(--ink-60); }
.pkg li { padding-left: 1.2rem; position: relative; }
.pkg li::before { content: "—"; position: absolute; left: 0; color: var(--red); }
.pkg li.not::before { content: "✕"; font-size: 0.7rem; top: 3px; }
.pkg li.not { opacity: 0.65; }
.pkg .pkg-label { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin-top: 0.5rem; }
.pkg .meta { font-size: 0.78rem; font-family: var(--mono); color: var(--ink-60); border-top: 1px dashed var(--rule); padding-top: 0.8rem; margin-top: auto; }

/* ---------- forms ---------- */
.form-ms { max-width: 720px; margin-top: 2rem; display: grid; gap: 1.3rem; }
.form-ms .frow { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
@media (max-width: 700px) { .form-ms .frow { grid-template-columns: 1fr; } }
.field label {
  display: block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--red); margin-bottom: 0.45rem;
}
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--ink);
  background: var(--paper-card); border: 2px solid var(--ink); border-radius: 0;
  padding: 0.8rem 1rem; outline: none; -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); box-shadow: 3px 3px 0 var(--paper-deep); }
.field .hint { font-size: 0.75rem; color: var(--ink-60); margin-top: 0.35rem; }
.form-note { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-60); line-height: 1.8; }
.form-note a { color: var(--red); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-ok { border: 2px solid var(--green); background: #f2f6f0; padding: 1.2rem 1.4rem; font-size: 0.9rem; color: var(--green); display: none; }
.form-err { border: 2px solid var(--red); background: #f9efec; padding: 1.2rem 1.4rem; font-size: 0.9rem; color: var(--red-deep); display: none; }

/* ---- page-head illustrations (v2.1 · SEO/image patch) ---- */
.pagehead{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:clamp(1.5rem,4vw,3.5rem);align-items:center}
.pagehead>*{grid-column:1}
.pagehead .page-illo{grid-column:2;grid-row:1/span 4;margin:0;width:clamp(150px,20vw,230px)}
.page-illo img{display:block;width:100%;height:auto}
@media(max-width:800px){
  .pagehead{display:block}
  .pagehead .page-illo{width:150px;margin:1.25rem 0 0}
}
