@font-face {
  font-family: Geist;
  src: url('/assets/geist-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #eeeae1;
  --ink: #24251f;
  --muted: #57584c;
  --rule: #b5b4a9;
  --pressed: #e1ddd3;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --gutter: clamp(1.25rem, 3.45vw, 3.5rem);
  --column-gap: clamp(2rem, 5vw, 5rem);
  font-family: Geist, Arial, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, p, ul { margin: 0; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--paper); }

.page {
  width: min(100%, 72rem);
  min-height: 100dvh;
  margin-inline: auto;
  padding: clamp(0.75rem, 2.2svh, 1.5rem) var(--gutter);
  display: flex;
  flex-direction: column;
}

.masthead, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.masthead { min-height: 2.75rem; justify-content: center; }
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 2.75rem;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}
.masthead .text-link { flex-shrink: 0; }
.icon {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
main { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: clamp(1rem, 3.5svh, 2.5rem); }
.wordmark {
  display: block;
  width: min(100%, 44rem);
  height: auto;
  max-height: min(21svh, 13rem);
  object-fit: contain;
  margin: 0 auto;
}
.introduction {
  display: grid;
  justify-items: center;
  gap: 0.625rem;
  text-align: center;
  padding-block: 0 0.5rem;
}
h1 {
  font-size: clamp(1.75rem, 2.8vw, 2.75rem);
  font-weight: 450;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.introduction p {
  max-width: 48ch;
  font-size: 1rem;
  line-height: 1.6;
  text-wrap: pretty;
}
.practice-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--column-gap);
  border-block-start: 1px solid var(--rule);
}
.practice-list li { min-width: 0; }
.practice-link {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-block: clamp(1rem, 2.5svh, 1.75rem);
  -webkit-tap-highlight-color: transparent;
}
.practice-link h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  font-size: clamp(1.625rem, 2.5vw, 2.25rem);
  font-weight: 450;
  line-height: 1.2;
  letter-spacing: -0.04em;
}
.practice-arrow { width: 2rem; height: 2rem; stroke-width: 1.5; }
.practice-link p {
  margin-block-start: 0.75rem;
  margin-block-end: 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted);
}
.link-label {
  align-self: flex-start;
  margin-block-start: auto;
  padding-block-end: 0.375rem;
  border-block-end: 1px solid var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
}
.practice-link::before {
  content: '';
  position: absolute;
  inset: 0.5rem -0.625rem;
  z-index: -1;
  pointer-events: none;
}
.practice-link:active::before { background: var(--pressed); }
.practice-link:is(:focus-visible, :active) .link-label {
  border-color: var(--ink);
  box-shadow: 0 1px 0 var(--ink);
}
.text-link:focus-visible { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 0.375rem; }
.practice-link:focus-visible { outline-offset: 0.625rem; }
main:focus { outline: none; }
.skip-link {
  position: fixed;
  inset-block-start: 0.5rem;
  inset-inline-start: 0.5rem;
  z-index: 5;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.footer {
  margin-block-start: clamp(0.75rem, 2svh, 1.5rem);
  padding-block-start: 0.5rem;
  border-block-start: 1px solid var(--rule);
}
.footer small { font-size: inherit; color: var(--muted); }
.rights { margin-inline-start: 0.5em; }

@media (hover: hover) and (pointer: fine) {
  .text-link:hover { text-decoration: underline; }
  .practice-link:hover .link-label {
    border-color: var(--ink);
    box-shadow: 0 1px 0 var(--ink);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .practice-arrow { transition: transform 150ms var(--ease); }
  @media (hover: hover) and (pointer: fine) {
    .practice-link:hover .practice-arrow { transform: translate(0.1875rem, -0.1875rem); }
  }
}
@media (max-width: 47.5rem) {
  .page { padding-block: 0.75rem; }
  .masthead { min-height: 1.5rem; font-size: 0.75rem; }
  main { gap: clamp(0.875rem, 2.7svh, 1.75rem); }
  .wordmark { width: min(100%, 25rem); max-height: min(16svh, 8rem); margin: 0 auto; }
  .introduction { grid-template-columns: 1fr; gap: 0.5rem; }
  h1 { font-size: clamp(1.625rem, 5.4vw, 2.25rem); }
  .introduction p { max-width: 38ch; font-size: 0.875rem; line-height: 1.5; color: var(--muted); }
  .practice-list { grid-template-columns: 1fr; }
  .practice-list li + li { border-block-start: 1px solid var(--rule); }
  .practice-link { padding-block: clamp(0.75rem, 2svh, 1.5rem); }
  .practice-link h2 { font-size: 1.5rem; gap: 0.875rem; }
  .practice-link p { margin-block: 0.375rem 0.625rem; font-size: 0.8125rem; }
  .practice-arrow { width: 1.5rem; height: 1.5rem; }
  .link-label { font-size: 0.8125rem; padding-block-end: 0.1875rem; }
  .footer { gap: 1rem; margin-block-start: 0.5rem; padding-block-start: 0.25rem; font-size: 0.75rem; }
}
.footer .text-link { justify-content: flex-end; gap: 0.625rem; }

.contact-label { text-decoration: underline; text-underline-offset: 0.3em; }
@media (max-width: 47.5rem) {
  .footer { flex-direction: column; align-items: center; gap: 0.125rem; text-align: center; }
  .footer small { width: 100%; }
  .rights { display: block; margin-inline-start: 0; }
  .footer .text-link { flex-shrink: 0; justify-content: center; }
}
@media (forced-colors: active) {
  a:focus-visible { outline-color: Highlight; }
  .link-label { border-color: LinkText; }
  .wordmark { forced-color-adjust: none; background: #eeeae1; }
}
@media (max-width: 47.5rem) and (max-height: 38rem) {
  main { gap: 0.75rem; }
  .wordmark { max-height: 12svh; }
  .practice-link { padding-block: 0.625rem; }
}
