:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #5a5a5a;
  --faint: #8a8a8a;
  --line: #e8e8e8;
  --fill: #f6f6f6;
  --max: 1000px;
  --space: 1.5rem;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

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

h1,
h2,
h3 {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

h1 {
  font-size: 1.5rem;
}

h2 {
  font-size: 1.125rem;
}

h3 {
  font-size: 1rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 0.75rem;
  background: var(--text);
  color: var(--bg);
  z-index: 50;
}

.skip-link:focus {
  top: 0.75rem;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner,
.page {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-family: "Domine", Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.logo:hover {
  color: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.32em;
  text-decoration-thickness: 1px;
}

.page {
  padding-top: 3rem;
  padding-bottom: 4.5rem;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  color: var(--faint);
  font-size: 0.8125rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.footer-nav {
  display: flex;
  gap: 1.15rem;
}

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

.footer-nav a:hover {
  text-decoration: underline;
}

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

.site-ladybug {
  position: fixed;
  right: 1rem;
  bottom: 0.85rem;
  z-index: 30;
  width: 2.75rem;
  color: #111111;
  pointer-events: none;
}

.site-ladybug.is-wandering {
  top: 0;
  left: 0;
  right: auto;
  bottom: auto;
  will-change: transform;
}

.site-ladybug svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

@media (prefers-reduced-motion: reduce) {
  .site-ladybug.is-wandering {
    will-change: auto;
  }
}

@media print {
  .site-ladybug {
    display: none;
  }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: 3.75rem;
    gap: 1rem;
  }

  .site-nav {
    gap: 1rem;
  }

  .page {
    padding-top: 2.25rem;
    padding-bottom: 3.5rem;
  }
}
