/* ============================================================
   Anna Danilova — annadanilova.com
   Off-white, Montserrat, air between sections.
   ============================================================ */

:root {
  --bg: #faf8f5;
  --ink: #1a1918;
  --muted: #6f6a63;
  --faint: #a39d94;
  --hairline: #e6e1d9;
  --card: #ffffff;
  --max: 680px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  overflow-x: clip;
  font-family: "Montserrat", -apple-system, "Helvetica Neue", sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  transition: background .4s ease, box-shadow .4s ease, padding .4s ease;
}

.site-header.scrolled {
  background: rgba(250, 248, 245, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--hairline);
  padding: 14px 40px;
}

.wordmark {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  transition: color .4s ease;
}

.site-nav a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, .85);
  margin-left: 28px;
  transition: color .3s ease;
}

.site-nav a:hover { color: #fff; }

.site-header.scrolled .wordmark { color: var(--ink); }
.site-header.scrolled .site-nav a { color: var(--muted); }
.site-header.scrolled .site-nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(20, 16, 12, .62) 0%, rgba(20, 16, 12, .18) 38%, rgba(20, 16, 12, 0) 62%),
    linear-gradient(to bottom, rgba(20, 16, 12, .30) 0%, rgba(20, 16, 12, 0) 22%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 0 40px 9vh;
  max-width: 720px;
}

.hero .eyebrow { color: rgba(255, 255, 255, .75); }

.hero h1 {
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: .01em;
  margin: 18px 0 22px;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 300;
  max-width: 30em;
  color: rgba(255, 255, 255, .92);
}

.hero-cta { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- shared type ---------- */

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--faint);
}

h2 {
  font-size: clamp(30px, 4.4vw, 42px);
  font-weight: 300;
  line-height: 1.15;
  margin: 26px 0 6px;
}

.meta {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 26px;
}

.body-text {
  font-size: 16.5px;
  font-weight: 300;
  color: #3c3934;
  margin-bottom: 22px;
  max-width: 36em;
}

/* ---------- buttons & links ---------- */

.btn {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .3s ease;
}

.btn-solid { background: #fff; color: var(--ink); border-color: #fff; }
.btn-solid:hover { background: transparent; color: #fff; }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* solid buttons on light background (form) */
.subscribe-card .btn-solid {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.subscribe-card .btn-solid:hover { background: transparent; color: var(--ink); }

.link-row { display: flex; gap: 28px; flex-wrap: wrap; }

.text-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  transition: color .3s ease, border-color .3s ease;
}

.text-link:hover { color: var(--faint); border-color: var(--faint); }

/* ---------- sections ---------- */

.section { padding: 120px 0; }

.section-line { border-top: 1px solid var(--hairline); }

/* covers */
.cover { margin: 34px 0 44px; }

.cover img {
  box-shadow: 0 30px 60px -18px rgba(60, 50, 38, .28);
}

.cover-square { max-width: 460px; }
.cover-book { max-width: 360px; }

.embed-spotify { margin: 34px 0 30px; max-width: 620px; }

/* film */
.film-frame {
  position: relative;
  margin-top: 40px;
  border: 1px solid var(--hairline);
  background: #0d0c0b;
}

.film-frame img { width: 100%; opacity: .96; }

.film-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.film-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 24px;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  background: linear-gradient(to top, rgba(10, 8, 6, .55), rgba(10, 8, 6, 0));
}

/* essays */
.essay-list {
  list-style: none;
  margin: 44px 0 56px;
  border-top: 1px solid var(--hairline);
}

.essay-list li { border-bottom: 1px solid var(--hairline); }

.essay-row {
  display: flex;
  align-items: baseline;
  gap: 22px;
  width: 100%;
  padding: 20px 4px;
  background: none;
  border: 0;
  font-family: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: color .3s ease;
}

.essay-row:hover { color: var(--faint); }

.essay.locked .essay-row { color: var(--faint); cursor: default; }

.essay-list .num {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--faint);
  min-width: 24px;
}

.essay-list .essay-title { font-size: 17px; font-weight: 300; flex: 1; }

.essay-list .date {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

/* thin "+" that becomes "×" when open */
.toggle {
  position: relative;
  width: 12px;
  height: 12px;
  flex: none;
  align-self: center;
  transition: transform .45s ease, opacity .3s ease;
}
.toggle::before, .toggle::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.toggle::before { left: 0; right: 0; top: 5.5px; height: 1px; }
.toggle::after { top: 0; bottom: 0; left: 5.5px; width: 1px; }
.essay.open .toggle { transform: rotate(45deg); }
.essay.locked .toggle { opacity: 0; }

.essay-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .6s ease;
}

.essay-panel-inner { padding: 8px 4px 40px 46px; }

.essay-panel-inner p {
  font-family: "EB Garamond", Georgia, serif;
  font-size: 18.5px;
  line-height: 1.72;
  color: #3c3934;
  max-width: 34em;
  margin-bottom: 14px;
}

.essay-panel-inner .essay-sub {
  font-style: italic;
  color: var(--faint);
  margin-bottom: 22px;
}

.essay-more {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* subscribe */
.subscribe-card {
  border: 1px solid var(--hairline);
  background: var(--card);
  padding: 40px;
}

.subscribe-lead { font-size: 16px; font-weight: 300; margin-bottom: 24px; }
.subscribe-lead strong { font-weight: 500; }

.subscribe-form { display: flex; gap: 12px; flex-wrap: wrap; }

.subscribe-form input {
  flex: 1;
  min-width: 220px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 300;
  padding: 14px 18px;
  border: 1px solid var(--hairline);
  background: var(--bg);
  color: var(--ink);
  outline: none;
  transition: border-color .3s ease;
}

.subscribe-form input:focus { border-color: var(--faint); }

.subscribe-note {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 300;
  color: var(--faint);
}

/* about */
.about-portrait {
  max-width: 440px;
  margin: 38px 0 40px;
}

.about-portrait img {
  box-shadow: 0 30px 60px -18px rgba(60, 50, 38, .28);
}

.signature {
  margin-top: 40px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 72px 0 84px;
}

.footer-wordmark {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.site-footer .link-row { margin-bottom: 34px; }

.footer-fine { font-size: 12.5px; font-weight: 300; color: var(--faint); }

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s ease, transform .9s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- mobile ---------- */

@media (max-width: 640px) {
  .site-header, .site-header.scrolled { padding: 14px 16px; }
  .wordmark { letter-spacing: .14em; font-size: 11px; }
  .site-nav a { margin-left: 11px; font-size: 10px; letter-spacing: .08em; }

  .hero-content { padding: 0 24px 10vh; }
  .section { padding: 84px 0; }
  .subscribe-card { padding: 28px 22px; }
  .subscribe-form .btn { width: 100%; text-align: center; }
  .essay-panel-inner { padding-left: 4px; }
}
