:root {
    --ink: #0c1117;
    --muted: #5d6776;
    --accent: #ff6a3d;
    --accent-dark: #d4532f;
    --sand: #f7f3ee;
    --mist: #edf2f6;
    --edge: #dde3ea;
    --shadow: 0 28px 70px rgba(14, 18, 24, 0.16);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at 15% 20%, #ffffff 0%, #f7f2ea 42%, #e8edf3 100%);
    min-height: 100vh;
}

img {
    max-width: 100%;
    display: block;
}

.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 72px;
    animation: rise 0.6s ease-out;
}

.topbar,
.landing-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-mark {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 700;
    background: #111827;
    color: #fff;
    letter-spacing: 1px;
}

.logo-name {
    font-family: "Merriweather", serif;
    font-size: 24px;
}

.logo-tag {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.chip {
    padding: 8px 16px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--edge);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #3a4350;
}

.hero {
    margin-top: 36px;
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
}

.hero-copy h1 {
    font-family: "Merriweather", serif;
    font-size: 42px;
    margin: 12px 0 16px;
    line-height: 1.1;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    color: #3f4a58;
}

.lead {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 24px;
}

.shortener {
    display: grid;
    gap: 12px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.label {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
    color: #5e6a7b;
}

.input {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--edge);
    font-size: 16px;
    outline: none;
    background: #fff;
}

.input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 106, 61, 0.18);
}

.btn,
.btn-continue {
    padding: 14px 22px;
    border-radius: 14px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover,
.btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(255, 106, 61, 0.3);
}

.result-panel {
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: 16px;
    background: #fff7f2;
    border: 1px solid #ffd6c8;
}

.result-label {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
    color: #7a6470;
    margin-bottom: 8px;
}

.result-link {
    font-weight: 600;
    color: var(--accent-dark);
    text-decoration: none;
}

.hero-media {
    display: grid;
    gap: 18px;
}

.media-card {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #fff;
    position: relative;
}

.media-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.media-card.is-large img {
    height: 280px;
}

.media-caption {
    padding: 14px 16px 18px;
    display: grid;
    gap: 6px;
}

.media-caption span {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 11px;
    color: #6b7280;
}

.media-caption strong {
    font-family: "Merriweather", serif;
    font-size: 16px;
}

.media-stack {
    display: grid;
    gap: 18px;
}

.news-grid,
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin-top: 36px;
}

.news-card,
.story-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(18, 24, 36, 0.12);
    animation: floatIn 0.8s ease-out;
}

.news-card img,
.story-card img {
    height: 180px;
    width: 100%;
    object-fit: cover;
}

.news-content,
.story-body {
    padding: 18px 20px 22px;
    display: grid;
    gap: 10px;
}

.news-content h3,
.story-body h3 {
    margin: 0;
    font-family: "Merriweather", serif;
    font-size: 20px;
}

.news-content p {
    margin: 0;
    color: var(--muted);
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--mist);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #3b4655;
    width: fit-content;
}

.page-landing {
    background: linear-gradient(130deg, #f8f4ef 0%, #f0f4f8 55%, #e6ecf4 100%);
}

.landing-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 24px 72px;
    animation: rise 0.6s ease-out;
}

.landing-meta {
    display: flex;
    gap: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    color: #5b6776;
    flex-wrap: wrap;
}

.landing-hero {
    margin-top: 32px;
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
}

.landing-copy h1 {
    font-family: "Merriweather", serif;
    font-size: 38px;
    margin: 12px 0 16px;
}

.landing-copy p {
    color: var(--muted);
    font-size: 18px;
}

.gate-form {
    margin-top: 16px;
    display: grid;
    gap: 12px;
}

.gate-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.landing-visual {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.landing-visual img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.visual-caption {
    position: absolute;
    left: 18px;
    bottom: 18px;
    background: rgba(12, 17, 23, 0.78);
    color: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    display: grid;
    gap: 6px;
}

.visual-caption span {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 10px;
    color: #f1f1f1;
}

.visual-caption strong {
    font-family: "Merriweather", serif;
}

.error-box {
    margin-top: 18px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #ffe7df;
    color: #9b3c1f;
    border: 1px solid #ffcbb6;
}

.landing-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    border-top: 1px solid var(--edge);
    margin-top: 40px;
    padding-top: 20px;
    color: #6b7280;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .hero-copy h1 {
        font-size: 34px;
    }

    .landing-copy h1 {
        font-size: 32px;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .gate-row {
        grid-template-columns: 1fr;
    }

    .media-card img {
        height: 200px;
    }

    .landing-visual img {
        height: 260px;
    }
}
