/* =========================================================================
   Nate Needham — shared site styles (warm & human direction)
   One source of truth for the multi-page site. Each page links this file and
   reuses the same nav, footer, buttons, and type scale.

   Skeleton convention: anything wrapped in class "ph" is a PLACEHOLDER you
   still need to fill in (shown with a soft dotted underline). Search the repo
   for "ph" or "EDIT:" to find every spot that needs your real content.
   ========================================================================= */

:root {
  /* Warm palette */
  --cream:    #f7f0e5;   /* page background */
  --cream-2:  #efe3d2;   /* alternating section background */
  --paper:    #fffaf2;   /* cards */
  --paper-2:  #f9f0e3;   /* quiet panels */
  --ink:      #211813;   /* headings */
  --ink-body: #493b32;   /* body text, warm brown-grey */
  --muted:    #807064;   /* captions, meta */
  --clay:     #b9573a;   /* primary accent, terracotta */
  --clay-dark:#93452e;   /* primary hover */
  --gold:     #717b5f;   /* muted accent */
  --sage:     #717b5f;   /* tertiary accent for variety */
  --line:     rgba(33, 24, 19, 0.14);
  --line-soft:rgba(33, 24, 19, 0.08);
  --ok:       #2f8f57;
  --err:      #c0432c;

  --shadow:   0 24px 70px rgba(48, 31, 20, 0.11);
  --shadow-sm:0 10px 28px rgba(48, 31, 20, 0.07);
  --radius:   8px;
  --radius-sm:8px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink-body);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--clay); text-decoration: none; }
a:hover { color: var(--clay-dark); }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.08;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 104px 0; }
.section-tint {
  background: linear-gradient(180deg, rgba(239, 227, 210, 0.72), var(--cream-2));
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.center { text-align: center; }
.narrow { max-width: 680px; margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 700;
  margin-bottom: 18px;
}

.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-body); }

/* Placeholder marker — fill these in before going live */
.ph {
  border-bottom: 1.5px dotted rgba(200, 81, 44, 0.5);
  cursor: help;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  min-height: 52px;
  padding: 15px 24px;
  cursor: pointer;
  border: 1px solid transparent;
  box-shadow: none;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: var(--clay);
  color: #fff;
  box-shadow: 0 10px 24px rgba(185, 87, 58, 0.18);
}
.btn-primary:hover {
  background: var(--clay-dark);
  color: #fff;
  box-shadow: 0 12px 26px rgba(147, 69, 46, 0.2);
}
.btn-primary:active { transform: translateY(1px); }
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(185, 87, 58, 0.18);
}
.btn-ghost { background: rgba(255, 250, 242, 0.5); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: rgba(185, 87, 58, 0.38); color: var(--clay); background: var(--paper); }
.btn-lg { padding: 17px 32px; font-size: 17px; }

