:root {
  --bg: #f4efe5;
  --surface: #ebe4d7;
  --surface-raised: #e5dccc;
  --text: #191611;
  --text-soft: #50483c;
  --text-quiet: #766b5d;
  --line: #d4c9b8;
  --line-strong: #ad9f8b;
  --max-width: 760px;
  --text-size: clamp(0.94rem, 1.08vw, 1.04rem);
  --radius: 8px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #12100d;
  --surface: #181611;
  --surface-raised: #1e1b15;
  --text: #ede5d8;
  --text-soft: #c8beaf;
  --text-quiet: #928878;
  --line: #322e26;
  --line-strong: #4a4337;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Karla",
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: var(--text-size);
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}

a,
button,
[role="button"],
[role="link"] {
  color: inherit;
  font: inherit;
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
[role="link"]:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 5px;
}

.theme-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 10;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  color: var(--text);
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.theme-toggle:hover {
  border-color: var(--text-quiet);
  background: var(--surface-raised);
  transform: translateY(-1px);
}

.theme-toggle-icon {
  position: relative;
  display: block;
  width: 17px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.theme-toggle-icon::before {
  position: absolute;
  top: -2px;
  left: 5px;
  width: 14px;
  height: 14px;
  content: "";
  border-radius: 50%;
  background: var(--surface);
  transition:
    background 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

:root:not([data-theme="dark"]) .theme-toggle-icon::before {
  opacity: 0;
  transform: scale(0.35);
}

:root:not([data-theme="dark"]) .theme-toggle-icon {
  box-shadow:
    0 -8px 0 -6px currentColor,
    0 8px 0 -6px currentColor,
    8px 0 0 -6px currentColor,
    -8px 0 0 -6px currentColor,
    6px 6px 0 -6px currentColor,
    -6px 6px 0 -6px currentColor,
    6px -6px 0 -6px currentColor,
    -6px -6px 0 -6px currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: var(--text-size);
  font-weight: 720;
  letter-spacing: 0;
  line-height: inherit;
}

p {
  color: var(--text-soft);
}

strong {
  color: var(--text);
  font-style: italic;
  font-weight: 500;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--text);
  color: var(--bg);
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page,
.site-footer {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.page {
  padding-top: clamp(54px, 9vw, 92px);
}

.section {
  padding: clamp(38px, 7vw, 72px) 0;
  border-bottom: 1px solid var(--line);
}

.intro {
  padding-top: clamp(34px, 8vw, 86px);
}

.brand {
  margin-bottom: 1rem;
  color: var(--text);
  font-style: italic;
  font-size: clamp(1.05rem, 1.35vw, 1.18rem);
  font-weight: 500;
}

.intro p:last-child {
  max-width: 680px;
}

.product-list {
  display: grid;
  gap: 12px;
  margin-top: 1.35rem;
}

.product-card {
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.product-card:hover,
.product-card:focus-visible {
  border-color: var(--line-strong);
  background: var(--surface-raised);
  transform: translateY(-2px);
}

.product-card p {
  margin-bottom: 0.9rem;
}

.product-card p:last-of-type {
  margin-bottom: 1.15rem;
}

.product-meta {
  color: var(--text-quiet);
}

.reach-out {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.reach-out:hover {
  color: var(--text-soft);
  transform: translateY(-1px);
}

.contact {
  padding-bottom: clamp(52px, 9vw, 96px);
}

.contact p {
  max-width: 560px;
  margin-bottom: 1rem;
}

.site-footer {
  padding: 22px 0 34px;
}

.site-footer p {
  margin: 0;
  color: var(--text-quiet);
}

@media (max-width: 620px) {
  .page,
  .site-footer {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .page {
    padding-top: 28px;
  }

  .section {
    padding-block: 34px;
  }

  .product-card {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
