:root {
    --page-bg: #f3f1eb;
    --card-bg: #ffffff;
    --text: #222222;
    --muted: #646464;
    --accent: #384a3f;
    --border: #d8d5cc;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--page-bg);
    color: var(--text);
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.6;
}

header {
    padding: 4rem 1.5rem 3rem;
    text-align: center;
}

header p {
    max-width: 700px;
    margin: 1rem auto 0;
    color: var(--muted);
    font-size: 1.1rem;
}

h1,
h2 {
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.15;
}

h1 {
    margin: 0;
    font-size: clamp(2.2rem, 6vw, 4.25rem);
    letter-spacing: -0.03em;
}

h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

main {
    width: calc(100% - 2rem);
    margin: 0 auto;
    padding-bottom: 5rem;
}

footer {
    padding: 2rem 1rem 3rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

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

.eyebrow {
    margin-bottom: 0.75rem;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* Home page */

.home-page main {
    max-width: 1100px;
}

.home-page header {
    padding-bottom: 2rem;
}

.home-intro {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.home-intro p {
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 1.1rem;
}

.home-page .tagline {
    color: var(--accent);
    font-size: clamp(2rem, 5vw, 3.75rem);
}

.products-heading {
    margin: 3rem 0 1rem;
    text-align: center;
}

.product-card {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3rem);
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.product-card p {
    margin: 0 0 1.5rem;
    color: var(--muted);
    font-size: 1.05rem;
}

.product-link {
    display: inline-block;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.product-link:hover {
    filter: brightness(1.08);
}

.product-link:focus-visible {
    outline: 3px solid rgba(56, 74, 63, 0.35);
    outline-offset: 3px;
}

.home-links {
    margin-top: 1.25rem;
    text-align: center;
}

.home-links a {
    font-weight: 700;
}

.inventory-page main {
    max-width: 1500px;
}

.inventory-page header {
    padding: 2.5rem 1.5rem 2rem;
}

.inventory-page h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
}

.inventory-page .subtitle {
    margin-top: 0.75rem;
}

.info-box {
    max-width: 760px;
    margin: 1.5rem auto 0;
    padding: 1rem 1.25rem;
    background: #eef3ef;
    border-left: 4px solid var(--accent);
    border-radius: 6px;
    color: var(--text);
    text-align: left;
}

.info-box a {
    font-weight: 700;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    -webkit-overflow-scrolling: touch;
}

.inventory-page table {
    width: 100%;
    min-width: 1320px;
    border-collapse: collapse;
}

.inventory-page th,
.inventory-page td {
    padding: 0.8rem 0.75rem;
    border-bottom: 1px solid #e5e8ec;
    text-align: left;
    white-space: nowrap;
}

.inventory-page th {
    background: #eef1f4;
    color: #39424c;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.inventory-page th:nth-child(9),
.inventory-page td:nth-child(9) {
    min-width: 190px;
}

.inventory-page tbody tr:hover {
    background: #f7f9fb;
}

.inventory-page tbody tr:last-child td {
    border-bottom: 0;
}

.number {
    text-align: right !important;
    font-variant-numeric: tabular-nums;
}

.serial {
    font-family: monospace;
    font-weight: 700;
}

.badge {
    display: inline-block;
    padding: 0.28rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.badge-pass {
    color: #166534;
    background: #dcfce7;
    border-color: #86efac;
}

.badge-fail {
    color: #991b1b;
    background: #fee2e2;
    border-color: #fca5a5;
}

.badge-unknown {
    color: #475467;
    background: #f2f4f7;
    border-color: #d0d5dd;
}

.badge-available {
    color: #175cd3;
    background: #eff8ff;
    border-color: #84caff;
}

.badge-reserved {
    color: #854d0e;
    background: #fef9c3;
    border-color: #fde047;
}

.badge-sold {
    color: #344054;
    background: #eaecf0;
    border-color: #98a2b3;
}

.badge-retained {
    color: #6b21a8;
    background: #f3e8ff;
    border-color: #d8b4fe;
}

.report-link {
    display: inline-block;
    color: #475467;
    font-size: 1.15rem;
    text-decoration: none;
}

.report-link:hover {
    transform: translateY(-1px);
}

.report-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.message {
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.error {
    background: #fff3f2;
    border-color: #f3b3ae;
    color: #912018;
}

/* Reverse unboxing page */

.unboxing-page main {
    max-width: 1100px;
}

.step {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    align-items: center;
    gap: 0;
    margin-bottom: 2rem;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.step:nth-child(even) .step-photo {
    order: 2;
}

.step:nth-child(even) .step-copy {
    order: 1;
}

.step-photo {
    height: 100%;
    min-height: 420px;
    background: #ddd;
}

.step-photo a {
    display: block;
    width: 100%;
    height: 100%;
}

.step-photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.step-copy {
    padding: clamp(2rem, 5vw, 4rem);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    font-weight: 700;
}

.step-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.company-logo {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
}

.company-name {
    font-family: Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.company-tagline {
    margin-top: .2rem;
    font-size: .9rem;
    color: var(--muted);
}

.page-title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}


.inventory-product {
    max-width: 900px;
    margin: 0 auto 2rem;
    padding: clamp(1.75rem, 4vw, 2.5rem);
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.inventory-product h2 {
    margin-bottom: 0.35rem;
}

.inventory-product-copy > p:last-of-type {
    margin: 0.75rem 0 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.inventory-price {
    margin: 0;
    color: var(--accent);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
}

.inventory-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 2rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.inventory-features li::before {
    content: "✓";
    margin-right: 0.5rem;
    color: var(--accent);
    font-weight: 700;
}

.site-header {
    width: calc(100% - 2rem);
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    text-align: left;
}

@media (max-width: 760px) {
    header {
        padding-top: 3rem;
    }

    main {
        width: calc(100% - 1rem);
    }

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

    .step:nth-child(even) .step-photo,
    .step:nth-child(even) .step-copy {
        order: initial;
    }

    .step-photo,
    .step-photo img {
        min-height: 0;
        height: auto;
    }

    .step-copy {
        padding: 1.75rem;
    }
}
