:root {
  --bg: #0e1018;
  --bg-2: #171b2a;
  --ink: #f6f0e8;
  --muted: #c4b8ab;
  --card: rgba(255, 255, 255, 0.96);
  --card-ink: #1f2329;
  --gold: #ffdc21;
  --gold-ink: #241800;
  --magenta: #e84a7a;
  --violet: #7b3fa8;
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.public-page {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  background:
    radial-gradient(circle at 12% 0%, rgba(232, 74, 122, 0.22), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(255, 157, 61, 0.22), transparent 30%),
    linear-gradient(145deg, #11131b 0%, #171b2a 42%, #211224 72%, #0e1018 100%);
  background-attachment: fixed;
}

a {
  color: inherit;
}

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

.site-header,
.hero,
.author-hero,
.projects-section,
.about-strip,
.about-page,
.project-page,
.site-footer {
  width: min(1320px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 8px;
}

.site-brand img {
  height: 80px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: screen;
}

.site-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  color: #fff8ef;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  background: var(--gold);
  color: var(--gold-ink);
  border-color: rgba(235, 178, 0, 0.58);
}

.nav-toggle-input {
  display: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  gap: 5px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.7fr);
  gap: 42px;
  align-items: center;
  padding: 42px 0 20px;
}

.author-hero {
  margin: 12px auto 20px;
}

.author-slider {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 476px;
  border-radius: 28px;
  overflow: hidden;
  background: #140f16;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.author-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(14, 8, 18, 0.92) 0%,
    rgba(14, 8, 18, 0.62) 38%,
    rgba(14, 8, 18, 0.18) 68%,
    transparent 100%
  );
}

.author-slider-track {
  position: absolute;
  inset: 0;
}

.author-slider-track img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 700ms ease;
}

.author-slider-track img.is-active {
  opacity: 1;
}

.author-slider-dots {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 8px;
}

.author-slider-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.author-slider-dots button.is-active {
  width: 28px;
  background: var(--gold);
}

.eyebrow {
  margin: 0 0 10px;
  color: #ffc3d6;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-head h1,
.section-head h2,
.about-strip h1,
.about-strip h2,
.about-page h1,
.project-hero-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

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

.author-name {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero-lead,
.section-head p,
.about-strip p {
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.6;
}

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

.primary-btn,
.ghost-btn,
.project-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 16px;
  font-weight: 900;
  text-decoration: none;
}

.primary-btn {
  background: var(--gold);
  color: var(--gold-ink);
  box-shadow: 0 12px 22px rgba(255, 190, 20, 0.24);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-photo {
  margin: 0;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.author-overlay {
  position: relative;
  z-index: 2;
  max-width: 48rem;
  padding: 48px 44px 56px;
}

.author-overlay .eyebrow {
  color: var(--gold);
}

.author-overlay .author-name {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.author-overlay .hero-lead,
.author-overlay p {
  color: rgba(255, 255, 255, 0.92);
}

.author-overlay .hero-lead {
  margin: 0 0 14px;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.45;
}

.author-overlay p {
  margin: 0;
  max-width: 46rem;
  line-height: 1.65;
}

.author-overlay .hero-actions {
  margin-top: 20px;
  align-items: center;
}

.author-overlay .text-link {
  margin-top: 0;
}

.author-overlay .ghost-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.projects-section {
  padding: 28px 0 24px;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h1,
.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

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

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  min-width: 0;
  padding: 18px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #161018;
  color: #fff8ef;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.4);
}

.project-card-media {
  position: absolute;
  inset: 0;
}

.project-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 7, 12, 0.18) 20%, rgba(8, 7, 12, 0.88) 78%);
}

.project-card-media img,
.project-card-media span {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-media span {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #231f20, #563a22);
  color: var(--gold);
  font-size: 5rem;
  font-weight: 950;
}

.project-card-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 48px 4px 0;
}

.project-card-copy h2 {
  margin: 0;
  color: #fff8ef;
  font-size: clamp(1.35rem, 1.8vw, 1.85rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.project-card .project-card-tagline,
.project-card .project-card-excerpt {
  color: #eadfcf;
}

.project-card .project-card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card .project-card-meta small {
  color: var(--gold);
}

.project-card .project-more {
  background: var(--gold);
  color: var(--gold-ink);
}

.project-card-poster {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  aspect-ratio: 3 / 4;
  align-self: start;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, #231f20, #563a22);
  color: var(--gold);
  font-size: 4rem;
  font-weight: 950;
}

.project-card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.project-kind {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 220, 56, 0.34);
  color: #765013;
  font-size: 0.82rem;
  font-weight: 900;
}

.project-card-meta small {
  color: #667085;
  font-weight: 800;
}

.project-card-tagline {
  margin: 0;
  color: #444;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}

.project-card-excerpt {
  margin: 0;
  color: #606778;
  line-height: 1.5;
}

.project-more {
  width: fit-content;
  margin-top: auto;
  background: #21112f;
  color: #fff;
}

.about-strip {
  margin: 12px auto 12px;
  padding: 28px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.about-strip h1,
.about-strip h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
}

.text-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--gold);
  font-weight: 900;
}

.about-page,
.project-page {
  padding: 28px 0 48px;
}

.about-hero,
.project-hero {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.about-hero .hero-photo img,
.project-hero-poster img,
.project-hero-poster span {
  width: 100%;
  border-radius: 28px;
}

.project-hero-poster {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 28px;
  background: #1b1420;
  min-height: 420px;
}

.project-hero-poster img {
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.project-hero-copy .project-card-meta small {
  color: var(--muted);
}

.project-hero-copy h1 {
  color: var(--ink);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.project-hero-copy .rich-text {
  margin-top: 8px;
}

.project-hero-copy .project-card-tagline {
  color: var(--muted);
  font-size: 1.25rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.rich-text {
  max-width: 760px;
  color: #efe6dc;
  font-size: 1.08rem;
  line-height: 1.7;
}

.project-body {
  margin: 36px auto 12px;
}

.rich-text p,
.rich-text blockquote {
  margin: 0 0 1.1em;
}

.rich-text blockquote {
  padding: 16px 18px;
  border-left: 4px solid var(--magenta);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 16px 16px 0;
  font-style: italic;
}

.project-music {
  width: min(760px, 100%);
  margin: 12px auto 40px;
}

.project-music iframe {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: 18px;
  background: #111;
}

.about-project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-project-links a {
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--card);
  color: var(--card-ink);
  font-weight: 800;
  text-decoration: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0 48px;
  color: var(--muted);
}

.site-footer-brand {
  display: grid;
  gap: 4px;
}

.site-footer a {
  color: #fff8ef;
  font-weight: 800;
  text-decoration: none;
}

.site-footer-contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 24px;
}

.site-footer-logo img {
  height: 64px;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.empty-note {
  grid-column: 1 / -1;
  padding: 36px;
  border-radius: 22px;
  background: rgba(255, 243, 219, 0.72);
  color: #6b5b46;
  font-weight: 900;
  text-align: center;
}

@media (max-width: 900px) {
  .hero,
  .about-hero,
  .project-hero {
    grid-template-columns: 1fr;
  }

  .author-slider {
    min-height: 294px;
    border-radius: 22px;
  }

  .author-overlay {
    padding: 28px 20px 52px;
  }

  .author-overlay .author-name {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }

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

  .project-card {
    min-height: 260px;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 110px;
    right: 20px;
    left: 20px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(17, 19, 27, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-toggle-input:checked ~ .site-nav {
    display: grid;
  }

  .site-header {
    position: relative;
  }

  .hero h1 {
    font-size: 2.2rem;
  }
}
