:root {
    --page-ink: #19345f;
    --page-ink-soft: rgba(25, 52, 95, 0.78);
    --page-bg: #f8f4ed;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: rgba(255, 255, 255, 0.94);
    --line: rgba(25, 52, 95, 0.1);
    --shadow-xl: 0 30px 90px rgba(17, 63, 140, 0.14);
    --shadow-lg: 0 18px 55px rgba(17, 63, 140, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", Arial, sans-serif;
    color: var(--page-ink);
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--accent) 16%, transparent), transparent 30%),
        radial-gradient(circle at top right, rgba(255, 183, 77, 0.24), transparent 24%),
        linear-gradient(180deg, #fdfaf5 0%, var(--page-bg) 58%, #f3ede2 100%);
}

a {
    color: inherit;
}

.page-shell {
    width: min(1200px, calc(100% - 28px));
    margin: 0 auto;
    padding: 20px 0 56px;
}

.site-header {
    position: sticky;
    top: 16px;
    z-index: 30;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 16px 18px;
    margin-bottom: 26px;
    border: 1px solid var(--line);
    border-radius: 20px;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 12px 30px rgba(15, 49, 101, 0.06);
}

.brandmark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font: 700 1rem/1 "Fraunces", Georgia, serif;
    letter-spacing: 0.02em;
}

.brandmark-icon {
    display: block;
    width: 44px;
    height: auto;
    flex: 0 0 auto;
}

.brandmark-text {
    display: block;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 16px;
}

.site-nav a {
    text-decoration: none;
    font-size: 0.95rem;
    color: var(--page-ink-soft);
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--page-ink);
}

.site-nav a.is-active {
    color: var(--page-ink);
    font-weight: 800;
}

.hero-panel,
.mission-panel,
.badge-panel,
.page-hero,
.message-archive {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    border: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.72)),
        linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent);
    box-shadow: var(--shadow-xl);
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 28px;
    padding: 42px;
}

.hero-panel::before,
.mission-panel::before,
.badge-panel::before,
.page-hero::before,
.message-archive::before {
    content: "";
    position: absolute;
    inset: auto -40px -100px auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, white), transparent 70%);
    opacity: 0.7;
    pointer-events: none;
}

.kicker,
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: color-mix(in srgb, var(--accent) 75%, #0d1d3a);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pill-soft {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
}

.hero-copy h1,
.page-hero-copy h1,
.section-heading h2,
.mission-copy h2,
.badge-copy h2,
.story-card h2 {
    margin: 0;
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(2.6rem, 5vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
}

.hero-lede,
.section-lede,
.mission-copy p,
.badge-copy p,
.today-summary,
.today-context p,
.day-card p,
.story-card p,
.mini-callout p,
.archive-card p,
.neighbor-card p,
.site-footer p {
    color: var(--page-ink-soft);
    font-size: 1.02rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 30px 0 26px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
}

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 78%, #13355f), var(--accent));
    box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 25%, transparent);
}

.button-secondary {
    color: var(--page-ink);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.hero-stats div {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
}

.hero-stats dt {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--page-ink-soft);
}

.hero-stats dd {
    margin: 10px 0 0;
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.05rem;
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-card {
    width: min(100%, 460px);
    padding: 24px 18px;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-lg);
}

.hero-logo {
    display: block;
    width: 100%;
    height: auto;
}

.floating-note {
    position: absolute;
    right: 0;
    bottom: 18px;
    max-width: 260px;
    padding: 16px 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
}

.floating-note span {
    display: block;
    margin-bottom: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--accent) 74%, #19345f);
}

.floating-note strong {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.02rem;
    line-height: 1.4;
}

.today-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 24px;
    margin-top: 28px;
}

.today-spotlight,
.today-context {
    padding: 28px;
    border-radius: 28px;
    border: 1px solid var(--line);
    background: var(--surface-strong);
    box-shadow: var(--shadow-lg);
}

.spotlight-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.day-count {
    margin: 0;
    color: var(--page-ink-soft);
    font-weight: 700;
}

.today-spotlight h2,
.today-context h3,
.mission-card h3,
.day-card h3 {
    margin: 0 0 12px;
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.08;
}

.featured-message {
    margin: 22px 0 18px;
    padding: 24px;
    border-radius: 24px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--accent-soft) 78%, white), rgba(255, 255, 255, 0.9));
    border: 1px solid color-mix(in srgb, var(--accent) 18%, white);
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.45;
    color: #102746;
}

.message-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    color: var(--page-ink-soft);
    font-size: 0.92rem;
}

.text-link {
    font-weight: 800;
    color: color-mix(in srgb, var(--accent) 78%, #13355f);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
}

.context-note {
    margin-top: 22px;
    padding: 18px 18px 4px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
}

.mission-panel,
.badge-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    gap: 26px;
    padding: 34px;
    margin-top: 28px;
}

.mission-card {
    align-self: center;
    padding: 24px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
}

.page-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
    gap: 28px;
    padding: 42px;
}

.page-hero-day {
    margin-bottom: 28px;
}

.page-hero-copy {
    position: relative;
    z-index: 1;
}

.page-hero-aside {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

.badge-spotlight {
    padding: 24px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84));
    box-shadow: var(--shadow-lg);
}

.page-badge {
    display: block;
    width: min(100%, 360px);
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 18px 32px rgba(18, 47, 92, 0.08));
}

.mini-callout {
    padding: 18px 20px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-lg);
}

