:root {
  --paper: #f3efe6;
  --ink: #25231f;
  --muted: #756f65;
  --rule: #cfc7b8;
  --accent: #59644f;
  --page-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-underline-offset: 4px;
}

/* Shared site navigation */
.site-nav {
  position: relative;
  z-index: 10;
  width: 100%;
  padding-top: 26px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .82rem;
  line-height: 1.2;
}

.site-nav__inner {
  width: min(var(--page-width), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.site-nav__brand,
.site-nav__links a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav__brand {
  white-space: nowrap;
  letter-spacing: .02em;
}

.site-nav__links {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 22px;
  white-space: nowrap;
}

.site-nav__links a {
  letter-spacing: .04em;
}

.site-nav__brand:hover,
.site-nav__brand:focus-visible,
.site-nav__links a:hover,
.site-nav__links a:focus-visible,
.site-nav__links a[aria-current="page"] {
  color: var(--ink);
}

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

/* Shared internal-page frame */
.page-shell {
  width: min(var(--page-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.page-header {
  margin: 0 0 54px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--rule);
}

h1,
h2,
h3 {
  font-weight: 400;
}

.page-title {
  margin: 0 0 14px;
  font-size: clamp(2.5rem, 8vw, 4.7rem);
  line-height: .98;
  letter-spacing: -.035em;
}

.page-subtitle,
.eyebrow {
  margin: 0;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: uppercase;
}

.page-subtitle {
  font-size: .9rem;
  line-height: 1.35;
  letter-spacing: .08em;
}

.eyebrow {
  font-size: .82rem;
  line-height: 1.35;
  letter-spacing: .17em;
}

/* Shared footer */
.site-footer {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .78rem;
  line-height: 1.55;
  letter-spacing: .03em;
}

.site-footer__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.site-footer__identity,
.site-footer__updated,
.site-footer__extra {
  margin: 0;
}

.site-footer__nav {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 18px;
  white-space: nowrap;
}

.site-footer a {
  color: inherit;
}

.site-footer__nav a {
  text-decoration: none;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible,
.site-footer__nav a[aria-current="page"] {
  color: var(--ink);
}

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

.site-footer__updated {
  margin-top: 8px;
  font-size: .74rem;
  color: #8a847a;
}

.site-footer__extra {
  margin-top: 8px;
}

@media (max-width: 600px) {
  .site-nav {
    padding-top: 20px;
    font-size: .78rem;
  }

  .site-nav__inner,
  .page-shell {
    width: min(100% - 28px, var(--page-width));
  }

  .site-nav__inner {
    gap: 14px;
  }

  .site-nav__links {
    gap: 14px;
  }

  .site-nav__brand {
    display: none;
  }

  .site-nav__links {
    width: 100%;
    justify-content: flex-start;
  }

  .page-shell {
    padding-top: 30px;
  }

  .page-header {
    margin-bottom: 42px;
  }

  .site-footer__row {
    display: block;
  }

  .site-footer__nav {
    justify-content: flex-start;
    margin-top: 8px;
  }
}
