:root {
  color-scheme: light;
  --paper: #f4f0e8;
  --ink: #18211c;
  --muted: #69736d;
  --line: rgba(24, 33, 28, 0.18);
  --acid: #d8ff70;
  --white: #f8f6ef;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 8%, rgba(216, 255, 112, 0.45), transparent 24rem),
    var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
}

.shell,
.artifact-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header,
.artifact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.wordmark,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.wordmark__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 14px 0 0 var(--acid);
}

.site-header__note,
.artifact-id {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  min-height: 68vh;
  align-content: center;
  padding: 80px 0;
}

.kicker {
  margin: 0 0 24px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.hero h1,
.profile h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(3.5rem, 10vw, 8.7rem);
  font-weight: 580;
  letter-spacing: -0.075em;
  line-height: 0.92;
}

.hero__summary {
  max-width: 540px;
  margin: 48px 0 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.85;
}

.artifact-list {
  padding: 48px 0 120px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.section-heading span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
}

.artifact-card {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 230px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(248, 246, 239, 0.6);
  text-decoration: none;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.artifact-card:hover {
  transform: translateY(-4px);
  background: var(--ink);
  color: var(--white);
}

.artifact-card:focus-visible,
.back-link:focus-visible,
.artifact-footer a:focus-visible {
  outline: 3px solid #7aa716;
  outline-offset: 5px;
}

.artifact-card__index,
.artifact-card__label {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.artifact-card__content {
  display: grid;
  gap: 10px;
}

.artifact-card__content strong {
  font-size: clamp(2rem, 5vw, 4.3rem);
  font-weight: 560;
  letter-spacing: -0.055em;
}

.artifact-card__content > span:last-child {
  color: var(--muted);
  line-height: 1.7;
}

.artifact-card:hover .artifact-card__content > span:last-child {
  color: rgba(248, 246, 239, 0.7);
}

.artifact-card__arrow {
  font-size: 2rem;
}

.site-footer,
.artifact-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}

.artifact-page {
  background:
    radial-gradient(circle at 8% 15%, rgba(216, 255, 112, 0.12), transparent 26rem),
    var(--ink);
  color: var(--white);
}

.artifact-page .artifact-shell {
  min-height: 100vh;
}

.artifact-page .artifact-header,
.artifact-page .artifact-footer {
  border-color: rgba(248, 246, 239, 0.2);
}

.artifact-page .artifact-id,
.artifact-page .artifact-footer {
  color: rgba(248, 246, 239, 0.55);
}

.profile {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(64px, 10vw, 150px);
  padding: clamp(80px, 12vw, 160px) 0;
}

.profile__intro {
  align-self: start;
  position: sticky;
  top: 48px;
}

.profile .kicker--light {
  color: var(--acid);
}

.profile h1 {
  max-width: 8ch;
  font-size: clamp(4rem, 8vw, 7.6rem);
}

.profile__lead {
  max-width: 580px;
  margin: 44px 0 0;
  color: rgba(248, 246, 239, 0.72);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.9;
}

.profile__details {
  display: grid;
  gap: 0;
}

.profile-block {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  padding: 38px 0;
  border-top: 1px solid rgba(248, 246, 239, 0.2);
}

.profile-block:last-child {
  border-bottom: 1px solid rgba(248, 246, 239, 0.2);
}

.profile-block__number {
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
}

.profile-block h2 {
  margin: -0.2em 0 14px;
  font-size: 1.15rem;
  font-weight: 600;
}

.profile-block p {
  margin: 0;
  color: rgba(248, 246, 239, 0.64);
  line-height: 1.85;
}

.profile-block--editable {
  margin-top: 28px;
  padding: 38px 24px;
  border: 1px dashed rgba(216, 255, 112, 0.45);
}

.editable-note {
  display: inline-block;
  margin-top: 22px;
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
}

.artifact-footer a {
  color: var(--white);
  text-decoration: none;
}

@media (max-width: 820px) {
  .profile {
    grid-template-columns: 1fr;
  }

  .profile__intro {
    position: static;
  }
}

@media (max-width: 620px) {
  .shell,
  .artifact-shell {
    width: min(100% - 28px, 1180px);
  }

  .site-header__note {
    display: none;
  }

  .hero {
    min-height: 620px;
    padding: 64px 0;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 16vw, 5.4rem);
  }

  .hero__summary {
    margin-top: 40px;
  }

  .artifact-card {
    grid-template-columns: 1fr auto;
    padding: 26px 22px;
  }

  .artifact-card__index {
    grid-column: 1 / -1;
  }

  .artifact-card__content strong {
    font-size: 2.6rem;
  }

  .site-footer,
  .artifact-footer {
    flex-direction: column;
  }

  .profile {
    padding: 72px 0;
  }

  .profile h1 {
    font-size: clamp(4rem, 18vw, 6rem);
  }

  .profile-block--editable {
    padding: 30px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .artifact-card {
    transition: none;
  }
}

