:root {
    color-scheme: light;
    --red: #c5161d;
    --red-dark: #9f1118;
    --red-deep: #661016;
    --off-white: #f7f5f2;
    --surface: #ffffff;
    --text: #241f20;
    --muted: #70696a;
    --line: #e2dddd;
    --danger: #9f1f28;
    --danger-bg: #fff0f1;
    --success: #7b151a;
    --success-bg: #fff5f5;
    --focus: rgba(197, 22, 29, .22);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--off-white);
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--off-white);
    color: var(--text);
    font-family: Inter, Arial, Helvetica, sans-serif;
    line-height: 1.55;
}

.site-header {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 40px));
    height: 96px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand img {
    display: block;
    width: 118px;
    height: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 15px;
    font-weight: 700;
}

.site-nav a {
    color: var(--red-deep);
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus {
    color: var(--red);
}

.hero {
    min-height: calc(100vh - 96px);
    background:
        linear-gradient(90deg, rgba(105, 15, 20, .88), rgba(150, 18, 24, .62) 44%, rgba(150, 18, 24, .12)),
        url("hero-mandle.jpg") center / cover no-repeat;
}

.hero-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 64px 0 72px;
    display: grid;
    grid-template-columns: minmax(260px, 500px) minmax(360px, 620px);
    gap: 60px;
    align-items: start;
}

.intro {
    padding-top: 42px;
    color: #fff;
}

.eyebrow {
    margin: 0 0 16px;
    color: #ffe6e8;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    max-width: 9ch;
    font-size: 76px;
    line-height: .94;
    letter-spacing: 0;
}

.lead {
    max-width: 32rem;
    margin: 26px 0 0;
    color: #fff2f3;
    font-size: 20px;
    font-weight: 500;
}

.form-panel {
    background: var(--surface);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .22);
    padding: 34px;
}

form {
    display: grid;
    gap: 20px;
}

.grid {
    display: grid;
    gap: 18px;
}

.grid.one {
    grid-template-columns: minmax(0, 1fr);
}

.grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
    grid-template-columns: 1.25fr 1fr .65fr;
}

label {
    display: grid;
    gap: 7px;
    color: #303936;
    font-size: 14px;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    border: 1px solid #d8d0d0;
    border-radius: 4px;
    padding: 13px 14px;
    color: var(--text);
    background: #fff;
    font: inherit;
    font-weight: 400;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus {
    outline: 3px solid var(--focus);
    border-color: var(--red);
}

.checks {
    display: grid;
    gap: 12px;
    padding: 4px 0;
}

.check {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: start;
    color: var(--text);
    font-weight: 500;
}

.check input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--red);
}

button {
    border: 0;
    border-radius: 4px;
    padding: 15px 24px;
    background: var(--red);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    text-transform: uppercase;
}

button:hover,
button:focus {
    background: var(--red-dark);
}

.message {
    margin-bottom: 22px;
    border-radius: 4px;
    padding: 14px 16px;
}

.message ul {
    margin: 8px 0 0;
    padding-left: 22px;
}

.message.success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(19, 97, 67, .18);
}

.message.error {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(159, 31, 40, .18);
}

.loyalty-card {
    margin: 0 0 22px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, #ffffff 0%, #ffffff 58%, #fff0f1 58%, #fff0f1 100%);
    box-shadow: 0 14px 36px rgba(36, 31, 32, .10);
}

.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.card-top img {
    width: 86px;
    height: auto;
}

.card-kicker {
    margin: 0;
    color: var(--red);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.card-name {
    margin: 8px 0 0;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 800;
}

.barcode-table {
    width: max-content;
    max-width: 100%;
    padding: 12px 12px 8px;
    background: #fff;
    border: 1px solid #eee;
}

.barcode-number {
    width: max-content;
    max-width: 100%;
    margin: 8px 0 0;
    color: #111;
    font-family: "Courier New", monospace;
    font-size: 20px;
    letter-spacing: 2px;
}

@media (max-width: 980px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-top: 38px;
    }

    .intro {
        padding-top: 0;
    }

    h1 {
        max-width: 12ch;
        font-size: 58px;
    }

    .lead {
        font-size: 18px;
    }
}

@media (max-width: 700px) {
    .site-header {
        width: min(100% - 24px, 1180px);
        height: auto;
        padding: 18px 0;
    }

    .site-nav {
        display: none;
    }

    .brand img {
        width: 104px;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        width: min(100% - 24px, 1180px);
        padding: 34px 0 42px;
    }

    h1 {
        font-size: 44px;
    }

    .form-panel {
        padding: 20px;
    }

    .grid.two,
    .grid.three {
        grid-template-columns: 1fr;
    }
}
