:root {
  --ground: #e6e2d8;
  --ink: #18181b;
  --emerald: #059669;
  --mute: #3f3f46;
  --chalk: #f7f5ee;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --ui: "Space Grotesk", ui-sans-serif, sans-serif;
  --shadow: 0 18px 40px rgba(24, 24, 27, 0.12), 0 3px 10px rgba(24, 24, 27, 0.06);
  --glow: 0 0 0 1px rgba(5, 150, 105, 0.42), 0 0 42px rgba(5, 150, 105, 0.3),
    0 18px 40px rgba(24, 24, 27, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  background: var(--ground);
  color-scheme: light;
}

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 1.125rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

.skip {
  position: absolute;
  left: 0.8rem;
  top: -3rem;
  z-index: 40;
  padding: 0.4rem 0.7rem;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 0.9rem;
  text-decoration: none;
}

.skip:focus {
  top: 0.8rem;
}

.top {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 68rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  padding-top: calc(1rem + env(safe-area-inset-top));
}

.mark {
  margin: 0;
  font-family: var(--ui);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.45rem 0.95rem;
  border-radius: 3px;
  background: var(--emerald);
  color: var(--chalk);
  font-family: var(--ui);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.cta:focus-visible,
.object-btn:focus-visible,
.sheet-x:focus-visible,
.skip:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
}

.hero {
  min-height: calc(100svh - 4.5rem);
}

.hero .object-btn {
  display: block;
  width: 100%;
  height: calc(100svh - 4.5rem);
}

.hero .object-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.copy {
  max-width: 38rem;
  margin: 0 auto;
  padding: 2.8rem 1.25rem 0;
}

.kicker {
  margin: 0 0 0.45rem;
  font-family: var(--ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

h1 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(2.15rem, 7.4vw, 4.05rem);
  font-weight: 600;
  letter-spacing: -0.034em;
  line-height: 1.06;
}

.lead {
  margin: 0 0 1.15rem;
  max-width: 32rem;
  font-size: clamp(1.12rem, 2.2vw, 1.32rem);
  line-height: 1.45;
}

.aside {
  margin: 0;
  max-width: 30rem;
  font-family: var(--ui);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--mute);
}

.object-btn {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.week-label {
  margin: 0.85rem 0 0;
  font-family: var(--ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

.still {
  max-width: 36rem;
  margin: 3.2rem auto 0;
  padding: 0 1.25rem;
}

.still + .still {
  margin-top: 2.2rem;
}

.still img {
  width: 100%;
  box-shadow: var(--shadow);
}

.founder {
  max-width: 32rem;
  margin: 4.4rem auto 0;
  padding: 0 1.25rem;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  line-height: 1.4;
}

.foot {
  max-width: 38rem;
  margin: 0 auto;
  padding: 3.4rem 1.25rem calc(2.4rem + env(safe-area-inset-bottom));
  font-family: var(--ui);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--mute);
}

.foot a {
  color: var(--mute);
}

.sheet[hidden] {
  display: none;
}

.sheet:not([hidden]) {
  display: block;
}

.sheet-scrim {
  position: fixed;
  inset: 0;
  z-index: 30;
  border: 0;
  background: rgba(24, 24, 27, 0.28);
  cursor: pointer;
}

.sheet-panel {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 40;
  width: min(28rem, 100%);
  max-height: min(92vh, 36rem);
  overflow: auto;
  padding: 1.5rem 1.3rem calc(1.5rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: var(--ground);
  box-shadow: 0 -18px 40px rgba(24, 24, 27, 0.12);
}

.sheet-x {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--mute);
  font-family: var(--ui);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.sheet-panel .week-label {
  margin-top: 0.15rem;
  padding-right: 2.6rem;
}

.sheet-art {
  width: min(16rem, 100%);
  margin: 0.9rem auto 0;
}

.next {
  margin: 1.15rem 0 0;
  font-family: var(--ui);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.line,
.note {
  margin: 0.4rem 0 0;
  max-width: 22rem;
}

.note {
  color: var(--mute);
}

.days {
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

.days li {
  display: inline;
}

.days li + li::before {
  content: " ";
}

body.is-sheet {
  overflow: hidden;
}

@media (min-width: 860px) {
  .top {
    padding: 1.25rem 2rem;
  }

  .copy {
    padding: 3.6rem 2rem 0;
  }

  .still {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .still {
    margin-top: 4.2rem;
  }

  .founder {
    margin-top: 5rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .foot {
    padding: 4rem 2rem 3rem;
  }

  .sheet-panel {
    top: 50%;
    bottom: auto;
    width: min(30rem, calc(100vw - 3rem));
    max-height: min(88vh, 50rem);
    padding: 1.7rem 1.6rem 1.7rem;
    transform: translate(-50%, -50%);
    box-shadow: var(--shadow);
  }
}

@media (hover: hover) and (pointer: fine) {
  .object-btn img {
    transition: box-shadow 0.35s ease;
  }

  .object-btn:hover img {
    box-shadow: var(--glow);
  }
}

@media (prefers-reduced-motion: reduce) {
  .object-btn img,
  .sheet-scrim,
  .sheet-panel {
    transition: none;
    animation: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .sheet:not([hidden]) .sheet-scrim {
    animation: fade 0.28s ease;
  }

  .sheet:not([hidden]) .sheet-panel {
    animation: rise 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes rise {
  from {
    opacity: 0.45;
    transform: translate(-50%, 12%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (min-width: 860px) and (prefers-reduced-motion: no-preference) {
  @keyframes rise {
    from {
      opacity: 0.45;
      transform: translate(-50%, calc(-50% + 18px));
    }
    to {
      opacity: 1;
      transform: translate(-50%, -50%);
    }
  }
}
