:root {
  color-scheme: light;
  --navy: #141e30;
  --ink: #171f2d;
  --muted: #505765;
  --paper: #faf9f6;
  --orange: #ff7e43;
  --dark-orange: #a44020;
  --line: #e5e1d9;
  --width: 1240px;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #b54d2a; outline-offset: 3px; }
[hidden] { display: none !important; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.skip { position: fixed; left: 12px; top: 12px; transform: translateY(-200%); padding: 1rem; background: white; z-index: 10; }
.skip:focus { transform: translateY(0); }
.section-width, .navigation, .hero-inner { max-width: var(--width); width: calc(100% - 112px); margin-inline: auto; }
.site-note { background: #0e1727; color: #f2ece2; text-align: center; padding: .55rem 1rem; font-size: .8125rem; line-height: 1.3; letter-spacing: .045em; }
header { background: var(--paper); }
.navigation { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { display: inline-flex; gap: .62rem; align-items: center; text-decoration: none; }
.wordmark strong, .wordmark small { display: block; }
.wordmark strong { font-size: 1.25rem; font-weight: 850; line-height: .98; letter-spacing: .05em; }
.wordmark small { font-size: .75rem; font-weight: 700; line-height: 1.1; letter-spacing: .14em; margin-top: .25rem; }
.brand-mark { background: var(--orange); border-radius: 50%; width: 43px; height: 43px; color: var(--navy); display: grid; place-items: center; }
.brand-mark svg { width: 41px; height: 41px; }
nav { display: flex; gap: 2rem; font-weight: 650; font-size: .9375rem; }
nav a { text-decoration: none; }
nav a:hover { color: var(--dark-orange); text-decoration: underline; text-underline-offset: .25em; }
.bag-button { display: inline-flex; align-items: center; gap: .55rem; border: 1px solid var(--line); background: transparent; border-radius: 8px; padding: .55rem .65rem .55rem .75rem; color: var(--ink); font-size: .875rem; font-weight: 700; }
.bag-button:hover, .button-outline:hover { border-color: var(--ink); }
.bag-count { display: grid; place-items: center; min-width: 26px; min-height: 25px; padding-inline: .2rem; border-radius: 999px; color: var(--navy); background: #ffdfce; }

.hero { position: relative; display: grid; isolation: isolate; background: var(--navy); color: var(--paper); }
.hero-photo { position: absolute; inset: 0 0 0 41%; z-index: -1; background: #172234 url(assets/hero.webp) 58% 55% / cover no-repeat; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy), #141e3060 18%, transparent 38%); }
.hero-inner { min-height: clamp(450px, 38vw, 570px); display: flex; align-items: center; }
.hero-copy { padding-block: 3rem; }
.eyebrow { margin: 0; font-size: .875rem; font-weight: 750; letter-spacing: .135em; }
.hero .eyebrow { color: #efdfd1; display: flex; gap: .55rem; align-items: center; }
.hero .eyebrow span { width: 22px; height: 2px; background: var(--orange); }
.hero h1 { font-size: clamp(3.2rem, 5.6vw, 5.9rem); letter-spacing: -.077em; line-height: .99; margin: 1rem 0 1.3rem; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero-description { color: #edf0f3; line-height: 1.55; font-size: clamp(1rem, 1.35vw, 1.2rem); max-width: 29rem; margin: 0 0 1.8rem; }
.button { min-height: 46px; display: inline-flex; justify-content: center; align-items: center; gap: .5rem; text-decoration: none; text-align: center; font-weight: 750; border-radius: 7px; border: 1px solid transparent; padding: .75rem 1.06rem; color: var(--navy); }
.button-orange { background: var(--orange); }
.button-orange:hover { background: #ff9c6f; }
.button-outline { background: transparent; border-color: #d5d0c7; }
.full-width { width: 100%; }

.catalog { padding-block: 3.8rem 3.25rem; scroll-margin-top: 1.5rem; }
.catalog-head { display: flex; align-items: end; gap: 1.5rem; justify-content: space-between; }
.kicker { color: var(--dark-orange); }
h2 { font-size: clamp(2.15rem, 4vw, 3.55rem); letter-spacing: -.065em; line-height: 1.02; margin: .55rem 0 0; }
.catalog-head > p { font-size: 1rem; color: var(--muted); line-height: 1.55; max-width: 25rem; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.55rem 0 1.45rem; }
.filters button { background: transparent; border: 1px solid #dcd7cf; color: var(--ink); font-size: .875rem; font-weight: 650; border-radius: 999px; min-height: 42px; padding: .45rem .95rem; }
.filters button:hover { border-color: var(--navy); }
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.product-card { overflow: hidden; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.product-card img { display: block; width: 100%; aspect-ratio: 1.13; object-fit: cover; background: #e1d6cd; }
.product-card:nth-child(1) img { background: #29303e; }
.product-card:nth-child(3) img { background: #1f4c4f; }
.product-copy { padding: 1rem; display: flex; flex: 1; flex-direction: column; }
.product-copy h3 { margin: 0; font-size: 1.15rem; letter-spacing: -.024em; }
.product-copy p { color: var(--muted); line-height: 1.43; font-size: .9375rem; margin: .45rem 0 1rem; flex: 1; }
.product-copy .button { justify-content: space-between; }
.image-note { margin: 1.1rem 0 0; font-size: .875rem; color: var(--muted); }

.how-section { background: #f0ece5; border-top: 1px solid var(--line); padding-block: 3.65rem; }
.how-content { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; }
.text-link { display: inline-block; margin-top: 1.35rem; font-weight: 750; text-underline-offset: .25em; }
.text-link:hover { color: var(--dark-orange); }
.steps { display: grid; gap: 1rem; }
.steps > div { display: flex; gap: .85rem; align-items: flex-start; }
.step-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; background: #ffdfce; border-radius: 50%; }
.steps h3 { margin: 0 0 .35rem; font-size: 1.0625rem; }
.steps p { margin: 0; color: var(--muted); line-height: 1.45; }
footer { background: var(--navy); color: var(--paper); }
.footer-content { padding-block: 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-content p { margin: 0; color: #dedfe5; }

dialog { padding: 0; border: 0; color: var(--ink); background: var(--paper); max-height: calc(100dvh - 2rem); max-width: calc(100% - 2rem); box-shadow: 0 18px 100px #0e17274f; }
dialog::backdrop { background: #101929a8; }
.product-dialog { width: 525px; border-radius: 12px; }
.bag-dialog { width: 445px; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; }
.bag-dialog[open] { display: flex; flex-direction: column; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; border-bottom: 1px solid var(--line); padding: 1.05rem 1.15rem; }
.dialog-head h2 { margin: 0; font-size: clamp(1.5rem, 4vw, 1.92rem); }
.icon-button { border: 0; border-radius: 6px; background: #ede9e2; color: var(--ink); width: 42px; height: 42px; display: grid; flex: 0 0 auto; place-items: center; }
.icon-button:hover { background: #e3dcd0; }
#product-form { padding: 1.15rem; }
#product-form > p, .bag-footer > p { color: var(--muted); margin-top: 0; line-height: 1.45; }
.form-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: .8rem; }
#product-form label { display: grid; align-content: start; gap: .4rem; font-weight: 700; margin-bottom: 1rem; }
#product-form label small { color: var(--muted); font-size: .875rem; font-weight: 400; }
#product-form input, #product-form select, textarea { min-height: 46px; border-radius: 7px; border: 1px solid #cbc4b9; color: var(--ink); padding: .55rem .65rem; width: 100%; background: white; font-weight: 400; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; padding-right: 2rem !important; }
.select-wrap svg { position: absolute; right: .55rem; top: .8rem; pointer-events: none; }
textarea { resize: vertical; }
.bag-content { flex: 1; overflow: auto; padding: 1.1rem; }
.empty-bag { text-align: center; padding: 3rem 0; }
.empty-bag > svg { width: 2.25rem; height: 2.25rem; }
.empty-bag h3 { margin: .8rem 0 0; }
.empty-bag p { margin: .6rem 0 1rem; color: var(--muted); }
.bag-footer { border-top: 1px solid var(--line); padding: 1rem 1.1rem; }
.bag-footer .button + .button { margin-top: .5rem; }
#bag-feedback { margin: .55rem 0 0; font-size: .875rem; }
#bag-feedback:empty { display: none; }
.bag-item { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: .75rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.bag-item:first-child { padding-top: 0; }
.bag-item img { width: 58px; height: 58px; border-radius: 7px; object-fit: cover; }
.bag-item h3 { margin: 0 0 .32rem; font-size: 1.04rem; }
.item-summary, .item-details { margin: 0 0 .35rem; color: var(--muted); line-height: 1.35; font-size: .9375rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.item-actions { margin-top: .65rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.item-actions button { background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 5px; padding: .45rem .6rem; font-size: .875rem; min-height: 38px; }
.item-actions button:hover { border-color: var(--navy); }
#toast { position: fixed; z-index: 2; right: 1rem; bottom: 1rem; border-radius: 8px; color: white; background: var(--navy); padding: .85rem 1.15rem; box-shadow: 0 3px 14px #141e3044; }
#toast:empty { display: none; }

@media (max-width: 1050px) {
  .section-width, .navigation, .hero-inner { width: calc(100% - 72px); }
  .catalog-head > p { max-width: 20rem; }
}
@media (max-width: 850px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-photo { inset-inline-start: 32%; }
  .hero-photo::after { background: linear-gradient(90deg, var(--navy), #141e30a6 28%, transparent 75%); }
  .catalog-head { align-items: start; flex-direction: column; gap: .7rem; }
  .catalog-head > p { max-width: 32rem; }
}
@media (max-width: 600px) {
  .section-width, .navigation, .hero-inner { width: calc(100% - 32px); }
  .navigation { display: grid; grid-template-columns: 1fr auto; min-height: 0; row-gap: .75rem; padding-block: .7rem; }
  .wordmark strong { font-size: 1.12rem; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-mark svg { width: 36px; height: 36px; }
  nav { grid-column: span 2; grid-row: 2; gap: 1.4rem; padding-top: .6rem; border-top: 1px solid var(--line); }
  .bag-button { justify-self: end; }
  .hero { display: flex; flex-direction: column-reverse; }
  .hero-inner { min-height: auto; }
  .hero-copy { padding: 2rem 0 1rem; }
  .hero h1 { font-size: clamp(2.8rem, 10.7vw, 4.05rem); }
  .hero-description { margin-bottom: 1.15rem; }
  .hero-photo { position: relative; inset: auto; z-index: auto; height: clamp(185px, 60vw, 315px); background-position: 58% 60%; }
  .hero-photo::after { background: linear-gradient(180deg, var(--navy), transparent 38%); }
  .catalog { padding-block: 2.35rem; }
  .product-grid { gap: .65rem; }
  .product-copy { padding: .7rem; }
  .product-copy h3 { font-size: 1rem; }
  .product-copy .button { padding: .45rem .5rem; font-size: .875rem; }
  .product-copy .button svg { width: 1rem; }
  .how-section { padding-block: 2.35rem; }
  .how-content { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-content { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
