:root {
    --ink: #211813;
    --muted: #75665a;
    --line: #e8d7bf;
    --paper: #fffaf2;
    --cream: #fbefd9;
    --gold: #b86a14;
    --gold-dark: #7d3f08;
    --coal: #161311;
    --good: #1f7a4d;
    --bad: #a32626;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    align-items: center;
    background: rgba(255, 250, 242, .9);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    left: 0;
    padding: 18px clamp(18px, 4vw, 58px);
    position: sticky;
    top: 0;
    z-index: 5;
}

.brand {
    color: var(--gold-dark);
    font-family: Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .06em;
}

nav {
    align-items: center;
    display: flex;
    gap: 24px;
    font-size: 14px;
}

.nav-cta {
    border: 1px solid var(--gold);
    color: var(--gold-dark);
    padding: 10px 14px;
}

.hero {
    display: grid;
    gap: clamp(28px, 5vw, 72px);
    grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
    min-height: calc(100vh - 74px);
    padding: clamp(34px, 7vw, 92px) clamp(18px, 6vw, 86px) 46px;
}

.hero-copy {
    align-self: center;
}

.eyebrow {
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    margin: 0 0 14px;
    text-transform: uppercase;
}

h1,
h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.04;
    margin: 0;
}

h1 {
    font-size: clamp(44px, 7vw, 84px);
    max-width: 720px;
}

h2 {
    font-size: clamp(28px, 4vw, 52px);
}

.lead {
    color: var(--muted);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.55;
    margin: 24px 0;
    max-width: 640px;
}

.buy-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0 0 28px;
}

.price {
    font-size: 28px;
    font-weight: 800;
}

.stock {
    background: #fff4dd;
    color: var(--gold-dark);
    font-size: 13px;
    font-weight: 700;
    padding: 9px 12px;
}

.button {
    border: 0;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 800;
    justify-content: center;
    min-height: 48px;
    padding: 14px 22px;
}

.primary {
    background: var(--gold);
    color: #fff;
}

.secondary {
    background: var(--coal);
    color: #fff;
}

.wide {
    width: 100%;
}

.hero-media img,
.gallery img {
    border: 1px solid rgba(125, 63, 8, .25);
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.hero-media {
    align-self: stretch;
    min-height: 520px;
}

.details {
    background: #fff;
    display: grid;
    gap: 36px;
    grid-template-columns: .9fr 1.1fr;
    padding: clamp(44px, 7vw, 90px) clamp(18px, 6vw, 86px);
}

.details > p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
    margin: 0;
}

.feature-grid {
    display: grid;
    gap: 14px;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.feature-grid li {
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.feature-grid strong,
.feature-grid span {
    display: block;
}

.feature-grid span {
    color: var(--muted);
    line-height: 1.55;
    margin-top: 8px;
}

.gallery {
    background: linear-gradient(180deg, #fff, var(--cream));
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr 1fr;
    padding: clamp(34px, 6vw, 74px) clamp(18px, 6vw, 86px);
}

.process {
    background: var(--coal);
    color: #fff;
    padding: clamp(44px, 7vw, 86px) clamp(18px, 6vw, 86px);
}

.process .eyebrow {
    color: #e9b86f;
}

.process h2 {
    max-width: 720px;
}

.process ol {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
    margin: 34px 0 0;
    padding: 0;
}

.process li {
    border-top: 1px solid rgba(255, 255, 255, .22);
    counter-increment: step;
    padding-top: 18px;
}

.process li::before {
    color: #e9b86f;
    content: "0" counter(step);
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 16px;
}

.process strong,
.process span {
    display: block;
}

.process span {
    color: #d7c8b6;
    line-height: 1.55;
    margin-top: 8px;
}

.gallery img {
    aspect-ratio: 4 / 5;
}

.checkout {
    display: grid;
    gap: clamp(24px, 5vw, 70px);
    grid-template-columns: .85fr 1.15fr;
    padding: clamp(44px, 7vw, 90px) clamp(18px, 6vw, 86px);
}

.checkout-copy p {
    color: var(--muted);
    line-height: 1.65;
}

.summary {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr auto;
    margin-top: 28px;
    padding-top: 20px;
}

.checkout-panel,
.login-box,
.return-box {
    background: #fff;
    border: 1px solid var(--line);
    padding: clamp(20px, 4vw, 34px);
}

label {
    color: var(--muted);
    display: grid;
    font-size: 13px;
    font-weight: 700;
    gap: 7px;
}

input,
textarea,
select {
    background: #fff;
    border: 1px solid #d7c2a8;
    color: var(--ink);
    font: inherit;
    min-height: 44px;
    padding: 11px 12px;
    width: 100%;
}

textarea {
    resize: vertical;
}

.order-form,
.settings-form {
    display: grid;
    gap: 15px;
}

.split,
.two-col,
.three-col {
    display: grid;
    gap: 14px;
}

.split,
.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.alert {
    border: 1px solid currentColor;
    display: grid;
    gap: 5px;
    margin-bottom: 16px;
    padding: 13px 14px;
}

.success {
    color: var(--good);
}

.error {
    color: var(--bad);
}

footer {
    align-items: center;
    border-top: 1px solid var(--line);
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    padding: 24px clamp(18px, 6vw, 86px);
}

.admin-login {
    align-items: center;
    display: grid;
    min-height: 100vh;
    padding: 20px;
}

.login-box,
.return-box {
    margin: auto;
    max-width: 440px;
    width: 100%;
}

.login-box h1 {
    font-size: 34px;
    margin-bottom: 22px;
}

.admin {
    background: #f6f3ed;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    background: var(--coal);
    color: #d9cbb9;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px;
}

.sidebar .brand {
    color: #fff;
    margin-bottom: 20px;
}

.sidebar a {
    padding: 11px 12px;
}

.sidebar a.active {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.admin-main {
    padding: 28px;
}

.admin-section {
    background: #fff;
    border: 1px solid var(--line);
    margin-bottom: 20px;
    padding: 24px;
}

.admin-section h1 {
    font-size: 36px;
    margin-bottom: 18px;
}

.admin-section h2 {
    font-size: 24px;
    margin: 8px 0 16px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 13px 10px;
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

td span {
    color: var(--muted);
    font-size: 13px;
}

.small-link {
    color: var(--gold-dark);
    font-weight: 800;
}

.return-page {
    align-items: center;
    display: grid;
    min-height: 100vh;
    padding: 20px;
}

.return-box h1 {
    font-size: 42px;
    margin-bottom: 18px;
}

@media (max-width: 820px) {
    .site-header,
    footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    nav {
        flex-wrap: wrap;
        gap: 12px;
    }

    .hero,
    .details,
    .checkout,
    .gallery,
    .feature-grid,
    .process ol,
    .split,
    .two-col,
    .three-col,
    .admin {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 0;
    }

    .hero-media {
        min-height: 360px;
    }

    h1 {
        font-size: clamp(38px, 12vw, 54px);
    }

    .gallery img {
        aspect-ratio: 3 / 4;
    }

    .admin-main {
        padding: 16px;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 520px) {
    .site-header {
        position: static;
    }

    nav {
        width: 100%;
    }

    nav a {
        padding: 8px 0;
    }

    .nav-cta {
        text-align: center;
        width: 100%;
    }

    .hero,
    .details,
    .process,
    .gallery,
    .checkout {
        padding-left: 16px;
        padding-right: 16px;
    }

    .checkout-panel,
    .admin-section,
    .login-box,
    .return-box {
        padding: 18px;
    }

    th,
    td {
        min-width: 128px;
    }
}
