:root {
  --cream: #fdf9f0;
  --cream-2: #f5f0e4;
  --ink: #2b2620;
  --ink-soft: #5c5548;
  --teal: #1f8f7a;
  --card: #ffffff;
  --border: rgba(43, 38, 32, 0.09);
}
@media (prefers-color-scheme: dark) {
  :root {
    --cream: #131210;
    --cream-2: #17150f;
    --ink: #f3efe6;
    --ink-soft: #a89f91;
    --teal: #3fb39c;
    --card: #1c1a15;
    --border: rgba(243, 239, 230, 0.08);
  }
}
:root[data-theme="dark"] {
  --cream: #131210;
  --cream-2: #17150f;
  --ink: #f3efe6;
  --ink-soft: #a89f91;
  --teal: #3fb39c;
  --card: #1c1a15;
  --border: rgba(243, 239, 230, 0.08);
}
:root[data-theme="light"] {
  --cream: #fdf9f0;
  --cream-2: #f5f0e4;
  --ink: #2b2620;
  --ink-soft: #5c5548;
  --teal: #1f8f7a;
  --card: #ffffff;
  --border: rgba(43, 38, 32, 0.09);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 840px; margin: 0 auto; padding: 0 24px; }

.controls {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10;
}

.theme-toggle {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 6px 18px var(--border);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }
.theme-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

header.intro {
  padding: 96px 24px 48px;
  text-align: center;
}
header.intro h1 {
  font-size: 34px;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
header.intro p {
  margin: 0 auto;
  max-width: 460px;
  color: var(--ink-soft);
  font-size: 16px;
}

.products {
  padding: 8px 24px 96px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.product-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px var(--border);
}
.product-card:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.product-card img {
  width: 84px;
  height: 84px;
  border-radius: 19px;
  display: block;
  margin-bottom: 14px;
}
.product-card h2 {
  margin: 0 0 6px;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.product-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

footer.site-footer {
  padding: 32px 24px 48px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
}
