:root {
  --paper: #FBEAA9;
  --paper-deep: #f7df83;
  --ink: #36110f;
  --muted: #78433f;
  --burgundy: #BC433D;
  --burgundy-dark: #5d1714;
  --red: #BC433D;
  --rose: #f6d6c8;
  --green: #6c2a26;
  --green-soft: #fff4c7;
  --gold: #FBEAA9;
  --white: #fff;
  --line: rgba(188, 67, 61, 0.28);
  --shadow: 0 20px 60px rgba(93, 23, 20, 0.18);
  --content: min(1120px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--content);
  margin: 18px auto 0;
  padding: 10px 12px;
  color: var(--white);
  background: rgba(188, 67, 61, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  width: 86px;
  padding: 2px 4px;
}

.brand-mark img,
.footer img {
  filter: brightness(0) invert(1);
}

.site-header nav {
  display: flex;
  gap: clamp(8px, 2vw, 22px);
  align-items: center;
  margin-left: auto;
}

.site-header nav a {
  padding: 8px 9px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.site-header nav a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.language-switch {
  display: flex;
  gap: 4px;
  margin-left: 12px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.language-switch button {
  min-width: 38px;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  background: var(--white);
  color: var(--burgundy);
}

.hero {
  position: relative;
  min-height: 94vh;
  overflow: hidden;
  color: var(--white);
  background: var(--burgundy-dark);
}

.hero__media {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(93, 23, 20, 0.92) 0%, rgba(188, 67, 61, 0.62) 42%, rgba(188, 67, 61, 0.28) 100%),
    url("assets/hero-collage.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: var(--content);
  min-height: 86vh;
  margin: 0 auto;
  padding: 170px 0 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1120px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(5rem, 16vw, 13rem);
  line-height: 0.82;
  letter-spacing: 0;
}

.hero__lede {
  max-width: 650px;
  margin: 28px 0 0;
  font-size: clamp(1.18rem, 2.6vw, 2rem);
  font-weight: 650;
  line-height: 1.18;
}

.hero__actions,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--burgundy);
  color: var(--white);
  font-weight: 850;
  text-decoration: none;
}

.button:hover {
  background: var(--red);
}

.button--light {
  background: var(--white);
  color: var(--burgundy);
}

.button--light:hover {
  background: var(--rose);
  color: var(--burgundy-dark);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

.button--muted {
  border-color: var(--line);
  background: var(--green);
}

.hero__peek {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 2;
  width: var(--content);
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
  text-transform: uppercase;
}

.section {
  width: var(--content);
  margin: 0 auto;
  padding: 92px 0;
}

section[id],
.feed {
  scroll-margin-top: 112px;
}

.section__heading {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(240px, 0.44fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 36px;
}

.section__heading h2 {
  margin: 0;
  max-width: 820px;
  color: var(--burgundy-dark);
  font-size: clamp(2.05rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.mission {
  width: 100%;
  padding-inline: max(20px, calc((100vw - 1120px) / 2));
}

.mission__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.76fr);
  gap: 48px;
  align-items: start;
}

.mission__intro h2 {
  margin: 0;
  max-width: 720px;
  color: var(--burgundy);
  font-size: clamp(2.1rem, 5.6vw, 5rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.mission__body {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.mission__body h3 {
  margin: 0 0 18px;
  color: var(--burgundy-dark);
  font-size: clamp(1.45rem, 3vw, 2.5rem);
  line-height: 1;
}

.mission__body p,
.mission-points p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.mission__body p + p {
  margin-top: 16px;
}

.mission-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.mission-points article {
  min-height: 100%;
  padding: 22px;
  border-radius: 8px;
  background: var(--burgundy);
  color: var(--white);
}

.mission-points span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--burgundy);
  font-weight: 950;
}

.mission-points p {
  color: var(--white);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.video-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 38px rgba(93, 23, 20, 0.08);
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 680px;
  background: var(--burgundy);
  object-fit: cover;
}

.video-card figcaption {
  min-height: 64px;
  padding: 14px 16px 16px;
  color: var(--muted);
  font-weight: 800;
}

.section--ink {
  width: 100%;
  padding-inline: max(20px, calc((100vw - 1120px) / 2));
  background: var(--burgundy);
  color: var(--white);
}

.section--ink .section__heading h2,
.section--ink .kit__copy {
  color: var(--white);
}

.kit__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 34px;
  align-items: center;
}

.package-shot {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0;
  overflow: hidden;
  background: transparent;
}

.package-shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: center;
}

.kit__copy {
  font-size: 1.06rem;
}

.kit__copy p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.86);
}

.manual-book {
  max-width: 620px;
  margin: 0 auto;
}

.book-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 620px;
  padding: 32px clamp(52px, 7vw, 76px);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(188, 67, 61, 0.12), rgba(255, 255, 255, 0) 24% 76%, rgba(188, 67, 61, 0.12)),
    var(--white);
  box-shadow: var(--shadow);
  perspective: 1400px;
}

.book-page {
  width: min(100%, 421px);
  transform-origin: left center;
  transition: transform 280ms ease, opacity 220ms ease;
}

.book-page.is-turning {
  opacity: 0.28;
  transform: rotateY(-16deg) translateX(14px);
}

.book-page img {
  width: 100%;
  aspect-ratio: 421 / 595;
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 18px 38px rgba(93, 23, 20, 0.16);
  object-fit: contain;
}

