@font-face {
  font-family: "SWR DM Sans";
  src: url('/fonts/dm-sans.ttf') format('truetype');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "SWR Inter";
  src: url('/fonts/inter.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --base: #FAF8F3;
  --ink: #33404A;
  --amber: #E8A33D;
  --blue: #5B7C99;
  --tan: #F1DCB5;
  --border: #E8DCC4;
  --heading-font: "SWR DM Sans", "DM Sans", system-ui, sans-serif;
  --body-font: "SWR Inter", "Inter", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 280px;
  background: var(--base);
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
}

.page {
  width: min(100%, 720px);
  min-height: 100svh;
  margin-inline: auto;
  padding: clamp(32px, 8vh, 80px) 40px 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  overflow: visible;
}

.brand-name {
  font-family: var(--heading-font);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}

main { margin-top: clamp(64px, 14vh, 136px); }

h1 {
  max-width: 18ch;
  margin: 0 0 24px;
  font-family: var(--heading-font);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0; }
.introduction { max-width: 48ch; }
.contact { margin-top: 28px; }

a {
  color: var(--ink);
  text-decoration-color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}

a:hover { text-decoration-color: var(--ink); }

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
  border-radius: 1px;
}

@media (max-width: 480px) {
  .page { padding-inline: 24px; }
  .brand { gap: 12px; }
  .brand-name { font-size: 18px; }
  .brand-mark { width: 40px; height: 40px; flex-basis: 40px; }
}
