/*
 * Deliberately opinionated partner styling.
 *
 * The global resets and element selectors below are the kind of thing a real
 * agency's marketing site does, and are exactly what would break a widget that
 * rendered directly into this document. The widget lives in an iframe, so none
 * of it should reach the form.
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hostile: global element rules that would wreck an inline-rendered form. */
input,
select,
button {
    all: unset;
    display: block;
    width: 100%;
    border-bottom: 3px dotted #c0392b !important;
    font-family: "Comic Sans MS", cursive !important;
    font-size: 21px !important;
    text-transform: uppercase !important;
}

div {
    letter-spacing: 0.08em;
}

:root {
    --partner-ink: #23303a;
    --partner-sand: #f4efe7;
    --partner-sea: #16697a;
    color-scheme: light;
}

body {
    background: var(--partner-sand);
    color: var(--partner-ink);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.6;
}

.masthead {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    background: #10333f;
    color: #fff;
}

.masthead__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.masthead__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e8a33d;
}

.masthead__nav {
    display: flex;
    gap: 26px;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.masthead__nav a {
    color: #d7e5ea;
    text-decoration: none;
}

.hero {
    position: relative;
    padding: 72px 32px 96px;
    background:
        radial-gradient(circle at 20% 20%, rgba(232, 163, 61, 0.25), transparent 45%),
        linear-gradient(160deg, #16697a, #0b3444);
    color: #fff;
    text-align: center;
}

.hero__eyebrow {
    font-size: 13px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    opacity: 0.75;
}

.hero__title {
    margin: 14px auto 10px;
    max-width: 16ch;
    font-size: clamp(34px, 6vw, 62px);
    font-weight: 400;
    line-height: 1.05;
}

.hero__subtitle {
    margin: 0 auto;
    max-width: 52ch;
    font-size: 17px;
    opacity: 0.85;
}

.widget-slot {
    margin: 40px auto 0;
    max-width: 1080px;
    padding: 0 8px;
}

.widget-slot--narrow {
    max-width: 420px;
}

.section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 56px 32px;
}

.section__title {
    margin-bottom: 8px;
    font-size: 28px;
    font-weight: 400;
}

.section__body {
    max-width: 62ch;
    opacity: 0.8;
}

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

.card {
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(16, 51, 63, 0.1);
}

.card__image {
    height: 130px;
    background: linear-gradient(135deg, #78b7c5, #16697a);
}

.card__body {
    padding: 16px 18px 20px;
}

.card__title {
    font-size: 18px;
}

.card__meta {
    font-size: 14px;
    opacity: 0.7;
}

.modes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 32px;
    background: #fff;
    border-bottom: 1px solid rgba(16, 51, 63, 0.12);
}

.modes a {
    padding: 7px 14px;
    border: 1px solid rgba(16, 51, 63, 0.2);
    border-radius: 999px;
    color: var(--partner-sea);
    font-size: 13px;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
}

.modes a[aria-current="page"] {
    border-color: var(--partner-sea);
    background: var(--partner-sea);
    color: #fff;
}

.footer {
    padding: 40px 32px 80px;
    background: #10333f;
    color: #a9c3cc;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 640px) {
    .masthead,
    .modes,
    .section {
        padding-inline: 18px;
    }

    .masthead__nav {
        display: none;
    }

    .hero {
        padding: 48px 18px 72px;
    }
}
