/* ============================================================
   drewmagliozzi.com
   Type + components follow the Arcling foundation (arcling.css);
   palette follows the one-pager: cream, coral, soft green.
   ============================================================ */

:root {
    --bg-cream: #f6ecdf;
    --bg-paper: #fffaf4;
    --bg-tan: #eedfcb;
    --bg-blush: #fcece2;
    --bg-sage: #eef4dc;

    --ink: #2b211c;
    --ink-soft: #5a4a40;
    --coral: #d06a35;
    --coral-deep: #b4521f;      /* small text + button fill; passes AA on cream */
    --sage-ink: #3e5a2e;
    --sage-text: #46503a;

    --font-heading: 'Lora', serif;
    --font-body: 'DM Sans', sans-serif;
    --font-button: 'Inter', sans-serif;

    --radius-button: 84px;
    --radius-card: 24px;
    --radius-card-lg: 32px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    font-family: var(--font-body);
    background-color: var(--bg-cream);
    color: var(--ink);
    line-height: 1.6;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.02em;
}
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.08; margin-bottom: 24px; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.18; margin-bottom: 20px; }
h3 { font-size: 21px; line-height: 1.35; margin-bottom: 8px; }
p  { font-size: 17px; line-height: 1.7; margin-bottom: 1.25rem; color: var(--ink-soft); }
a  { color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

section[id] { scroll-margin-top: 84px; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) {
    .container, .container-narrow { padding: 0 20px; }
}

.section { padding: 96px 0; }
.section:nth-child(even of .section) { background: var(--bg-paper); }
@media (max-width: 760px) { .section { padding: 64px 0; } }

/* Brand accents ------------------------------------------------ */
.section-label {
    display: block;
    font-family: var(--font-button);
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 2.5px;
    font-weight: 600;
    color: var(--coral-deep);
    margin-bottom: 14px;
}
.tagline {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(18px, 2vw, 22px);
    color: var(--coral-deep);
    margin-bottom: 14px;
}
.lede { font-size: 20px; line-height: 1.6; max-width: 640px; }
.highlight-wrap { position: relative; display: inline-block; white-space: nowrap; z-index: 0; }
.brushstroke {
    position: absolute;
    left: 0; bottom: -6px;
    width: 100%; height: 14px;
    z-index: -1;
    overflow: visible;
}
.brushstroke path { stroke: var(--coral); }

/* Navbar ------------------------------------------------------- */
.navbar {
    background: rgba(246,236,223,0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(43,33,28,0.08);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.nav-logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
    text-decoration: none;
    white-space: nowrap;
}
.nav-links { display: flex; gap: 32px; font-weight: 500; font-size: 16px; }
.nav-links a { text-decoration: none; color: var(--ink-soft); transition: color 0.2s; }
.nav-links a:hover { color: var(--coral-deep); }
.nav-right { display: flex; align-items: center; gap: 32px; }
.navbar .btn { padding: 10px 22px; min-height: 44px; font-size: 15px; }
@media (max-width: 860px) { .nav-links { display: none; } }
@media (max-width: 400px) { .nav-logo { font-size: 20px; } }

/* Buttons ------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-button);
    font-weight: 600;
    font-size: 16px;
    padding: 14px 32px;
    min-height: 48px;
    border-radius: var(--radius-button);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    text-decoration: none;
}
.btn-primary { background-color: var(--coral-deep); color: white; }
.btn-primary:hover { background-color: #98441a; transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--bg-cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero --------------------------------------------------------- */
.hero { padding: 88px 0 72px; }
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 64px;
    align-items: center;
}
.hero .lede { margin-bottom: 36px; }
.hero-portrait { text-align: center; }
.hero-portrait img {
    width: 260px; height: 260px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 18px;
    border: 6px solid var(--bg-paper);
    box-shadow: 0 18px 40px rgba(43,33,28,0.14);
}
.hero-portrait .name { font-family: var(--font-heading); font-weight: 600; font-size: 20px; margin-bottom: 2px; }
.hero-portrait .role { font-size: 15px; color: var(--ink-soft); }
@media (max-width: 860px) {
    .hero { padding: 48px 0 56px; }
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .hero-portrait { order: -1; display: flex; align-items: center; gap: 18px; text-align: left; }
    .hero-portrait img { width: 96px; height: 96px; margin: 0; border-width: 4px; }
}

/* Proof bar ---------------------------------------------------- */
.proof h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 28px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
    background: var(--bg-tan);
    border-radius: var(--radius-card);
    padding: 28px 26px;
}
.stat-num {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(32px, 3.4vw, 42px);
    line-height: 1.1;
    color: var(--coral-deep);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.stat p { font-size: 15px; line-height: 1.5; margin: 0; }
@media (max-width: 960px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* Point of view ------------------------------------------------ */
.pov-callout {
    background: var(--bg-sage);
    border-radius: var(--radius-card-lg);
    padding: 48px 56px;
    margin-bottom: 48px;
}
.pov-callout :is(h2, h3) { color: var(--sage-ink); }
.pov-callout p { font-size: 19px; color: var(--sage-text); margin: 0; max-width: 760px; }
.lessons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; counter-reset: lesson; }
.lesson {
    background: var(--bg-paper);
    border-radius: var(--radius-card);
    padding: 30px 32px;
    border: 1px solid rgba(43,33,28,0.06);
}
.lesson h3::before {
    counter-increment: lesson;
    content: "0" counter(lesson);
    display: block;
    font-family: var(--font-button);
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--coral-deep);
    margin-bottom: 10px;
}
.lesson p { margin: 0; font-size: 16px; }
@media (max-width: 760px) {
    .pov-callout { padding: 32px 26px; }
    .lessons { grid-template-columns: 1fr; }
}

