:root {
  color-scheme: dark;
  --bg: #0b0c0a;
  --ink: #f1eee7;
  --muted: #9c9a91;
  --faint: rgba(241, 238, 231, 0.12);
  --accent: #b9ff73;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 8%, rgba(185, 255, 115, 0.08), transparent 30rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 96px 96px,
    var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: calc(var(--scroll, 0) * 1%);
  height: 2px;
  background: var(--accent);
}

.site-header,
main,
footer {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.site-header {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.site-header > a {
  color: var(--ink);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(14px, 3vw, 28px);
}

nav a,
footer span {
  transition: color 160ms ease;
}

nav a:hover {
  color: var(--ink);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: clamp(36px, 8vw, 110px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(34px, 7vw, 88px) 0;
}

.meta {
  margin: 0 0 26px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(3rem, 7vw, 6.8rem);
  font-weight: 650;
  line-height: 0.96;
  letter-spacing: 0;
}

.lede {
  max-width: 560px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  line-height: 1.5;
}

.portrait {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 4 / 5;
  background: #151611;
}

.portrait::after {
  position: absolute;
  inset: 0;
  border: 1px solid var(--faint);
  content: "";
  pointer-events: none;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 26%;
  filter: saturate(0.9) contrast(1.03);
  transform: translateY(calc(var(--scroll, 0) * -0.025vh)) scale(1.06);
}

.quiet-list {
  display: grid;
  border-top: 1px solid var(--faint);
}

.quiet-list div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  border-bottom: 1px solid var(--faint);
  padding: clamp(22px, 4vw, 42px) 0;
}

.quiet-list span {
  color: var(--muted);
  font-size: 0.78rem;
}

.quiet-list p {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.7rem, 4.4vw, 4.6rem);
  font-weight: 560;
  line-height: 1;
}

.note {
  padding: clamp(90px, 16vw, 190px) 0;
}

.note p {
  max-width: 820px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 5.8vw, 6.2rem);
  font-weight: 600;
  line-height: 1.02;
}

.personal {
  border-top: 1px solid var(--faint);
  padding: 34px 0 clamp(90px, 12vw, 150px);
}

.personal p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.35rem, 4vw, 1.55rem);
  line-height: 1.5;
}

footer {
  display: flex;
  justify-content: space-between;
  /* flex-direction: column; */
  gap: 20px;
  border-top: 1px solid var(--faint);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 24px 0 34px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .portrait img {
    transform: scale(1.06);
  }
}

@media (max-width: 820px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, var(--max));
  }

  .site-header {
    align-items: center;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  nav {
    justify-content: center;
  }

  .intro {
    grid-template-columns: 1fr;
    min-height: 0;
    justify-items: center;
    text-align: center;
  }

  .portrait {
    width: min(100%, 360px);
  }

  .lede {
    margin-right: auto;
    margin-left: auto;
  }

  .note,
  .personal,
  footer {
    text-align: center;
  }

  .note p {
    margin-right: auto;
    margin-left: auto;
  }

  footer {
    align-items: center;
    flex-direction: column;
    justify-content: center;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 10px;
    min-height: 94px;
  }

  h1 {
    font-size: clamp(2.8rem, 13.5vw, 3.9rem);
  }

  .quiet-list div {
    grid-template-columns: 46px minmax(0, 1fr);
  }

}
