:root {
  --ink: #2b2118;
  --ink-soft: #4a3d31;
  --cream: #fdf8f1;
  --sand: #f6ead8;
  --peach: #fbe3cc;
  --paper: #ffffff;
  --gold: #bca37f;
  --gold-soft: #ead9bd;
  --gold-deep: #8f7550;
  --brick: #a8432f;
  --brick-deep: #84321f;
  --amber: #e0a24a;
  --line: #ecdfcc;
  --muted: #74685a;
  --black: #17140f;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(120, 72, 30, .10);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 18px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brick); text-underline-offset: 3px; }
a:hover { color: var(--brick-deep); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.section { padding: 56px 0; }
.small { font-size: .88rem; color: var(--muted); }
.eyebrow { font: 700 .8rem/1.2 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--brick); margin-bottom: .8em; }
.eyebrow a { color: inherit; text-decoration: none; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 46em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 99; }
.hp { position: absolute; left: -9999px; }

/* Buttons: brick is the main action, gold and outline are secondary */
.btn { display: inline-block; padding: .8em 1.4em; border-radius: 999px; font: 700 1rem/1 var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--brick); color: #fff; }
.btn-gold:hover { background: var(--brick-deep); color: #fff; }
.btn-ghost, .btn-ghost-dark { border-color: var(--brick); color: var(--brick); background: transparent; }
.btn-ghost:hover, .btn-ghost-dark:hover { background: var(--brick); color: #fff; }
.btn-ghost-light { border-color: var(--brick); color: var(--brick); }
.btn-ghost-light:hover { background: var(--brick); color: #fff; }

/* Header */
.site-header { background: rgba(253, 248, 241, .96); backdrop-filter: blur(6px); border-bottom: 3px solid var(--gold); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 24px; padding: 14px 0; }
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font: 500 1.35rem/1.1 var(--serif); }
.brand-name b { color: var(--brick); font-weight: 700; }
.brand-with { font-size: .8rem; letter-spacing: .08em; color: var(--muted); margin-top: 3px; }
.site-nav { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--brick); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 2px solid var(--brick); color: var(--brick); border-radius: 999px; padding: 6px 14px; font: 700 .9rem var(--sans); }

/* Home hero: the seasonal photo with a soft cream glow behind the headline */
.home-hero {
  background:
    linear-gradient(90deg, rgba(253,248,241,.97) 0%, rgba(253,248,241,.9) 38%, rgba(253,248,241,.35) 62%, rgba(253,248,241,0) 80%),
    url('/images/home-hero-fall.jpg') center / cover no-repeat,
    var(--peach);
  padding: 96px 0 120px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.home-hero h1 em { color: var(--brick); font-style: italic; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.4em; }
.hero-badge { display: none; }
.badge-ring {
  width: min(340px, 80vw); aspect-ratio: 1; border-radius: 50%;
  border: 3px solid var(--brick); outline: 2px dashed rgba(168, 67, 47, .35); outline-offset: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(circle at 50% 40%, #fff7ec, var(--gold-soft) 75%);
  box-shadow: var(--shadow);
}
.badge-top { font: 500 1.2rem var(--serif); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.badge-mid { font: 700 clamp(2.2rem, 5vw, 3.2rem)/1 var(--serif); color: var(--brick); margin: .15em 0; }
.badge-bot { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Weekly rhythm */
.rhythm { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -48px; position: relative; }
.rhythm-card { background: var(--paper); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; border-top: 5px solid var(--amber); transition: transform .15s; }
.rhythm-card:nth-child(2) { border-top-color: var(--brick); }
.rhythm-card:nth-child(3) { border-top-color: var(--gold); }
.rhythm-card:nth-child(4) { border-top-color: #c7774a; }
.rhythm-card:hover { transform: translateY(-3px); color: var(--ink); }
.rhythm-card .day { font: 700 .78rem var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--brick); }
.rhythm-card .what { font: 700 1.2rem var(--serif); }
.rhythm-card .why { font-size: .95rem; color: var(--muted); }

/* Cards */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head a { font-weight: 700; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-img img, .card-noimg { aspect-ratio: 16/9; width: 100%; object-fit: cover; }
.card-noimg { background: linear-gradient(135deg, var(--peach), var(--gold-soft)); display: grid; place-items: center; color: var(--brick); font: 700 1.1rem var(--serif); }
.card-body { padding: 18px 20px 20px; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--brick); }
.card-body p { font-size: .98rem; color: var(--ink-soft); }
.card-date { font-size: .85rem !important; color: var(--muted) !important; margin: 0; }
.empty { background: var(--paper); border: 2px dashed var(--gold-soft); border-radius: var(--radius); padding: 28px; }
.empty p { margin: 0; }

/* About band */
.about-band { background: var(--sand); padding: 64px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
.about-grid img { border-radius: 50%; border: 6px solid #fff; box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; }
.about-band p { color: var(--ink-soft); }

/* Sign-up */
.signup-section { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 14px; }
form input, form select, form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: 1rem var(--sans); background: #fff; color: var(--ink); }
form input:focus, form select:focus, form textarea:focus { outline: 2px solid var(--amber); border-color: var(--amber); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.opt { font-weight: 400; color: var(--muted); }
.signup, .contact-form { background: var(--paper); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 5px solid var(--amber); }

/* Page hero */
.page-hero { background: linear-gradient(135deg, var(--sand), var(--peach)); padding: 56px 0 48px; border-bottom: 3px solid var(--gold); }

/* Prose and posts */
.prose h2 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { border-left: 4px solid var(--amber); margin: 1.5em 0; padding: .2em 0 .2em 1.2em; color: var(--ink-soft); font-style: italic; }
.table-wrap { overflow-x: auto; margin: 1.5em 0; border-radius: var(--radius); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; background: #fff; font-size: .98rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--peach); color: var(--brick-deep); font-weight: 700; }
tr:nth-child(even) td { background: #fffaf3; }
tr:last-child td { border-bottom: 0; }
.post { padding: 48px 0 24px; }
.post-meta { color: var(--muted); font-size: .95rem; }
.post-hero { margin: 24px 0 32px; }
.post-hero img { border-radius: var(--radius); width: 100%; }
.disclaimer { color: var(--muted); font-size: .92rem; margin-top: 2em; }
.cta-box { display: grid; grid-template-columns: 96px 1fr; gap: 20px; background: var(--sand); border: 2px solid var(--gold); border-radius: var(--radius); padding: 24px; margin: 36px 0; }
.cta-box img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; border: 3px solid #fff; }
.cta-box h2 { font-size: 1.4rem; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.post-signup { margin: 40px 0; }
.cta-wide { background: linear-gradient(135deg, var(--peach), var(--gold-soft)); border-radius: var(--radius); padding: 32px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-wide p { margin: 0; color: var(--ink-soft); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
.contact-card { background: var(--sand); border-radius: var(--radius); padding: 28px; text-align: center; border: 2px solid var(--gold-soft); }
.contact-card img { width: 140px; margin: 0 auto 14px; border-radius: 50%; border: 5px solid #fff; box-shadow: var(--shadow); aspect-ratio: 1; object-fit: cover; }
.contact-card h2 { font-size: 1.5rem; }
.big-phone { font: 700 1.6rem var(--serif); text-decoration: none; }
.contact-card .compliance { justify-content: center; }

/* Compliance: broker and agent at the same size */
.compliance { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .95rem; margin: 14px 0; }
.compliance span { white-space: nowrap; }

/* Footer: warm sand, with the Epique logo on its black badge */
.site-footer { background: var(--sand); color: var(--ink-soft); padding: 56px 0 0; margin-top: 40px; font-size: .97rem; border-top: 3px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 40px; }
.footer-brand { font: 500 1.4rem var(--serif); color: var(--ink); }
.footer-brand b { color: var(--brick); }
.footer-head { font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--brick); }
.site-footer .btn-ghost { color: var(--brick); }
.site-footer .btn-ghost:hover { color: #fff; }
.footer-broker img { background: var(--black); padding: 14px 18px; border-radius: 12px; margin-bottom: 10px; box-sizing: content-box; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 36px; padding: 18px 0; font-size: .88rem; color: var(--muted); }
.footer-bottom span { display: inline-flex; align-items: center; gap: 8px; }

/* Exit pop-up */
.exit-pop { position: fixed; inset: 0; background: rgba(43,33,24,.45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.exit-pop[hidden] { display: none; }
.exit-card { background: var(--cream); border-radius: var(--radius); padding: 32px; max-width: 460px; width: 100%; position: relative; border-top: 6px solid var(--amber); }
.exit-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--ink); }

@media (max-width: 900px) {
  .hero-grid, .about-grid, .signup-section, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-badge { display: none; }
  .rhythm { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .about-grid img { width: 220px; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .menu-toggle { display: block; }
  .site-nav { display: none; width: 100%; flex-direction: column; gap: 12px; padding: 12px 0 6px; }
  .site-nav.open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .cards, .rhythm, .field-row { grid-template-columns: 1fr; }
  .rhythm { margin-top: -32px; }
  .cta-box { grid-template-columns: 1fr; }
  .cta-box img { width: 80px; }
  .home-hero { padding: 40px 0 200px; background: linear-gradient(180deg, rgba(253,248,241,.97) 0%, rgba(253,248,241,.94) 66%, rgba(253,248,241,0) 86%), url('/images/home-hero-fall-900.jpg') 70% bottom / cover no-repeat, var(--peach); }
}
[id] { scroll-margin-top: 96px; }
