:root {
    --ink: #12261e;
    --forest: #173f32;
    --moss: #2b7056;
    --mint: #d8ebd7;
    --cream: #f8f5ee;
    --paper: #fffdf9;
    --coral: #e7765b;
    --muted: #617269;
    --line: #dce3d9;
    --shadow: 0 22px 55px rgba(18, 38, 30, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a { color: inherit; }

.site-header {
    background: var(--forest);
    color: #fff;
}

.nav-wrap, .site-footer {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.nav-wrap {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: inherit;
    text-decoration: none;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font: 700 1rem Georgia, serif;
}

nav { display: flex; gap: 1.5rem; }

nav a {
    text-decoration: none;
    font-size: .9rem;
    font-weight: 650;
}

nav a:hover, nav a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }

.hero {
    min-height: 570px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding: 5.5rem max(24px, calc((100vw - 1080px) / 2));
    background: var(--forest);
    color: #fff;
}

.hero-copy { position: relative; z-index: 1; width: min(620px, 100%); }

.eyebrow {
    margin: 0 0 .8rem;
    color: var(--moss);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hero .eyebrow { color: #a8d7ad; }

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.05; letter-spacing: -.045em; }

h1 { margin: 0; font-size: clamp(3.5rem, 7vw, 6.4rem); font-weight: 500; }

h1 em { color: #b9dfb8; font-weight: 400; }

.hero-text { max-width: 490px; margin: 1.7rem 0 2.2rem; color: #d4e6d5; font-size: 1.08rem; }

.button {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    border: 0;
    border-radius: 2px;
    padding: .9rem 1.15rem;
    background: var(--forest);
    color: #fff;
    font: 750 .88rem "Avenir Next", Avenir, sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.button:hover, .button:focus-visible { transform: translateY(-2px); background: var(--moss); }
.button-light { background: #fff; color: var(--forest); }
.button-light:hover, .button-light:focus-visible { background: var(--mint); }

.hero-cards { position: relative; width: 410px; height: 390px; flex: 0 0 410px; }

.playing-card {
    position: absolute;
    width: 180px;
    height: 250px;
    border-radius: 13px;
    box-shadow: 0 22px 30px rgba(0, 0, 0, .22);
}

.card-back {
    top: 85px; left: 5px; display: grid; place-items: center;
    border: 8px solid #e8f0e2; background: repeating-linear-gradient(45deg, #d9644f 0 7px, #f2e7dc 7px 14px);
    color: #fff; font-size: 5rem; transform: rotate(-16deg);
}

.card-front, .card-accent {
    display: flex; flex-direction: column; justify-content: space-between; padding: 15px;
    background: var(--paper); color: var(--ink); font-size: 1.4rem; font-family: Georgia, serif;
}

.card-front { top: 40px; left: 142px; transform: rotate(5deg); }
.card-accent { top: 76px; right: 0; color: #bf453d; transform: rotate(20deg); }
.playing-card strong { align-self: center; font-size: 4.5rem; font-weight: 400; }
.playing-card span:last-child { align-self: end; transform: rotate(180deg); }

.games-section { width: min(1080px, calc(100% - 48px)); margin: 0 auto; padding: 7rem 0; }
.section-heading { max-width: 580px; margin-bottom: 2.7rem; }
h2 { margin: 0; font-size: clamp(2.6rem, 5vw, 4.5rem); font-weight: 500; }

.games-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.7rem; }

.game-card {
    overflow: hidden;
    display: grid;
    grid-template-rows: 360px auto;
    background: var(--paper);
    box-shadow: 0 2px 0 rgba(18, 38, 30, .03);
}

.game-image { overflow: hidden; background: #dce8dc; }
.game-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s ease; }
.game-card:hover .game-image img { transform: scale(1.04); }
.game-card-body { padding: 1.8rem; }
.game-number { margin: 0 0 .7rem; color: var(--moss); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
h3 { margin: 0; font-size: 2rem; font-weight: 500; }
.game-card-body > p:not(.game-number) { min-height: 50px; margin: .8rem 0 1.4rem; color: var(--muted); }
.text-link { color: var(--forest); font-size: .88rem; font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.game-card-dark { background: var(--ink); color: #fff; }
.game-card-dark .game-number, .game-card-dark .text-link { color: #add6ad; }
.game-card-dark .game-card-body > p:not(.game-number) { color: #c7d2ca; }

.support-callout { padding: 6.5rem 24px; background: var(--mint); text-align: center; }
.support-callout h2 { font-size: clamp(2.6rem, 5vw, 4rem); }
.support-callout > p:not(.eyebrow) { max-width: 490px; margin: 1rem auto 1.8rem; color: var(--muted); }

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.7rem;
    padding: 3.2rem 0 2rem;
    color: #e5eee5;
}

footer { background: var(--forest); }
.site-footer > div > p { margin: .8rem 0 0; color: #afc3b4; font-size: .88rem; }
.site-footer nav { justify-content: end; }
.copyright { grid-column: 1 / -1; margin: 1.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.15); color: #afc3b4; font-size: .78rem; }

.support-hero { padding: 5.5rem 24px; background: var(--mint); text-align: center; }
.support-hero h1 { color: var(--forest); font-size: clamp(3.5rem, 7vw, 5.8rem); }
.support-hero p:last-child { max-width: 540px; margin: 1.2rem auto 0; color: var(--muted); }
.support-hero .eyebrow { margin-bottom: .7rem; }

.support-main { width: min(920px, calc(100% - 48px)); margin: 0 auto; padding: 5rem 0 7rem; }
.support-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 5rem; }
.support-grid h2 { font-size: 2.5rem; }
.support-intro p:not(.eyebrow) { color: var(--muted); }
.support-intro a { color: var(--forest); font-weight: 750; }

.support-form { padding: 2rem; background: var(--paper); box-shadow: var(--shadow); }
.field { display: grid; gap: .45rem; margin-bottom: 1.15rem; }
label { font-size: .83rem; font-weight: 750; }
input, textarea {
    width: 100%; border: 1px solid var(--line); border-radius: 2px; padding: .8rem;
    color: var(--ink); background: #fff; font: inherit;
}
input:focus, textarea:focus { outline: 2px solid var(--moss); outline-offset: 1px; border-color: var(--moss); }
textarea { min-height: 145px; resize: vertical; }
.form-status { min-height: 1.5em; margin: 1rem 0 0; color: var(--muted); font-size: .9rem; }
.form-status.is-success { color: #17633d; }.form-status.is-error { color: #a2342c; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 760px) {
    .nav-wrap, .site-footer, .games-section, .support-main { width: min(100% - 32px, 560px); }
    .hero { min-height: auto; padding: 4.5rem 24px 0; display: block; }
    .hero-cards { width: 310px; height: 300px; margin: 3rem auto -15px; transform: scale(.75); transform-origin: bottom center; }
    .games-grid, .support-grid { grid-template-columns: 1fr; }
    .support-grid { gap: 2.5rem; }
    .game-card { grid-template-rows: 320px auto; }
    .site-footer { grid-template-columns: 1fr; }
    .site-footer nav { justify-content: start; flex-wrap: wrap; }
}
