/* CSS generated by ChatGPT. Styling isn't my favourite, but every site needs it. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  font-family:
    "Inter",
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-feature-settings:
    "liga" 1,
    "calt" 1;

  color: #27272a;
  background: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100svh;
  margin: 0;
  padding: 1.5rem;

  display: grid;
  place-items: center;

  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;

  width: 1px;

  background: repeating-linear-gradient(
    to bottom,
    #e8e8ec 0 3px,
    transparent 3px 7px
  );

  pointer-events: none;
}

body::before {
  left: max(1.5rem, calc(50% - 320px));
}

body::after {
  right: max(1.5rem, calc(50% - 320px));
}

main {
  position: relative;

  width: min(100%, 640px);
  padding: clamp(2.75rem, 7vw, 4rem) clamp(1.5rem, 6vw, 3.5rem);

  text-align: center;
}

main::before,
main::after {
  content: "";
  position: absolute;
  left: 50%;

  width: 100vw;
  height: 1px;

  background: #eeeef0;
  transform: translateX(-50%);

  pointer-events: none;
}

main::before {
  top: 0;
}

main::after {
  bottom: 0;
}

p {
  max-width: 500px;
  margin: 0 auto;

  color: #3f3f46;

  font-size: clamp(1.125rem, 2.5vw, 1.4rem);
  line-height: 1.55;
  letter-spacing: -0.025em;

  text-wrap: balance;
}

.work {
  margin-top: 0.9rem;

  color: #71717a;

  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.inline-link {
  color: #52525b;
  font-weight: 500;
  text-decoration-color: #d4d4d8;
  text-underline-offset: 0.2em;
}

.inline-link:hover {
  color: #18181b;
  text-decoration-color: #71717a;
}

.inline-link:focus-visible {
  border-radius: 2px;
  outline: 2px solid #a1a1aa;
  outline-offset: 3px;
}

nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;

  margin-top: 1.75rem;
}

nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;

  padding: 0.55rem 0.75rem;

  border: 1px solid transparent;
  border-radius: 0.5rem;

  color: #71717a;

  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;

  transition:
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease;
}

nav a img {
  opacity: 0.6;
  transition: opacity 150ms ease;
}

nav a:hover {
  color: #27272a;
  background: #fafafa;
  border-color: #e8e8ec;
}

nav a:hover img {
  opacity: 0.9;
}

nav a:focus-visible {
  outline: 2px solid #a1a1aa;
  outline-offset: 3px;
}

@media (max-width: 480px) {
  body {
    padding: 1rem;
  }

  body::before,
  body::after,
  main::before,
  main::after {
    display: none;
  }

  main {
    padding: 2rem 1rem;
  }

  nav {
    flex-wrap: wrap;
  }
}