/* Cahoots: the shared look for every page (the homepage and check-up add their own pieces inline).
   Colors and type from the logo kit (with-cahoots-logo-kit/README.txt): forest, cream, copper; Poppins. */

/* Self-hosted, Latin only (Poppins, SIL Open Font License), so no visitor data goes to Google. */
@font-face { font-family: "Poppins"; src: url(/fonts/poppins-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(/fonts/poppins-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(/fonts/poppins-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url(/fonts/poppins-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --forest: #1e3a2f;
  --forest-2: #2a4a3d;
  --forest-deep: #15291f;
  --cream: #f5efe0;
  --cream-2: #ebe2cc;
  --paper: #fffdf8;
  --copper: #d9822b;
  --copper-hi: #e8994a;
  /* Copper dark enough to read as text on cream (5:1). */
  --copper-ink: #8e4f12;
  --ink: #1e2b25;
  --muted: #55635b;
  --line: #e3d9c3;
  --band-text: #d9dfd4;
  --red: #a12525;
  --system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font: "Poppins", var(--system);
}
* { box-sizing: border-box; }
/* Cream paper with a faint dot grid */
body { margin: 0; color: var(--ink); font: 16px/1.65 var(--font);
  background-color: var(--cream);
  background-image: radial-gradient(rgba(30, 58, 47, 0.09) 1px, transparent 1.4px);
  background-size: 22px 22px; background-position: center top;
  min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--copper-ink); text-underline-offset: 2px; }
a[href^="tel:"] { white-space: nowrap; }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 16px; width: 100%; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; }

/* The forest band with the logo and phone */
.band { position: relative; background: var(--forest); color: var(--cream); overflow: hidden; }
.band > .wrap { position: relative; z-index: 1; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; border-radius: 6px; }
.brand img { display: block; height: 46px; width: auto; transition: transform 0.3s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover img { transform: rotate(-3deg) scale(1.03); }
.top-phone { color: var(--cream); font-weight: 700; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.top-phone span { color: var(--band-text); font-weight: 400; }

/* A single column of reading text */
main { flex: 1; padding-block: 40px 56px; }
.page { max-width: 720px; }
.page h1 { font-size: clamp(30px, 6vw, 42px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; color: var(--forest); }
.page h2 { font-size: 20px; font-weight: 700; margin: 32px 0 6px; color: var(--forest); }
.page p { margin: 0 0 12px; }
.dated { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.lede { font-size: 18px; color: var(--muted); }

/* A hand-drawn copper underline under a word or two */
.scribble { position: relative; white-space: nowrap; }
.scribble::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: -0.16em; height: 0.32em; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M3 11c38-7 85-9 130-6 22 1.5 42 3.6 64 2.2' fill='none' stroke='%23d9822b' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }

/* Forms and buttons */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin-block: 20px 12px; }
form { display: grid; gap: 12px; }
label { font-size: 14px; font-weight: 500; display: grid; gap: 4px; }
input, textarea { font: 16px var(--font); color: var(--ink); border: 1px solid #cfc4ab; border-radius: 8px; padding: 10px 12px; width: 100%; background: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: 700 17px var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; justify-self: start; transition: transform 0.15s, background 0.15s; }
.btn:hover { transform: translateY(-1px); }
.btn-copper { background: var(--copper); color: var(--forest-deep); }
.btn-copper:hover { background: var(--copper-hi); }
.btn-forest { background: var(--forest); color: var(--cream); }
.btn-forest:hover { background: var(--forest-2); }
.btn-ghost { color: var(--cream); border-color: rgba(245, 239, 224, 0.45); }
.btn-ghost:hover { border-color: var(--cream); }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.form-status { font-size: 14px; color: var(--red); margin: 0; }
.form-status:empty { display: none; }
.done { display: none; }
.sent form { display: none; }
.sent .done { display: block; }
.done h2 { margin-top: 0; }
.btn:focus-visible, .top-phone:focus-visible, .brand:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }

footer { border-top: 1px solid var(--line); background: rgba(245, 239, 224, 0.92); padding-block: 20px 32px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; }

@media (prefers-reduced-motion: reduce) { .btn, .brand img { transition: none; } .btn:hover, .brand:hover img { transform: none; } }
