:root {
  color-scheme: dark;
  --ink: #e8e6dc;
  --muted: #9b9aa2;
  --night: #090b13;
  --line: rgba(232, 230, 220, 0.23);
  --flare: #d86145;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--night);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 14%, rgba(84, 62, 130, 0.25), transparent 26rem),
    radial-gradient(circle at 5% 87%, rgba(216, 97, 69, 0.13), transparent 25rem),
    var(--night);
  font-family: Arial, Helvetica, sans-serif;
}

main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(1.5rem, 1fr) minmax(0, 74rem) minmax(1.5rem, 1fr);
  min-height: 100svh;
  overflow: hidden;
}

main::before {
  position: absolute;
  top: -13rem;
  right: -8rem;
  width: min(49vw, 42rem);
  height: min(49vw, 42rem);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 0 0 3rem rgba(232, 230, 220, 0.025), 0 0 0 6rem rgba(232, 230, 220, 0.018);
  content: "";
}

.introduction,
.profile,
footer {
  grid-column: 2;
  position: relative;
  z-index: 1;
}

.legal-page {
  display: block;
  min-height: 100svh;
  padding: clamp(2rem, 7vw, 6rem) 1.5rem;
  overflow: visible;
}

.legal-content {
  position: relative;
  z-index: 1;
  width: min(100%, 46rem);
  margin: 0 auto;
}

.legal-content h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(3.5rem, 11vw, 7rem);
}

.legal-content h2 {
  margin: 2.75rem 0 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: normal;
  letter-spacing: -0.03em;
}

.legal-content p {
  margin: 0.9rem 0;
  color: #c3c1ba;
  font-size: 1rem;
  line-height: 1.65;
}

.legal-content .legal-effective {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-content a:not(.github-link) {
  color: var(--ink);
  text-decoration-color: var(--flare);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25rem;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.introduction {
  align-self: center;
  margin-top: clamp(5rem, 13vh, 10rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.eyebrow::before {
  width: 2.75rem;
  height: 1px;
  background: var(--flare);
  content: "";
}

h1 {
  max-width: 7ch;
  margin: 0.35rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5rem, 15.3vw, 12.5rem);
  font-weight: normal;
  letter-spacing: -0.095em;
  line-height: 0.98;
}

.signal {
  display: flex;
  align-items: end;
  gap: 0.25rem;
  height: 1.9rem;
  margin: 2.15rem 0 0 0.4rem;
}

.signal span {
  display: block;
  width: 1px;
  background: var(--flare);
}

.signal span:nth-child(1) { height: 36%; }
.signal span:nth-child(2) { height: 78%; }
.signal span:nth-child(3) { height: 100%; }
.signal span:nth-child(4) { height: 58%; }
.signal span:nth-child(5) { height: 22%; }

.profile {
  width: min(100%, 38rem);
  margin: clamp(4rem, 12vh, 9rem) 0 6rem auto;
  padding-left: clamp(1.4rem, 4vw, 3.5rem);
  border-left: 1px solid var(--line);
}

.profile p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  letter-spacing: -0.025em;
  line-height: 1.32;
}

.profile p + p {
  margin-top: 1.25rem;
  color: #c3c1ba;
}

footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0 1.8rem;
  border-top: 1px solid var(--line);
}

.github-link {
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.09em;
  text-decoration-color: var(--flare);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35rem;
  text-transform: uppercase;
}

.github-link span {
  color: var(--flare);
  font-size: 1rem;
}

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

@media (max-width: 42rem) {
  main {
    grid-template-columns: 1.25rem minmax(0, 1fr) 1.25rem;
  }

  .introduction {
    margin-top: 6.5rem;
  }

  h1 {
    font-size: clamp(4.5rem, 25vw, 7rem);
  }

  .profile {
    margin-top: 5rem;
    margin-bottom: 5rem;
  }

  footer p {
    font-size: 0.56rem;
    text-align: right;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
