:root {
    --bg-0: #f6f1e7;
    --bg-1: #efe6d7;
    --surface: #fffdf8;
    --surface-soft: #f7efdf;
    --text: #1e2f27;
    --muted: #607067;
    --line: #dbcdb8;
    --line-strong: #c8b596;
    --shadow-soft: 0 14px 32px rgba(25, 44, 35, 0.08);
    --shadow-card: 0 18px 36px rgba(25, 44, 35, 0.1);
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    line-height: 1.62;
    background:
        radial-gradient(circle at 8% 12%, rgba(13, 87, 73, 0.14), transparent 34%),
        radial-gradient(circle at 92% 8%, rgba(205, 163, 95, 0.18), transparent 32%),
        linear-gradient(180deg, var(--bg-0), var(--bg-1));
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-shell {
    min-height: 100vh;
}

.site-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(23, 44, 36, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 44, 36, 0.025) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(circle at center, #000 30%, transparent 78%);
}

.container {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(37, 55, 46, 0.08);
    background: rgba(246, 241, 231, 0.86);
    backdrop-filter: blur(9px);
}

.header-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark,
.icon-badge span,
.crescent-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    color: #fff;
    font-size: 0.94rem;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    box-shadow: var(--shadow-soft);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.brand-copy strong {
    display: block;
    font-size: 0.95rem;
    line-height: 1.2;
}

.brand-copy small {
    display: block;
    color: var(--muted);
    font-size: 0.81rem;
    line-height: 1.3;
}

.main-nav {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.main-nav a {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    transition: all 0.16s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text);
    border-color: var(--line);
    background: #fff;
}

.page-shell {
    padding: 24px 0 54px;
}

.page-shell > * {
    animation: rise-in 0.44s ease both;
}

.page-shell > *:nth-child(2) {
    animation-delay: 0.04s;
}

.page-shell > *:nth-child(3) {
    animation-delay: 0.08s;
}

.flash-banner {
    margin-bottom: 16px;
    border-radius: 11px;
    padding: 11px 14px;
    border: 1px solid rgba(205, 163, 95, 0.35);
    background: rgba(205, 163, 95, 0.15);
    color: #7a5925;
    font-size: 0.86rem;
    font-weight: 600;
}

.hero-panel,
.block-panel,
.center-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.hero-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 18px;
    padding: 28px;
}

.hero-panel::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    top: -160px;
    right: -160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 87, 73, 0.13), transparent 70%);
    pointer-events: none;
}

.hero-panel.hero-compact {
    grid-template-columns: 1fr;
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8d6a33;
    font-size: 0.66rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
}

.eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: currentColor;
}

.hero-title,
.center-panel h1 {
    margin: 10px 0 10px;
    font-family: "Fraunces", serif;
    font-size: clamp(1.95rem, 2.9vw, 2.7rem);
    line-height: 1.15;
}

.hero-desc,
.hero-note,
.block-head p,
.center-panel p,
.featured-item p,
.link-desc,
.footer-shell p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.hero-note {
    margin-top: 13px;
    max-width: 620px;
}

.hero-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 0;
    border-radius: var(--radius-md);
    padding: 10px 15px;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 700;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
    box-shadow: 0 10px 20px rgba(13, 87, 73, 0.24);
}

.btn-soft,
.btn-ghost {
    color: var(--text);
    border: 1px solid var(--line);
    background: #fff;
}

.btn-block {
    width: 100%;
    margin-top: 12px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.stat-tile {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #fffdf8, #f8f1e5);
    padding: 13px;
}

.stat-tile span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.8rem;
}

.stat-tile strong {
    display: block;
    font-size: 1.2rem;
    line-height: 1.2;
}

.block-panel {
    margin-top: 16px;
    padding: 18px;
}

.block-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 13px;
}

.block-head h2 {
    margin: 8px 0 0;
    font-family: "Fraunces", serif;
    font-size: 1.34rem;
    line-height: 1.26;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.form-stack {
    display: grid;
    gap: 10px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 0.84rem;
    font-weight: 600;
}

.field-grow {
    flex: 1 1 320px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    padding: 10px 12px;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 3px rgba(13, 87, 73, 0.12);
}

textarea {
    resize: vertical;
}

.chips {
    margin-top: 11px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    color: var(--muted);
    padding: 6px 11px;
    font-size: 0.81rem;
    font-weight: 600;
}

.chip.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
}

.featured-grid,
.link-grid {
    display: grid;
    gap: 12px;
}

.featured-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.link-grid {
    grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
}

