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

@font-face {
  font-family: "IBM Plex Mono";
  src: url("./fonts/ibm-plex-mono-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f7f2;
  --ink: #141b21;
  --muted: #62676b;
  --accent: #ff5b23;
  --link-visited: #655a61;
  --focus: #a8330a;
  --selection: #ffdccb;
  --font-body: "DM Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--selection);
  color: var(--ink);
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:visited {
  color: var(--link-visited);
}

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

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

.page {
  width: min(100% - 4rem, 48rem);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding-block: clamp(4rem, 13.5vh, 9rem) 3.5rem;
  display: flex;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.wordmark,
.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.wordmark {
  gap: 1.125rem;
  white-space: nowrap;
  letter-spacing: 0.025em;
}

.brand-mark {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  background: var(--accent);
}

.contact-link {
  gap: 0.45em;
  white-space: nowrap;
}

main {
  padding-top: clamp(4rem, 11.5vh, 7.5rem);
}

main:focus {
  outline: none;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.intro {
  margin: 0.75rem 0 0;
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.manifesto {
  margin-top: 3rem;
}

.manifesto p {
  margin: 0;
}

.manifesto p + p {
  margin-top: 2rem;
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  margin-top: 2.5rem;
}

.site-footer {
  margin-top: auto;
  padding-top: clamp(5rem, 11vh, 8rem);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.7;
}

.site-footer p {
  margin: 0;
}

.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--paper);
  font-size: 1rem;
  transform: translateY(calc(-100% - 2rem));
}

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

@media (max-width: 600px) {
  body {
    font-size: 1.125rem;
    line-height: 1.7;
  }

  .page {
    width: calc(100% - 3rem);
    padding-block: 2rem;
  }

  .site-header {
    gap: 1rem;
    font-size: 0.8125rem;
  }

  .wordmark {
    gap: 0.75rem;
  }

  main {
    padding-top: 4.5rem;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(2.375rem, 9.5vw, 3.25rem);
    line-height: 1.1;
    letter-spacing: -0.045em;
  }

  .intro {
    margin-top: 1rem;
    font-size: 1.5rem;
  }

  .manifesto {
    margin-top: 2.25rem;
  }

  .manifesto p + p {
    margin-top: 1.5rem;
  }

  .work-link {
    margin-top: 2rem;
  }

  .site-footer {
    padding-top: 4rem;
    font-size: 0.6875rem;
  }
}
