/*
 * Munie Media — site styles
 * Plain CSS, no build step. Palette and type are defined once below.
 */

:root {
    /* Greys */
    --ink: #1f2124;          /* charcoal: body text, dark sections */
    --graphite: #2b2e33;     /* raised surface on dark */
    --slate: #5a5e66;        /* muted text on light */
    --mist: #a9adb3;         /* muted text on dark */
    --line: #dddad4;         /* borders on light */
    --line-dark: #3a3d42;    /* borders on dark */
    --paper: #f4f3f0;        /* page background */
    --white: #ffffff;

    /* Accents */
    --gold: #c9a13b;         /* decorative on light; text only on dark */
    --gold-ink: #7a5c0e;     /* gold for text on light backgrounds */
    --red: #b3261e;          /* sparing: CTAs and small details */
    --red-dark: #8f1e18;

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

    --wrap: 72rem;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --space: clamp(4.5rem, 10vw, 8rem);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

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

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin: 0;
}

p {
    margin: 0 0 1rem;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

a:hover {
    text-decoration-color: var(--red);
}

:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
    border-radius: 2px;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.skip-link {
    position: absolute;
    left: var(--gutter);
    top: -4rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    background: var(--ink);
    color: var(--white);
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

/* ---------- Wordmark ---------- */

.wordmark {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-decoration: none;
    white-space: nowrap;
}

.wordmark span {
    color: var(--red);
}

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

.site-header {
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.site-header .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 2rem;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.9375rem;
}

.site-nav a {
    text-decoration: none;
    color: var(--slate);
    padding: 0.25rem 0;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover {
    color: var(--ink);
    border-bottom-color: var(--gold);
}

.site-nav a[aria-current="page"] {
    color: var(--ink);
    border-bottom-color: var(--red);
}

/* ---------- Shared pieces ---------- */

.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-ink);
}

.eyebrow::before {
    content: "";
    width: 2rem;
    height: 2px;
    background: var(--gold);
}

.btn {
    display: inline-block;
    padding: 0.9rem 1.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 2px;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--red-dark);
}

.text-link {
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 0.15rem;
}

.text-link:hover {
    border-bottom-color: var(--red);
}

.section {
    padding: var(--space) 0;
}

.section + .section {
    border-top: 1px solid var(--line);
}

.section-head {
    display: grid;
    gap: 1rem 4rem;
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section-head h2 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    max-width: 16ch;
}

.section-head p {
    color: var(--slate);
    max-width: 38rem;
    margin: 0;
}

@media (min-width: 56rem) {
    .section-head {
        grid-template-columns: 5fr 7fr;
        align-items: end;
    }
}

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

.hero {
    padding: clamp(4.5rem, 12vw, 9rem) 0 clamp(4rem, 9vw, 7rem);
}

.hero h1 {
    font-size: clamp(2.75rem, 8vw, 5.75rem);
    max-width: 13ch;
    letter-spacing: -0.03em;
}

.hero h1 em {
    font-style: italic;
    color: var(--gold-ink);
}

.hero-lede {
    max-width: 36rem;
    margin: 2rem 0 2.5rem;
    font-size: clamp(1.125rem, 2vw, 1.3125rem);
    color: var(--slate);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem 2rem;
}

/* ---------- Services ---------- */

.services {
    display: grid;
    grid-template-columns: 1fr;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.services li {
    padding: 2rem 0;
    border-bottom: 1px solid var(--line);
}

.services .num {
    display: block;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--gold-ink);
    font-variant-numeric: tabular-nums;
}

.services h3 {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
}

.services p {
    margin: 0;
    color: var(--slate);
    max-width: 30rem;
}

@media (min-width: 40rem) {
    .services {
        grid-template-columns: repeat(2, 1fr);
    }

    .services li {
        padding: 2.25rem 2rem 2.25rem 0;
    }

    .services li:nth-child(2n) {
        padding-left: 2rem;
        border-left: 1px solid var(--line);
    }
}

