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

/* Tokens from the Figma file "Everything", frame calebduren.com. Dark values extrapolate the same warm grays. */
:root {
  color-scheme: light;
  --background: #f4f4f1;
  --text: #2a2a26;
  --secondary: #6b6b61;
  --tertiary: #959589;
  --selection: #e2e2d9;
  --gutter: 64px;
  --gap: 64px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: -0.005em;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --background: #1a1a18;
    --text: #e8e8e2;
    --secondary: #a1a196;
    --tertiary: #6f6f66;
    --selection: #3a3a34;
  }
}

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

html,
body {
  margin: 0;
  background: var(--background);
  color: var(--secondary);
}

h1,
h2,
p,
ul {
  margin: 0;
  padding: 0;
  font: inherit;
}

ul {
  list-style: none;
}

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

a {
  color: inherit;
}

.inline-link {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: var(--tertiary);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.3em;
  border-radius: 2px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.inline-link:hover {
  color: var(--text);
  text-decoration-color: currentColor;
}

.inline-link:focus-visible {
  outline: 1.5px solid var(--secondary);
  outline-offset: 3px;
}

/* Layout: intro and contact share the left column; projects fill the right. */
.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "intro projects"
    "contact projects";
  column-gap: var(--gap);
  row-gap: 24px;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--gutter);
}

.column-intro {
  grid-area: intro;
}

.column-projects {
  grid-area: projects;
}

.contact {
  grid-area: contact;
}

.intro {
  display: grid;
  gap: 32px;
}

.identity,
.work {
  display: grid;
  gap: 8px;
}

.previously {
  color: var(--tertiary);
}

.identity h1,
.project-name {
  color: var(--text);
}

.projects-section {
  display: grid;
  gap: 24px;
}

.projects {
  display: grid;
  gap: 32px;
}

.project {
  display: grid;
  gap: 8px;
}

.project p:last-child {
  text-wrap: pretty;
}

.project-status {
  color: var(--tertiary);
}

.contact-links {
  display: flex;
  gap: 24px;
  white-space: nowrap;
}

@media (max-width: 759px) {
  :root {
    --gutter: 48px;
  }

  .page {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 1fr auto auto;
    grid-template-areas:
      "intro"
      "projects"
      "contact";
    row-gap: var(--gap);
  }

  .contact-links {
    justify-content: space-between;
  }
}

@media (max-width: 359px) {
  :root {
    --gutter: 24px;
  }
}

/* 404 page */
.not-found {
  display: grid;
  gap: 8px;
  margin-top: 32px;
}

.not-found h1 {
  color: var(--text);
}

main.page {
  display: block;
}
