:root {
    --ink: #202124;
    --muted: #62666d;
    --paper: #fbfaf7;
    --panel: #ffffff;
    --line: #ded8ce;
    --clay: #a84f3f;
    --moss: #58785d;
    --gold: #d69b3a;
    --sky: #dcebf0;
    --soft: #eef3ed;
    --shadow: 0 18px 42px rgba(32, 33, 36, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
code { color: #7a4b16; font-size: .95em; }

.section-inner {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(32, 33, 36, .08);
    background: rgba(251, 250, 247, .94);
    backdrop-filter: blur(12px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 16px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}
.nav-links a:hover { color: var(--clay); }

.button, .filter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px;
    border: 1px solid var(--ink);
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}
.button.secondary, .filter-button {
    background: transparent;
    color: var(--ink);
}
.filter-button.active, .filter-button:hover {
    background: var(--clay);
    border-color: var(--clay);
    color: #fff;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 42px;
    align-items: center;
    min-height: 720px;
    padding: 54px 0 42px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--moss);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
    max-width: 760px;
    margin-bottom: 18px;
    font-size: clamp(42px, 7vw, 88px);
    line-height: .94;
    letter-spacing: 0;
}
h2 {
    margin-bottom: 14px;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1;
    letter-spacing: 0;
}
h3 { font-size: 22px; }
.hero-copy, .large-copy {
    max-width: 640px;
    color: var(--muted);
    font-size: 19px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 620px;
    margin-top: 36px;
}
.stat {
    border-top: 1px solid var(--line);
    padding-top: 14px;
}
.stat strong {
    display: block;
    font-size: 24px;
}
.stat span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.hero-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: end;
}
.hero-img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}
.hero-img.tall { grid-row: span 2; }

section { padding: 72px 0; }
.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}
.section-head p {
    max-width: 440px;
    margin-bottom: 0;
    color: var(--muted);
}

.shop-tools { background: #fff; }
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.product-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}
.product-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: #f2eee6;
}
.product-body { padding: 20px; }
.product-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}
.tag {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f4eadb;
    color: #7a4b16;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.price { font-weight: 900; }
.product-card p, .product-options { color: var(--muted); }
.product-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 16px 0 0;
    list-style: none;
    font-size: 13px;
}
.product-options li {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 9px;
}

.customize { background: var(--soft); }
.customize-layout, .order-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    gap: 36px;
    align-items: start;
}
.custom-panel, .order-card, .occasion-grid article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.custom-panel { padding: 24px; }
.custom-panel ul {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
}
.custom-panel li + li { margin-top: 10px; }

.occasion-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.occasion-grid article {
    min-height: 132px;
    padding: 20px;
}
.occasion-grid strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
}
.occasion-grid span { color: var(--muted); }

.order { background: #f4eadb; }
.order-card {
    display: grid;
    gap: 14px;
    border-color: #d2bf9e;
    background: #fffaf1;
    padding: 24px;
}
label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}
input, select, textarea {
    width: 100%;
    border: 1px solid #d6c7ac;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    padding: 12px;
}
textarea {
    min-height: 126px;
    resize: vertical;
}
.form-note {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}
.footer {
    padding: 34px 0;
    background: var(--ink);
    color: rgba(255, 255, 255, .78);
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.footer strong { color: #fff; }
.footer-link { color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.footer-link:hover { color: var(--gold); }

@media (max-width: 900px) {
    .nav { align-items: flex-start; flex-direction: column; }
    .nav-links { flex-wrap: wrap; }
    .hero, .customize-layout, .order-layout { grid-template-columns: 1fr; }
    .hero { min-height: auto; }
    .product-grid, .occasion-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
    .nav-links { gap: 12px; font-size: 13px; }
    .hero-stats, .product-grid, .occasion-grid { grid-template-columns: 1fr; }
    .section-head { align-items: start; flex-direction: column; }
    .hero-gallery { grid-template-columns: 1fr; }
    .footer-inner { align-items: flex-start; flex-direction: column; }
}


.theme-controls {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.theme-button {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0 !important;
    border-radius: 999px;
    appearance: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.theme-button:focus, .theme-button:focus-visible { outline: 0 !important; box-shadow: none !important; }
.theme-button:hover { transform: translateY(-1px); }

.theme-button.active,
.theme-button:hover {
    background: transparent;
    color: var(--clay);
}

.theme-button.active {
    text-decoration: underline;
    text-underline-offset: 5px;
}

body.dark-mode {
    --ink: #f4efe7;
    --muted: #c8beb2;
    --paper: #171615;
    --panel: #22201d;
    --line: #3a342e;
    --clay: #d97863;
    --moss: #9fbea4;
    --gold: #e5b85c;
    --sky: #263940;
    --soft: #1e2a20;
    --shadow: 0 18px 42px rgba(0, 0, 0, .34);
}

body.dark-mode .site-header { background: rgba(23, 22, 21, .94); }
body.dark-mode .shop-tools,
body.dark-mode .custom-panel,
body.dark-mode .order-card,
body.dark-mode .occasion-grid article,
body.dark-mode .product-card { background: var(--panel); }
body.dark-mode .order { background: #2a241d; }
body.dark-mode .order-card { border-color: var(--line); }
body.dark-mode .tag { background: #3a2c20; color: var(--gold); }
body.dark-mode .product-options li,
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea { border-color: var(--line); }
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea { background: #171615; color: var(--ink); }
body.dark-mode .footer { background: #0f0e0d; }

