:root {
  --bg: #f6f0e5;
  --bg-soft: rgba(255, 251, 245, 0.86);
  --panel: rgba(255, 252, 247, 0.78);
  --panel-strong: #fffdf9;
  --ink: #18282c;
  --ink-soft: #5b686d;
  --line: rgba(24, 40, 44, 0.12);
  --accent: #175f63;
  --accent-deep: #142b31;
  --accent-soft: #d6e8e3;
  --warm: #a86a3c;
  --shadow-lg: 0 28px 70px rgba(23, 38, 44, 0.14);
  --shadow-md: 0 18px 40px rgba(23, 38, 44, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
  --header-offset: 112px;
  --header-gap: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Aptos", "Segoe UI", sans-serif;
  color: var(--ink);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 10%, rgba(23, 95, 99, 0.14), transparent 32%),
    radial-gradient(circle at 88% 14%, rgba(168, 106, 60, 0.16), transparent 28%),
    linear-gradient(180deg, #fbf6ee 0%, #f1eadf 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      to right,
      rgba(24, 40, 44, 0.045) 0,
      rgba(24, 40, 44, 0.045) 1px,
      transparent 1px,
      transparent 96px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(24, 40, 44, 0.04) 0,
      rgba(24, 40, 44, 0.04) 1px,
      transparent 1px,
      transparent 96px
    );
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.9), transparent 84%);
  pointer-events: none;
  opacity: 0.45;
}

body[data-theme="dark"] {
  color: #eaf0ed;
  background:
    radial-gradient(circle at 10% 10%, rgba(127, 211, 197, 0.08), transparent 34%),
    radial-gradient(circle at 88% 14%, rgba(168, 106, 60, 0.12), transparent 30%),
    linear-gradient(180deg, #0d1317 0%, #151d22 100%);
}

body[data-theme="dark"]::before {
  background:
    repeating-linear-gradient(
      to right,
      rgba(234, 240, 237, 0.04) 0,
      rgba(234, 240, 237, 0.04) 1px,
      transparent 1px,
      transparent 96px
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(234, 240, 237, 0.035) 0,
      rgba(234, 240, 237, 0.035) 1px,
      transparent 1px,
      transparent 96px
    );
  opacity: 0.28;
}

body,
button,
a {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

:focus-visible {
  outline: 3px solid rgba(23, 95, 99, 0.35);
  outline-offset: 3px;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding-left: 1.25rem;
}

h1,
h2,
h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  letter-spacing: -0.02em;
}

::selection {
  background: rgba(23, 95, 99, 0.16);
}

body[data-theme="dark"] ::selection {
  background: rgba(127, 211, 197, 0.22);
}

body[data-theme="dark"] :focus-visible {
  outline-color: rgba(127, 211, 197, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