.featured-item,
.link-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.featured-item:hover,
.link-item:hover {
    transform: translateY(-2px);
    border-color: #cdbb9f;
    box-shadow: var(--shadow-card);
}

.featured-item {
    display: flex;
    gap: 11px;
    padding: 13px;
}

.featured-item strong {
    display: block;
    font-size: 0.93rem;
    line-height: 1.4;
}

.featured-item p {
    margin-top: 4px;
}

.icon-badge {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: 1px solid var(--line);
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(150deg, rgba(13, 87, 73, 0.14), rgba(205, 163, 95, 0.16));
}

.icon-badge span {
    width: 100%;
    height: 100%;
    font-weight: 800;
    color: var(--text);
}

.icon-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.link-item {
    padding: 13px;
}

.link-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface-soft);
    color: var(--muted);
    padding: 4px 9px;
    font-size: 0.76rem;
    font-weight: 600;
}

.tag-accent {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
}

.link-title {
    margin: 11px 0 6px;
    font-size: 0.97rem;
    line-height: 1.4;
}

.link-desc {
    margin: 0;
}

.link-url {
    display: block;
    margin-top: 6px;
    color: #6f7e74;
    font-size: 0.79rem;
    word-break: break-word;
}

.empty-state {
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--surface-soft);
    padding: 20px;
}

.empty-state h3 {
    margin: 0 0 6px;
    font-size: 1.02rem;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.panel-split {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    gap: 12px;
}

.panel-split .block-panel {
    margin-top: 0;
}

.side-quiet {
    background: linear-gradient(180deg, #fffdf8, #f8f0e3);
}

.plain-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.plain-list li {
    position: relative;
    padding-left: 14px;
    color: var(--muted);
    font-size: 0.86rem;
}

.plain-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.56rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--theme-primary);
}

.result-box {
    margin-top: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    padding: 13px;
}

.result-box span {
    color: var(--muted);
    font-size: 0.81rem;
}

.result-box strong {
    display: block;
    margin: 6px 0;
    color: var(--theme-secondary);
    font-size: 0.93rem;
    word-break: break-all;
}

.result-box p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.83rem;
}

.countdown-box {
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    padding: 14px;
}

.countdown-box h3 {
    margin: 8px 0 4px;
    font-size: 1.02rem;
}

.countdown-box p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.84rem;
}

.countdown-box strong {
    font-size: 0.88rem;
}

.countdown-value {
    margin-top: 8px;
    color: var(--theme-secondary);
    font-size: clamp(1.55rem, 2.8vw, 2.2rem);
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.2;
}

.prayer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.prayer-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    padding: 14px;
    text-align: center;
}

.prayer-card span {
    color: var(--muted);
    font-size: 0.82rem;
}

.prayer-card strong {
    display: block;
    margin-top: 6px;
    font-size: 1.2rem;
}

.center-panel {
    max-width: 620px;
    margin: 42px auto;
    padding: 28px;
    text-align: center;
}

.crescent-badge {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    box-shadow: 12px 0 0 0 var(--theme-accent);
}

.redirect-box {
    margin-top: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-soft);
    padding: 13px;
}

.redirect-box strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.93rem;
}

.redirect-box span {
    color: var(--muted);
    font-size: 0.83rem;
    word-break: break-word;
}

.error-text {
    color: #b04a4a;
    font-size: 0.77rem;
    font-weight: 700;
}

.site-footer {
    margin-top: 18px;
    border-top: 1px solid rgba(32, 53, 42, 0.1);
    background:
        linear-gradient(180deg, rgba(248, 242, 233, 0.95), rgba(243, 234, 221, 0.95));
}

.footer-shell {
    padding: 24px 0;
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1fr;
    gap: 16px;
    align-items: start;
}

.footer-shell strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.94rem;
}

.footer-brand p {
    max-width: 520px;
}

.footer-nav {
    display: grid;
    gap: 5px;
}

.footer-nav span {
    color: #8d6a33;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2px;
}

.footer-nav a {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 600;
}

.footer-nav a:hover {
    color: var(--theme-primary);
}

.footer-meta {
    display: grid;
    gap: 5px;
    justify-items: end;
    text-align: right;
}

.footer-note {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.footer-meta small {
    color: #76857c;
    font-size: 0.76rem;
}

@media (max-width: 1020px) {
    .hero-panel,
    .panel-split {
        grid-template-columns: 1fr;
    }

    .block-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-shell {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .footer-meta {
        justify-items: start;
        text-align: left;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(1180px, calc(100% - 24px));
    }

    .header-shell {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .hero-panel,
    .block-panel,
    .center-panel {
        padding: 16px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