.book-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 62px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--burgundy);
  color: var(--white);
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.book-nav:hover {
  background: var(--burgundy-dark);
}

.book-nav--prev {
  left: 18px;
}

.book-nav--next {
  right: 18px;
}

.book-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}

.book-counter {
  color: var(--burgundy-dark);
  font-weight: 900;
}

.book-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.book-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(188, 67, 61, 0.32);
  cursor: pointer;
}

.book-dots button[aria-current="true"] {
  width: 28px;
  background: var(--burgundy);
}

.memory__image {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 42px rgba(93, 23, 20, 0.08);
  cursor: zoom-in;
}

.memory__image:hover,
.collection-card__image:hover {
  transform: translateY(-2px);
}

.section--paper {
  width: 100%;
  padding-inline: max(20px, calc((100vw - 1120px) / 2));
  background: var(--white);
}

.feed__layout {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.phone-frame {
  position: relative;
  margin: 0;
  max-height: 820px;
  overflow: auto;
  border: 10px solid var(--ink);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.phone-frame img {
  width: 100%;
}

.feed__copy {
  position: sticky;
  top: 110px;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.5rem);
  line-height: 1.35;
}

.feed__copy p {
  margin: 0 0 20px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.collection-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 38px rgba(93, 23, 20, 0.08);
}

.collection-card__image {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.collection-card__image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.collection-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.collection-card h3 {
  margin: 0;
  color: var(--burgundy-dark);
  font-size: 1.24rem;
  line-height: 1.1;
}

.collection-card p {
  margin: 10px 0 18px;
  color: var(--muted);
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: auto;
}

.thumb-row button {
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 6px;
  background: var(--paper);
  cursor: pointer;
}

.thumb-row button[aria-current="true"] {
  border-color: var(--red);
}

.thumb-row img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.section--red {
  width: 100%;
  padding-inline: max(20px, calc((100vw - 1120px) / 2));
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 420px);
  gap: 44px;
  align-items: center;
  background: var(--red);
  color: var(--white);
}

.memory__text h2 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(2.3rem, 6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.memory__text p:last-child {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.14rem;
}

.memory__image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px max(20px, calc((100vw - 1120px) / 2));
  background: var(--burgundy);
  color: rgba(255, 255, 255, 0.82);
}

.footer img {
  width: 100px;
}

.footer p {
  margin: 0;
  text-align: right;
}

.lightbox {
  width: min(94vw, 1240px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(93, 23, 20, 0.82);
  backdrop-filter: blur(8px);
}

.lightbox img {
  width: 100%;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 8px;
  background: var(--white);
}

.lightbox__close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(188, 67, 61, 0.9);
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 900px) {
  .site-header {
    width: calc(100vw - 24px);
    margin-top: 12px;
  }

  .site-header nav {
    gap: 2px;
  }

  .site-header nav a {
    font-size: 0.78rem;
    padding-inline: 7px;
  }

  .language-switch {
    margin-left: 8px;
  }

  .language-switch button {
    min-width: 34px;
  }

  .brand-mark {
    width: 72px;
  }

  .hero__content {
    min-height: 82vh;
    padding-top: 132px;
  }

  .section {
    padding-block: 64px;
  }

  .section__heading,
  .mission__layout,
  .kit__layout,
  .feed__layout,
  .section--red {
    grid-template-columns: 1fr;
  }

  .mission-points,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .video-card video {
    max-height: none;
  }

  .manual-book {
    max-width: 520px;
  }

  .book-stage {
    min-height: auto;
    padding: 24px 56px;
  }

  .book-nav {
    width: 38px;
    height: 54px;
  }

  .book-nav--prev {
    left: 10px;
  }

  .book-nav--next {
    right: 10px;
  }

  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feed__copy {
    position: static;
  }

  .phone-frame {
    max-height: 620px;
  }
}

@media (max-width: 620px) {
  :root {
    --content: min(100vw - 24px, 1120px);
  }

  .site-header {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-areas:
      "brand lang"
      "nav nav";
    row-gap: 8px;
    align-items: center;
  }

  .brand-mark {
    grid-area: brand;
  }

  .site-header nav {
    grid-area: nav;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    max-width: none;
  }

  .language-switch {
    grid-area: lang;
    justify-self: end;
    margin-left: 6px;
  }

  .language-switch button {
    min-width: 30px;
    min-height: 30px;
    font-size: 0.72rem;
  }

  .hero__media {
    background-image:
      linear-gradient(180deg, rgba(93, 23, 20, 0.88) 0%, rgba(188, 67, 61, 0.7) 58%, rgba(188, 67, 61, 0.36) 100%),
      url("assets/hero-collage.jpg");
  }

  .hero h1 {
    font-size: clamp(4.6rem, 25vw, 7.5rem);
  }

  .hero__lede {
    font-size: 1.12rem;
  }

  .mission-points,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .section__heading h2,
  .mission__intro h2,
  .memory__text h2 {
    font-size: clamp(2rem, 13vw, 3.5rem);
  }

  .mission__intro h2 {
    font-size: clamp(2rem, calc(13vw - 3px), 3.5rem);
  }

  .mission__body {
    padding: 20px;
  }

  .book-stage {
    padding: 18px 46px;
  }

  .book-nav {
    width: 34px;
    height: 48px;
    font-size: 2.2rem;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer p {
    text-align: left;
  }
}

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

  .memory__image:hover,
  .collection-card__image:hover {
    transform: none;
  }

  .book-page,
  .book-page.is-turning {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
