:root {
  color-scheme: light;
  --ink: #182027;
  --dark: #171b20;
  --muted: #59626a;
  --paper: #f7f4ee;
  --white: #fffdf9;
  --line: #dbd7cf;
  --gold: #ffca3a;
  --gold-hover: #f7b921;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button { font: inherit; }
button:not(:disabled) { cursor: pointer; }
:focus-visible { outline: 3px solid #2487d9; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; display: block; }
.contain { width: min(100% - 3rem, 1120px); margin-inline: auto; }
.skip { position: absolute; inset: 1rem auto auto 1rem; transform: translateY(-180%); z-index: 3; padding: .75rem 1rem; background: var(--white); }
.skip:focus { transform: none; }

.topbar { color: var(--white); background: var(--dark); border-bottom: 1px solid #ffffff22; }
.header-row { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand, nav { display: flex; align-items: center; gap: .75rem; }
.brand { text-decoration: none; font-weight: 700; }
.brand strong { color: var(--gold); }
.brand img { border-radius: 50%; object-fit: contain; background: #050505; }
nav { gap: 1.4rem; }
.nav-link { text-decoration: none; color: #e6e7e8; }
.nav-link:hover { text-decoration: underline; text-underline-offset: .25rem; }
.basket { display: flex; align-items: center; gap: .65rem; padding: .45rem .55rem .45rem .85rem; background: transparent; color: var(--white); border: 1px solid #ffffff46; border-radius: 10px; }
.basket-count { display: grid; place-items: center; min-width: 1.65rem; min-height: 1.65rem; padding-inline: .2rem; background: var(--gold); color: var(--dark); font-size: .88rem; font-weight: 750; border-radius: 6px; }

.hero { color: var(--white); background: var(--dark); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: .95fr 1.05fr; align-items: stretch; min-height: 379px; }
.hero-copy { position: relative; z-index: 1; padding: 3rem 1.5rem 3.2rem 0; align-self: center; }
.eyebrow { color: var(--gold); font-weight: 750; font-size: .87rem; letter-spacing: .13em; }
.hero h1 { margin-top: .6rem; font-size: clamp(3.15rem, 6vw, 5.85rem); line-height: .99; letter-spacing: -.072em; }
.hero h1 span { display: inline-block; margin-top: .35rem; font-size: .65em; letter-spacing: -.052em; }
.lede { max-width: 28rem; margin: 1.05rem 0 1.3rem; color: #dddee1; font-size: 1.06rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .62rem; }
.hero-photo { margin: 0; position: relative; min-width: 0; min-height: 100%; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 81%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#171b20 0%,#171b20a0 15%,#171b2010 41%), linear-gradient(270deg, #171b20 0%, transparent 13%); pointer-events: none; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .64rem 1.12rem; border: 1px solid transparent; border-radius: 9px; font-weight: 750; text-decoration: none; line-height: 1.3; text-align: center; }
.accent { background: var(--gold); color: #1e1c16; }
.accent:hover { background: var(--gold-hover); }
.support { gap: .52rem; background: #25d366; color: #14271e; }
.support:hover { background: #20c25d; }
.support-icon { flex: none; filter: brightness(0); }
.primary { background: var(--dark); color: var(--white); }
.primary:hover { background: #30373f; }
.catalog { padding-block: 2.65rem 2rem; scroll-margin-top: 1.5rem; }
.catalog-intro { margin-bottom: 1.2rem; }
.product-summary, .license-note, .compatibility p, .delivery p, .footer-row p { color: var(--muted); }
h2 { font-size: clamp(1.6rem, 4vw, 2.18rem); line-height: 1.22; letter-spacing: -.044em; }
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.product { display: flex; flex-direction: column; padding: 1.65rem; background: var(--white); border: 1px solid var(--line); border-radius: 15px; }
.plus { border-color: #b78716; background: #fffbec; }
.edition { font-weight: 800; font-size: .875rem; letter-spacing: .095em; color: #4c5965; }
.plus .edition { color: #845700; }
h3 { margin-top: .15rem; font-size: clamp(1.85rem, 4vw, 2.55rem); letter-spacing: -.06em; line-height: 1.12; }
.product-summary { margin-top: .6rem; }
.features { margin: 1rem 0 1.3rem; padding-left: 1.25rem; }
.features li + li { margin-top: .28rem; }
.features li::marker { color: #a57207; }
.product-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem 1rem; padding-top: .9rem; margin-top: auto; border-top: 1px solid var(--line); }
.price { display: grid; gap: .1rem; }
.price data { font-size: 1.8rem; font-weight: 800; letter-spacing: -.06em; line-height: 1.15; }
.price span { font-size: .9rem; color: var(--muted); }
.license-note { font-size: .94rem; margin: .85rem 0 0; }

.compatibility, .delivery { padding: 1.5rem 0 2rem; border-top: 1px solid var(--line); }
.compatibility h2, .delivery h2 { font-size: 1.45rem; }
.compatibility p, .delivery p { margin-top: .4rem; }
.delivery p { max-width: 67ch; }
.delivery p a { color: var(--ink); text-underline-offset: .2em; }
.delivery-action { margin-block: .85rem .5rem; }
details { margin-top: .7rem; }
summary { width: fit-content; cursor: pointer; font-weight: 700; text-underline-offset: .2rem; }
summary:hover { text-decoration: underline; }
details img { margin-top: .9rem; width: min(100%, 660px); height: auto; border: 1px solid var(--line); border-radius: 11px; }
footer { background: #ece8e1; border-top: 1px solid var(--line); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding-block: 1.2rem; }
.footer-row p { max-width: 43rem; font-size: .93rem; }

dialog { color: var(--ink); background: var(--white); width: min(calc(100% - 1.5rem), 520px); border: 1px solid var(--line); border-radius: 15px; padding: 1.35rem; box-shadow: 0 22px 86px #1117; }
dialog::backdrop { background: #111922aa; }
.cart-header, .cart-totals, .cart-item { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.cart-header { padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.cart-header h2 { font-size: 1.55rem; }
.close, .quantity button { min-width: 2.65rem; min-height: 2.65rem; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); }
.close { font-size: 1.45rem; line-height: 1; }
.close:hover, .quantity button:not(:disabled):hover { background: var(--paper); }
.empty { padding: 1.3rem 0; color: var(--muted); }
.cart-items { padding: 0; margin: 0; list-style: none; }
.cart-item { padding: .95rem 0; border-bottom: 1px solid var(--line); }
.cart-item-name { line-height: 1.3; }
.cart-item-name small { display: block; margin-top: .12rem; color: var(--muted); font-size: .88rem; }
.quantity { display: flex; align-items: center; gap: .35rem; }
.quantity span { min-width: 1.15rem; text-align: center; font-weight: 650; }
.cart-totals { padding: .9rem 0 .7rem; }
.cart-totals strong { font-size: 1.4rem; }
.checkout { width: 100%; background: #ece8e1; color: #55504a; }
.payment-note { margin-top: .5rem; color: var(--muted); font-size: .9rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 760px) {
  .contain { width: min(100% - 2rem, 620px); }
  .hero-inner { min-height: 0; grid-template-columns: 1fr; }
  .hero-copy { padding: 2rem 0 1.35rem; }
  .hero-photo { min-height: 190px; order: 2; }
  .hero-photo::after { background: linear-gradient(#171b20, #171b2000 35%, #171b20 100%); }
  .catalog { padding-top: 1.7rem; }
  .products { grid-template-columns: 1fr; gap: .85rem; }
  .product { padding: 1.25rem; }
  .footer-row { display: block; }
  .footer-row p { margin-top: .25rem; }
}

@media (max-width: 399px) {
  .header-row { min-height: 62px; }
  .brand img { width: 36px; height: 36px; }
  .brand { gap: .4rem; }
  .nav-link { display: none; }
  .hero h1 { font-size: 3rem; }
}
