:root {
  --bg: #faf8f5;
  --text: #1a1917;
  --muted: #78726b;
  --border: #e6e0d8;
  --surface: #f2eee8;
  --surface-strong: #ebe3d8;
  --accent: #b5541f;
  --accent-cool: #2e6f67;
  --accent-green: #65794b;
  --shadow: 0 18px 46px rgba(64, 50, 35, 0.1);
  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Lora", Georgia, serif;
  --link-decoration-color: color-mix(in srgb, var(--accent) 46%, transparent);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

::selection {
  background: rgba(181, 84, 31, 0.22);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-color: var(--link-decoration-color);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

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

button,
video {
  font: inherit;
}

video {
  background: #111;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--site-nav-gap, 18px);
  margin-bottom: var(--site-nav-margin, 48px);
}

.nav-name {
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

.nav-links a {
  text-decoration: none;
}

.section-top-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--muted);
  background: color-mix(in srgb, #fff 56%, var(--surface));
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.section-top-link:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  transform: translateY(-2px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
