:root {
  --ink: #12141a;
  --ink-soft: #1c212b;
  --fog: #c8cdd8;
  --paper: #ece7de;
  --paper-dim: #b9b3a6;
  --ember: #7eb8a8;
  --line: rgba(236, 231, 222, 0.14);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --max: 42rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  background:
    radial-gradient(120% 80% at 10% -10%, rgba(126, 184, 168, 0.14), transparent 55%),
    radial-gradient(90% 60% at 100% 0%, rgba(90, 120, 160, 0.16), transparent 50%),
    linear-gradient(180deg, var(--ink) 0%, #0d0f14 100%);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--paper);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

a:hover,
a:focus-visible {
  color: var(--ember);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 20;
  padding: 0.5rem 0.75rem;
  background: var(--paper);
  color: var(--ink);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: relative;
  z-index: 2;
}

.announce {
  margin: 0;
  padding: 0.7rem var(--pad);
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fog);
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--line);
  animation: announce-in 0.9s ease both;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: -12% 0;
  z-index: -1;
  will-change: transform;
  transform: translate3d(0, 0, 0) scale(1.08);
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(18, 20, 26, 0.35) 0%,
      rgba(18, 20, 26, 0.55) 45%,
      rgba(18, 20, 26, 0.92) 78%,
      var(--ink) 100%
    ),
    linear-gradient(115deg, rgba(18, 20, 26, 0.45), transparent 50%);
  pointer-events: none;
}

.hero__content {
  width: min(100%, 52rem);
  padding: clamp(4rem, 12vh, 7rem) var(--pad) clamp(3rem, 8vh, 5rem);
  animation: rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__brand {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.hero__headline {
  margin: 0 0 1rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--fog);
}

.hero__lede {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  color: var(--paper-dim);
  font-size: 1.05rem;
}

.hero__cta a {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(3.5rem, 9vh, 6rem) var(--pad);
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.15rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.section p {
  margin: 0 0 1rem;
  color: var(--fog);
}

.section p:last-child {
  margin-bottom: 0;
}

.pub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.pub-list li {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.pub-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pub-title,
.pub-list a {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.pub-list a:hover,
.pub-list a:focus-visible {
  color: var(--ember);
  border-bottom-color: currentColor;
}

.pub-list span {
  color: var(--paper-dim);
  font-size: 0.95rem;
}

.feature h2 {
  max-width: 28ch;
}

.screenplays article + article {
  margin-top: 2rem;
}

.about__bio {
  font-size: 1.1rem;
  color: var(--fog);
}

.about__bio strong {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--paper);
}

.contact__mail {
  margin-top: 1.5rem;
  color: var(--paper-dim);
  font-size: 0.95rem;
}

.site-footer {
  padding: 2rem var(--pad) 3rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--paper-dim);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes announce-in {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .announce,
  .hero__content,
  .hero__media,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero__media {
    inset: 0;
    will-change: auto;
  }
}
