:root {
  color-scheme: light dark;
  --paper: #f6f3ec;
  --raised: #fcfaf4;
  --ink: #1b1a17;
  --accent: #35404f;
  --graphite: #6b6862;
  --hairline: #e2dccf;
  --max-width: 44rem;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a:hover {
  text-decoration-thickness: 0.12em;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.6rem 0.8rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
footer {
  width: min(calc(100% - 3rem), var(--max-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.5rem;
  border-bottom: 1px solid var(--hairline);
}

.wordmark {
  color: var(--ink);
  font-family: ui-serif, "New York", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.35rem;
}

nav a {
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}

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

.home {
  padding-block: clamp(4rem, 11vw, 7.5rem);
}

.app-icon {
  display: block;
  width: 7rem;
  height: 7rem;
  margin-bottom: 2.5rem;
  border: 1px solid var(--hairline);
  border-radius: 1.55rem;
  box-shadow: 0 12px 35px rgb(27 26 23 / 8%);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--graphite);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-family: ui-serif, "New York", Georgia, serif;
  text-wrap: balance;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(2.75rem, 9vw, 5.2rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.intro {
  max-width: 35rem;
  margin: 2rem 0 0;
  color: var(--graphite);
  font-family: ui-serif, "New York", Georgia, serif;
  font-size: clamp(1.25rem, 3.2vw, 1.55rem);
  line-height: 1.45;
}

.principles {
  margin-top: 3rem;
  padding-block: 1.25rem;
  border-block: 1px solid var(--hairline);
}

.principles p {
  margin: 0.35rem 0;
}

.primary-links {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  margin-top: 2.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.65rem 1rem;
  border-radius: 0.45rem;
  background: var(--accent);
  color: var(--paper);
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
}

.text-link {
  font-weight: 600;
}

.document {
  padding-block: clamp(3.5rem, 9vw, 6rem);
}

.document h1 {
  max-width: 14ch;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
}

.updated {
  margin: 1rem 0 2.75rem;
  color: var(--graphite);
  font-size: 0.92rem;
}

.document h2 {
  margin: 3rem 0 0.75rem;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  line-height: 1.2;
}

.document h3 {
  margin: 2rem 0 0.45rem;
  font-size: 1.15rem;
  line-height: 1.3;
}

.document p,
.document ul {
  max-width: 42rem;
}

.document li + li {
  margin-top: 0.45rem;
}

.contact-card {
  margin-block: 2.75rem;
  padding: clamp(1.35rem, 5vw, 2rem);
  border: 1px solid var(--hairline);
  border-radius: 0.7rem;
  background: var(--raised);
}

.contact-card h2 {
  margin-top: 0;
}

.contact-card .button {
  margin-top: 0.5rem;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-block: 1.75rem 2.5rem;
  border-top: 1px solid var(--hairline);
  color: var(--graphite);
  font-size: 0.85rem;
}

footer a {
  color: inherit;
}

@media (max-width: 34rem) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 2rem), var(--max-width));
  }

  .site-header {
    min-height: 4.75rem;
  }

  nav {
    gap: 1rem;
  }

  .primary-links {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171614;
    --raised: #1f1e1a;
    --ink: #efeae0;
    --accent: #a8b4c4;
    --graphite: #b4afa5;
    --hairline: #2c2a26;
  }

  .button {
    background: var(--accent);
    color: #171614;
  }

  .app-icon {
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
