:root {
  --paper: #f4efe6;
  --sheet: #fffdf8;
  --ink: #1c3136;
  --muted: #3d5258;
  --teal: #0c6e6a;
  --teal-deep: #084e4b;
  --purple: #62358d;
  --line: #e3d9cb;
  --sun: #c98412;
  --focus: #084e4b;
  --shadow: 0 12px 32px rgba(28, 49, 54, 0.07);
  --max: 1080px;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Lexend", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 70% 42% at 100% -8%, rgba(98, 53, 141, 0.08), transparent 55%),
    radial-gradient(ellipse 55% 38% at -8% 12%, rgba(12, 110, 106, 0.1), transparent 52%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--teal-deep);
}

a:hover {
  color: var(--purple);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--teal-deep);
  color: white;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: rgba(244, 239, 230, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: 64px;
  width: auto;
}

.menu-toggle {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
}

.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0 1rem;
  border: 2px solid var(--teal-deep);
  border-radius: 999px;
  color: var(--teal-deep);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.menu {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
}

.menu a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0.1rem;
}

.menu a:hover,
.menu a[aria-current="page"] {
  color: var(--teal-deep);
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3.2rem 0 2.4rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--teal);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 560;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.15rem, 4.6vw, 3.45rem);
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
}

.lede {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn,
.btn-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
}

.btn {
  background: var(--teal-deep);
  color: white;
}

.btn:hover {
  background: var(--purple);
  color: white;
}

.btn-quiet {
  background: transparent;
  color: var(--teal-deep);
  border: 2px solid var(--teal-deep);
}

.btn-quiet:hover {
  background: white;
  color: var(--purple);
  border-color: var(--purple);
}

.hero-brand {
  justify-self: center;
  width: min(100%, 280px);
  padding: 1.25rem;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-brand p {
  margin: 0.8rem 0 0;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--purple);
}

.band {
  padding: 2.5rem 0;
}

.panel {
  padding: 1.6rem 1.5rem;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.panel p:last-child {
  margin-bottom: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  margin: 0;
  padding: 1.15rem 1.1rem 1.25rem;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.steps strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 560;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.7rem;
  border-radius: 50%;
  background: #e5f3f2;
  color: var(--teal-deep);
  font-weight: 600;
}

.catalog {
  padding: 1rem 0 2.5rem;
}

.tabs {
  margin-top: 1.5rem;
}

.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tab {
  position: relative;
  margin: 0;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 500;
  cursor: pointer;
  transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.tab input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tab:hover {
  color: var(--teal-deep);
}

.tab:has(input:checked) {
  color: white;
  background: var(--teal-deep);
  border-color: var(--teal-deep);
}

.tab:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.tabs .group {
  display: none;
  margin-top: 1.35rem;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.32s ease,
    transform 0.32s ease,
    display 0.32s allow-discrete;
}

.tabs:has(input[value="words"]:checked) #words,
.tabs:has(input[value="numbers"]:checked) #numbers,
.tabs:has(input[value="focus"]:checked) #focus,
.tabs:has(input[value="music"]:checked) #music {
  display: block;
  opacity: 1;
  transform: none;
}

@starting-style {
  .tabs:has(input[value="words"]:checked) #words,
  .tabs:has(input[value="numbers"]:checked) #numbers,
  .tabs:has(input[value="focus"]:checked) #focus,
  .tabs:has(input[value="music"]:checked) #music {
    opacity: 0;
    transform: translateY(8px);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.group {
  margin-top: 2.4rem;
}

.group > p {
  max-width: 40rem;
  margin-top: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  width: 100%;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.card-link:hover h3 {
  color: var(--teal-deep);
}

.cover {
  background: white;
  border-bottom: 1px solid var(--line);
}

.cover img {
  display: block;
  width: 100%;
  aspect-ratio: 210 / 297;
  object-fit: contain;
  object-position: center;
  background: white;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  padding: 1rem 1.05rem 1.15rem;
}

.kicker {
  margin: 0;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.card-body p {
  margin: 0;
  color: var(--muted);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.8rem;
}

.price,
.price-lg {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.5rem;
  margin: 0;
}

.card-body .price-was,
.price-was {
  color: var(--muted);
  font-weight: 500;
  text-decoration: line-through;
}

.card-body .price-now,
.price-now {
  color: var(--teal-deep);
  font-weight: 700;
}

.promo-tag {
  flex-basis: 100%;
  margin: 0;
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.more {
  color: var(--teal-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.note {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 1rem;
}

.detail-page {
  padding: 1.6rem 0 3rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.detail {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 2rem;
  align-items: start;
}

.detail-cover {
  position: sticky;
  top: 6rem;
  margin: 0;
  padding: 0.6rem;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.detail-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 210 / 297;
  object-fit: contain;
  background: white;
  border-radius: 14px;
}

.detail h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.price-lg {
  margin: 0.45rem 0 0.2rem;
  font-family: var(--serif);
}

.price-lg .price-was {
  font-size: 1.45rem;
}

.price-lg .price-now {
  font-size: 2.15rem;
  color: var(--ink);
}

.price-note {
  margin: 0 0 1rem;
  color: var(--muted);
}

.facts {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.facts div {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--teal);
}

.facts dd {
  margin: 0.15rem 0 0;
}

.block {
  margin-top: 1.6rem;
}

.block ul,
.block ol {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.block li + li {
  margin-top: 0.35rem;
}

.agreement {
  margin-top: 1.6rem;
  padding: 1.1rem 1.15rem;
  background: #f3f7f4;
  border-left: 4px solid var(--teal);
  border-radius: 0 16px 16px 0;
}

.agreement p {
  margin: 0.35rem 0 0;
}

.message {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  background: var(--sheet);
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
}

.related {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.related ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 30;
  max-width: min(32rem, calc(100% - 2rem));
  margin: 0;
  padding: 0.8rem 1rem;
  background: var(--ink);
  color: white;
  border-radius: 14px;
}

.site-footer {
  padding: 2rem 0 2.6rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0.25rem 0;
}

.fine-print {
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hero,
  .steps,
  .detail {
    grid-template-columns: 1fr;
  }

  .hero-brand {
    display: none;
  }

  .detail-cover {
    position: static;
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-wrap: wrap;
  }

  .menu-button {
    display: inline-flex;
  }

  .menu {
    display: none;
    position: static;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.2rem 0 0.4rem;
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
  }

  .menu a {
    padding: 0.85rem 0.2rem;
    border-top: 1px solid var(--line);
  }

  .menu-toggle:checked ~ .menu {
    display: flex;
  }

  .menu-toggle:focus-visible + .menu-button {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
