html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
}
main {
  display: block;
}
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}
hr {
  box-sizing: content-box;
  height: 0;
  overflow: visible;
}
pre {
  font-family: monospace, monospace;
  font-size: 1em;
}
a {
  background-color: transparent;
}
abbr[title] {
  border-bottom: none;
  text-decoration: underline dotted;
}
b,
strong {
  font-weight: bolder;
}
small {
  font-size: 80%;
}
img {
  border-style: none;
}
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}
button,
input {
  overflow: visible;
}
button,
select {
  text-transform: none;
}
button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}
[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}
[hidden] {
  display: none;
}

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

:root {
  --color-ink: #052e16;
  --color-ink-soft: #3f4a3c;
  --color-surface: #ffffff;
  --color-sand: #fbf5ec;
  --color-sand-deep: #f3e6d3;
  --color-stone: #e9d5b9;
  --color-cream: #fffaf3;
  --color-accent: #a3410d;
  --color-accent-hover: #85340a;
  --color-amber: #e8a66a;
  --color-sky: #d7e9f2;
  --color-line: rgba(5, 46, 22, 0.12);

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;

  --font-body: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: Georgia, 'Times New Roman', serif;
  --font-size-xs: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --font-size-sm: clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
  --font-size-md: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --font-size-lg: clamp(1.15rem, 1.05rem + 0.45vw, 1.4rem);
  --font-size-xl: clamp(1.55rem, 1.25rem + 1.3vw, 2.1rem);
  --font-size-2xl: clamp(1.8rem, 1.3rem + 2.3vw, 3rem);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(5, 46, 22, 0.08);
  --shadow-lg: 0 12px 40px rgba(5, 46, 22, 0.18);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.3s;
  --page-width: clamp(18rem, 92%, 75rem);
  --header-height: clamp(3.5rem, 3rem + 1.5vw, 4.5rem);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--font-size-md);
  line-height: 1.7;
  background: var(--color-sand);
  color: var(--color-ink);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--color-ink);
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

h1 {
  font-size: var(--font-size-2xl);
  line-height: 1.12;
  margin: 0;
}

h2 {
  font-size: var(--font-size-xl);
  line-height: 1.2;
  margin: 0 0 var(--space-2);
}

h3 {
  font-size: var(--font-size-lg);
  line-height: 1.3;
  margin: 0 0 var(--space-1);
}

p {
  font-size: var(--font-size-md);
  line-height: 1.7;
  margin: 0 0 var(--space-2);
}

a {
  color: var(--color-accent);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent-hover);
}

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

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

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