@media (min-width: 64rem) {
    .services {
        grid-template-columns: repeat(3, 1fr);
    }

    .services li,
    .services li:nth-child(2n) {
        padding: 2.5rem 2rem;
        border-left: 1px solid var(--line);
    }

    .services li:nth-child(3n + 1) {
        padding-left: 0;
        border-left: 0;
    }
}

/* ---------- Process ---------- */

.process {
    background: var(--white);
}

.steps {
    display: grid;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    counter-increment: step;
    padding-top: 1.5rem;
    border-top: 2px solid var(--ink);
}

.steps li::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    margin-bottom: 1.25rem;
    font-family: var(--font-display);
    font-size: 2.5rem;
    line-height: 1;
    color: var(--gold-ink);
}

.steps h3 {
    font-size: 1.375rem;
    margin-bottom: 0.6rem;
}

.steps p {
    margin: 0;
    color: var(--slate);
}

@media (min-width: 48rem) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

/* ---------- Contact ---------- */

.contact {
    background: var(--ink);
    color: var(--white);
}

.section + .contact {
    border-top: 0;
}

.contact .eyebrow {
    color: var(--gold);
}

.contact h2 {
    font-size: clamp(2.25rem, 6vw, 4rem);
    max-width: 18ch;
}

.contact p {
    color: var(--mist);
    max-width: 34rem;
    margin: 1.5rem 0 2.5rem;
}

.contact-email {
    display: inline-block;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 5vw, 2.75rem);
    color: var(--gold);
    text-decoration: none;
    border-bottom: 2px solid var(--line-dark);
    padding-bottom: 0.25rem;
    overflow-wrap: anywhere;
    transition: border-color 0.15s ease;
}

.contact-email:hover {
    border-bottom-color: var(--red);
}

.contact :focus-visible {
    outline-color: var(--gold);
}

/* ---------- Text pages (About, legal) ---------- */

.page {
    padding: clamp(3.5rem, 9vw, 6rem) 0 var(--space);
}

.page-head {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--line);
}

.page-title {
    font-size: clamp(2.25rem, 6vw, 3.75rem);
    max-width: 18ch;
}

.prose {
    max-width: 42rem;
}

.prose h2 {
    font-size: 1.5rem;
    margin: 2.75rem 0 0.85rem;
}

.prose ul {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

.prose li {
    margin-bottom: 0.4rem;
}

.prose li::marker {
    color: var(--gold-ink);
}

.prose a {
    text-decoration-color: var(--gold);
}

.prose a:hover {
    text-decoration-color: var(--red);
}

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

.site-footer {
    background: var(--ink);
    color: var(--mist);
    font-size: 0.9375rem;
}

.site-footer .wrap {
    display: grid;
    gap: 2rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
    border-top: 1px solid var(--line-dark);
}

.site-footer .wordmark {
    color: var(--white);
}

.site-footer ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a {
    color: var(--mist);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--white);
    text-decoration: underline;
    text-decoration-color: var(--gold);
}

.site-footer :focus-visible {
    outline-color: var(--gold);
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 2rem;
}

.footer-meta p {
    margin: 0;
}

@media (min-width: 48rem) {
    .site-footer .wrap {
        grid-template-columns: auto 1fr;
        align-items: center;
    }

    .site-footer nav ul {
        justify-content: flex-end;
    }

    .footer-meta {
        grid-column: 1 / -1;
        padding-top: 1.5rem;
        border-top: 1px solid var(--line-dark);
    }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
    .hero .eyebrow,
    .hero h1,
    .hero-lede,
    .hero-actions {
        animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }

    .hero h1 { animation-delay: 0.05s; }
    .hero-lede { animation-delay: 0.12s; }
    .hero-actions { animation-delay: 0.18s; }
}

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

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(0.75rem);
    }
}
