:root {
  --night: #151923;
  --night-soft: #202635;
  --paper: #f8f3e7;
  --paper-deep: #ede3d2;
  --text: #23272b;
  --muted: #6f756f;
  --line: rgba(50, 45, 38, 0.16);
  --moon: #f2dfad;
  --vermillion: #9f4f3f;
  --moss: #4f6f61;
  --indigo: #28344d;
  --shadow: 0 28px 70px rgba(12, 15, 22, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 76% 16%, rgba(242, 223, 173, 0.20), transparent 20rem),
    linear-gradient(180deg, var(--night) 0, #1b2130 42rem, #f5efe2 42rem, #f7f1e7 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.68;
}

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

code {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(79, 111, 97, 0.13);
  color: #2f584c;
}

.moon-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.moon {
  position: absolute;
  top: 88px;
  right: max(34px, calc((100vw - 1120px) / 2 + 18px));
  width: 132px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 34%, rgba(255, 255, 255, 0.72), transparent 0.55rem),
    radial-gradient(circle at 64% 62%, rgba(156, 124, 83, 0.24), transparent 0.7rem),
    var(--moon);
  box-shadow: 0 0 54px rgba(242, 223, 173, 0.34);
}

.moon::after {
  content: "";
  position: absolute;
  inset: -14px -34px auto auto;
  width: 126px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(242, 223, 173, 0.22);
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(248, 243, 231, 0.72);
  box-shadow: 0 0 12px rgba(248, 243, 231, 0.55);
}

.star-a {
  top: 150px;
  left: 12%;
}

.star-b {
  top: 260px;
  right: 32%;
}

.star-c {
  top: 92px;
  left: 45%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(248, 243, 231, 0.11);
  background: rgba(21, 25, 35, 0.82);
  color: var(--paper);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(248, 243, 231, 0.36);
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand small {
  color: rgba(248, 243, 231, 0.62);
  font-size: 13px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  padding: 7px 10px;
  border-radius: 6px;
  color: rgba(248, 243, 231, 0.72);
  font-size: 14px;
}

.nav a:hover {
  color: var(--paper);
  background: rgba(248, 243, 231, 0.10);
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 58px 24px 82px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: end;
  min-height: 560px;
  color: var(--paper);
}

.hero-copy {
  padding-bottom: 68px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--moon);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  font-size: 29px;
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  margin-bottom: 28px;
  color: rgba(248, 243, 231, 0.78);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid rgba(248, 243, 231, 0.30);
  border-radius: 7px;
  background: rgba(248, 243, 231, 0.07);
  color: var(--paper);
  font-weight: 680;
}

.button.primary {
  border-color: var(--moon);
  color: #20222a;
  background: var(--moon);
}

.profile-panel {
  padding: 24px;
  border: 1px solid rgba(248, 243, 231, 0.20);
  border-radius: 8px;
  background: rgba(248, 243, 231, 0.10);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.profile-top {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}

.profile-panel img {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(248, 243, 231, 0.36);
}

.profile-name {
  margin-bottom: 4px;
  font-weight: 780;
}

.profile-text {
  margin-bottom: 0;
  color: rgba(248, 243, 231, 0.68);
}

.profile-facts {
  margin: 0;
  display: grid;
  gap: 12px;
}

.profile-facts div {
  padding-top: 12px;
  border-top: 1px solid rgba(248, 243, 231, 0.14);
}

.profile-facts dt {
  color: rgba(248, 243, 231, 0.54);
  font-size: 12px;
  text-transform: uppercase;
}

.profile-facts dd {
  margin: 2px 0 0;
}

.section {
  margin-top: 22px;
  padding: 52px 0;
  border-top: 1px solid var(--line);
  color: var(--text);
}

.section .eyebrow {
  color: var(--vermillion);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.intro-grid article,
.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 243, 231, 0.78);
  box-shadow: 0 18px 50px rgba(60, 50, 35, 0.07);
}

.intro-grid article {
  padding: 26px;
}

.intro-grid p:last-child {
  margin-bottom: 0;
  color: #515951;
}

.section-heading h2 {
  margin-bottom: 22px;
}

.paper-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.paper-item {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 243, 231, 0.78);
  box-shadow: 0 18px 50px rgba(60, 50, 35, 0.07);
}

.paper-item.feature {
  grid-column: 1 / -1;
  border-color: rgba(159, 79, 63, 0.32);
  background: linear-gradient(135deg, rgba(248, 243, 231, 0.90), rgba(237, 227, 210, 0.72));
}

.paper-meta,
.post-date,
.site-list span {
  color: var(--muted);
  font-size: 14px;
}

.paper-item h3 {
  margin: 8px 0 8px;
  font-size: 22px;
}

.paper-item.feature h3 {
  font-size: 24px;
  color: #1f2428;
}

.paper-item a:hover,
.post-item:hover h3,
.site-list a:hover {
  color: var(--vermillion);
}

.paper-item p {
  margin-bottom: 0;
  color: #555d57;
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.paper-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(79, 111, 97, 0.24);
  border-radius: 6px;
  background: rgba(79, 111, 97, 0.08);
  color: #355f54;
  font-size: 14px;
  font-weight: 720;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}

.post-list {
  display: grid;
  gap: 14px;
}

.post-item a {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.post-item h3 {
  margin-bottom: 6px;
  font-size: 21px;
}

.post-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.site-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.site-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.site-list a {
  font-weight: 720;
}

.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px 24px 48px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #697069;
  font-size: 14px;
}

.article-page {
  max-width: 820px;
}

.article {
  padding: 42px 0;
}

.article h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.article p,
.article li {
  font-size: 17px;
}

@media (max-width: 820px) {
  .header-inner,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  main {
    padding-top: 34px;
  }

  .moon {
    top: 96px;
    right: 28px;
    width: 94px;
  }

  .hero,
  .intro-grid,
  .paper-list,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    gap: 28px;
  }

  .hero-copy {
    padding: 64px 0 0;
  }

  .post-item a {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .site-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}
