:root {
  color-scheme: light;
  --about-paper: #f8f5f2;
  --about-ink: #22211f;
  --about-muted: #55504a;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  position: relative;
  min-height: 100svh;
  color: var(--about-ink);
  font-family: "Courier New", Courier, monospace;
  background: var(--about-paper);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background-image: url("assets/about-background.jpeg");
  background-position: center 8%;
  background-size: cover;
  opacity: 0.3;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background: rgba(248, 245, 242, 0.58);
}

.about-frame {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  min-height: 100svh;
  padding: 1.1rem 1.15rem 0.9rem;
}

.about-back {
  width: max-content;
  color: var(--about-ink);
  font-size: 0.84rem;
  line-height: 1;
  text-decoration: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.about-back:hover,
.about-back:focus-visible {
  opacity: 0.7;
  transform: scale(1.06);
}

.about-copy {
  align-self: center;
  display: grid;
  justify-items: center;
  width: min(36rem, 100%);
  margin: 0 auto;
  padding: 1.2rem 0;
  text-align: center;
}

.about-copy h1 {
  margin: 0 0 1.15rem;
  color: var(--about-ink);
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(0.9rem, 1.35vw, 1.08rem);
  font-weight: 700;
  line-height: 1.05;
}

.about-copy p {
  margin: 0;
  color: rgba(34, 33, 31, 0.82);
  font-size: clamp(0.78rem, 1vw, 0.9rem);
  line-height: 1.42;
}

.about-copy .about-intro {
  max-width: 35rem;
  margin-bottom: 2rem;
}

.about-photo {
  display: block;
  width: min(100%, 18.5rem);
  height: auto;
  background: rgba(255, 255, 255, 0.2);
}

.about-footer {
  display: flex;
  justify-content: center;
  color: var(--about-muted);
  font-size: 0.78rem;
  line-height: 1.1;
}

.about-footer p,
.about-footer a {
  margin: 0;
  color: var(--about-muted);
  text-decoration: none;
}

.about-contact {
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
  justify-content: center;
}

@media (max-width: 680px) {
  .about-frame {
    padding: 0.9rem 0.8rem 0.75rem;
  }

  .about-copy {
    text-align: center;
  }

  .about-copy h1 {
    margin-bottom: 0.95rem;
  }

  .about-contact {
    gap: 0.45rem;
    flex-wrap: wrap;
  }
}
