@font-face {
  font-family: Manrope;
  font-weight: 400 800;
  font-display: swap;
  src: url("/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Manrope;
  font-weight: 400 800;
  font-display: swap;
  src: url("/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #121c39;
  --navy-hover: #263759;
  --ink: #18213a;
  --muted: #555b68;
  --paper: #f8f7f4;
  --product-bg: #ededef;
  --line: #d8d8de;
  --accent: #c5cfea;
  --gutter: clamp(1.15rem, 4.5vw, 5.5rem);
  font-family: Manrope, Arial, sans-serif;
  font-size: 100%;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid #5677b5;
  outline-offset: 4px;
}
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
section[id] { scroll-margin-top: 1.5rem; }
.gutter { padding-inline: var(--gutter); }

.visually-hidden, .symbol-library, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  z-index: 2;
  top: .5rem;
  left: .5rem;
  padding: .8rem 1.1rem;
  background: white;
}

.icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.announcement {
  display: grid;
  place-items: center;
  min-height: 2.2rem;
  padding: .4rem 1rem;
  color: #f0f1f6;
  background: var(--navy);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .17em;
  text-align: center;
  text-transform: uppercase;
}

.site-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 4.8rem;
  background: var(--paper);
}

.wordmark {
  width: fit-content;
  font-size: 2.7rem;
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.115em;
  padding: 0 .14em .08em 0;
}

