:root {
    --ink: #16231f;
    --muted: #61706a;
    --paper: #f4f7f5;
    --white: #ffffff;
    --line: #dce5e0;
    --green: #176b52;
    --green-dark: #104936;
    --blue: #275f78;
    --shadow: 0 18px 46px rgba(20, 47, 38, 0.1);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: inherit; }

.site-header {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(24px, calc((100vw - 1180px) / 2));
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.identity {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
}

.identity-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    background: var(--green);
    color: white;
    font-size: 13px;
}

.edit-link {
    color: var(--muted);
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hero {
    position: relative;
    min-height: min(560px, 68vh);
    display: flex;
    align-items: flex-end;
    background: #dfeae5;
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.hero:not(.has-image) {
    background:
        linear-gradient(125deg, rgba(16, 73, 54, 0.98), rgba(39, 95, 120, 0.85)),
        #176b52;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 26, 20, 0.86) 0%, rgba(7, 26, 20, 0.5) 55%, rgba(7, 26, 20, 0.12) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 90px 0 70px;
    color: white;
}

.hero h1 {
    max-width: 800px;
    margin: 8px 0 20px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.02;
    letter-spacing: 0;
}

.intro {
    max-width: 680px;
    margin: 0;
    color: rgba(255,255,255,.84);
    font-size: 19px;
}

.eyebrow {
    margin: 0;
    color: var(--green);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hero .eyebrow { color: #b9ead6; }

.portal-section,
.story-section {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 70px 0;
}

.section-heading h2,
.story-copy h2 {
    margin: 6px 0 24px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 36px;
    line-height: 1.15;
}

.portal-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.portal-tab {
    min-height: 175px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 26px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease;
}

.portal-tab:hover {
    transform: translateY(-3px);
    border-color: var(--green);
}

.tab-code {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    background: var(--green);
    color: white;
    font-size: 13px;
    font-weight: 900;
}

.portal-tab.vap .tab-code { background: var(--blue); }

.tab-copy {
    display: grid;
    gap: 7px;
}

.tab-copy strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
}

.tab-copy small {
    color: var(--muted);
    font-size: 14px;
}

.arrow {
    font-size: 28px;
    color: var(--green);
}

.story-section {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 50px;
    border-top: 1px solid var(--line);
}

.story-copy p:last-child {
    color: var(--muted);
    white-space: normal;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.gallery img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.gallery img:first-child:nth-last-child(3) {
    grid-row: span 2;
    height: 472px;
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 30px max(24px, calc((100vw - 1180px) / 2));
    background: var(--white);
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 760px) {
    .site-header { padding: 0 18px; }
    .hero-content,
    .portal-section,
    .story-section { width: min(100% - 32px, 1180px); }
    .hero { min-height: 520px; }
    .portal-tabs,
    .story-section { grid-template-columns: 1fr; }
    .portal-tab { grid-template-columns: auto 1fr; }
    .portal-tab .arrow { display: none; }
    .gallery img,
    .gallery img:first-child:nth-last-child(3) { height: 220px; grid-row: auto; }
    footer { flex-direction: column; padding: 24px 18px; }
}
