:root {
  --paper: #efe8dc;
  --paper-2: #e6dccb;
  --cream: #f7f2e8;
  --ink: #241c14;
  --muted: #6a5f52;
  --line: rgba(36, 28, 20, 0.12);
  --copper: #a35b2d;
  --copper-deep: #7c3f1c;
  --sage: #5d6a56;
  --white: #fcfaf6;
  --shadow: 0 18px 50px rgba(36, 28, 20, 0.12);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: var(--cream);
  padding: 8px 12px;
  z-index: 20;
}

.skip:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  background: rgba(239, 232, 220, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.logo img {
  width: 34px;
  height: 22px;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
}

.nav .lang-switch,
.nav a[data-nav="/atelier"] {
  flex-shrink: 0;
}

.nav a {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav a.is-active,
.nav a:hover {
  color: var(--ink);
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
}

.lang-switch.is-off {
  display: none;
}

.lang-switch select {
  appearance: none;
  -webkit-appearance: none;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' fill='none' stroke='%23241c14' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  padding: 0 32px 0 14px;
  font-size: 13px;
  cursor: pointer;
}

.lang-switch select:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.menu-btn,
.icon-btn {
  border: 1px solid var(--line);
  background: transparent;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-btn {
  display: none;
}

.cart-btn {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--copper);
  color: var(--cream);
  font-size: 11px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.cart-count.is-on {
  display: inline-flex;
}

main {
  min-height: calc(100vh - 220px);
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: end;
  padding: 48px 0 24px;
}

.kicker {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 14px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.92;
}

h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
}

.lede {
  max-width: 38ch;
  color: var(--muted);
  font-size: 17px;
  margin: 18px 0 28px;
}

.hero-actions,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
}

.btn.copper {
  background: var(--copper);
  border-color: var(--copper);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.hero-photo {
  overflow: hidden;
  border-radius: 4px 48px 4px 4px;
  min-height: 420px;
}

.hero-photo img,
.card-media img,
.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 62%;
  max-height: min(72vh, 640px);
  background: var(--cream);
}

.section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #d9cfbf;
}

.card-media img {
  transition: transform 0.5s ease;
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.price {
  font-variant-numeric: tabular-nums;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step {
  padding: 28px 24px;
  border-top: 1px solid var(--ink);
}

.num {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--copper);
}

.band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.story-photo {
  min-height: 340px;
  overflow: hidden;
  border-radius: 28px 4px 28px 4px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 24px;
}

.chip {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
}

.chip.is-on {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.pair {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  padding: 36px 0 64px;
  align-items: start;
}

.frame-photo {
  position: sticky;
  top: 92px;
  background: var(--cream);
  border: 1px solid var(--line);
  overflow: hidden;
}

.frame-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  background: var(--cream);
}

.frame-photo.is-album img {
  object-fit: contain;
}

.frame-photo-meta {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  pointer-events: none;
}

.frame-photo-props,
.frame-photo-price {
  margin: 0;
  max-width: 100%;
  padding: 8px 12px;
  background: var(--paper);
  color: var(--ink);
}

.frame-photo-props {
  border-radius: 12px;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.45;
}

.frame-photo-price {
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
}

.pair-copy h1 {
  font-size: clamp(36px, 5vw, 60px);
  margin: 4px 0 8px;
}

.spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 22px;
}

.block {
  margin: 28px 0;
}

.block h3 {
  font-size: 28px;
  margin-bottom: 12px;
}

.lens-list,
.addon-list {
  display: grid;
  gap: 10px;
}

.lens-choices-hint {
  margin-top: 0;
}

.lens-properties {
  display: grid;
  gap: 16px;
  margin: 14px 0 18px;
}

.lens-property-name {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.15;
}

.lens-property-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lens-property-values .chip:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}

.lens-property-values .chip:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.chip-default {
  margin-left: 8px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
}

.chip-price-additional,
.lens-additional-price {
  font-size: 11px;
}

.lens-catalog-retry {
  margin-top: 12px;
}

.choice,
.addon {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--cream);
  padding: 14px 16px;
  border-radius: 4px;
}

.choice.is-on,
.addon.is-on {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.choice-top,
.addon {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.choice p,
.hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.includes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--muted);
}

.rx-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.rx-panel {
  display: none;
  border: 1px solid var(--line);
  background: var(--cream);
  padding: 16px;
}

.rx-panel.is-on {
  display: block;
}

.rx-grid {
  display: grid;
  grid-template-columns: 70px repeat(4, 1fr);
  gap: 8px;
  align-items: center;
}

