@font-face {
  font-family: "Inter";
  src: url(/assets/fonts/inter-latin-wght-normal.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #231f1a;
  --muted: #6b6255;
  --accent: #a4472a;
  --paper: #f6f2ea;
  --card: #fff;
  --line: #ddd5c6;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --page: max(var(--gutter), calc((100% - 62rem) / 2));
}

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

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.5 "Inter", "Helvetica Neue", Arial, sans-serif;
}

main {
  flex: 1;
  padding-inline: var(--page);
}

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

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

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

.site-header,
.site-footer {
  padding-inline: var(--page);
}

.site-header {
  padding-block: 1.5rem 0.5rem;
}

.site-header a {
  display: inline-block;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  padding-block: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.site-footer span {
  flex-basis: 100%;
}

@media (min-width: 480px) {
  .site-footer {
    align-items: center;
  }

  .site-footer span {
    flex-basis: auto;
    margin-right: auto;
  }
}

.claim {
  max-width: 20ch;
  margin: 0;
  padding-block: clamp(1.5rem, 5vw, 3.5rem) clamp(2rem, 5vw, 3rem);
  font-size: clamp(1.875rem, 7vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
  hyphens: auto;
  overflow-wrap: break-word;
}

.contact {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.contact > div {
  padding: 1rem 1.15rem;
  border-radius: 10px;
  background: var(--card);
}

.contact dt,
.about h2 {
  margin: 0 0 0.25rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
}

.contact dd {
  margin: 0;
  font-size: 1.0625rem;
  overflow-wrap: anywhere;
}

.contact a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

@media (min-width: 700px) {
  .contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact > div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .contact dd {
    font-size: 1.1875rem;
  }
}

.about {
  max-width: 44rem;
  padding-block: 2rem 2.5rem;
}

.about p {
  margin: 0;
}

.prose {
  padding-block: clamp(1.5rem, 5vw, 3.5rem);
  overflow-wrap: break-word;
}

.prose > * {
  max-width: 44rem;
}

.prose h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  hyphens: auto;
}

.prose h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.prose h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}

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

.prose ul {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose a {
  display: inline-block;
  padding-block: 0.3rem;
}

.placeholder {
  padding: 0.5rem 0.75rem;
  background: #fff3a3;
  color: #111;
  font-weight: 500;
}

@media print {
  :root {
    --ink: #000;
    --muted: #000;
    --accent: #000;
    --paper: #fff;
    --line: #000;
    --page: 0;
  }

  body {
    display: block;
    min-height: 0;
    font-size: 11pt;
  }

  a {
    text-decoration: none;
  }

  .site-footer a {
    display: none;
  }

  .contact > div {
    padding-inline: 0;
    border-radius: 0;
  }

  .prose > * {
    max-width: none;
  }

  .prose h2,
  .prose h3 {
    break-after: avoid;
  }
}
