/* Alexander Dale theme. Mobile-first; breakpoints at 640px, 960px. */

@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Playfair Display";
    src: url("../fonts/playfair-display-latin-600-normal.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Playfair Display";
    src: url("../fonts/playfair-display-latin-700-normal.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Playfair Display";
    src: url("../fonts/playfair-display-latin-600-italic.woff2") format("woff2");
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

:root {
    --navy-950: #08111e;
    --navy-900: #0b1626;
    --navy-800: #12233b;
    --navy-700: #1d3557;
    --gold-500: #c9a44c;
    --gold-300: #e4c983;
    --gold-700: #8a6a1f; /* gold for text on light backgrounds (AA) */
    --cream: #f8f5ee;
    --paper: #ffffff;
    --ink: #1a2232;
    --muted: #586174;
    --line: #e4dfd3;
    --serif: var(--gh-font-heading, "Playfair Display", Georgia, "Times New Roman", serif);
    --sans: var(--gh-font-body, "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
    --radius: 10px;
    --shadow: 0 1px 2px rgb(8 17 30 / 6%), 0 8px 24px rgb(8 17 30 / 8%);
    --gutter: 20px;
    --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
figure { margin: 0; }

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 760px; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--gold-500); color: var(--navy-950);
    padding: 10px 16px; border-radius: var(--radius); font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0 26px;
    border: 2px solid transparent; border-radius: 999px;
    font: 600 1rem/1 var(--sans); letter-spacing: 0.01em;
    text-decoration: none; cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.9375rem; }
.btn-gold { background: var(--gold-500); color: var(--navy-950); }
.btn-gold:hover { background: var(--gold-300); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-outline-light { border-color: rgb(255 255 255 / 45%); color: #fff; }
.btn-outline-light:hover { border-color: var(--gold-300); color: var(--gold-300); }

.text-link {
    color: var(--gold-700); font-weight: 600; text-decoration: none;
    border-bottom: 1px solid currentColor;
}
.text-link::after { content: " →"; }

.eyebrow {
    margin: 0 0 14px;
    color: var(--gold-300);
    font-size: 0.8125rem; font-weight: 600;
    letter-spacing: 0.16em; text-transform: uppercase;
}
.eyebrow a { text-decoration: none; }
.eyebrow-dark { color: var(--gold-700); }

/* ---------- Header ---------- */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--navy-900);
    color: #fff;
    border-bottom: 1px solid rgb(201 164 76 / 25%);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    min-height: var(--header-h);
}
.brand {
    font-family: var(--serif); font-size: 1.35rem; font-weight: 700;
    text-decoration: none; color: #fff;
}
.brand img { max-height: 40px; width: auto; }

.nav-toggle { display: none; }
.site-nav { display: flex; flex-direction: column; gap: 16px; width: 100%; padding: 8px 0 20px; }
.site-nav .nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.site-nav .nav a {
    display: block; padding: 8px 0;
    color: rgb(255 255 255 / 85%); text-decoration: none; font-weight: 500;
}
/* No .nav-current styling: Ghost marks every "/#section" link current on the home page. */
.site-nav .nav a:hover { color: var(--gold-300); }
.site-nav .btn { align-self: flex-start; }

/* With JS, collapse the nav behind a toggle on small screens. */
.js .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0;
    background: none; border: 1px solid rgb(255 255 255 / 25%); border-radius: 8px;
    color: #fff; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 20px; height: 2px; background: currentColor; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.js .site-nav { display: none; }
.js .site-header.is-open .site-nav { display: flex; }

@media (min-width: 960px) {
    .js .nav-toggle { display: none; }
    .site-nav, .js .site-nav {
        display: flex; flex-direction: row; align-items: center; gap: 28px;
        width: auto; padding: 0;
    }
    .site-nav .nav { flex-direction: row; gap: 28px; }
    .site-nav .nav a { padding: 4px 0; font-size: 0.9688rem; }
    .site-nav .btn { align-self: auto; }
}

/* ---------- Hero ---------- */

.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(1200px 600px at 85% 10%, rgb(201 164 76 / 14%), transparent 60%),
        linear-gradient(180deg, var(--navy-900), var(--navy-950));
    color: #fff;
    padding: 56px 0 72px;
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 0.2em; color: #fff; }
.hero-role {
    font-family: var(--serif); font-style: italic; font-weight: 600;
    font-size: 1.2rem; color: var(--gold-300);
}
.hero-intro { max-width: 34em; font-size: 1.15rem; color: rgb(255 255 255 / 82%); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.hero-portrait { position: relative; max-width: 440px; justify-self: center; width: 85%; }
.hero-portrait::before {
    content: ""; position: absolute; inset: 18px -18px -18px 18px;
    border: 2px solid var(--gold-500); border-radius: 4px; opacity: .7;
}
.hero-portrait img {
    position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
    border-radius: 4px; box-shadow: 0 30px 60px rgb(0 0 0 / 35%);
}

@media (min-width: 960px) {
    .hero { padding: 96px 0 112px; }
    .hero-grid { grid-template-columns: 1.2fr 1fr; gap: 72px; }
    .hero-portrait { width: 100%; }
}

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy-900); color: #fff; }
.section-navy h2 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p:last-child { color: var(--muted); font-size: 1.1rem; }
.section-navy .section-head p:last-child { color: rgb(255 255 255 / 75%); }
.section-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; }
@media (min-width: 960px) { .section { padding: 104px 0; } }

/* About */
.about-grid { display: grid; gap: 40px; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.lead { font-size: 1.2rem; color: var(--navy-700); font-weight: 500; }
@media (min-width: 960px) {
    .about-grid:has(.about-photo) { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
    .about-grid:not(:has(.about-photo)) { max-width: 820px; }
    .about-photo { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* Prose (Ghost content) */
.prose > * { margin-top: 0; margin-bottom: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.75rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose a { color: var(--gold-700); }
.prose blockquote {
    margin: 1.5em 0; padding: 4px 0 4px 22px;
    border-left: 3px solid var(--gold-500);
    font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--navy-700);
}
.prose ul, .prose ol { padding-left: 1.3em; }
.prose img { border-radius: var(--radius); }
.prose figcaption { font-size: 0.9rem; color: var(--muted); text-align: center; margin-top: 8px; }

/* Ghost editor cards */
.kg-width-wide { position: relative; width: min(1040px, 100vw - 2 * var(--gutter)); left: 50%; transform: translateX(-50%); }
.kg-width-full { position: relative; width: 100vw; left: 50%; transform: translateX(-50%); }
.kg-width-full img { border-radius: 0; }

/* His heart (next generation / CALLED) */
.heart {
    background:
        radial-gradient(900px 500px at 10% 0%, rgb(201 164 76 / 12%), transparent 60%),
        var(--navy-900);
}
.heart-grid { display: grid; gap: 40px; }
.heart-lead {
    font-family: var(--serif); font-style: italic; font-weight: 600;
    font-size: 1.35rem; line-height: 1.5; color: var(--gold-300); margin-bottom: 28px;
}
.prose-light { color: rgb(255 255 255 / 85%); }
.prose-light h2, .prose-light h3 { color: #fff; }
.prose-light h3 { border-top: 1px solid rgb(201 164 76 / 35%); padding-top: 22px; }
.prose-light > h3:first-child { border-top: 0; padding-top: 0; }
.prose-light a { color: var(--gold-300); }
.prose-light blockquote { color: #fff; }
@media (min-width: 960px) {
    .heart-grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
    .heart-head { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* Topics */
.topic-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.topic-card {
    position: relative; display: flex; flex-direction: column;
    padding: 30px 28px; background: var(--paper);
    border: 1px solid var(--line); border-top: 3px solid var(--gold-500);
    border-radius: var(--radius); box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}
.topic-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(8 17 30 / 6%), 0 16px 36px rgb(8 17 30 / 12%); }
.topic-card:focus-within { outline: 3px solid var(--gold-500); outline-offset: 3px; }
.topic-mark { width: 28px; height: 28px; margin-bottom: 18px; color: var(--gold-500);
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10.5 2h3v6h6v3h-6v11h-3V11h-6V8h6z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.topic-card h3 { color: var(--navy-900); margin-bottom: 10px; }
.topic-card h3 a { text-decoration: none; }
.topic-card h3 a::after { content: ""; position: absolute; inset: 0; }
.topic-card h3 a:focus-visible { outline: none; }
.topic-card p { color: var(--muted); flex: 1; }
.topic-card .text-link { align-self: flex-start; font-size: 0.9375rem; }
@media (min-width: 640px) { .topic-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .topic-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* Testimonials */
.quote-grid { display: grid; gap: 24px; }
.quote {
    padding: 32px; border: 1px solid rgb(201 164 76 / 30%); border-radius: var(--radius);
    background: rgb(255 255 255 / 3%);
    display: flex; flex-direction: column; justify-content: space-between;
}
.quote blockquote { margin: 0 0 24px; font-family: var(--serif); font-size: 1.2rem; line-height: 1.55; }
.quote blockquote::before { content: "“"; display: block; font-size: 3.5rem; line-height: 1; color: var(--gold-500); height: 32px; }
.quote blockquote p { margin: 0 0 .75em; }
.quote figcaption strong { display: block; color: var(--gold-300); font-weight: 600; }
.quote figcaption span { font-size: 0.9375rem; color: rgb(255 255 255 / 70%); }
@media (min-width: 960px) { .quote-grid { grid-template-columns: repeat(3, 1fr); } }

.section-cream .quote { background: var(--paper); border-color: var(--line); box-shadow: var(--shadow); }
.section-cream .quote blockquote { color: var(--navy-900); }
.section-cream .quote figcaption strong { color: var(--gold-700); }
.section-cream .quote figcaption span { color: var(--muted); }

/* Post cards */
.post-grid { display: grid; gap: 28px; }
.post-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post-card-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card-body { padding: 22px 24px 26px; }
.post-card h3 { font-size: 1.25rem; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { color: var(--gold-700); }
.post-card p:last-child { color: var(--muted); margin: 0; }
.post-meta { font-size: 0.875rem; color: var(--muted); margin-bottom: 8px; }
.post-meta-light { color: rgb(255 255 255 / 70%); }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; color: var(--muted); }
.pagination a { color: var(--gold-700); font-weight: 600; }

/* Contact */
.contact-grid { display: grid; gap: 48px; }
.contact-info > p { color: var(--muted); }
.contact-list { margin: 28px 0; display: grid; gap: 16px; }
.contact-list div { display: grid; gap: 2px; }
.contact-list dt { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-700); }
.contact-list dd { margin: 0; font-size: 1.1rem; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-list a:hover { border-color: var(--gold-500); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 72px; } }

.ways { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.ways li { padding-left: 22px; position: relative; color: var(--muted); }
.ways li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500); }
.ways strong { color: var(--navy-900); }

.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.social:not(:has(li)) { display: none; }
.social a { font-weight: 600; font-size: 0.9375rem; color: var(--gold-700); text-decoration: none; }

.contact-form {
    padding: 28px 24px; background: var(--cream);
    border: 1px solid var(--line); border-radius: var(--radius);
}
@media (min-width: 640px) { .contact-form { padding: 36px; } }
.field-row { display: grid; gap: 0 20px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; align-items: end; } }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9375rem; color: var(--navy-900); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
    width: 100%; padding: 12px 14px;
    border: 1px solid #cfc7b5; border-radius: 8px; background: #fff;
    font: inherit; font-size: 1rem; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--gold-500); outline-offset: 1px; border-color: var(--gold-500); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; font-weight: 500; }
.form-status.is-error { color: #a12a2a; }
.form-status.is-ok { color: #1f6b3a; }

/* ---------- Inner pages ---------- */

.page-hero {
    background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
    color: #fff; padding: 64px 0 56px;
}
.page-hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); color: #fff; }
.page-hero p { color: rgb(255 255 255 / 80%); font-size: 1.15rem; }
.page-hero .eyebrow { color: var(--gold-300); font-size: 0.8125rem; }
.page-hero-tall { min-height: 60vh; display: flex; align-items: center; }
.article-image { margin-top: 40px; }
.article-image img { border-radius: var(--radius); width: 100%; }
.article-image figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 8px; }
.article .prose { padding-top: 48px; padding-bottom: 72px; font-size: 1.125rem; }

.cta-band { background: var(--cream); border-top: 1px solid var(--line); padding: 48px 0; }
.cta-band-inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-band h2 { font-size: 1.75rem; margin-bottom: 4px; color: var(--navy-900); }
.cta-band p { margin: 0; color: var(--muted); }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-950); color: rgb(255 255 255 / 75%); padding: 56px 0 24px; font-size: 0.9688rem; }
.footer-grid { display: grid; gap: 32px; }
.footer-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.footer-tagline { color: var(--gold-300); font-size: 0.875rem; letter-spacing: 0.06em; }
.site-footer .nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .nav a { text-decoration: none; }
.site-footer .nav a:hover { color: var(--gold-300); }
.footer-cta { display: grid; gap: 18px; justify-items: start; align-content: start; }
.site-footer .social a { color: var(--gold-300); }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 10%); font-size: 0.875rem; }
.footer-base p { margin: 0; }
@media (min-width: 960px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
    .footer-cta { justify-items: end; }
}