/* ---------- Top nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 240, 229, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  color: var(--ink);
  letter-spacing: 0;
}
.brand:hover { color: var(--ink); }
.brand .dot { color: var(--clay); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a.navlink {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-body);
  padding: 6px 0;
}
.nav-links a.navlink:hover { color: var(--clay); }
.nav-cta { min-height: 44px; padding: 10px 18px; font-size: 14px; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 250, 242, 0.62);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}
.nav-toggle::before { transform: translateY(-6px); }
.nav-toggle::after { transform: translateY(6px); }

@media (max-width: 720px) {
  .nav-inner { position: relative; }
  .nav-toggle { display: inline-flex; flex-direction: column; }
  .nav-links {
    position: absolute;
    top: calc(100% + 13px);
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
  }
  .nav.nav-open .nav-links { display: flex; }
  .nav-links a.navlink {
    display: block;
    padding: 11px 12px;
    border-radius: var(--radius-sm);
  }
  .nav-links a.navlink:hover { background: var(--paper-2); }
  .nav-cta { width: 100%; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: #d8cdbe;
  padding: 56px 0 40px;
}
.footer .container { display: grid; gap: 28px; }
.footer .brand { color: #fff; }
.footer .creed {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 26px);
  color: #fff;
  max-width: 640px;
  line-height: 1.25;
}
.footer-socials { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-socials a { color: #d8cdbe; font-weight: 600; font-size: 15px; }
.footer-socials a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #a99a87;
}
.footer-bottom a { color: #a99a87; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.65) inset;
}
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card p { font-size: 15.5px; color: var(--ink-body); }

/* ---------- Email capture form ---------- */
.signup { display: flex; gap: 10px; flex-wrap: wrap; max-width: 480px; }
.signup input[type="email"] {
  flex: 1 1 240px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  min-height: 52px;
  padding: 15px 16px;
  outline: none;
  box-shadow: 0 1px 0 rgba(255,255,255,0.75) inset;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.signup input[type="email"]:focus {
  border-color: var(--clay);
  background: #fffdf8;
  box-shadow: 0 0 0 4px rgba(185, 87, 58, 0.14);
}
.signup input[type="email"]::placeholder { color: #b3a591; }
.signup button { flex: 0 0 auto; }
.signup button:disabled { opacity: 0.6; cursor: default; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { font-size: 15px; min-height: 22px; margin-top: 12px; font-weight: 600; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--err); }
.form-note { font-size: 13.5px; color: var(--muted); margin-top: 10px; }

/* ---------- Misc ---------- */
.kicker-line { color: var(--clay); font-weight: 700; }
hr.rule { border: none; border-top: 1px solid var(--line); margin: 0; }
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  background: rgba(113, 123, 95, 0.13);
  border-radius: 999px;
  padding: 6px 12px;
}

/* ---------- Premium page patterns ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 68px;
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(90deg, rgba(247,240,229,0) 0%, rgba(255,250,242,0.56) 58%, rgba(247,240,229,0) 100%);
}
.page-hero h1 {
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.04;
  margin-bottom: 20px;
}
.page-hero h1 .pop { color: var(--clay); font-style: italic; }
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.82fr);
  gap: clamp(40px, 6vw, 76px);
  align-items: center;
}
.section-head { margin-bottom: 52px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.premium-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,250,242,0.9), rgba(255,250,242,0.66)),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.premium-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--clay), var(--gold));
}
.framed-image {
  position: relative;
  isolation: isolate;
}
.framed-image::before {
  content: "";
  position: absolute;
  inset: 28px -12px -12px 28px;
  border: 1px solid rgba(33,24,19,0.12);
  border-radius: var(--radius);
  background: var(--paper-2);
  z-index: -1;
}
.framed-image img {
  width: 100%;
  border: 1px solid rgba(33,24,19,0.12);
  border-radius: var(--radius);
  background: var(--cream-2);
  box-shadow: var(--shadow);
}
.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,250,242,0.56);
  overflow: hidden;
}
.proof-item {
  padding: 22px 24px;
  border-right: 1px solid var(--line-soft);
}
.proof-item:last-child { border-right: 0; }
.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
}
.proof-item span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.arrow-list,
.check-list {
  list-style: none;
  display: grid;
  gap: 14px;
}
.arrow-list li,
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16.5px;
}
.arrow-list .tick,
.check-list .tick {
  color: var(--clay);
  font-weight: 800;
  flex: 0 0 auto;
}
.arrow-list strong,
.check-list strong { color: var(--ink); }
.editorial-card {
  padding: 34px;
  border-left: 2px solid var(--clay);
  background: rgba(255,250,242,0.48);
}

@media (max-width: 860px) {
  .page-hero { padding: 54px 0 62px; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .page-hero h1 { font-size: clamp(36px, 10vw, 54px); }
  .proof-strip { grid-template-columns: 1fr; }
  .proof-item { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .proof-item:last-child { border-bottom: 0; }
}

@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .section { padding: 76px 0; }
  .signup .btn, .signup input[type="email"] { width: 100%; }
  .signup { max-width: none; }
  .section-head { margin-bottom: 34px; }
  .premium-panel, .editorial-card { padding: 24px; }
  .framed-image::before { inset: 18px -8px -8px 18px; }
}
