:root {
  --forest: #17392f;
  --forest-deep: #0b241d;
  --cream: #f4ead6;
  --paper: #f8f5ec;
  --gold: #c5a36a;
  --display: "Italiana", Georgia, serif;
  --serif: "Lora", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--forest-deep);
  color: white;
  font-family: var(--sans);
  line-height: 1.55;
}

a {
  color: inherit;
}

.shell {
  width: min(100% - 2rem, 76rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 30;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.6rem 0.9rem;
  transform: translateY(-160%);
  background: white;
  color: var(--forest);
  font-weight: 700;
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.design-nav {
  position: relative;
  z-index: 20;
  background: #091d18;
  color: white;
}

.design-nav-inner {
  display: flex;
  width: min(100% - 2rem, 76rem);
  min-height: 3rem;
  justify-content: flex-end;
  margin-inline: auto;
}

.design-picker {
  position: relative;
  width: min(100%, 17rem);
}

.design-picker summary {
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  font-size: 0.68rem;
}

.design-picker summary::-webkit-details-marker {
  display: none;
}

.design-picker summary span {
  color: #9eafa8;
  font-size: 0.57rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.design-picker summary strong {
  font-weight: 600;
}

.design-picker summary strong::after {
  display: inline-block;
  margin-left: 0.55rem;
  content: "↓";
  transition: transform 160ms ease;
}

.design-picker[open] summary strong::after {
  transform: rotate(180deg);
}

.design-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  display: grid;
  padding: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #091d18;
  box-shadow: 0 1rem 2.5rem rgba(2, 12, 9, 0.42);
}

.design-menu a {
  padding: 0.7rem 0.8rem;
  color: #d0d9d5;
  font-size: 0.72rem;
  text-decoration: none;
}

.design-menu a:hover,
.design-menu a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.masthead {
  position: absolute;
  z-index: 10;
  top: 3rem;
  right: 0;
  left: 0;
  padding-block: 1.15rem;
  color: white;
}

.masthead .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--serif);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.15;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid currentcolor;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 0.75rem;
}

.issue {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.journal-hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 3rem);
  align-items: end;
  padding: 9rem 0 3rem;
  isolation: isolate;
}

.journal-hero::before,
.journal-hero::after {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
}

.journal-hero::before {
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
}

.journal-hero::after {
  z-index: -1;
  background: var(--hero-overlay);
}

.hero-content {
  max-width: 42rem;
}

