:root {
  color-scheme: light;
  --background: #f3f6fb;
  --surface: #fff;
  --line: #e6edf6;
  --ink: #202c3d;
  --muted: #606f84;
  --accent: #205cf5;
  --font: Inter, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', sans-serif;
  --mono: 'IBM Plex Mono', Consolas, monospace;
  font: 16px/1.5 var(--font);
  color: var(--ink);
  background: var(--background);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
[hidden], .icon-library { display: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.shell { width: min(1184px, calc(100% - 80px)); margin-inline: auto; }
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  z-index: 3;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 6px;
  transform: translateY(-150%);
  background: var(--accent);
  color: #fff;
}
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.header-inner {
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; justify-self: start; gap: 11px; font-size: 17px; font-weight: 750; letter-spacing: .035em; white-space: nowrap; }
.brand-mark {
  display: block;
  flex: none;
  object-fit: cover;
  border: 1px solid #7d5145;
  border-radius: 9px;
}
.header-nav { display: flex; height: 100%; gap: 32px; color: var(--muted); font-size: 14px; }
.header-nav a { display: inline-flex; gap: 4px; align-items: center; position: relative; white-space: nowrap; }
.header-nav a:hover, .header-nav [aria-current] { color: var(--ink); }
.header-nav [aria-current]::after { position: absolute; bottom: -1px; inset-inline: 0; height: 2px; background: var(--accent); content: ''; }
.header-nav .icon { width: 12px; height: 12px; }
.header-contact { display: inline-flex; align-items: center; gap: 8px; justify-self: end; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; white-space: nowrap; }
.header-contact .icon { width: 17px; height: 17px; color: var(--accent); }
.header-contact:hover { border-color: var(--accent); }

.hero {
  --wallpaper-background: #fbeddd;
  --wallpaper-ink: #802725;
  display: flex;
  align-items: center;
  min-height: 480px;
  margin-top: 28px;
  padding: 52px clamp(32px, 5.5vw, 78px);
  border: 1px solid #e0c7b5;
  border-radius: 18px;
  background: var(--wallpaper-background) url('assets/muji-wallpaper.webp') right 4% center / min(45%, 540px) auto no-repeat;
}
.hero-content { max-width: 52%; }
.hero:has(.hero-banner:not([hidden])) { gap: 24px; justify-content: space-between; background-image: none; }
.hero-banner { width: min(45%,540px); height: auto; max-height: 390px; object-fit: contain; border-radius: 12px; }
.hero-domain { display: flex; align-items: center; gap: 10px; margin: 0 0 21px; color: var(--wallpaper-ink); font: 13px/1.4 var(--mono); letter-spacing: .15em; }
.hero-domain span { width: 19px; height: 1px; background: currentColor; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 15px; color: var(--wallpaper-ink); font-size: clamp(48px, 6.3vw, 86px); font-weight: 800; letter-spacing: -.045em; line-height: 1.12; }
.hero-tagline { margin-bottom: 12px; color: #6b3731; font-size: clamp(20px, 2.45vw, 31px); font-weight: 650; letter-spacing: .03em; }
.hero-description { margin-bottom: 30px; color: #503b34; font-size: 15px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 17px; min-height: 48px; font-size: 14px; font-weight: 700; border: 1px solid transparent; border-radius: 8px; transition: background-color .18s, border-color .18s; }
.button .icon { width: 17px; height: 17px; }
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: #1448d3; }
.button-secondary { border-color: #a67a6a; background: #fff6eb; color: #702a26; }
.button-secondary:hover:not(:disabled) { border-color: #802725; background: #f8dfce; }
.button:disabled { border-color: #bca99e; color: #755e54; cursor: not-allowed; }

.links { padding: 38px 0 36px; scroll-margin-top: 24px; }
.section-header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.section-header h2 { margin: 0; font-size: 25px; font-weight: 750; letter-spacing: .02em; }
.section-header p { margin: 0; color: var(--muted); font-size: 13px; }
.link-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.link-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 173px;
  padding: 19px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: background-color .18s, border-color .18s, transform .18s;
}
a.link-card:hover { transform: translateY(-3px); border-color: #80a3fa; background: #fafcff; }
.shop-card { border-color: #d6e4ff; }
a.shop-card:hover { border-color: var(--accent); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.card-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 8px; background: #edf4ff; color: #2655ad; }
.shop-card .card-icon { color: var(--accent); background: #e8efff; }
.card-arrow { color: var(--muted); }
.shop-card .card-arrow { color: var(--accent); }
.card-title { font-size: 18px; font-weight: 750; }
.card-description { margin: 3px 0 8px; color: var(--muted); font-size: 13px; }
.card-address { margin-top: auto; color: var(--muted); font: 12px/1.5 var(--mono); }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0 22px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-brand { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.footer-brand .brand-mark { border-radius: 5px; }
.footer-domain { display: flex; align-items: center; gap: 6px; font: 13px/1.5 var(--mono); }
.footer-domain a:hover, .footer-brand:hover { color: var(--ink); }
.copy-button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; color: inherit; background: transparent; cursor: pointer; }
.copy-button[hidden] { display: none; }
.copy-button:hover { background: #e8efff; color: var(--accent); }
.copy-button .icon { width: 17px; height: 17px; }
.toast { position: fixed; z-index: 2; right: 24px; bottom: 24px; max-width: calc(100% - 48px); padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 14px; pointer-events: none; }
.toast:empty { padding: 0; border: 0; }

@media (max-width: 940px) {
  .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .shell { width: calc(100% - 48px); }
  .header-nav { gap: 19px; }
  .hero { min-height: 425px; background-position: right 2% center; }
  .link-card { padding-inline: 15px; }
}

@media (max-width: 620px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { height: 62px; display: flex; justify-content: space-between; gap: 12px; }
  .header-nav { display: none; }
  .header-contact { padding: 7px 9px; }
  .hero {
    min-height: 0;
    margin-top: 16px;
    padding: clamp(182px, 61vw, 268px) 22px 30px;
    border-radius: 14px;
    background-position: center top;
    background-size: min(100%, 390px) auto;
  }
  .hero-content { max-width: 100%; }
  .hero:has(.hero-banner:not([hidden])) { flex-direction: column; align-items: flex-start; padding: 22px; }
  .hero-banner { order: -1; width: 100%; max-height: 260px; }
  .hero-domain { margin-bottom: 11px; }
  h1 { margin-bottom: 10px; font-size: clamp(36px, 10.5vw, 66px); }
  .hero-tagline { margin-bottom: 7px; }
  .hero-description { margin-bottom: 20px; font-size: 14px; }
  .hero-actions { gap: 8px; }
  .button { padding-inline: 11px; gap: 5px; font-size: 13px; }
  .button .icon { width: 15px; height: 15px; }
  .links { padding-block: 28px; }
  .section-header h2 { font-size: 22px; }
  .section-header p { font-size: 11px; }
  .link-grid { grid-template-columns: 1fr; gap: 10px; }
  .link-card { position: relative; min-height: 105px; padding: 14px 40px 14px 62px; }
  .card-top { position: absolute; inset: 14px 14px auto; margin: 0; pointer-events: none; }
  .card-title { font-size: 16px; }
  .card-description { margin-bottom: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .link-card { transition: none; }
  a.link-card:hover { transform: none; }
}
