:root {
  --color-bg: #faf8f4;
  --color-bg-elevated: #ffffff;
  --color-bg-muted: #f3efe7;
  --color-ink: #1d1a15;
  --color-ink-soft: #4a443b;
  --color-muted: #8a8377;
  --color-accent: #a9842f;
  --color-accent-deep: #84671f;
  --color-accent-soft: #efe6d2;
  --color-line: #e5dfd2;
  --color-line-strong: #cfc7b6;
  --color-error: #9b3224;
  --color-success: #3d6b4a;

  --font-display: 'Diphylleia', Georgia, 'Times New Roman', serif;
  --font-body: 'Diphylleia', Georgia, 'Times New Roman', serif;

  --text-display-xl: clamp(2.5rem, 5.2vw, 3.75rem);
  --text-display: clamp(1.875rem, 4vw, 2.75rem);
  --text-title: clamp(1.375rem, 3vw, 2rem);
  --text-body-lg: 1.125rem;
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-overline: 0.75rem;

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.15;
  --line-height-snug: 1.35;
  --line-height-body: 1.6;

  --letter-spacing-caps: 0.14em;

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

  --container-max: 76rem;
  --container-pad: 1.25rem;
  --section-space: var(--space-9);

  --color-glass: rgb(255 255 255 / 0.74);
  --color-accent-line: rgb(169 132 47 / 0.4);

  --shadow-soft: 0 1px 2px rgb(29 26 21 / 0.05), 0 6px 20px -4px rgb(29 26 21 / 0.08);
  --shadow-lift:
    0 1px 2px rgb(29 26 21 / 0.05),
    0 28px 56px -18px rgb(29 26 21 / 0.16);
  --shadow-glow:
    0 0 0 1px rgb(169 132 47 / 0.14),
    0 28px 56px -18px rgb(29 26 21 / 0.18),
    0 12px 28px -12px rgb(169 132 47 / 0.16);

  --radius: 2px;
  --radius-btn: 6px;

  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 160ms;
  --duration-base: 280ms;
  --duration-slow: 640ms;

  --bp-sm: 36rem;
  --bp-md: 48rem;
  --bp-lg: 64rem;
  --bp-xl: 80rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
  color: var(--color-ink);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  letter-spacing: -0.012em;
  color: var(--color-ink);
}

em,
i,
cite,
address,
dfn,
var {
  font-style: normal;
}

p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul[class],
ol[class] {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

a {
  color: var(--color-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button {
  font: inherit;
  cursor: pointer;
}

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

::selection {
  background-color: var(--color-accent-soft);
  color: var(--color-ink);
}

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

@media (min-width: 48rem) {
  :root {
    --container-pad: 2rem;
  }
}

@media (min-width: 64rem) {
  :root {
--section-space: var(--space-8);
  }
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--section-space);
}

.section--tight {
  --section-space: var(--space-7);
}

@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;
  }
}