.kicker {
  margin: 0 0 0.8rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.journal-hero h1 {
  max-width: 12ch;
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(2.7rem, 11vw, 6.2rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.9;
}

.journal-lead {
  max-width: 43rem;
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--serif);
  font-size: 0.95rem;
}

.shop-actions {
  display: grid;
  gap: 0.65rem;
}

.shop-link {
  display: flex;
  min-height: 4.8rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(15, 45, 36, 0.7);
  color: white;
  text-decoration: none;
  backdrop-filter: blur(9px);
  transition:
    transform 160ms ease,
    background-color 160ms ease;
}

.shop-link:hover {
  transform: translateY(-2px);
  background: rgba(25, 62, 50, 0.9);
}

.shop-link:last-child {
  border-color: var(--cream);
  background: var(--cream);
  color: #19382e;
}

.shop-link:last-child:hover {
  background: white;
}

.shop-link small {
  display: block;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shop-link strong {
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 500;
}

.journal-caption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: none;
  margin: 0;
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.page-footer {
  padding-block: 1.7rem;
  background: var(--forest-deep);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.67rem;
}

.page-footer .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Carnet standard */
.journal-standard {
  --hero-image: url("https://images.unsplash.com/photo-1490750967868-88aa4486c946?auto=format&fit=crop&w=1800&q=90");
  --hero-overlay: linear-gradient(180deg, rgba(7, 23, 18, 0.28), rgba(9, 30, 23, 0.94));
}

/* Carnet clairiere */
.journal-clairiere {
  --hero-image: url("https://images.unsplash.com/photo-1526047932273-341f2a7631f9?auto=format&fit=crop&w=1800&q=90");
  --hero-overlay: linear-gradient(180deg, rgba(236, 227, 203, 0.18), rgba(26, 59, 47, 0.9));
  background: #dfe5d9;
}

.journal-clairiere .journal-hero {
  padding-bottom: 2rem;
}

.journal-clairiere .hero-content {
  padding: 1.4rem;
  background: rgba(244, 239, 223, 0.92);
  color: #17392f;
  backdrop-filter: blur(8px);
}

.journal-clairiere .journal-lead {
  color: #4e6158;
}

.journal-clairiere .shop-link {
  border-color: #254b3e;
  background: transparent;
  color: #17392f;
  backdrop-filter: none;
}

.journal-clairiere .shop-link:first-child:hover {
  background: rgba(23, 57, 47, 0.08);
}

.journal-clairiere .shop-link:last-child {
  background: #17392f;
  color: white;
}

/* Carnet nocturne */
.journal-nocturne {
  --hero-image: url("https://images.unsplash.com/photo-1597318181409-cf64d0b5d8a2?auto=format&fit=crop&w=1800&q=90");
  --hero-overlay: linear-gradient(90deg, rgba(4, 16, 14, 0.96), rgba(4, 17, 14, 0.56));
  --gold: #d3b77e;
}

.journal-nocturne .journal-hero::before {
  background-position: 62% center;
  filter: saturate(0.65) brightness(0.72);
}

.journal-nocturne .kicker,
.journal-nocturne .issue {
  color: #d3b77e;
}

.journal-nocturne .shop-link:first-child {
  border-color: #b79d68;
  background: rgba(10, 26, 22, 0.86);
}

/* Carnet editorial */
.journal-editorial {
  --hero-image: url("https://images.unsplash.com/photo-1526047932273-341f2a7631f9?auto=format&fit=crop&w=1800&q=90");
  --hero-overlay: linear-gradient(180deg, rgba(11, 31, 25, 0.16), rgba(10, 34, 26, 0.88));
  background: #e9e4d7;
}

.journal-editorial .journal-hero {
  min-height: calc(100svh - 5rem);
  margin: 0.8rem;
}

.journal-editorial .masthead {
  top: 3.8rem;
}

.journal-editorial .hero-content {
  position: relative;
  max-width: 48rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.55);
}

.journal-editorial .kicker::after {
  content: "  /  ÉDITION BOTANIQUE";
  color: rgba(255, 255, 255, 0.62);
}

.journal-editorial .page-footer {
  background: #e9e4d7;
  color: #3f554b;
}

/* Carnet panorama */
.journal-panorama {
  --hero-image: url("https://images.unsplash.com/photo-1490750967868-88aa4486c946?auto=format&fit=crop&w=2000&q=92");
  --hero-overlay: linear-gradient(180deg, rgba(7, 23, 18, 0.22), rgba(9, 28, 22, 0.84));
}

.journal-panorama .journal-hero {
  align-items: center;
  text-align: center;
}

.journal-panorama .hero-content {
  max-width: 60rem;
  margin-inline: auto;
}

.journal-panorama .journal-hero h1,
.journal-panorama .journal-lead {
  margin-right: auto;
  margin-left: auto;
}

.journal-panorama .shop-actions {
  max-width: 42rem;
  margin-inline: auto;
  text-align: left;
}

/* Carnet saison */
.journal-saison {
  --hero-image: url("https://images.unsplash.com/photo-1526047932273-341f2a7631f9?auto=format&fit=crop&w=1800&q=90");
  --hero-overlay: linear-gradient(180deg, rgba(78, 35, 17, 0.22), rgba(55, 23, 13, 0.9));
  --cream: #f2dfc0;
  --gold: #e1aa66;
  background: #35180f;
}

.journal-saison .journal-hero::before {
  filter: sepia(0.18) saturate(1.16);
}

.journal-saison .masthead,
.journal-saison .kicker {
  color: #f3d49f;
}

.journal-saison .shop-link:first-child {
  background: rgba(74, 31, 17, 0.72);
}

.journal-saison .page-footer {
  background: #35180f;
}

@media (min-width: 769px) {
  .shell,
  .design-nav-inner {
    width: min(100% - 4rem, 76rem);
  }

  .journal-hero {
    padding-block: 10rem 4rem;
  }

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

  .journal-caption {
    display: block;
  }

  .journal-clairiere .hero-content {
    max-width: 48rem;
    padding: 2.2rem;
  }

  .journal-editorial .journal-hero {
    margin: 1.5rem;
  }

  .journal-editorial .masthead {
    top: 4.5rem;
  }
}

@media (min-width: 1024px) {
  .journal-clairiere .journal-hero > .shell {
    display: flex;
    justify-content: flex-end;
  }

  .journal-clairiere .hero-content {
    width: 52%;
  }

  .journal-nocturne .hero-content {
    width: 54%;
  }

  .journal-editorial .hero-content {
    margin-left: 8%;
  }

  .journal-saison .hero-content {
    margin-left: auto;
  }
}

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

  * {
    transition-duration: 0.01ms !important;
  }
}