.mini-callout span {
    display: block;
    margin-bottom: 8px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--accent) 74%, #19345f);
}

.mini-callout strong {
    display: block;
    margin-bottom: 10px;
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.24rem;
    line-height: 1.2;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--page-ink-soft);
    font-size: 0.92rem;
}

.breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.breadcrumb strong {
    font-weight: 800;
    color: var(--page-ink);
}

.days-section {
    margin-top: 32px;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 22px;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.day-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 100%;
    padding: 22px;
    border-radius: 30px;
    border: 1px solid color-mix(in srgb, var(--card-accent) 16%, #d7dfe8);
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--card-accent-soft) 62%, white), rgba(255, 255, 255, 0.95));
    box-shadow: 0 18px 40px rgba(17, 63, 140, 0.08);
    overflow: hidden;
}

.day-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 6px;
    border-radius: 30px 30px 0 0;
    background: var(--card-accent);
}

.day-card.is-current {
    transform: translateY(-4px);
    box-shadow: 0 24px 52px color-mix(in srgb, var(--card-accent) 18%, transparent);
}

.day-card-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.day-card-link:hover,
.day-card-link:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 24px 52px color-mix(in srgb, var(--card-accent) 18%, transparent);
}

.day-card-link:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--card-accent) 42%, white);
    outline-offset: 3px;
}

.day-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.day-card-label {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--card-accent) 74%, #19345f);
}

.day-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 18px 14px 12px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.92);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.day-card-badge {
    display: block;
    max-width: 100%;
    max-height: 220px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 16px 30px rgba(18, 47, 92, 0.08));
}

.day-card-copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.day-card-title {
    margin: 0;
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.55rem;
    line-height: 1.02;
}

.day-card-copy p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.72;
}

.day-card-note {
    font-size: 0.9rem;
    font-weight: 700;
    color: color-mix(in srgb, var(--card-accent) 72%, #19345f);
}

.day-card-cta {
    font-size: 0.9rem;
    font-weight: 800;
    color: color-mix(in srgb, var(--card-accent) 78%, #19345f);
}

.current-tag {
    display: inline-flex;
    margin: 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    font-size: 0.78rem;
    font-weight: 800;
    color: color-mix(in srgb, var(--card-accent) 76%, #19345f);
}

.badge-figure {
    position: relative;
    align-self: center;
    padding: 18px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
}

.badge-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.inline-actions {
    margin-top: 18px;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 28px 0;
}

.story-card {
    padding: 30px;
    border-radius: 30px;
    border: 1px solid var(--line);
    background: var(--surface-strong);
    box-shadow: var(--shadow-lg);
}

.story-card h2 {
    margin-bottom: 14px;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.05;
}

.practice-list {
    margin: 18px 0 0;
    padding-left: 20px;
}

.practice-list li {
    margin-bottom: 10px;
    color: var(--page-ink);
    line-height: 1.7;
}

.message-archive {
    padding: 34px;
}

.featured-message-large {
    margin-bottom: 18px;
}

.message-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.archive-card {
    padding: 22px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 34px rgba(17, 63, 140, 0.08);
}

.archive-card.is-featured {
    border-color: color-mix(in srgb, var(--accent) 26%, white);
    background: linear-gradient(145deg, color-mix(in srgb, var(--accent-soft) 58%, white), rgba(255, 255, 255, 0.95));
}

.archive-card p {
    margin: 0;
}

.archive-card-label {
    margin-bottom: 12px !important;
    font-size: 0.8rem !important;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--accent) 72%, #19345f) !important;
}

.neighbor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.neighbor-card {
    display: block;
    padding: 26px;
    border-radius: 28px;
    border: 1px solid color-mix(in srgb, var(--card-accent) 18%, #d7dfe8);
    background: linear-gradient(180deg, color-mix(in srgb, var(--card-accent-soft) 60%, white), rgba(255, 255, 255, 0.95));
    box-shadow: 0 18px 40px rgba(17, 63, 140, 0.08);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.neighbor-card:hover,
.neighbor-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 24px 54px rgba(17, 63, 140, 0.12);
}

.neighbor-label {
    display: block;
    margin-bottom: 12px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--card-accent) 76%, #19345f);
}

.neighbor-card strong {
    display: block;
    margin-bottom: 10px;
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.5rem;
    line-height: 1.08;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    padding: 26px 8px 8px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-brand strong {
    display: block;
    margin-bottom: 6px;
}

.footer-logo {
    display: block;
    width: 58px;
    height: auto;
    flex: 0 0 auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
}

.footer-links a {
    color: var(--page-ink-soft);
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--page-ink);
}

@media (max-width: 920px) {
    .hero-panel,
    .page-hero,
    .today-grid,
    .mission-panel,
    .badge-panel,
    .story-grid,
    .neighbor-grid {
        grid-template-columns: 1fr;
    }

    .floating-note {
        position: static;
        margin-top: 18px;
        max-width: none;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .page-shell {
        width: min(100% - 18px, 100%);
    }

    .site-header,
    .hero-panel,
    .page-hero,
    .today-spotlight,
    .today-context,
    .mission-panel,
    .badge-panel,
    .story-card,
    .message-archive,
    .neighbor-card {
        padding: 22px;
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .days-grid {
        grid-template-columns: 1fr;
    }

    .day-card-media {
        min-height: 200px;
    }

    .site-footer {
        flex-direction: column;
    }

    .footer-brand {
        align-items: flex-start;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .brandmark-icon {
        width: 38px;
    }
}