.wordmark span { color: #667db0; }
.nav-links { display: flex; gap: clamp(1.4rem, 3.2vw, 3.75rem); }
.nav-links a, .bag-button { font-size: .875rem; font-weight: 750; }
.nav-links a:hover, .site-footer nav a:hover { text-decoration: underline; text-underline-offset: .28em; }
.bag-button {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: .56rem;
  padding: .45rem 0 .45rem .45rem;
  border: 0;
  background: transparent;
}

.bag-count {
  display: grid;
  min-width: 1.45rem;
  height: 1.45rem;
  padding-inline: .28rem;
  place-items: center;
  border-radius: 1rem;
  background: #e7e9f0;
  font-size: .75rem;
}

.hero {
  display: grid;
  grid-template-columns: 46% 54%;
  min-height: clamp(29rem, 37.8vw, 43rem);
  background: var(--navy);
  color: var(--paper);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(3rem, 5.7vw, 7rem) var(--gutter);
}

.eyebrow {
  font-size: .75rem;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero-kicker { display: flex; gap: .7rem; align-items: center; color: var(--accent); }
.hero-kicker span { width: 1.45rem; height: 1px; background: currentColor; }
.hero h1 {
  margin: .36em 0 .22em -.045em;
  font-size: clamp(3.75rem, 7.4vw, 8.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.064em;
}
.hero-description {
  max-width: 23rem;
  margin-bottom: 1.75rem;
  color: #e1e5f3;
  font-size: clamp(1rem, 1.38vw, 1.25rem);
  line-height: 1.65;
}
.hero-media, .about-media { position: relative; overflow: hidden; background: #c7c6cb; }
.hero-media img, .about-media img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}
.hero-media img { object-position: center 30%; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: .7rem 1.3rem;
  border: 1px solid transparent;
  border-radius: .3rem;
  font-size: .875rem;
  font-weight: 800;
  text-align: center;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.button-light { background: var(--paper); color: var(--navy); }
.button-light:hover { background: #dde4f6; }
.button-dark { background: var(--navy); color: white; }
.button-dark:hover:not(:disabled) { background: var(--navy-hover); }
.button-outline { border-color: #b4b7c3; background: transparent; }
.button-outline:hover:not(:disabled) { border-color: var(--navy); background: #e8ecf5; }

.catalog { padding-block: clamp(2.65rem, 5vw, 5.5rem) clamp(3.3rem, 6vw, 6.5rem); }
.catalog-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.catalog h2, .about h2 {
  font-size: clamp(2.4rem, 4.5vw, 5.05rem);
  font-weight: 800;
  letter-spacing: -.062em;
  line-height: 1.08;
}
.catalog-count { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  margin-block: 1.45rem 1.15rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}
.filters { display: flex; flex-wrap: wrap; gap: .48rem; }
.filters button {
  flex: none;
  min-height: 2.45rem;
  padding: .4rem .86rem;
  border: 1px solid transparent;
  border-radius: 2rem;
  background: transparent;
  font-size: .875rem;
  font-weight: 700;
  white-space: nowrap;
}
.filters button:hover { border-color: #b4b7c3; }
.filters button[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: white; }
.sort { position: relative; flex: none; }
.sort select {
  appearance: none;
  min-height: 2.45rem;
  padding: .35rem 1.95rem .35rem .8rem;
  border: 1px solid var(--line);
  border-radius: .3rem;
  background: transparent;
  font-size: .875rem;
  font-weight: 720;
}
.sort .icon { position: absolute; top: 50%; right: .55rem; width: 1rem; transform: translateY(-50%); pointer-events: none; }
.catalog-status { margin-top: 1rem; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.55rem .9rem; }
.product-card { display: flex; flex-direction: column; min-width: 0; }
.product-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: .4rem;
  background: var(--product-bg);
}
.product-image:hover img { transform: scale(1.055); }
.product-image img { height: 100%; object-fit: contain; transition: transform .32s ease; }
.product-image[data-product="pocket-plush"] img { transform: scale(1.13); }
.product-image[data-product="pocket-plush"]:hover img { transform: scale(1.19); }
.product-card h3 { margin-top: .78rem; font-size: clamp(1rem, 1.35vw, 1.26rem); font-weight: 800; letter-spacing: -.036em; }
.product-name {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  font-weight: inherit;
  text-align: left;
}
.product-name:hover { text-decoration: underline; text-underline-offset: .22em; }
.product-summary { margin: .25rem 0 .75rem; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.product-price { margin: auto 0 .63rem; font-size: clamp(.95rem, 1.12vw, 1.08rem); font-weight: 800; }
.product-card .button { justify-content: space-between; width: 100%; padding-inline: .85rem; text-align: left; }
.product-card .button .icon { width: 1rem; height: 1rem; }

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: clamp(3rem, 6vw, 6rem);
}
.about-media { min-height: clamp(24rem, 31vw, 38rem); border-radius: .4rem 0 0 .4rem; }
.about-media img { object-position: center 27%; }
.about-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1rem;
  padding: clamp(2rem, 6vw, 6rem);
  border-radius: 0 .4rem .4rem 0;
  background: #e7eaf3;
}
.about-copy .eyebrow { color: #4d6089; }
.about-copy p:last-child { max-width: 34rem; line-height: 1.7; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 2.1rem;
  background: var(--navy);
  color: var(--paper);
}
.footer-brand { display: flex; align-items: center; gap: 1.4rem; }
.footer-brand p, .site-footer nav { font-size: .875rem; }
.footer-brand p { color: #d0d7ea; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-weight: 700; }

dialog {
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
}
dialog::backdrop { background: rgb(9 15 30 / 55%); }
.icon-button {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  flex: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
}
.icon-button:hover { background: #e7ebf4; }
.product-dialog { width: min(56rem, calc(100% - 2rem)); max-width: none; border-radius: .55rem; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.detail-close { position: absolute; z-index: 1; top: .85rem; right: .85rem; }
.detail-media { display: grid; align-items: center; background: var(--product-bg); }
.detail-content { padding: 3.8rem clamp(1.25rem, 4vw, 2.85rem) 2rem; }
.detail-content h2 {
  margin-block: .25rem .65rem;
  font-size: clamp(1.75rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.06em;
}
.detail-summary { color: var(--muted); font-size: .85rem; }
.detail-description { margin-block: 1rem 1.2rem; line-height: 1.55; }
.detail-price { margin-bottom: 1.1rem; font-size: 1.25rem; font-weight: 800; }
.product-options { margin: 0 0 1.2rem; padding: 0; border: 0; }
.product-options legend { margin-bottom: .55rem; font-size: .875rem; font-weight: 750; }
.options-list { display: flex; flex-wrap: wrap; gap: .45rem; }
.option { display: flex; cursor: pointer; }
.option span { padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 2rem; font-size: .875rem; font-weight: 700; }
.option input:checked + span { border-color: var(--navy); background: var(--navy); color: white; }
.option input:focus-visible + span { outline: 2px solid #5677b5; outline-offset: 3px; }
.detail-content .button { width: 100%; }

.cart-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 30rem);
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  overflow: hidden;
}
.cart-dialog[open] { display: flex; flex-direction: column; }
.drawer-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid var(--line);
}
.drawer-heading h2 { font-size: 1.65rem; letter-spacing: -.055em; }
.drawer-body { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: auto; }
.cart-empty, .checkout-success { display: grid; justify-items: center; align-content: center; gap: .8rem; min-height: 100%; padding: 2rem; text-align: center; }
.cart-empty > .icon, .checkout-success > .icon { width: 2.5rem; height: 2.5rem; margin-bottom: .25rem; color: #667db0; }
.cart-empty p, .checkout-success p { color: var(--muted); }
.cart-list { display: grid; padding: .3rem 1.35rem; }
.cart-line {
  display: grid;
  grid-template-columns: 4.9rem 1fr auto;
  align-items: start;
  gap: .8rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}
.cart-line:last-child { border: 0; }
.cart-line img { border-radius: .3rem; background: var(--product-bg); }
.line-name { font-size: .95rem; line-height: 1.28; letter-spacing: -.025em; }
.line-variant { margin: .2rem 0 .35rem; color: var(--muted); font-size: .8rem; }
.line-total { font-size: .875rem; font-weight: 800; text-align: right; white-space: nowrap; }
.line-actions { display: flex; flex-wrap: wrap; gap: .3rem .65rem; align-items: center; }
.quantity { display: inline-flex; align-items: center; gap: .3rem; border: 1px solid var(--line); border-radius: .3rem; }
.quantity button { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; padding: 0; border: 0; background: transparent; }
.quantity button:hover:not(:disabled) { background: #e7ebf4; }
.quantity .icon { width: .85rem; height: .85rem; }
.quantity span { min-width: 1.25rem; font-size: .85rem; text-align: center; }
.text-button {
  width: fit-content;
  padding: .25rem 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: .83rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .21em;
}
.cart-bottom { display: grid; gap: .7rem; margin-top: auto; padding: 1rem 1.35rem 1.3rem; border-top: 1px solid var(--line); }
.cart-subtotal { display: flex; justify-content: space-between; gap: 1rem; font-weight: 800; }
.cart-note, .checkout-note { color: var(--muted); font-size: .875rem; line-height: 1.55; }
.checkout-form { display: grid; gap: 1rem; padding: 1.15rem 1.35rem 1.5rem; }
.checkout-section { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.checkout-section + .checkout-section { margin-top: .15rem; }
.checkout-section legend { margin-bottom: .7rem; padding: 0; font-size: 1.12rem; font-weight: 800; letter-spacing: -.03em; }
.checkout-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .78rem .7rem; }
.checkout-fields .wide-field { grid-column: 1 / -1; }
.checkout-form label { display: grid; gap: .35rem; font-size: .875rem; font-weight: 750; }
.checkout-fields label { align-content: start; }
.checkout-fields input { width: 100%; min-height: 2.72rem; padding: .5rem .65rem; border: 1px solid #b4b7c3; border-radius: .32rem; background: white; font-size: 1rem; }
.checkout-fields small { color: var(--muted); font-size: .78rem; font-weight: 500; }
.delivery-note { margin-bottom: .7rem; }
.payment-totals { display: grid; gap: .52rem; font-size: .875rem; }
.payment-totals p { display: flex; justify-content: space-between; gap: .7rem; }
.payment-totals p > :last-child { text-align: right; }
.payment-totals .cart-subtotal { margin-top: .25rem; padding-top: .65rem; border-top: 1px solid var(--line); font-size: 1rem; }
.checkout-prices { padding: .88rem .9rem; border-radius: .35rem; background: #e9ebf2; }
.checkout-acceptance { display: grid; gap: .55rem; }
.checkout-acceptance label { display: flex; gap: .55rem; align-items: flex-start; font-weight: 600; line-height: 1.5; }
.checkout-acceptance input { flex: none; width: 1rem; height: 1rem; margin: .12rem 0 0; accent-color: var(--navy); }
.checkout-acceptance a { text-decoration: underline; text-underline-offset: .2em; }
.checkout-error { color: #9a2d2a; font-size: .875rem; }
.toast {
  position: fixed;
  z-index: 2;
  right: var(--gutter);
  bottom: 1rem;
  max-width: calc(100% - 2 * var(--gutter));
  visibility: hidden;
  padding: .8rem 1rem;
  border-radius: .35rem;
  background: var(--navy);
  color: white;
  opacity: 0;
  transform: translateY(.6rem);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  font-size: .875rem;
  font-weight: 700;
}
.toast.is-visible { visibility: visible; opacity: 1; transform: none; }

@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { min-height: clamp(25rem, 52vw, 32rem); }
  .hero h1 { font-size: clamp(3.5rem, 8vw, 5.2rem); }
}

@media (max-width: 730px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 1.27; }
  .hero-copy { padding-block: 2.55rem 2.6rem; }
  .hero h1 { font-size: clamp(3.7rem, 11vw, 6rem); }
  .hero-description { margin-bottom: 1.35rem; }
  .catalog-toolbar { align-items: flex-start; flex-direction: column; gap: .65rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem .7rem; }
  .about { grid-template-columns: 1fr; }
  .about-media { min-height: 0; aspect-ratio: 1.25; border-radius: .4rem .4rem 0 0; }
  .about-copy { border-radius: 0 0 .4rem .4rem; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 490px) {
  .site-nav { min-height: 4.2rem; }
  .wordmark { font-size: 2.35rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: .83rem; }
  .bag-label { display: none; }
  .product-grid { margin-inline: -.05rem; }
  .product-card .button { padding-inline: .52rem; }
  .product-detail { grid-template-columns: 1fr; }
  .detail-media img { max-height: 16rem; object-fit: contain; }
  .detail-content { padding-block: 1.35rem; }
}

@media (max-width: 390px) {
  .checkout-fields { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
