:root {
  --bg: #f4efe6;
  --surface: #fffdf8;
  --surface-strong: #fffdf8;
  --text: #26211d;
  --muted: #655950;
  --accent: #d86a1f;
  --accent-dark: #8e431b;
  --accent-soft: #fff1e6;
  --heading: #171311;
  --border: rgba(31, 26, 23, 0.08);
  --shadow: 0 20px 50px rgba(60, 35, 20, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background: #24311f url("../images/strand.png") center center / cover fixed no-repeat;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 8;
  background: rgba(12, 18, 35, 0.18);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(0);
  transition: opacity 180ms ease, backdrop-filter 180ms ease;
}

body.is-mega-menu-open::before {
  opacity: 1;
  backdrop-filter: blur(5px);
}

a {
  color: var(--accent-dark);
  text-decoration: none;
  text-underline-offset: 0.16em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--heading);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

p {
  margin: 0 0 1.2em;
}

strong {
  font-weight: 600;
}

code {
  padding: 0.15rem 0.35rem;
  border-radius: 0.45rem;
  background: rgba(31, 26, 23, 0.08);
  font-family: Consolas, Monaco, monospace;
  font-size: 0.92em;
}

.text-highlight {
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
}