.rx-grid label,
.rx-grid span {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.rx-grid input,
.field input,
.field select,
.drop input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  min-height: 40px;
  padding: 0 10px;
}

.field input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--ink);
}

.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  min-height: 96px;
  padding: 10px;
  resize: vertical;
  line-height: 1.45;
}

.pd-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}

.drop {
  border: 1px dashed var(--muted);
  padding: 22px;
  text-align: center;
  background: var(--white);
}

.drop input {
  margin-top: 12px;
}

.preview {
  margin-top: 14px;
  display: none;
}

.preview.is-on {
  display: block;
}

.preview img {
  max-height: 180px;
  margin: 10px auto 0;
}

.note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}

.summary {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0;
}

.summary-line.total {
  font-size: 20px;
  font-family: var(--serif);
  margin-top: 10px;
}

.cart-list {
  display: grid;
  gap: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 16px;
  align-items: start;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 12px;
}

.cart-item img {
  width: 140px;
  height: 104px;
  object-fit: cover;
}

.linkish {
  border: 0;
  background: none;
  color: var(--copper-deep);
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.checkout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.field {
  margin-bottom: 12px;
}

.field span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.empty,
.done {
  padding: 80px 0;
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 28px;
  margin-top: 40px;
}

address.muted {
  font-style: normal;
}

.lang-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin: 14px 0 0;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.lang-links a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lang-links a[aria-current="page"] {
  color: var(--ink);
  text-decoration-thickness: 2px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--ink);
  color: var(--cream);
  padding: 12px 16px;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 30;
}

.toast.is-on {
  opacity: 1;
  transform: none;
}

.drawer {
  display: none;
}

.drawer-atelier {
  display: flex;
  align-items: center;
  gap: 16px;
}

@media (max-width: 980px) {
  .hero,
  .band,
  .pair,
  .checkout,
  .footer-grid,
  .grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    padding: 12px 16px;
  }

  .nav {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
  }

  .nav a:not([data-nav="/atelier"]) {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .drawer.is-on {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 20px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .hero,
  .band,
  .pair,
  .checkout,
  .footer-grid,
  .grid,
  .cart-item,
  .rx-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo,
  .frame-photo {
    position: relative;
    top: auto;
    min-height: 260px;
  }

  .wrap {
    width: min(1180px, calc(100% - 28px));
  }

  .section {
    padding: 48px 0;
  }
}

@media (max-width: 420px) {
  .site-header {
    gap: 8px;
    padding: 10px 12px;
  }

  .logo {
    font-size: 18px;
    gap: 6px;
  }

  .logo span {
    display: none;
  }

  .logo img {
    width: 28px;
    height: 18px;
  }

  .header-tools {
    gap: 6px;
  }

  .lang-switch select {
    height: 36px;
    font-size: 12px;
    padding: 0 22px 0 8px;
    background-position: right 7px center;
  }

  .menu-btn,
  .icon-btn {
    width: 36px;
    height: 36px;
  }
}

html[lang="zh-CN"] body {
  font-family: "Outfit", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
}

html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3,
html[lang="zh-CN"] .summary-line.total {
  font-family: "Cormorant Garamond", "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", serif;
  letter-spacing: 0;
}

html[lang="zh-CN"] h1 {
  line-height: 1.15;
}

html[lang="zh-CN"] h2,
html[lang="zh-CN"] .pair-copy h1 {
  line-height: 1.22;
}

html[lang="zh-CN"] .lede {
  max-width: 36em;
}

html[lang="zh-CN"] .kicker,
html[lang="zh-CN"] .nav a,
html[lang="zh-CN"] .card-meta,
html[lang="zh-CN"] .tag,
html[lang="zh-CN"] .field span,
html[lang="zh-CN"] .rx-grid label,
html[lang="zh-CN"] .rx-grid span {
  text-transform: none;
}

html[lang="zh-CN"] .kicker {
  letter-spacing: 0.16em;
}

html[lang="zh-CN"] .nav a,
html[lang="zh-CN"] .lang-links {
  letter-spacing: 0.08em;
}

html[lang="zh-CN"] .card-meta,
html[lang="zh-CN"] .tag,
html[lang="zh-CN"] .field span,
html[lang="zh-CN"] .rx-grid label,
html[lang="zh-CN"] .rx-grid span {
  letter-spacing: 0.04em;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card,
  .card-media img,
  .toast {
    transition: none;
  }
}
