:root {
  --color-ink: #1a1e27;
  --color-ink-soft: #2c313d;
  --color-bg: #f5f3ee;
  --color-surface: #ffffff;
  --color-line: #dad6cc;
  --color-muted: #63656c;
  --color-accent: #7c6a4f;
  --color-accent-dark: #5f5039;
  --color-on-accent: #f5f3ee;

  --font-heading: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  --space-8: 6rem;

  --radius-sm: 2px;
  --radius-md: 4px;

  --container-width: 1180px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-ink);
  margin: 0 0 var(--space-3);
}

h1 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.375rem;
}

h4 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 var(--space-3);
  max-width: 68ch;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0 0 var(--space-3);
  padding-left: 1.25rem;
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

button {
  font-family: inherit;
}

address {
  font-style: normal;
}

label {
  display: block;
  margin-bottom: var(--space-1);
  font-size: 0.9rem;
  color: var(--color-ink-soft);
}

input,
textarea,
select {
  font-family: inherit;
  font-size: 1rem;
}

hr {
  border: none;
  border-top: 1px solid var(--color-line);
  margin: var(--space-5) 0;
}
