/* North Porch Media — one small stylesheet, system fonts only (no third-party requests). */
:root {
  --paper: #f6f1e8;
  --paper-2: #efe8db;
  --card: #fffcf6;
  --ink: #2a2725;
  --ink-2: #4a4541;
  --muted: #6e665e;
  --line: #ddd3c3;
  --red: #8e2b1f;
  --red-dark: #6f2017;
  --red-tint: #f3e3dc;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --wrap: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-underline-offset: 2px; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font: 600 .75rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: .8em; }
.fine { font-size: .85rem; color: var(--muted); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* Buttons */
.btn {
  display: block; width: 100%;
  padding: 15px 18px; min-height: 52px;
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  background: var(--card); color: var(--ink);
  font: 600 1rem/1.3 var(--sans); text-align: center; text-decoration: none;
  cursor: pointer; transition: background .15s, transform .05s;
}
.btn:hover { background: var(--paper-2); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn:disabled { opacity: .7; cursor: default; }
.btn.is-soon { opacity: .6; cursor: default; border-style: dashed; }

/* Photos with graceful fallback */
.photo {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 30% 20%, #d9c7aa 0%, transparent 60%),
    linear-gradient(160deg, #b99d78 0%, #7d6448 55%, #4d3d2e 100%);
}
.photo img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.photo-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 600 2.4rem/1 var(--serif); color: rgba(255, 250, 240, .82); letter-spacing: .04em;
  text-shadow: 0 1px 2px rgba(0,0,0,.15);
}

/* Persona page */
.persona-page { background: var(--paper); }
.hero { padding-top: 28px; padding-bottom: 8px; text-align: center; }
.hero-photo {
  width: 168px; height: 168px; border-radius: 50%;
  margin: 0 auto 18px; box-shadow: 0 0 0 4px var(--card), 0 0 0 5px var(--line);
}
.hero h1 { margin-bottom: .2em; }
.tagline { color: var(--muted); font-size: .95rem; margin-bottom: 1.1em; }
.hook {
  font: italic 1.3rem/1.4 var(--serif); color: var(--ink);
  margin: 0 auto 1.2em; max-width: 30rem;
}
.ai-note {
  text-align: left; font-size: .9rem; line-height: 1.5; color: var(--ink-2);
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--red);
  border-radius: 8px; padding: 12px 14px; margin: 0 0 8px;
}
.ai-note a { white-space: nowrap; }

.links { display: grid; gap: 12px; padding-top: 18px; padding-bottom: 12px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px 20px; margin-block: 24px;
}
/* .card.wrap keeps inner padding while matching the column width */
.card.wrap { width: calc(100% - 32px); max-width: calc(var(--wrap) - 40px); }

.optin { border-top: 4px solid var(--red); }
.optin-form { display: grid; gap: 14px; margin-top: 6px; }
.optin-form input[type=email] {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: 1rem var(--sans); color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
}
.optin-form input[type=email]:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--red-tint); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; line-height: 1.45; color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--red); }
.hp { position: absolute; left: -9999px; }
.form-error { background: var(--red-tint); color: var(--red-dark); padding: 10px 12px; border-radius: 8px; font-size: .92rem; }

.product .price { font: 600 1.6rem/1 var(--serif); color: var(--red); margin-bottom: .6em; }
.product .fine { margin: 12px 0 0; }

.about { padding-block: 16px; }
.about-photo { aspect-ratio: 4 / 3; margin-bottom: 20px; }

.gear { padding-block: 24px; }
.disclosure {
  font-size: .85rem; line-height: 1.5; color: var(--ink-2);
  background: var(--paper-2); border-radius: 8px; padding: 10px 12px;
}
.gear-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.gear-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.gear-cat { font: 600 .7rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .6em; }
.gear-card h3 { margin-bottom: .35em; }
.gear-why { font: italic 1rem/1.5 var(--serif); color: var(--ink-2); margin-bottom: .8em; }
.gear-link { font-weight: 600; font-size: .95rem; }
.gear-link.is-soon { color: var(--muted); font-weight: 500; font-style: italic; }
.tag { font: 500 .7rem/1 var(--sans); color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 3px 7px; margin-left: 4px; vertical-align: 2px; white-space: nowrap; }

.follow { padding-block: 8px 28px; }
.social-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.social-list a {
  display: flex; flex-direction: column; padding: 12px 14px; min-height: 52px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); font-weight: 600;
}
.social-list a:hover { border-color: var(--ink); }
.social-list small { font-weight: 400; color: var(--muted); font-size: .8rem; }

.thanks { padding-block: 40px 16px; }
.thanks .btn { margin-block: 8px 12px; }

/* Company + legal pages */
.site-header { padding-block: 20px; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font: 600 1.1rem/1 var(--serif); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.brand svg { width: 26px; height: 26px; flex: none; }
.site-header nav a { font-size: .9rem; color: var(--ink-2); margin-left: 14px; text-decoration: none; }
.site-header nav a:hover { color: var(--red); }

.page main { padding-block: 32px 48px; }
.page .lede { font: 1.25rem/1.5 var(--serif); color: var(--ink-2); }
.page h2 { margin-top: 1.6em; }
.page h3 { margin-top: 1.3em; }
.page ul, .page ol { padding-left: 1.25em; }
.page li { margin-bottom: .4em; }
.page .meta { color: var(--muted); font-size: .9rem; }
.page table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-bottom: 1.2em; display: block; overflow-x: auto; }
.page th, .page td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.page th { font-weight: 600; background: var(--paper-2); }
.page .placeholder { background: #fff3b0; padding: 0 3px; border-radius: 3px; }
.character { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-block: 16px; }
.character h3 { margin-top: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 24px 36px; font-size: .85rem; color: var(--muted); background: var(--paper-2); }
.site-footer p { margin-bottom: .8em; }
.medical { color: var(--ink-2); line-height: 1.5; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; }
.legal-links a { color: var(--ink-2); }

@media (min-width: 640px) {
  body { font-size: 18px; }
  h1 { font-size: 2.6rem; }
  .hero { padding-top: 48px; }
  .hero-photo { width: 200px; height: 200px; }
  .card { padding: 32px 30px; }
  .gear-list { grid-template-columns: 1fr 1fr; }
  .social-list { grid-template-columns: repeat(3, 1fr); }
}
