:root {
  color-scheme: light;
  --ink: #17362e;
  --muted: #52675d;
  --paper: #f3f4ec;
  --line: #d1dbcf;
  --jade: #245847;
  --display: Georgia, "Times New Roman", serif;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 88px; }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 2px solid #23806a; outline-offset: 4px; }
.wrap { width: min(1320px, calc(100% - 72px)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f3f4ecf5;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-inner, .header-tools, .site-header nav, .footer-inner { display: flex; align-items: center; gap: 22px; }
.header-inner { min-height: 70px; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand > span { font: 700 23px/1 var(--display); letter-spacing: .075em; }
.brand small { display: block; margin-top: 4px; font: 700 8px/1 "Segoe UI", system-ui, sans-serif; letter-spacing: .17em; }
.site-header nav a { font-size: .87rem; font-weight: 650; text-decoration: none; }
.site-header nav a:hover, .text-link:hover { text-decoration: underline; }
.header-tools { gap: 8px; }
#language, .bag-button, .icon-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcf6;
}
#language { max-width: 140px; padding: 6px; font-size: .81rem; }
.bag-button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; font-size: .82rem; font-weight: 700; }
.bag-button svg { width: 17px; height: 17px; }
#bag-count { display: grid; place-items: center; min-width: 21px; height: 21px; border-radius: 50%; background: #dce9d9; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  align-items: center;
  gap: clamp(32px, 5vw, 78px);
  padding-block: clamp(36px, 5vw, 76px);
}
.eyebrow { margin: 0; color: #3b6655; font-size: .72rem; font-weight: 780; letter-spacing: .15em; }
.hero h1 {
  margin: 18px 0;
  font: 400 clamp(3.1rem, 6vw, 6.6rem)/.92 var(--display);
  letter-spacing: -.065em;
  overflow-wrap: anywhere;
}
.hero h1 em { display: block; font-weight: 400; color: #427c64; }
.hero-description, .section-head p { max-width: 41ch; color: var(--muted); line-height: 1.65; }
.hero-description { margin: 0 0 24px; font-size: 1rem; }
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcf7;
  color: var(--ink);
  font-size: .83rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}
.button.primary { background: var(--jade); border-color: var(--jade); color: #fff; }
.button:hover:not(:disabled), .bag-button:hover, .icon-button:hover { filter: brightness(.94); }
.hero-note { display: flex; gap: 8px; align-items: center; margin: 18px 0 0; color: var(--muted); font-size: .75rem; }
.hero-note > span:first-child { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #549a74; }
.hero-visual { position: relative; overflow: hidden; border-radius: 10px; background: #123a32; }
.hero-visual img { width: 100%; height: auto; aspect-ratio: 1.3; object-fit: cover; }
.image-index { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; padding: 13px 15px; background: #123a32e8; color: #e9f4e9; font-size: .67rem; letter-spacing: .14em; }
.collection { padding-block: 28px 58px; border-top: 1px solid var(--line); }
.section-head { display: flex; gap: 14px; justify-content: space-between; align-items: end; margin: 8px 0 24px; }
.section-head h2, .routine h2 { margin: 0; font: 400 clamp(2.3rem, 4.3vw, 4.6rem)/1.02 var(--display); letter-spacing: -.055em; }
.section-head p { margin: 0; font-size: .85rem; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.product-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fbfcf6; }
.product-photo { display: block; width: 100%; padding: 0; border: 0; background: #dce9db; overflow: hidden; }
.product-photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; transition: transform .24s ease; }
.product-photo:hover img { transform: scale(1.035); }
.product-photo:focus-visible { outline-offset: -4px; }
.product-info { flex: 1; display: flex; flex-direction: column; align-items: start; gap: 8px; padding: 14px; }
.product-info h3 { margin: 0; font: 400 clamp(1.2rem, 2vw, 1.75rem)/1.13 var(--display); }
.product-info p { margin: 0; color: var(--muted); font-size: .83rem; line-height: 1.5; }
.product-price { font-weight: 800; }
.product-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 5px; }
.routine { display: grid; grid-template-columns: .85fr 1.15fr; gap: 20px; margin-bottom: 48px; padding: clamp(18px, 4vw, 48px); border-radius: 10px; background: #dce9dc; }
.routine h2 { margin: 10px 0 17px; }
.text-link { text-underline-offset: 3px; font-size: .86rem; font-weight: 650; }
.steps { display: grid; gap: 0; padding: 0; margin: 0; list-style: none; }
.steps li { display: flex; gap: 13px; padding: 13px 0; border-bottom: 1px solid #afc8b1; }
.steps li:last-child { border: 0; }
.steps li > span { color: #376851; font: 400 1.36rem/1 var(--display); }
.steps h3 { margin: 0 0 3px; font-size: 1rem; }
.steps p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.site-footer { border-top: 1px solid var(--line); }
.footer-guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-block: 32px; }
.footer-guide section { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #f8faf3; }
.footer-guide h2 { margin: 0 0 9px; font: 400 1.45rem/1.1 var(--display); }
.footer-guide p { margin: 0 0 9px; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.footer-guide button { padding: 0; border: 0; background: transparent; text-decoration: underline; }
.footer-guide .text-link { display: inline-flex; align-items: center; min-height: 40px; }
.footer-inner { border-top: 1px solid var(--line); }
.footer-inner { justify-content: space-between; padding-block: 24px; }
.footer-inner p { color: var(--muted); font-size: .81rem; }
dialog { width: min(510px, calc(100% - 24px)); max-height: 88dvh; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcf6; color: var(--ink); }
dialog::backdrop { background: #0c211ccb; }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding-bottom: 12px; }
.dialog-head h2 { margin: 5px 0 0; font: 400 1.85rem/1.08 var(--display); }
.icon-button { flex: none; width: 42px; font-size: 1.35rem; }
.detail { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); align-items: start; gap: 15px; }
.detail img { width: 100%; border-radius: 8px; }
.detail p, .bag-note { margin: 8px 0; font-size: .88rem; line-height: 1.45; color: var(--muted); }
.detail .button { margin-top: 6px; }
.bag-list { padding: 0; margin: 0; list-style: none; }
.bag-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bag-row .quantity { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.quantity button { min-width: 42px; }
.bag-total { display: flex; justify-content: space-between; gap: 12px; font-weight: 800; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 940px) {
  .wrap { width: calc(100% - 40px); }
  .hero { gap: 22px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 660px) {
  html { scroll-padding-top: 73px; }
  .wrap { width: calc(100% - 28px); }
  .header-inner { min-height: 60px; gap: 6px; }
  .brand { gap: 6px; }
  .brand img { width: 31px; height: 31px; }
  .brand > span { font-size: 17px; }
  .brand small { font-size: 7px; }
  .site-header nav, .bag-text { display: none; }
  #language { max-width: 104px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 28px; }
  .hero h1 { font-size: clamp(2.85rem, 12vw, 4.8rem); margin-block: 11px; }
  .hero-visual img { aspect-ratio: 1.52; }
  .section-head { display: block; }
  .section-head p { margin-top: 8px; }
  .product-grid { gap: 9px; }
  .product-info { padding: 9px; }
  .product-actions .button { padding-inline: 8px; }
  .collection { padding-block: 21px 32px; }
  .routine { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .footer-guide { grid-template-columns: minmax(0, 1fr); gap: 9px; padding-block: 20px; }
  .footer-inner { flex-wrap: wrap; gap: 10px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-photo img { transition: none; }
}
