:root {
  --canvas: #fbfaf6;
  --text: #34312d;
  --muted: #69635b;
  --accent: #9f7079;
  --focus: #845f66;
  --fig-dot: #b5645d;
  --rule: color-mix(in srgb, var(--text), transparent 88%);
  --font-sans: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  color-scheme: light;
  background: var(--canvas);
}

body {
  min-height: 100svh;
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.home-body {
  overflow: hidden;
}

.home-body::before {
  --motif-dot: color-mix(in srgb, var(--fig-dot), transparent 24%);

  content: "";
  position: fixed;
  inset-block-start: clamp(1.25rem, 5vw, 3rem);
  inset-inline-start: clamp(1.25rem, 4vw, 2.75rem);
  width: 0.22rem;
  height: 0.22rem;
  border-radius: 999px;
  background: var(--motif-dot);
  box-shadow:
    0.55rem 0 0 var(--motif-dot),
    1.1rem 0 0 var(--motif-dot),
    0 0.55rem 0 var(--motif-dot),
    0.55rem 0.55rem 0 var(--motif-dot),
    1.1rem 0.55rem 0 var(--motif-dot),
    0 1.1rem 0 var(--motif-dot),
    0.55rem 1.1rem 0 var(--motif-dot);
  opacity: 0.34;
  pointer-events: none;
}

.skip-link {
  position: fixed;
  inset-block-start: 1rem;
  inset-inline-start: 1rem;
  z-index: 2;
  padding: 0.625rem 0.875rem;
  border: 1px solid color-mix(in srgb, var(--focus), transparent 35%);
  background: var(--canvas);
  color: var(--text);
  opacity: 0;
  pointer-events: none;
}

.skip-link:focus-visible {
  opacity: 1;
  pointer-events: auto;
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 2rem;
}

.content {
  display: flex;
  width: min(100%, 44rem);
  flex-direction: column;
  align-items: center;
  transform: translateY(-4svh);
}

.wordmark {
  margin: 0;
  font-size: 4.75rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.tagline {
  margin: 1.125rem 0 0;
  color: var(--muted);
  font-size: 1.375rem;
  line-height: 1.45;
  text-align: center;
}

.contact {
  max-width: 100%;
  margin-block-start: 4.75rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-align: center;
  text-decoration: none;
  text-underline-offset: 0.22em;
}

.contact:hover {
  text-decoration: underline;
}

.contact:focus-visible,
.social-link:focus-visible,
.legal-nav a:focus-visible,
.legal-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 0.5rem;
}

.socials {
  display: flex;
  gap: 1.5rem;
  margin-block-start: 1.625rem;
  padding: 0;
  list-style: none;
}

.social-link {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  color: var(--accent);
}

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

.social-icon {
  display: block;
  width: 1.6rem;
  height: 1.6rem;
}

.legal-nav {
  position: fixed;
  inset-inline: 0;
  inset-block-end: clamp(1rem, 3svh, 1.75rem);
  display: flex;
  justify-content: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.legal-nav a {
  text-decoration: none;
  text-underline-offset: 0.22em;
}

.legal-nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

.legal-body {
  overflow-y: auto;
}

.legal-page {
  width: min(100% - 2.5rem, 46rem);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) 0 4rem;
}

.site-link {
  display: inline-block;
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: none;
  text-underline-offset: 0.22em;
}

.site-link:hover {
  color: var(--text);
  text-decoration: underline;
}

.legal-header {
  margin-block-start: clamp(3rem, 9vw, 6rem);
}

.legal-header h1 {
  margin: 0;
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
}

.legal-header p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.5;
}

.legal-content {
  display: grid;
  gap: 2.5rem;
  margin-block-start: clamp(3rem, 8vw, 5rem);
}

.legal-section {
  padding-block-start: 1.75rem;
  border-block-start: 1px solid var(--rule);
}

.legal-section h2 {
  margin: 0 0 0.875rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
}

.legal-section h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
}

.legal-section p,
.legal-section li,
.legal-section address {
  color: var(--muted);
  font-size: 1rem;
  font-style: normal;
  line-height: 1.65;
}

.legal-section p {
  margin: 0.75rem 0 0;
}

.legal-section ul {
  margin: 0.75rem 0 0;
  padding-inline-start: 1.1rem;
}

.legal-section li + li {
  margin-block-start: 0.35rem;
}

.legal-section strong {
  color: var(--text);
  font-weight: 500;
}

.legal-back {
  margin-block-start: 1rem;
}

.legal-link {
  color: var(--text);
  text-decoration: none;
  text-underline-offset: 0.22em;
}

.legal-link:hover {
  text-decoration: underline;
}

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

@media (max-width: 640px) {
  .page {
    padding-inline: 1.25rem;
  }

  .wordmark {
    font-size: 3.125rem;
  }

  .tagline {
    margin-block-start: 0.875rem;
    font-size: 1.125rem;
  }

  .contact {
    margin-block-start: 4rem;
    font-size: 0.9375rem;
  }

  .socials {
    gap: 1.125rem;
    margin-block-start: 1.375rem;
  }

  .legal-page {
    width: min(100% - 2rem, 46rem);
  }
}

@media (max-height: 520px) {
  .content {
    transform: none;
  }

  .contact {
    margin-block-start: 2.75rem;
  }
}
