:root {
  --paper: #f6f3eb;
  --surface: #ffffff;
  --ink: #171717;
  --muted: #666666;
  --accent: #151515;
  --link: #07599f;
  --tag-bg: #e8f4ff;
  --tag-border: #c7e3fb;
  --line: #e6e0d2;
  --soft: #fbf7ec;
  --shadow: 0 10px 30px rgba(18, 18, 18, 0.04);
  --radius: 16px;
  --radius-small: 10px;
}

* {
  box-sizing: border-box;
}

html {
  font-family: "Instrument Sans", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

body {
  margin: 0;
}

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

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

.page-shell {
  width: min(1400px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 40px;
}

.site-header,
.catalog-shell,
.section-block,
.toy-page,
.site-footer {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 16px;
  padding: 18px;
}

.brand {
  display: grid;
  gap: 4px;
}

.brand-mark {
  font-size: clamp(2rem, 4vw, 4.4rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.brand-subtitle {
  color: var(--muted);
  font-weight: 700;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 8px;
}

.site-nav a,
.text-link {
  color: var(--muted);
  font-weight: 700;
}

.site-nav a {
  font-size: clamp(1rem, 1.6vw, 1.55rem);
}

.site-nav a:hover,
.text-link:hover {
  color: var(--accent);
}

.catalog-shell,
.section-block,
.toy-page {
  padding: 16px;
}

.filters {
  display: grid;
  grid-template-columns: 2fr repeat(5, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.filters input,
.filters select {
  min-height: 44px;
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fcfcfb;
  padding: 0 12px;
  font: inherit;
}

.results-meta {
  margin-bottom: 12px;
  font-weight: 700;
}

.toy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.toy-card {
  display: grid;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.toy-card-body {
  display: grid;
  gap: 8px;
  align-content: start;
}

.toy-image {
  aspect-ratio: 1;
  width: 100%;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--soft);
}

.placeholder {
  display: grid;
  place-items: center;
  padding: 22px;
  color: #4d4128;
  font-weight: 800;
  text-align: center;
}

.toy-card h3,
.page-heading h1,
.toy-page h1,
.guidance-panel h2,
.related-section h2 {
  margin: 0;
  letter-spacing: -0.025em;
}

.toy-card h3 {
  font-size: 1.05rem;
  line-height: 1.1;
}

.toy-brand,
.toy-summary,
.toy-description,
.guidance-panel p,
.site-footer p,
.page-heading p,
.spec-grid dd {
  color: var(--muted);
  line-height: 1.55;
}

.toy-brand,
.toy-summary {
  margin: 0;
}

.toy-brand {
  font-weight: 700;
}

.toy-summary {
  font-size: 0.92rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid var(--tag-border);
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--link);
  font-size: 0.75rem;
  font-weight: 800;
}

.chip-secondary {
  background: #f7f6f2;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.button-quiet {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.toy-card-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toy-card-actions {
  margin-top: 4px;
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.page-heading h1,
.toy-page h1 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1;
}

.pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.pill-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
}

.pill-card.large {
  min-height: 104px;
  align-content: end;
}

.pill-card span {
  color: var(--muted);
}

.toy-page {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: 28px;
  align-items: start;
}

.toy-image-large {
  min-height: 360px;
}

.toy-page-copy {
  display: grid;
  gap: 16px;
}

.sample-note {
  width: fit-content;
  margin: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff0bf;
  color: #5c4300;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-brand {
  font-size: 1rem;
}

.toy-description {
  max-width: 64ch;
  margin: 0;
  font-size: 1.06rem;
}

.guidance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 76ch;
}

.guidance-panel {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--soft);
}

.guidance-panel h2 {
  font-size: 0.95rem;
}

.guidance-panel p {
  margin: 0;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 10px;
  margin: 0;
  max-width: 76ch;
}

.spec-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
}

.spec-grid dt {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.spec-grid dd {
  margin: 4px 0 0;
}

.section-block,
.site-footer {
  margin-top: 16px;
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.site-footer {
  padding: 14px 18px;
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1080px) {
  .filters,
  .toy-page {
    grid-template-columns: 1fr;
  }

  .site-header,
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1400px);
  }

  .catalog-shell,
  .section-block,
  .toy-page,
  .site-footer {
    padding: 14px;
  }
}
