:root {
  --bg: #f3efe6;
  --bg-raised: #fffaf3;
  --ink: #161412;
  --muted: #5f574c;
  --line: #d6cdc0;
  --accent: #8f3d1b;
  --accent-hover: #6f2e14;
  --focus: #8f3d1b;
  --max: 44rem;
  --wide: 56rem;
}

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

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
  font-weight: 400;
}

img {
  max-width: 100%;
  height: auto;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

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

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--wide), calc(100% - 2.5rem));
  margin-inline: auto;
}

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

.header-inner {
  width: min(var(--wide), calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--ink);
}

.wordmark img {
  width: 2rem;
  height: 2rem;
  display: block;
}

.wordmark-text {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
}

.wordmark-text span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: var(--muted);
  margin-top: 0.12rem;
}

nav[aria-label="Primary"] ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.15rem;
  flex-wrap: wrap;
}

nav[aria-label="Primary"] a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

nav[aria-label="Primary"] a:hover,
nav[aria-label="Primary"] a[aria-current="page"] {
  color: var(--accent);
}

nav[aria-label="Primary"] a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1px;
}

main {
  flex: 1;
  padding: 3.25rem 0 4.5rem;
}

.hero {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.15rem, 5vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

.lede {
  margin: 0;
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 38rem;
}

.section {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 3.5rem auto 0;
}

.section h2,
.prose h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 2.75rem auto 0;
  width: min(var(--max), calc(100% - 2.5rem));
}

.app-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.6rem 1.7rem 1.7rem;
}

.app-card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.55rem;
  margin: 0 0 0.55rem;
  font-weight: 600;
}

.app-card p {
  margin: 0 0 1.15rem;
  color: var(--muted);
}

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
}

.btn:hover {
  background: var(--accent);
  color: #fff;
}

.note {
  margin: 1rem 0 0;
  font-size: 0.98rem;
  color: var(--muted);
}

.prose {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.prose p,
.prose li {
  color: var(--ink);
}

.prose p {
  margin: 0 0 1rem;
}

.prose ul {
  margin: 0 0 1.15rem;
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.prose h2 {
  margin-top: 2rem;
}

.effective {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 1.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  width: min(var(--wide), calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  flex-wrap: wrap;
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  body {
    font-size: 1.05rem;
  }

  main {
    padding: 2.4rem 0 3.25rem;
  }

  .header-inner,
  .wrap,
  .hero,
  .section,
  .prose,
  .footer-inner,
  .rule {
    width: min(var(--wide), calc(100% - 1.75rem));
  }
}
