:root {
  --background: #0f0f13;
  --background-soft: #15151c;
  --card: #1a1a22;
  --text: #e8e4df;
  --muted: rgba(232, 228, 223, 0.68);
  --faint: rgba(232, 228, 223, 0.42);
  --line: rgba(232, 228, 223, 0.09);
  --shadow: rgba(0, 0, 0, 0.34);
  --serif: "Playfair Display", Georgia, serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(86, 212, 160, 0.08), transparent 28rem),
    radial-gradient(circle at 82% 6%, rgba(232, 93, 117, 0.08), transparent 24rem),
    var(--background);
  color: var(--text);
  font-family: var(--mono);
  line-height: 1.5;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.site-header {
  display: flex;
  width: min(100%, 76rem);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 0;
  align-items: center;
}

.site-header__brand {
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.site-header__brand:hover,
.site-header__brand:focus-visible {
  color: #ffffff;
  transform: translateY(-1px);
}

.hero {
  max-width: 52rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 2.75rem;
  text-align: center;
}

.hero__kicker {
  margin: 0 0 0.8rem;
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(3rem, 7.5vw, 5.25rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
}

.hero__tagline {
  margin: 1rem 0 1.45rem;
  color: var(--muted);
  font-size: clamp(0.9rem, 2.3vw, 1.08rem);
}

.hero__bio {
  max-width: 42rem;
  margin: 0 auto;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1rem, 2.5vw, 1.24rem);
  line-height: 1.65;
}

.field-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.45rem;
  padding: 0 1.5rem 2.35rem;
}

.field-tab {
  position: relative;
  min-height: 2rem;
  padding: 0 0 0.3rem;
  background: transparent;
  color: var(--field-color, var(--muted));
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  opacity: 0.62;
  text-transform: uppercase;
  transition:
    color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.field-tab::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(0.6);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.field-tab:hover,
.field-tab:focus-visible,
.field-tab.is-active {
  opacity: 1;
  transform: translateY(-1px);
}

.field-tab.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.field-tab--all {
  --field-color: #e8e4df;
  background: linear-gradient(90deg, #ff6565, #f4ad3d, #f0e867, #56d4a0, #4e9af1, #d96fff);
  background-clip: text;
  color: transparent;
}

.content {
  width: min(100%, 76rem);
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

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

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 4rem 0;
  color: var(--faint);
  text-align: center;
}

.project-card {
  display: flex;
  width: 100%;
  min-height: 23rem;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--field-color) 18%, transparent);
  border-radius: 0.75rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 45%),
    var(--card);
  box-shadow: 0 0.8rem 2.5rem var(--shadow);
  color: inherit;
  flex-direction: column;
  text-decoration: none;
  transform: translateY(0);
  animation: fade-up 520ms ease both;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.project-card:hover {
  border-color: color-mix(in srgb, var(--field-color) 52%, transparent);
  box-shadow: 0 1.1rem 3rem rgba(0, 0, 0, 0.44);
  transform: translateY(-0.25rem);
}

.project-card__image-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--background-soft);
}

.project-card__image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__image-frame--empty {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--field-color) 24%, transparent), transparent),
    var(--background-soft);
}

.project-card__body {
  display: flex;
  min-height: 0;
  padding: 1.25rem;
  flex: 1;
  flex-direction: column;
}

.project-card__field {
  margin: 0 0 0.5rem;
  color: var(--field-color);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card__title {
  margin: 0 0 0.55rem;
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.1;
}

.project-card__description {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.project-card__cta {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--faint);
  font-size: 0.78rem;
}

.article-page {
  width: min(100%, 76rem);
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

.article-hero {
  display: grid;
  align-items: center;
  gap: 3rem;
  grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 0.72fr);
}

.article-hero__kicker {
  margin: 0 0 0.85rem;
  color: #f0a535;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.article-hero__title {
  margin: 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(3.4rem, 9vw, 6.75rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.9;
}

.article-hero__summary {
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.12rem, 2.4vw, 1.48rem);
  line-height: 1.55;
}

.article-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.65rem 0 0;
}

.article-link-chip {
  display: inline-flex;
  min-height: 2.35rem;
  border: 1px solid rgba(240, 165, 53, 0.28);
  border-radius: 999px;
  padding: 0.42rem 0.72rem 0.42rem 0.62rem;
  align-items: center;
  gap: 0.45rem;
  background: rgba(240, 165, 53, 0.035);
  color: var(--muted);
  font-size: 0.72rem;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.article-link-chip:hover,
.article-link-chip:focus-visible {
  border-color: rgba(240, 165, 53, 0.55);
  color: var(--text);
  transform: translateY(-1px);
}

.article-link-chip svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  flex: 0 0 auto;
}

.article-link-chip:first-child svg {
  stroke: none;
}

.article-link-chip:first-child svg path:first-child {
  fill: currentColor;
}

.article-link-chip:first-child svg path:last-child {
  fill: var(--background);
}

.article-hero__image {
  overflow: hidden;
  border: 1px solid rgba(240, 165, 53, 0.24);
  border-radius: 0.75rem;
  background: var(--card);
  box-shadow: 0 1.3rem 3.5rem var(--shadow);
}

.article-hero__image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.article-hero__image--poster img {
  aspect-ratio: 4 / 5;
  background: #05060a;
  object-fit: contain;
}

.article-body {
  max-width: 48rem;
  margin: 4rem auto 0;
}

.article-body p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.85;
}

.article-body a {
  color: #f0a535;
  text-decoration-color: rgba(240, 165, 53, 0.45);
  text-underline-offset: 0.18em;
}

.article-body a:hover,
.article-body a:focus-visible {
  color: #ffd38a;
}

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

.character-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--card);
  box-shadow: 0 0.8rem 2.2rem rgba(0, 0, 0, 0.22);
}

.character-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #05060a;
  object-fit: contain;
}

.character-card figcaption {
  padding: 0.75rem 0.85rem;
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }

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

@media (max-width: 42rem) {
  .site-header {
    padding: 1rem 1.25rem 0;
  }

  .hero {
    padding-top: 3.25rem;
  }

  .content {
    width: 100%;
    padding-right: 0;
    padding-left: 0;
  }

  .field-nav {
    gap: 0.65rem 1rem;
  }

  .project-grid {
    grid-template-columns: 100%;
    gap: 1rem;
  }

  .project-card {
    width: 100%;
    min-height: 18rem;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .project-card__image-frame {
    aspect-ratio: 16 / 8;
  }

  .project-card__body {
    min-height: 0;
    padding: 1rem 1.25rem;
  }

  .project-card__field {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .project-card__title {
    font-size: 1.3rem;
  }

  .project-card__description {
    font-size: 0.78rem;
    line-height: 1.5;
    -webkit-line-clamp: 3;
  }

  .article-page {
    padding: 3rem 1.25rem 4rem;
  }

  .article-hero {
    gap: 2rem;
    grid-template-columns: 100%;
  }

  .article-hero__title {
    font-size: clamp(3.1rem, 17vw, 5rem);
  }

  .article-hero__image {
    border-radius: 0.5rem;
  }

  .article-body {
    margin-top: 3rem;
  }

  .article-body p {
    font-size: 0.9rem;
    line-height: 1.75;
  }

  .character-gallery {
    grid-template-columns: 100%;
  }
}