/* Services ----------------------------------------------------- */
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { font-size: 18px; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
    background: var(--bg-cream);
    border-radius: var(--radius-card);
    padding: 32px 30px;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(43,33,28,0.08); }
.service .dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--coral);
    margin-bottom: 18px;
}
.service p { font-size: 16px; }
.service .fit {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(43,33,28,0.1);
    font-size: 14.5px;
    margin-bottom: 0;
}
.service .fit strong { color: var(--ink); }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } }

/* Mainstay story ----------------------------------------------- */
.story { position: relative; margin-top: 16px; }
.story::before {
    content: "";
    position: absolute;
    left: 7px; top: 8px; bottom: 8px;
    width: 2px;
    background: linear-gradient(var(--coral), rgba(208,106,53,0.15));
}
.chapter { position: relative; padding-left: 48px; margin-bottom: 44px; }
.chapter::before {
    content: "";
    position: absolute;
    left: 0; top: 6px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--bg-cream);
    border: 3px solid var(--coral);
}
.chapter .year {
    font-family: var(--font-button);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--coral-deep);
    margin-bottom: 6px;
}
.chapter h3, .inst-col h3 { font-size: 24px; margin-bottom: 12px; }
.chapter p:last-child { margin-bottom: 0; }
.chapter-final::before { background: var(--coral); }
.pull-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(20px, 2.4vw, 26px);
    line-height: 1.45;
    color: var(--ink);
    border-left: 4px solid var(--coral);
    padding: 4px 0 4px 24px;
    margin: 20px 0 24px;
}
.takeaway {
    background: var(--bg-blush);
    border-radius: var(--radius-card);
    padding: 32px 36px;
    margin-top: 8px;
}
.takeaway p { margin: 0; font-size: 18px; color: var(--ink); }
.takeaway strong { color: var(--coral-deep); }

/* About -------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.timeline li {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(43,33,28,0.1);
    font-size: 16px;
    color: var(--ink-soft);
    line-height: 1.55;
}
.timeline li:last-child { border-bottom: none; }
.timeline .when { font-family: var(--font-heading); font-weight: 700; color: var(--coral-deep); }
.timeline strong { color: var(--ink); }
.press { margin-top: 40px; }
.press h3 { font-size: 15px; font-family: var(--font-button); text-transform: uppercase; letter-spacing: 2px; color: var(--ink-soft); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
    background: var(--bg-paper);
    border: 1px solid rgba(43,33,28,0.08);
    border-radius: 40px;
    padding: 6px 14px;
    font-size: 14px;
    color: var(--ink-soft);
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Who I help --------------------------------------------------- */
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.audience {
    background: var(--bg-paper);
    border-radius: var(--radius-card-lg);
    padding: 36px 32px 32px;
}
.audience h3 { font-size: 22px; margin-bottom: 14px; }
.audience p { font-size: 16px; }
.audience p:last-child { margin-bottom: 0; }
@media (max-width: 960px) { .audiences { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
    .audience { padding: 30px 26px; }
}

/* For institutions --------------------------------------------- */
.inst-callout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; }
.inst-callout h3 { font-size: 26px; margin: 0; line-height: 1.25; }
.inst-callout p { font-size: 17px; }
.inst-col p { font-size: 16px; }
.inst-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 16px;
    font-size: 16px;
    color: var(--ink-soft);
}
.inst-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 8px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--coral);
}
.inst-list strong { color: var(--ink); }
.inst-col .btn-row { margin-top: 8px; }
@media (max-width: 860px) { .inst-callout { grid-template-columns: 1fr; gap: 16px; } }

/* How it works ------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step-num {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--coral-deep);
    color: white;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.step p { font-size: 16px; margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* Final CTA ---------------------------------------------------- */
.cta-card {
    background: var(--bg-blush);
    border-radius: var(--radius-card-lg);
    padding: 64px 56px;
    text-align: center;
}
.cta-card h2 { max-width: 680px; margin: 0 auto 18px; }
.cta-card > p { max-width: 620px; margin: 0 auto 32px; font-size: 18px; }
.cta-card .btn-row { justify-content: center; margin-bottom: 28px; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; font-size: 16px; }
.contact-links a, .inline-link { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(43,33,28,0.3); text-underline-offset: 4px; }
.contact-links a:hover, .inline-link:hover { text-decoration-color: var(--coral); }
.inline-link { color: var(--coral-deep); font-weight: 500; }
@media (max-width: 600px) { .cta-card { padding: 44px 24px; } }

/* Footer ------------------------------------------------------- */
.footer { padding: 36px 0 48px; font-size: 14px; color: var(--ink-soft); }
.footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--coral-deep); }
.chapter .cite { font-size: 14.5px; margin-top: -12px; }
.chapter .cite a { color: var(--coral-deep); }
.chapter p a { color: var(--coral-deep); }
