@font-face {
    font-family: "Zilla Slab";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/zilla-slab-latin-700.woff2") format("woff2");
}

@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/source-sans-3-latin-400.woff2") format("woff2");
}

@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/source-sans-3-latin-600.woff2") format("woff2");
}

:root {
    --bg: #FBF7EF;
    --surface: #FFFFFF;
    --text: #2B2118;
    --muted: #665849;
    --primary: #9A3B1F;
    --primary-hover: #7A2D16;
    --on-primary: #FFFFFF;
    --link: #8A3419;
    --border: #DCCFB9;
    --border-strong: #8A7A66;
    --focus: #1F5FAD;
    --warning-text: #2B2118;
    --warning-surface: #FFF6E8;
    --warning-mark: #9A5600;
    --error: #8C2F2F;
    --font-serif: "Zilla Slab", Rockwell, Georgia, serif;
    --font-sans: "Source Sans 3", system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    color: var(--text);
    overflow-x: clip;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.5;
    max-width: 100%;
    overflow-x: clip;
}

img {
    display: block;
    height: auto;
    max-width: 100%;
}

h1,
h2,
p,
li,
label {
    overflow-wrap: anywhere;
}

h1,
h2 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.15;
}

h1 {
    font-size: 2rem;
    margin: 0 0 0.6rem;
}

h2 {
    font-size: 1.6rem;
    margin: 0 0 0.75rem;
}

p {
    margin: 0 0 0.8rem;
}

.skip {
    background: var(--surface);
    color: var(--link);
    left: 0.5rem;
    padding: 0.5rem 0.75rem;
    position: absolute;
    top: 0.5rem;
    transform: translateY(-150%);
}

.skip:focus {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
    transform: none;
    z-index: 2;
}

.bar,
main,
footer {
    margin-inline: auto;
    max-width: 68rem;
    min-width: 0;
    padding-inline: 1rem;
    width: 100%;
}

.bar {
    align-items: baseline;
    border-top: 6px solid var(--primary);
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    justify-content: space-between;
    padding-top: 0.9rem;
}

.brand {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.place,
.muted,
.at-launch,
.optional,
footer {
    color: var(--muted);
}

.place,
footer,
.at-launch {
    font-size: 0.9rem;
}

.hero {
    display: grid;
    gap: 1rem;
    padding-top: 1.25rem;
}

.hero-figure {
    margin: 0;
}

.hero-figure img {
    border-radius: 12px;
    height: 14rem;
    object-fit: cover;
    width: 100%;
}

.points,
.plans,
.signup {
    padding-top: 1.75rem;
}

.points ol {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.points li,
.plan-grid li {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    list-style: none;
    padding: 0.9rem 1rem;
}

.points ol li {
    padding-left: 2.6rem;
    position: relative;
}

.points ol li::before {
    color: var(--primary);
    content: counter(item);
    counter-increment: item;
    font-family: var(--font-serif);
    font-size: 1.4rem;
    left: 0.85rem;
    position: absolute;
    top: 0.7rem;
}

.points ol {
    counter-reset: item;
}

.gallery {
    display: grid;
    gap: 0.6rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0.9rem 0 0;
    padding: 0;
}

.gallery li {
    background: transparent;
    border: 0;
    padding: 0;
}

.gallery img {
    border-radius: 12px;
    height: 6.5rem;
    object-fit: cover;
    width: 100%;
}

.plan-grid {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.plan-name {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.plan-price {
    font-family: var(--font-serif);
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.plan-price span {
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 1rem;
}

.food {
    background: var(--warning-surface);
    border-left: 4px solid var(--warning-mark);
    color: var(--warning-text);
    margin: 1.5rem 1rem 0;
    padding: 0.8rem 1rem;
}

.signup {
    padding-bottom: 2rem;
}

.privacy {
    max-width: 40rem;
}

form {
    display: grid;
    gap: 0.85rem;
    max-width: 36rem;
}

.field {
    display: grid;
    gap: 0.3rem;
    min-width: 0;
}

label {
    font-weight: 600;
}

input,
textarea,
button {
    font: inherit;
}

input,
textarea {
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    color: var(--text);
    min-height: 44px;
    padding: 0.55rem 0.7rem;
    width: 100%;
}

textarea {
    min-height: 6rem;
    resize: vertical;
}

.check {
    align-items: start;
    column-gap: 0.6rem;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
}

.check input {
    height: 1.25rem;
    margin-top: 0.2rem;
    min-height: 0;
    width: 1.25rem;
}

.check label {
    grid-column: 2;
    grid-row: 1;
}

.check .field-error {
    grid-column: 2;
}

.field-error {
    color: var(--error);
    margin: 0;
    min-height: 0;
}

.field-error:empty {
    display: none;
}

button {
    background: var(--primary);
    border: 0;
    border-radius: 999px;
    color: var(--on-primary);
    cursor: pointer;
    justify-self: start;
    min-height: 44px;
    padding: 0.6rem 1.2rem;
}

button:hover {
    background: var(--primary-hover);
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

#waitlist-status {
    font-weight: 600;
    margin: 0;
}

#waitlist-status:empty {
    display: none;
}

#waitlist-status:focus {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

.hp {
    height: 1px;
    left: -10000px;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

footer {
    padding-bottom: 2rem;
}

@media (min-width: 800px) {
    h1 {
        font-size: 3rem;
    }

    .hero {
        align-items: center;
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    }

    .hero-figure img {
        height: 22rem;
    }

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

    .gallery img {
        height: 9rem;
    }

    .food {
        margin-inline: auto;
        max-width: 68rem;
    }
}
