:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --text: #1d1b18;
  --muted: #5f5a52;
  --line: #e3ded4;
  --accent: #8a4b1c;
  --accent-soft: #f3e6d9;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15130f;
    --surface: #1e1b16;
    --text: #ece7de;
    --muted: #a59d90;
    --line: #2f2a23;
    --accent: #e09a5f;
    --accent-soft: #2c2117;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; color: var(--text); text-decoration: none; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--text); }

/* content */
main.wrap { padding-top: 48px; padding-bottom: 24px; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.15; margin: 0 0 12px; }
.hero p { color: var(--muted); font-size: 1.1rem; margin: 0; }

section { margin-top: 48px; }
h2 { font-size: 1.35rem; margin: 0 0 12px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.product { display: flex; gap: 20px; align-items: flex-start; }
.product img { width: 72px; height: 72px; border-radius: 16px; flex: none; }
.product h3 { margin: 0 0 6px; font-size: 1.15rem; }
.product p { margin: 0 0 12px; }
.links { display: flex; gap: 16px; flex-wrap: wrap; font-size: .95rem; }

.button { display: inline-block; background: var(--accent); color: var(--bg); padding: 8px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.button:hover { opacity: .9; }

.contact-mail { font-size: 1.15rem; font-weight: 600; }

.prose h2 { margin-top: 32px; }
.prose ul { padding-left: 22px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 24px 0 32px; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 520px) {
  .product { flex-direction: column; }
  main.wrap { padding-top: 32px; }
}
