@font-face {
  font-family: "Alegreya Local";
  src: url("./assets/fonts/Alegreya-Regular.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Alegreya Local";
  src: url("./assets/fonts/Alegreya-SemiBold.ttf") format("truetype");
  font-weight: 600;
}

@font-face {
  font-family: "Alegreya Local";
  src: url("./assets/fonts/Alegreya-Bold.ttf") format("truetype");
  font-weight: 700;
}

@font-face {
  font-family: "Perandory";
  src: url("./assets/fonts/Perandory-Regular.otf") format("opentype");
  font-weight: 400;
}

@font-face {
  font-family: "Trattatello Local";
  src: url("./assets/fonts/Trattatello.ttf") format("truetype");
  font-weight: 400;
}

:root {
  color-scheme: light;
  --paper: #fdfadd;
  --paper-deep: #f6efc8;
  --ink: #402410;
  --muted: #6d533c;
  --title: #e83c4d;
  --joy: #ee907b;
  --travel: #e6348b;
  --serenity: #1b7d3b;
  --line: rgba(64, 36, 16, 0.42);
  --shadow: 0 22px 60px rgba(38, 31, 23, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Alegreya Local", Georgia, serif;
  font-size: 16px;
  line-height: 1.35;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-nav {
  min-height: 86px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
  font-family: "Alegreya Local", Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--title);
}

.site-nav a {
  text-align: center;
  padding: 10px 4px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  border-color: currentColor;
}

.hero {
  min-height: 520px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(253, 250, 221, 0.42), rgba(253, 250, 221, 0.72)),
    url("./assets/hero-bg.jpg") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(253, 250, 221, 0.56);
  backdrop-filter: blur(1px);
}

.hero__inner {
  position: relative;
  width: min(760px, calc(100% - 44px));
  margin: 0 auto;
  text-align: center;
  padding-top: 42px;
}

.eyebrow {
  margin: 0 0 12px;
  font-family: "Alegreya Local", Georgia, serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(64, 36, 16, 0.82);
}

h1,
h2,
.small-title {
  margin: 0;
  text-transform: uppercase;
  font-family: "Perandory", "Alegreya Local", Georgia, serif;
  font-weight: 700;
  line-height: 0.94;
  color: var(--title);
}

h1 {
  font-family: "Perandory", "Alegreya Local", Georgia, serif;
  font-size: 45px;
}

.hero h1 {
  color: var(--ink);
}

.intro {
  width: min(540px, 100%);
  margin: 20px auto 0;
  font-family: "Alegreya Local", Georgia, serif;
  font-size: 16px;
  line-height: 1.58;
  color: rgba(64, 36, 16, 0.9);
}

.tiny-link {
  display: inline-block;
  margin-top: 18px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.script-logo {
  display: block;
  width: fit-content;
  margin: 52px auto 0;
  position: relative;
  min-width: 300px;
  color: #16120f;
}

.script-logo span {
  position: absolute;
  left: 24px;
  top: 42px;
  font-family: "Trattatello Local", "Great Vibes", cursive;
  font-size: 36px;
}

.script-logo strong {
  display: block;
  font-family: "Trattatello Local", "Great Vibes", cursive;
  font-size: 104px;
  font-weight: 400;
  line-height: 0.78;
}

.script-logo em {
  display: block;
  margin-top: -6px;
  margin-left: 172px;
  font-family: "Alegreya Local", Georgia, serif;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  text-transform: uppercase;
}

.brand-logo {
  display: block;
  width: min(330px, 84vw);
  height: auto;
  margin: 52px auto 0;
}

.brand-logo--hero {
  width: min(310px, 82vw);
  margin: 0 auto 24px;
}

.section-nav {
  min-height: 84px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
  gap: 14px;
  font-family: "Alegreya Local", Georgia, serif;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--title);
}

.section-nav a {
  text-align: center;
}

.section-nav--mid {
  margin-top: 84px;
}

main {
  overflow: hidden;
}

.page-shell {
  min-height: calc(100vh - 86px);
  padding: 10px 0 70px;
}

.top-mark {
  display: block;
  margin-top: 0;
}

.home-grid {
  width: min(920px, calc(100% - 42px));
  margin: 54px auto 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.home-card {
  min-height: 86px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px 18px 14px;
  border-top: 1px solid rgba(64, 36, 16, 0.28);
  text-align: center;
}

.home-card span {
  font-family: "Alegreya Local", Georgia, serif;
  font-size: 9px;
  font-weight: 700;
  color: var(--title);
}

.home-card h2 {
  font-size: 27px;
  line-height: 1.04;
}

.home-card p {
  margin: 0;
  font-family: "Alegreya Local", Georgia, serif;
  font-size: 10px;
  line-height: 1.5;
}

.home-letter-section {
  width: min(880px, calc(100% - 42px));
  margin: 38px auto 86px;
  text-align: center;
}

.home-letter-title {
  max-width: 760px;
  margin: 0 auto 28px;
  font-size: 34px;
  line-height: 1.18;
}

.home-letter-copy {
  max-width: 780px;
  margin: 0 auto;
}

.home-letter-copy p {
  margin: 0 auto 18px;
  font-family: "Alegreya Local", Georgia, serif;
  font-size: 16px;
  line-height: 1.62;
}

.home-letter-copy a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.split-section {
  width: min(980px, calc(100% - 42px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: 38px;
}

.copy-block {
  text-align: center;
}

.small-title {
  max-width: 430px;
  margin: 0 auto 24px;
  font-size: 27px;
}

.copy-block p:not(.small-title),
.center-section p,
.footer p,
.footer address {
  font-family: "Alegreya Local", Georgia, serif;
  font-size: 14px;
  line-height: 1.52;
}

.copy-block p:not(.small-title) {
  max-width: 460px;
  margin: 0 auto 16px;
}

.image-stack {
  display: grid;
  place-items: center;
}

.image-stack img {
  width: min(410px, 100%);
  height: auto;
  object-fit: contain;
  filter: none;
}

.image-caption {
  max-width: 430px;
  margin: 16px auto 0;
  font-family: "Alegreya Local", Georgia, serif;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.subscription-visual {
  width: min(720px, calc(100% - 42px));
  margin: 34px auto 0;
  display: grid;
  place-items: center;
}

.subscription-visual img {
  width: min(460px, 100%);
  height: auto;
  object-fit: contain;
}

.text-link {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.center-section {
  width: min(640px, calc(100% - 42px));
  margin: 58px auto 0;
  text-align: center;
}

.center-section h2,
.center-section h1,
.footer h1,
.footer h2 {
  margin: 0 0 18px;
  font-size: 32px;
}

.subscribe h2,
.subscribe h1,
.gift h2 {
  color: var(--title);
}

.center-section p {
  max-width: 760px;
  margin: 0 auto 20px;
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.pill-button {
  min-width: 205px;
  padding: 14px 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: "Alegreya Local", Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  background: rgba(253, 250, 221, 0.24);
}

.pill-button:hover {
  border-color: var(--title);
  color: var(--title);
}

.mini-mark {
  margin: 92px auto 0;
  display: block;
  width: 94px;
  height: auto;
  opacity: 0.72;
}

.mini-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.mini-mark--low {
  margin-top: 220px;
}

.editions {
  margin-top: 44px;
}

.editions h2,
.editions h1,
.correspondances h2,
.apropos h2,
.apropos h1,
.footer h1,
.footer h2 {
  color: var(--title);
}

.edition-grid {
  width: min(1040px, calc(100vw - 42px));
  margin: 44px 50% 0;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 70px;
  align-items: start;
}

.edition-grid article {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.edition-grid img {
  width: 250px;
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  box-shadow: none;
  background: transparent;
}

.edition-grid span,
.edition-grid a,
.coral-button {
  display: inline-block;
  padding: 7px 9px;
  background: var(--joy);
  color: #fff7ee;
  border-radius: 3px;
  font-family: "Alegreya Local", Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.correspondances {
  margin-top: 92px;
  width: min(640px, calc(100% - 42px));
}

.correspondances p {
  max-width: 560px;
}

.correspondances-copy {
  max-width: 580px;
  margin: 0 auto;
}

.correspondances-copy p {
  margin-bottom: 13px;
  font-size: 15px;
  line-height: 1.18;
}

.correspondances-carousel {
  width: min(420px, 100%);
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
}

.carousel-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 422 / 528;
  overflow: hidden;
}

.carousel-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  cursor: zoom-in;
}

.carousel-frame img.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.carousel-frame img:focus-visible {
  outline: 2px solid var(--serenity);
  outline-offset: 3px;
}

.carousel-arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: rgba(27, 125, 59, 0.5);
  font-family: "Alegreya Local", Georgia, serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.carousel-arrow:hover {
  color: var(--serenity);
}

body.lightbox-open {
  overflow: hidden;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 48px 22px;
  background: rgba(64, 36, 16, 0.72);
}

.image-lightbox img {
  display: block;
  max-width: min(92vw, 760px);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 18px 70px rgba(20, 14, 10, 0.35);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 247, 238, 0.72);
  border-radius: 50%;
  background: rgba(253, 250, 221, 0.96);
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:focus-visible {
  outline: 2px solid #fff7ee;
  outline-offset: 3px;
}

.coral-button {
  margin-top: 42px;
  padding: 10px 16px;
}

.edition-grid article:nth-child(2) a {
  background: var(--travel);
}

.edition-grid article:nth-child(3) a {
  background: var(--serenity);
}

.apropos {
  min-height: 580px;
  padding-top: 60px;
}

.apropos h2 span {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--title);
  vertical-align: 2px;
}

.apropos h1 span {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--title);
  vertical-align: 2px;
}

.video-link {
  width: 122px;
  height: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 54px;
  color: #020202;
}

.play-triangle {
  width: 88px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #020202;
  position: relative;
}

.play-triangle::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid #fff;
  margin-left: 7px;
}

.camera-block {
  width: 34px;
  height: 46px;
  border-radius: 6px 0 0 6px;
  background: #020202;
  clip-path: polygon(0 15%, 75% 0, 75% 100%, 0 85%);
}

.about-video {
  display: block;
  width: min(520px, 100%);
  max-height: 720px;
  margin: 42px auto 0;
  background: #020202;
}

.footer {
  min-height: 420px;
  display: grid;
  justify-items: center;
  align-content: start;
  padding: 78px 22px 70px;
  text-align: center;
}

.legal-panel {
  min-height: 0;
  padding-top: 88px;
}

.footer p {
  margin: 0 0 46px;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: "Alegreya Local", Georgia, serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.45;
}

.footer address {
  margin-top: 92px;
  font-style: normal;
  font-weight: 700;
}

.footer address a {
  font-weight: 500;
}

@media (max-width: 720px) {
  .site-nav {
    min-height: 110px;
    grid-template-columns: 0.8fr 1.24fr 1.14fr 1.14fr 1.14fr;
    gap: 4px;
    align-items: start;
    padding: 42px 8px 0;
    font-size: 11px;
    line-height: 1.15;
  }

  .hero {
    min-height: 500px;
  }

  h1 {
    font-size: 34px;
  }

  .intro {
    font-size: 14px;
    line-height: 1.5;
  }

  .brand-logo {
    width: min(270px, 84vw);
  }

  .brand-logo--hero {
    width: min(245px, 78vw);
    margin-bottom: 20px;
  }

  .section-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    padding: 0 8px;
    font-size: 6px;
  }

  .page-shell {
    min-height: calc(100vh - 72px);
    padding-top: 28px;
  }

  .home-grid {
    width: min(330px, calc(100% - 32px));
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 40px;
    margin-bottom: 24px;
  }

  .home-card {
    min-height: 82px;
  }

  .home-card h2 {
    font-size: 27px;
    line-height: 1.04;
  }

  .home-letter-section {
    width: min(340px, calc(100% - 32px));
    margin-top: 30px;
    margin-bottom: 62px;
  }

  .home-letter-title {
    font-size: 25px;
    line-height: 1.22;
  }

  .home-letter-copy p {
    font-size: 14px;
    line-height: 1.58;
  }

  .split-section {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 28px;
  }

  .image-stack {
    order: 2;
  }

  .image-stack img {
    width: min(300px, 100%);
  }

  .subscription-visual img {
    width: min(315px, 100%);
  }

  .small-title {
    font-size: 22px;
  }

  .button-row {
    gap: 14px;
  }

  .pill-button {
    min-width: 236px;
    padding: 13px 18px;
    font-size: 15px;
  }

  .edition-grid {
    width: min(320px, calc(100vw - 34px));
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .edition-grid img {
    width: 98px;
  }

  .edition-grid span,
  .edition-grid a {
    font-size: 7px;
    padding: 6px 5px;
  }

  .correspondances {
    width: min(360px, calc(100% - 30px));
    margin-top: 72px;
  }

  .correspondances-copy p {
    max-width: 310px;
    font-size: 14px;
    line-height: 1.14;
  }

  .correspondances-carousel {
    width: min(340px, 100%);
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: 8px;
    margin-top: 30px;
  }

  .carousel-arrow {
    width: 32px;
    height: 42px;
    font-size: 34px;
  }

  .image-lightbox {
    padding: 54px 14px 24px;
  }

  .image-lightbox img {
    max-width: 94vw;
    max-height: 82vh;
  }

  .apropos {
    min-height: 560px;
  }

  .about-video {
    width: min(100%, 360px);
    max-height: 620px;
    margin-top: 34px;
  }
}
