:root {
  color-scheme: light dark;
  --bg: #f5f5f2;
  --surface: rgba(255, 255, 255, 0.82);
  --text: #171714;
  --muted: #67675f;
  --line: rgba(23, 23, 20, 0.14);
  --accent: #5d6f28;
  --accent-soft: rgba(93, 111, 40, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10110f;
    --surface: rgba(29, 30, 27, 0.82);
    --text: #f1f1eb;
    --muted: #b3b3aa;
    --line: rgba(241, 241, 235, 0.14);
    --accent: #b5d863;
    --accent-soft: rgba(181, 216, 99, 0.13);
  }
}

* { box-sizing: border-box; }

html {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.7;
  background: var(--bg);
  color: var(--text);
}

body { margin: 0; }

header, main, footer {
  width: min(880px, calc(100% - 32px));
  margin-inline: auto;
}

header {
  padding: 56px 0 24px;
}

.brand {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.tagline {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 16px 0 0;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

nav a, .button {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  display: inline-flex;
  padding: 9px 15px;
  text-decoration: none;
}

nav a:hover, .button:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.card {
  backdrop-filter: blur(18px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  margin: 18px 0;
  padding: clamp(22px, 5vw, 44px);
}

h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
h2 { margin-top: 2.1em; }
h2:first-child { margin-top: 0; }
p, li { max-width: 72ch; }
.muted { color: var(--muted); }
.language-note { border-left: 3px solid var(--accent); padding-left: 14px; }
a { color: var(--accent); }

.shop-banner {
  background: #202b2f;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--text);
  display: block;
  margin: 18px 0;
  overflow: hidden;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.shop-banner:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.shop-banner:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.shop-banner img {
  display: block;
  height: auto;
  width: 100%;
}

.shop-banner__action {
  align-items: center;
  background: var(--surface);
  color: var(--text);
  display: flex;
  font-weight: 700;
  gap: 0.5em;
  justify-content: center;
  padding: 12px 18px;
  white-space: nowrap;
}

footer {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 24px 0 56px;
}

@media (max-width: 520px) {
  header { padding-top: 34px; }
  .card { border-radius: 20px; }
  .shop-banner__action { font-size: 0.9rem; }
}
