:root {
    color-scheme: light;
    --bg: #f4f0e8;
    --ink: #1d1a16;
    --muted: #5e584e;
    --line: #ddd4c6;
    --card: #fffdf8;
    --accent: #1f4d3a;
    --notice: #f3e6c8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.55;
}

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

.site-header,
.site-main,
.site-footer {
    width: min(52rem, calc(100% - 2rem));
    margin-left: auto;
    margin-right: auto;
}

.site-header {
    padding-top: 2rem;
}

.site-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.75rem 1rem;
}

.brand {
    color: var(--ink);
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
}

.brand-note {
    margin: 0;
    color: var(--muted);
    font-family: "Segoe UI", sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.9rem;
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--line);
    font-family: "Segoe UI", sans-serif;
    font-size: 0.95rem;
}

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

.site-nav a.is-active {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}

.site-main {
    padding: 1.5rem 0 2rem;
}

.eyebrow {
    margin: 0 0 0.4rem;
    color: var(--accent);
    font-family: "Segoe UI", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 0.8rem;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
}

p {
    margin: 0 0 0.9rem;
}

.lede {
    font-size: 1.15rem;
}

.notice {
    padding: 0.8rem 1rem;
    background: var(--notice);
    border: 1px solid #e4d2a4;
}

.notice.is-error {
    background: #f8e6e1;
    border-color: #e3b2a6;
}

.notice.is-success {
    background: #e5f0ea;
    border-color: #b7d2c4;
}

code {
    font-family: "Segoe UI", sans-serif;
    font-size: 0.92em;
}

.product-list,
.cart-list,
.summary-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.product-card,
.cart-line {
    padding: 1rem;
    background: var(--card);
    border: 1px solid var(--line);
}

.product-card h2,
.cart-line h2 {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
}

.price,
.total,
.status {
    font-family: "Segoe UI", sans-serif;
}

.total {
    font-size: 1.15rem;
    font-weight: 700;
}

.product-image {
    display: block;
    max-width: 16rem;
    height: auto;
    margin-bottom: 0.8rem;
}

.stack-form label,
.inline-form label {
    display: block;
    margin: 0.8rem 0;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.92rem;
}

.stack-form input,
.inline-form input {
    display: block;
    width: 100%;
    max-width: 20rem;
    margin-top: 0.3rem;
    padding: 0.45rem 0.5rem;
    border: 1px solid var(--line);
    font: inherit;
    background: #fff;
}

.gsr-claim {
    width: 100%;
    margin: 1rem 0;
}

.gsr-logo {
    display: block;
    width: auto;
    max-width: min(180px, 100%);
    height: auto;
}

.gsr-claim-title {
    margin: 0.75rem 0 0.2rem;
    font-family: "Segoe UI", sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.gsr-claim input {
    max-width: 20rem;
}

@media (max-width: 36rem) {
    .gsr-claim input {
        max-width: 100%;
    }
}

button,
.button {
    display: inline-block;
    margin: 0;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
}

button.secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.cart-line {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.summary-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--line);
}

.errors {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
}

.fine {
    color: var(--muted);
    font-family: "Segoe UI", sans-serif;
    font-size: 0.88rem;
}

.customer {
    margin: 1rem 0 0;
}

.customer div {
    margin-bottom: 0.45rem;
}

.customer dt {
    font-family: "Segoe UI", sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.customer dd {
    margin: 0;
}

.table-wrap {
    overflow-x: auto;
    margin-top: 1rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Segoe UI", sans-serif;
    font-size: 0.92rem;
}

.data-table th,
.data-table td {
    padding: 0.45rem 0.5rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

h2 {
    margin: 1.4rem 0 0.4rem;
    font-size: 1.25rem;
}

@media (min-width: 42rem) {
    .product-list {
        grid-template-columns: 1fr 1fr;
    }
}

.site-footer {
    padding-bottom: 2.5rem;
    color: var(--muted);
    font-family: "Segoe UI", sans-serif;
    font-size: 0.88rem;
}

@media (max-width: 36rem) {
    h1 {
        font-size: 1.7rem;
    }
}
