:root {
  --bg: #f5f1ea;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-strong: rgba(255, 255, 255, 0.78);
  --border: rgba(23, 28, 28, 0.12);
  --border-strong: rgba(23, 28, 28, 0.2);
  --text: #171c1c;
  --muted: #5f6664;
  --accent: #164a49;
  --accent-soft: rgba(22, 74, 73, 0.1);
  --warm: #b86c42;
  --shadow: 0 24px 80px rgba(23, 28, 28, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(184, 108, 66, 0.14), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(22, 74, 73, 0.12), transparent 24%),
    linear-gradient(180deg, #f8f5ef 0%, var(--bg) 100%);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", sans-serif;
}

a {
  color: inherit;
}

.ambient,
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.ambient {
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.56;
}

.ambient-left {
  top: -12rem;
  left: -10rem;
  background: rgba(184, 108, 66, 0.18);
  animation: drift-left 14s ease-in-out infinite alternate;
}

.ambient-right {
  right: -12rem;
  top: 10rem;
  background: rgba(22, 74, 73, 0.14);
  animation: drift-right 16s ease-in-out infinite alternate;
}

.grain {
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(23, 28, 28, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 28, 28, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.48), transparent 82%);
}

.page {
  position: relative;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0 1.25rem;
}

.brand,
.nav a {
  position: relative;
  text-decoration: none;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a::after,
.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.22rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav a:hover::after,
.footer-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero,
.section,
.footer {
  animation: rise-in 620ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero {
  padding: 4rem 0 3.2rem;
}

.eyebrow,
.section-label,
.aside-label {
  margin: 0;
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 3rem;
  align-items: end;
  margin-top: 1.4rem;
}

.hero-domain {
  margin: 0 0 1rem;
  color: rgba(23, 28, 28, 0.38);
  font: 600 clamp(2.8rem, 10vw, 6.8rem) / 0.95 "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  letter-spacing: -0.06em;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  max-width: 11ch;
  font: 600 clamp(3.2rem, 7vw, 5.9rem) / 0.94 "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  letter-spacing: -0.055em;
}

.lead {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.9;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.95rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 600;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.primary {
  color: #f8f5ef;
  background: linear-gradient(135deg, var(--accent) 0%, #102d2d 100%);
  box-shadow: 0 18px 36px rgba(22, 74, 73, 0.2);
}

.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.3);
  border-color: var(--border);
}

.hero-aside {
  padding: 1.5rem;
  background: linear-gradient(180deg, var(--surface-strong) 0%, rgba(255, 255, 255, 0.54) 100%);
  border: 1px solid var(--border);
  border-radius: 1.6rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-aside h2 {
  margin-top: 0.85rem;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-aside p {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.project-meta {
  display: grid;
  gap: 0.95rem;
  margin: 1.4rem 0 0;
}

.project-meta div {
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  gap: 0.8rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.project-meta dt {
  color: var(--muted);
}

.project-meta dd {
  margin: 0;
  font-weight: 600;
}

.section {
  padding: 2rem 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr);
  gap: 2.4rem;
  align-items: start;
  border-top: 1px solid var(--border);
}

.section-intro h2,
.feature-copy h2 {
  margin-top: 0.8rem;
  max-width: 12ch;
  font: 600 clamp(2rem, 4vw, 3.2rem) / 1.02 "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  letter-spacing: -0.045em;
}

.structure {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.structure article {
  padding-top: 1rem;
  border-top: 1px solid var(--border-strong);
}

.structure span {
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.structure h3 {
  margin-top: 0.75rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.structure p,
.feature-copy p,
.footer p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  line-height: 1.85;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 1.8rem;
  align-items: end;
  border-top: 1px solid var(--border);
}

.feature-link {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  text-decoration: none;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.feature-link span {
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-link strong {
  font-size: 1.2rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.feature-link:hover {
  transform: translateY(-3px);
  border-color: rgba(22, 74, 73, 0.34);
  background: rgba(255, 255, 255, 0.74);
}

.footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 2.4rem 0 0;
  border-top: 1px solid var(--border);
}

.footer p {
  max-width: 34rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift-left {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(24px, 18px, 0);
  }
}

@keyframes drift-right {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-28px, 26px, 0);
  }
}

@media (max-width: 980px) {
  .hero-layout,
  .split,
  .feature {
    grid-template-columns: 1fr;
  }

  .structure {
    grid-template-columns: 1fr;
  }

  .section-intro h2,
  .feature-copy h2 {
    max-width: 14ch;
  }
}

@media (max-width: 720px) {
  .page {
    width: min(100% - 1.2rem, 1180px);
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav {
    flex-wrap: wrap;
    gap: 0.95rem;
  }

  .hero {
    padding-top: 2.4rem;
  }

  h1 {
    max-width: 8ch;
  }

  .hero-aside,
  .feature-link {
    border-radius: 1.2rem;
  }

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

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