:root {
  --bg: #ffffff;
  --ink: #121212;
  --muted: #6a6a6a;
  --line: #b7b7b7;
  --accent: #c1121f;
  --serif: "Iowan Old Style", "Palatino Linotype", "Georgia", serif;
  --mono: "IBM Plex Mono", "Menlo", "Consolas", "Courier New", monospace;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--serif);
  background: var(--bg);
  color: var(--ink);
}

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: var(--bg);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand a {
  text-decoration: none;
  color: inherit;
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 18px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-left: auto;
}

.site-nav a {
  text-decoration: none;
  color: inherit;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  overflow: visible;
  position: relative;
  z-index: 30;
  color: var(--ink);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  transform-origin: center;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--ink);
  text-underline-offset: 4px;
}

main {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 8px;
  width: 100%;
}

.footer {
  padding: 20px 24px 28px;
  font-size: 13px;
  color: var(--muted);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-left: auto;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.footer p {
  margin: 0;
}

.footer p a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-link-sep {
  color: inherit;
}

.footer-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
}

@media (max-width: 700px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  main {
    padding: 32px 18px 64px;
  }
}

@media (max-width: 900px) {
  .header-inner {
    position: relative;
    flex-direction: row;
    align-items: center;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: 70px;
    right: 8px;
    left: auto;
    width: min(280px, calc(100vw - 16px));
    flex-direction: column;
    align-items: flex-start;
    background: var(--card);
    padding: 18px 20px;
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  body.nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.nav-open .menu-toggle span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  body.nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .menu-toggle span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }
}

@media (min-width: 901px) {
  .site-nav {
    font-size: 15px;
  }

  .footer {
    font-size: 16px;
  }
}
