:root {
    --bg: #f4efe6;
    --panel: rgba(255, 252, 246, 0.92);
    --panel-strong: #fffaf2;
    --line: rgba(73, 48, 28, 0.12);
    --text: #27170d;
    --muted: #6f5746;
    --accent: #a33f1f;
    --accent-2: #d58a2a;
    --shadow: 0 24px 60px rgba(71, 40, 16, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(213, 138, 42, 0.16), transparent 28%),
        radial-gradient(circle at right 20%, rgba(163, 63, 31, 0.14), transparent 24%),
        linear-gradient(180deg, #fbf6ee 0%, var(--bg) 100%);
}

.portal-shell {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 56px 0 72px;
}

.hero {
    padding: 28px 0 20px;
}

.eyebrow {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.76rem;
    color: var(--accent);
}

.hero h1 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: 0.94;
    max-width: 700px;
}

.lead {
    margin: 18px 0 0;
    max-width: 720px;
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--muted);
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.portal-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 26px;
    border-radius: 24px;
    text-decoration: none;
    color: inherit;
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.portal-card:hover {
    transform: translateY(-4px);
    border-color: rgba(163, 63, 31, 0.32);
    box-shadow: 0 28px 70px rgba(71, 40, 16, 0.18);
}

.portal-card--primary {
    background:
        linear-gradient(135deg, rgba(163, 63, 31, 0.96), rgba(118, 36, 20, 0.96)),
        var(--panel-strong);
    color: #fff7ee;
}

.portal-card__tag {
    align-self: flex-start;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(39, 23, 13, 0.08);
}

.portal-card--primary .portal-card__tag {
    background: rgba(255, 247, 238, 0.16);
}

.portal-card h2,
.notes h2 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.15;
}

.portal-card p,
.notes p {
    margin: 0;
    line-height: 1.6;
    color: inherit;
}

.portal-card__cta {
    margin-top: auto;
    font-weight: 700;
}

.notes {
    margin-top: 28px;
    padding: 24px 26px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 252, 246, 0.78);
    box-shadow: var(--shadow);
}

@media (max-width: 640px) {
    .portal-shell {
        width: min(100% - 28px, 1180px);
        padding-top: 36px;
    }

    .portal-card,
    .notes {
        padding: 22px;
        border-radius: 20px;
    }
}
