/* ==========
   Variables
   ========== */

:root {
  --bg: #1e1f20;
  --bg-darker: color-mix(in srgb, var(--bg), black 35%);
  --accent: #f35c51;
  --text: #d6cbb6;
  --mutedtext: #a2988a;
  --font: "Schibsted Grotesk", sans-serif;
}

/* ==========
   Styles
   ========== */

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--mutedtext);
  font-family: var(--font);
}

header,
main,
.footer-content {
  /* center the content horizontally */
  margin-inline: auto;
  max-width: 70rem;
  padding-inline: 2rem;
}

main {
  padding-bottom: 4rem;
}

h1,
h2,
h3 {
  color: var(--text);
}

h1 {
  font-size: 5rem;
  line-height: 0.95;
}

h2 {
  font-size: 2.5rem;
}

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

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

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

hr {
  border: none;
  width: 5rem;
  height: 1px;
  background: var(--mutedtext);
  margin: 4rem auto;
}

::selection {
  background: color-mix(in srgb, var(--accent) 40%, transparent);
}

.text-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

header {
  gap: 3rem;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: 2rem;
}

.intro {
  margin-block: auto;
  display: grid;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 60rem) {
  .intro {
    grid-template-columns: 1.15fr 1fr;
    gap: 3.5rem;
  }

  #graph-container {
    justify-self: center;
  }
}

.subtitle {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 1.2rem;
}

.sub-subtitle {
  font-style: italic;
  font-size: 0.9rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

#graph-container {
  display: block !important;
  max-width: 22rem;
  padding-bottom: 0 !important;
}

.bottom {
  text-align: center;
  padding-bottom: 2rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--text);
  transition: transform 0.1s;
}

@media (hover: hover) {
  .btn:hover {
    border-color: var(--accent);
    transform: scale(1.05);
  }
}

.btn:active {
  transform: scale(0.95);
}

.scroll-cue {
  color: var(--mutedtext);
}

.project-card {
  border: 1.5px solid var(--mutedtext);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

footer {
  background-color: var(--bg-darker);
  padding-block: 4rem;
}

footer h2 {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

footer a {
  font-weight: bold;
  font-size: 1.4rem;
}
