/* The Daily Edit — standalone styles */

:root {
  --brand: oklch(0.87 0.18 95);
  --ink: oklch(0.12 0.01 80);
  --paper: oklch(0.99 0.005 90);
  --soft: #e5e5e5;
  --highlight: #ffd600;
  --font-display: "Italiana", serif;
  --font-mono: "Space Mono", monospace;
  --font-sans: "Figtree", sans-serif;
}

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

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
}

/* ---------- Stage & backgrounds ---------- */

.stage {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.slide-bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s;
}

.slide-bg.active { opacity: 1; }

.slide-bg img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.slide-bg.active img { animation: kenburns 7s ease-out forwards; }

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    color-mix(in oklch, var(--ink) 60%, transparent),
    color-mix(in oklch, var(--ink) 10%, transparent),
    color-mix(in oklch, var(--ink) 50%, transparent));
}

/* ---------- Logo ---------- */

.logo {
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  z-index: 10;
}

.logo img { height: 1.75rem; width: auto; display: block; }

/* ---------- Follow links ---------- */

.follow-mobile {
  position: absolute;
  right: 1.5rem;
  top: 1.75rem;
  z-index: 20;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--soft);
}

.follow-desktop {
  display: none;
  position: absolute;
  right: -2.5rem;
  top: 50%;
  z-index: 20;
  transform: translateY(-50%) rotate(90deg);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--soft);
  white-space: nowrap;
}

.follow-mobile a,
.follow-desktop a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.follow-mobile a:hover,
.follow-mobile a:active,
.follow-desktop a:hover { color: var(--highlight); }

/* ---------- Content ---------- */

.content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 0 1.5rem;
}

.caption {
  max-width: 20rem;
}

.cat {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--brand);
}

.title {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  letter-spacing: 0.05em;
  font-weight: 400;
}

.text {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.625;
  opacity: 0.85;
}

.cta {
  display: inline-block;
  margin-top: 1.5rem;
  border-bottom: 2px solid var(--brand);
  padding-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5em;
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.cta:hover { color: var(--brand); }

.bigword {
  order: -1;
  margin-bottom: 2.5rem;
  text-align: left;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6em;
  opacity: 0.8;
}

.bigword h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22vw;
  line-height: 0.85;
}

.bigword h1 span { display: block; }

/* ---------- Magnetic Next button ---------- */

.next-wrap {
  display: none;
  position: absolute;
  bottom: 5rem;
  right: 5rem;
  z-index: 20;
  padding: 3rem;
}

.next-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 7rem;
  width: 7rem;
  border-radius: 9999px;
  border: 1px solid var(--brand);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  cursor: pointer;
  transition: transform 700ms cubic-bezier(.2,.9,.3,1.4), background-color 300ms, color 300ms;
}

.next-btn:hover {
  background: var(--brand);
  color: var(--ink);
}

/* ---------- Progress bars ---------- */

.progress {
  position: absolute;
  bottom: 2rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.progress button {
  flex: 1;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  opacity: 0.8;
}

.track {
  display: block;
  margin-top: 0.5rem;
  height: 1px;
  width: 100%;
  background: color-mix(in oklch, var(--paper) 30%, transparent);
}

.fill {
  display: block;
  height: 1px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
}

.fill.done { transform: scaleX(1); }
.fill.running { animation: progress 7s linear forwards; }

/* ---------- Animations ---------- */

@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.rise { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }

/* ---------- Desktop ---------- */

@media (min-width: 768px) {
  .logo { left: 6rem; top: 5rem; }
  .logo img { height: 2.25rem; }

  .follow-mobile { display: none; }
  .follow-desktop { display: block; }

  .content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 6rem;
  }

  .caption { margin-top: 16rem; }

  .bigword {
    order: 0;
    margin-bottom: 0;
    text-align: right;
  }

  .bigword h1 { font-size: 13vw; }

  .next-wrap { display: block; }

  .progress { left: 6rem; right: 6rem; }
}
