:root {
    --bg: #f3efe8;
    --ink: #171411;
    --muted: #5f574c;
    --paper: #fffcf7;
    --line: #e4d9c8;
    --accent: #e85d04;
    --accent-dark: #c2410c;
    --dark: #141414;
    --ok: #0f7a4b;
    --err: #b42318;
    --radius: 18px;
    --shadow: 0 24px 60px rgba(23, 20, 17, 0.08);
    font-family: "Outfit", system-ui, sans-serif;
}

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

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background:
        radial-gradient(1200px 500px at 10% -10%, #ffe8d2 0%, transparent 55%),
        var(--bg);
    color: var(--ink);
    font-size: 1.05rem;
    line-height: 1.55;
    min-height: 100vh;
}

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

a {
    color: var(--accent-dark);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
}

.skip-link:focus {
    left: 1rem;
    z-index: 20;
    background: #fff;
    padding: 0.5rem 1rem;
}

.wrap {
    width: min(1080px, calc(100% - 2rem));
    margin-inline: auto;
}

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.85rem 0;
}

.logo img {
    display: block;
    width: 132px;
    height: auto;
}

.nav {
    display: flex;
    gap: 1.25rem;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.nav a:hover {
    color: #ffb347;
}

.hero {
    padding: 3.5rem 0 1rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 0.6rem;
}

.hero-copy h1 {
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin: 0 0 1rem;
}

.hero-copy h1 span {
    display: block;
    font-size: 0.42em;
    letter-spacing: 0;
    font-weight: 500;
    color: var(--muted);
    margin-top: 0.4rem;
}

.lede {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 38rem;
}

.sticker-frame {
    margin: 0;
    display: grid;
    justify-items: center;
}

.sticker-frame img {
    width: min(180px, 46vw);
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.28));
}

.sticker-frame figcaption {
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 0.8rem;
}

.order-section {
    padding: 1rem 0 4rem;
}

.order-card,
.page-article,
.login-card,
.status-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(1.25rem, 3vw, 2.4rem);
}

.order-card-head h2 {
    margin: 0 0 0.25rem;
    font-size: 1.7rem;
}

.order-card-head p,
.hint {
    color: var(--muted);
    margin-top: 0;
}

.order-form {
    display: grid;
    gap: 1rem;
}

.form-row {
    display: grid;
    gap: 0.35rem;
}

label,
legend {
    font-weight: 600;
    font-size: 0.92rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    border: 1px solid #d7ccbc;
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
    font: inherit;
    background: #fff;
}

input:focus,
select:focus {
    outline: 2px solid var(--accent);
    border-color: var(--accent);
}

.price-row,
.donation-row,
.submit-row,
.grid-2,
.grid-address {
    display: grid;
    gap: 1rem;
    align-items: end;
}

.price-row {
    grid-template-columns: auto 1fr;
}

.donation-row {
    grid-template-columns: 140px 1fr;
}

.grid-2 {
    grid-template-columns: 1fr 1fr;
}

.grid-address {
    grid-template-columns: 1fr 90px 90px;
}

.field-inline {
    display: grid;
    gap: 0.35rem;
}

.input-narrow,
.addon {
    max-width: 8rem;
}

.addon {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.price-summary {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
    align-items: baseline;
    justify-content: flex-end;
}

.price-summary strong {
    font-size: 1.6rem;
}

.price-summary small {
    color: var(--muted);
    width: 100%;
    text-align: right;
}

.address-block {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem;
    display: grid;
    gap: 1rem;
}

.choice-expanded {
    display: flex;
    gap: 1rem;
}

.radio {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    font-weight: 500;
}

.btn-primary {
    appearance: none;
    border: 0;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    padding: 0.9rem 1.2rem;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background: var(--accent-dark);
}

.submit-row {
    grid-template-columns: 1fr auto;
    align-items: center;
    margin-top: 0.5rem;
}

.payment-logo {
    display: block;
    width: 8.25rem;
    height: auto;
    flex-shrink: 0;
}

.hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.page-article {
    margin: 2.5rem auto 4rem;
}

.page-article h1 {
    margin-top: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.03em;
}

.prose p,
.prose li {
    color: var(--muted);
}

.order-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.order-facts dt {
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.order-facts dd {
    margin: 0.2rem 0 0;
    font-weight: 600;
}

.flash {
    margin: 1rem auto 0;
    padding: 0.85rem 1rem;
    border-radius: 12px;
}

.flash-error {
    background: #fee4e2;
    color: var(--err);
}

.flash-success {
    background: #e7f6ee;
    color: var(--ok);
}

.field-errors {
    color: var(--err);
    margin: 0.2rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.9rem;
}

.has-error input,
.has-error select {
    border-color: var(--err);
}

.site-footer {
    padding: 2.5rem 0 2rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 1rem;
}

.footer-inner nav,
.footer-inner a {
    display: flex;
    gap: 1rem;
    color: var(--ink);
    text-decoration: none;
}

.footer-legal {
    border-top: 1px solid var(--line);
    padding-top: 1rem;
}

@media (max-width: 800px) {
    .hero-grid,
    .price-row,
    .donation-row,
    .grid-2,
    .grid-address,
    .submit-row,
    .footer-inner {
        grid-template-columns: 1fr;
        display: grid;
    }

    .header-inner,
    .nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .price-summary,
    .price-summary small {
        justify-content: flex-start;
        text-align: left;
    }
}
