@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f5efe3;
  --bg-strong: #eadfc9;
  --surface: rgba(255, 251, 244, 0.74);
  --surface-strong: rgba(255, 249, 240, 0.92);
  --ink: #1e1d1a;
  --muted: #5d5b56;
  --line: rgba(34, 31, 26, 0.12);
  --accent: #ab4e2d;
  --accent-deep: #7f341a;
  --accent-soft: rgba(171, 78, 45, 0.14);
  --pine: #20443a;
  --pine-soft: rgba(32, 68, 58, 0.14);
  --gold: #d2a74d;
  --shadow: 0 24px 70px rgba(41, 31, 17, 0.12);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(210, 167, 77, 0.16), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(32, 68, 58, 0.14), transparent 24%),
    linear-gradient(180deg, #f7f1e5 0%, #f2ead9 46%, #efe7d8 100%);
  font-family: 'Manrope', 'Avenir Next', 'Segoe UI', sans-serif;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.05)),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.07) 0,
      rgba(255, 255, 255, 0.07) 1px,
      transparent 1px,
      transparent 18px
    );
  pointer-events: none;
  opacity: 0.7;
}

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

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

.shell {
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(245, 239, 227, 0.72);
  border-bottom: 1px solid rgba(34, 31, 26, 0.08);
}

.topbar-inner,
.page-section,
.footer-inner {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
  color: #fff9ef;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 232, 188, 0.9), transparent 35%),
    linear-gradient(135deg, var(--pine), var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-title {
  font-size: 1rem;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  transform: translateY(-1px);
}

.nav-link.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(34, 31, 26, 0.08);
}

.page-section {
  padding: 3.5rem 0;
}

.hero {
  padding-top: 3rem;
}

.hero-panel,
.feature-panel,
.project-panel,
.about-panel,
.domain-panel,
.note-panel {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
}

.hero-panel::after,
.project-panel::after,
.about-panel::after,
.feature-panel::after {
  content: '';
  position: absolute;
  inset: auto -10% -38% auto;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(171, 78, 45, 0.16), transparent 66%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.95fr;
  gap: 2rem;
  padding: 3rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--pine);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--accent));
}

.hero h1,
.section-title,
.page-title,
.project-title {
  font-family: 'Fraunces', Georgia, serif;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
  margin-top: 1.2rem;
}

.hero-copy,
.section-copy,
.project-summary,
.lead,
.body-copy {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.04rem;
}

.hero-copy {
  font-size: 1.14rem;
  max-width: 42rem;
}

.hero-actions,
.card-actions,
.project-actions,
.filter-row,
.chip-row,
.meta-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 1.75rem;
}

.button,
.button-secondary,
.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.96rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button {
  color: #fff7eb;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 16px 30px rgba(127, 52, 26, 0.22);
}

.button-secondary,
.filter-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(34, 31, 26, 0.09);
}

.button:hover,
.button-secondary:hover,
.filter-button:hover,
.button:focus-visible,
.button-secondary:focus-visible,
.filter-button:focus-visible {
  transform: translateY(-2px);
}

.hero-aside {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.stat-card,
.domain-card,
.project-card,
.about-card,
.note-card {
  background: var(--surface-strong);
  border: 1px solid rgba(34, 31, 26, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
}

.stat-card strong,
.domain-card strong,
.about-card strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}

.stat-card p,
.domain-card p,
.about-card p,
.note-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.section-header,
.page-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}

.section-title,
.page-title {
  font-size: clamp(2.15rem, 4vw, 3.2rem);
}

.section-kicker {
  color: var(--accent-deep);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.55rem;
}

.feature-panel,
.project-panel,
.about-panel,
.domain-panel,
.note-panel {
  padding: 2rem;
}

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

.card-grid > * {
  grid-column: span 4;
}

.project-card {
  display: grid;
  gap: 1rem;
  min-height: 100%;
}

.project-art {
  min-height: 11.5rem;
  border-radius: calc(var(--radius-lg) - 6px);
  padding: 1.1rem;
  display: flex;
  align-items: end;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.35rem;
  color: #fff9f3;
  background:
    linear-gradient(135deg, rgba(24, 44, 37, 0.9), rgba(171, 78, 45, 0.9)),
    radial-gradient(circle at 20% 20%, rgba(255, 229, 180, 0.25), transparent 32%);
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pill,
.status-pill,
.visibility-pill,
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.42rem 0.74rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.status-pill {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.status-pill[data-status='active'] {
  background: var(--pine-soft);
  color: var(--pine);
}

.visibility-pill,
.tag-pill,
.pill {
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  box-shadow: inset 0 0 0 1px rgba(34, 31, 26, 0.08);
}

.project-card h3,
.project-title {
  font-size: 1.75rem;
}

.project-card h3 {
  margin: 0;
  font-family: 'Fraunces', Georgia, serif;
  letter-spacing: -0.03em;
}

.project-card p,
.detail-grid p,
.detail-grid li,
.stack-list li,
.domain-list li,
.about-list li {
  color: var(--muted);
  line-height: 1.7;
}

.project-card.is-hidden {
  display: none;
}

.split-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 1rem;
}

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

.detail-card,
.stack-card,
.domain-card,
.about-card,
.note-card {
  min-height: 100%;
}

.list-reset,
.stack-list,
.domain-list,
.about-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.stack-list,
.domain-list,
.about-list {
  display: grid;
  gap: 0.85rem;
}

.stack-list li,
.domain-list li,
.about-list li {
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(34, 31, 26, 0.07);
}

.footer {
  padding: 2rem 0 3.4rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(34, 31, 26, 0.1);
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 700ms ease forwards;
}

.reveal-delay-1 {
  animation-delay: 90ms;
}

.reveal-delay-2 {
  animation-delay: 180ms;
}

.reveal-delay-3 {
  animation-delay: 270ms;
}

.reveal-delay-4 {
  animation-delay: 360ms;
}

.divider {
  width: 100%;
  height: 1px;
  margin: 0.6rem 0;
  background: linear-gradient(90deg, transparent, rgba(34, 31, 26, 0.16), transparent);
}

.muted {
  color: var(--muted);
}

.tiny {
  font-size: 0.9rem;
}

.filter-button[aria-pressed='true'] {
  background: linear-gradient(135deg, var(--pine), #2e6656);
  color: #f9f6ef;
  box-shadow: none;
}

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

@media (max-width: 980px) {
  .hero-grid,
  .split-grid,
  .detail-grid,
  .section-header,
  .page-header {
    grid-template-columns: 1fr;
  }

  .card-grid > * {
    grid-column: span 6;
  }
}

@media (max-width: 720px) {
  .topbar-inner {
    padding: 0.9rem 0;
    align-items: start;
    flex-direction: column;
  }

  .hero-grid,
  .feature-panel,
  .project-panel,
  .about-panel,
  .domain-panel,
  .note-panel {
    padding: 1.35rem;
  }

  .page-section {
    padding: 2.2rem 0;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 14vw, 4rem);
  }

  .card-grid > * {
    grid-column: span 12;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }
}
