/*
Theme Name: Une Vie, un Voyage
Theme URI: https://studiogoelan.fr
Author: Studio Goelan
Author URI: https://studiogoelan.fr
Description: Thème Gutenberg complet pour les biographies privées et récits de vie de Studio Goelan.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.0
Version: 1.1.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: une-vie-un-voyage
*/

@font-face {
  font-family: "Marcellus";
  src: url("./assets/fonts/marcellus-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./assets/fonts/inter-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./assets/fonts/inter-medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #f7f3e9;
  --paper-deep: #f0e8da;
  --paper-blue: #eef1ed;
  --ink: #0f2b49;
  --ink-soft: #33495c;
  --accent: #efb486;
  --hairline: rgba(15, 43, 73, 0.15);
  --header-height: 124px;
  --content-max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wp-site-blocks,
.wp-site-blocks > *,
.wp-block-post-content,
.wp-block-post-content > * {
  margin-block-start: 0;
  margin-block-end: 0;
}

.wp-site-blocks {
  overflow: clip;
}

.wp-block-post-content {
  min-height: 55vh;
}

.editor-styles-wrapper {
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", Arial, sans-serif;
}

.editor-styles-wrapper .site-header {
  position: relative;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.28;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(82, 63, 43, 0.025) 31px),
    repeating-linear-gradient(93deg, transparent 0 80px, rgba(82, 63, 43, 0.016) 81px);
}

a {
  color: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: fixed;
  top: var(--uvuv-admin-offset, 0px);
  right: 0;
  left: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 18px max(32px, calc((100vw - var(--content-max)) / 2));
  border-bottom: 1px solid rgba(235, 181, 140, 0.82);
  background: rgba(247, 243, 233, 0.9);
  backdrop-filter: blur(16px);
}

body.admin-bar .site-header {
  top: var(--uvuv-admin-offset, var(--wp-admin--admin-bar--height, 32px));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 17px;
  text-decoration: none;
}

.brand-mark {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  margin: 0;
  object-fit: contain;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-mark > a {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-name {
  margin: 0;
  font-family: "Marcellus", Georgia, serif;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(34px, 4vw, 66px);
}

.desktop-nav a {
  position: relative;
  padding: 16px 0;
  font-family: "Marcellus", Georgia, serif;
  font-size: 21px;
  text-decoration: none;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after,
.desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.gutenberg-nav {
  font-family: "Marcellus", Georgia, serif;
  font-size: 21px;
}

.gutenberg-nav .wp-block-navigation__container,
.gutenberg-nav .wp-block-page-list {
  column-gap: clamp(34px, 4vw, 66px);
  row-gap: 12px;
}

.gutenberg-nav .wp-block-navigation-item {
  margin: 0;
}

.gutenberg-nav .wp-block-navigation-item__content {
  position: relative;
  padding: 16px 0;
  text-decoration: none;
}

.gutenberg-nav .wp-block-navigation-item__content::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.gutenberg-nav .wp-block-navigation-item__content:hover::after,
.gutenberg-nav .wp-block-navigation-item__content:focus-visible::after,
.gutenberg-nav .current-menu-item > .wp-block-navigation-item__content::after {
  transform: scaleX(1);
}

.gutenberg-nav .wp-block-navigation__responsive-container-open {
  color: var(--ink);
}

.gutenberg-nav .wp-block-navigation__responsive-container.is-menu-open {
  padding: 28px;
  color: var(--ink);
  background: rgba(247, 243, 233, 0.99);
}

.gutenberg-nav .wp-block-navigation__responsive-container-close {
  top: 22px;
  right: 22px;
}

.gutenberg-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  font-size: 28px;
}

.mobile-nav {
  display: none;
}

.page-deck {
  position: relative;
  overflow: hidden;
}

.snap-page {
  position: relative;
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  border-bottom: 1px solid rgba(235, 181, 140, 0.7);
}

.cover-page {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  width: min(calc(100% - 64px), var(--content-max));
  margin: 0 auto;
  padding: calc(var(--header-height) + clamp(28px, 4vh, 52px)) 0 54px;
}

.cover-copy {
  position: relative;
  z-index: 4;
  max-width: 780px;
}

.eyebrow {
  display: inline-flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.eyebrow::after {
  width: 48px;
  height: 2px;
  content: "";
  background: var(--accent);
}

.cover-page h1 {
  max-width: 680px;
  margin: clamp(22px, 3vh, 42px) 0 0;
  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(52px, 5vw, 76px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}

.cover-art {
  position: relative;
  z-index: 4;
  align-self: end;
  justify-self: end;
  width: min(40vw, 520px);
  height: auto;
  margin: 0 0 clamp(18px, 4vh, 54px);
}

.cover-art .art-canvas,
.cover-art img {
  width: 100%;
}

.cover-art img {
  height: auto;
  object-fit: contain;
}

.art-canvas {
  position: relative;
}

.scroll-cue {
  position: absolute;
  bottom: 35px;
  left: max(32px, calc((100vw - var(--content-max)) / 2));
  display: inline-flex;
  gap: 16px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  font-family: "Marcellus", Georgia, serif;
  font-size: 17px;
  text-decoration: none;
}

.scroll-cue a,
.text-link a {
  color: inherit;
  text-decoration: none;
}

.scroll-cue a {
  display: inline-flex;
  gap: 16px;
  align-items: center;
}

.page-mark {
  position: absolute;
  right: max(32px, calc((100vw - var(--content-max)) / 2));
  bottom: 34px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin: 0;
}

.chapter-page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(44px, 6vw, 88px);
  align-items: center;
  padding: calc(var(--header-height) + 34px) max(32px, calc((100vw - var(--content-max)) / 2)) 64px;
  overflow: hidden;
}

.chapter-page:nth-of-type(odd) {
  background:
    radial-gradient(circle at 82% 45%, rgba(129, 153, 169, 0.1), transparent 30rem),
    rgba(240, 232, 218, 0.32);
}

.chapter-page:nth-of-type(even) {
  background:
    radial-gradient(circle at 18% 45%, rgba(129, 153, 169, 0.09), transparent 30rem),
    rgba(247, 243, 233, 0.2);
}

.chapter-copy {
  position: relative;
  z-index: 4;
  align-self: center;
  max-width: 580px;
}

.chapter-page:nth-of-type(even) .chapter-copy {
  grid-column: 2;
}

.chapter-copy h2 {
  max-width: 580px;
  margin: clamp(24px, 3.5vh, 42px) 0 clamp(24px, 3vh, 36px);
  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(46px, 4.5vw, 68px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.chapter-text,
.chapter-lead {
  max-width: 625px;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.7;
}

.chapter-text p {
  margin: 0 0 18px;
}

.chapter-lead {
  margin: 0;
}

.chapter-quote {
  max-width: 620px;
  margin: clamp(30px, 5vh, 58px) 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--accent);
  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(23px, 2.2vw, 35px);
  line-height: 1.2;
}

.chapter-art {
  position: relative;
  z-index: 4;
  display: grid;
  align-self: center;
  justify-self: end;
  width: min(43vw, 560px);
  min-height: 0;
  margin: 0;
  place-items: center;
}

.chapter-page:nth-of-type(even) .chapter-art {
  grid-row: 1;
  grid-column: 1;
  justify-self: start;
  transform: translateX(-2vw);
}

.chapter-art .art-canvas {
  width: 100%;
}

.chapter-art img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: none;
}

.chapter-art-sober {
  width: min(43vw, 560px);
  transform: translateX(1vw);
}

.stories-art {
  width: min(43vw, 560px);
  transform: translateX(1vw);
}

.repair-art {
  width: min(42vw, 550px);
  transform: translateX(1vw);
}

.project-art {
  width: min(43vw, 560px);
  transform: translateX(1vw);
}

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

.project-copy {
  min-height: 0;
}

.approach-page {
  background: #f5efdf;
}

.approach-copy-body {
  max-width: 625px;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.7;
}

.approach-copy-body p {
  margin: 0 0 18px;
}

.approach-quote {
  max-width: 620px;
  margin: clamp(28px, 4vh, 48px) 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--accent);
  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(22px, 2vw, 31px);
  font-style: italic;
  line-height: 1.3;
}

.approach-art {
  width: min(44vw, 590px);
  transform: translateX(1vw);
}

.repair-page {
  background:
    radial-gradient(circle at 78% 50%, rgba(235, 181, 140, 0.13), transparent 28rem),
    var(--paper-blue);
}

.repair-statement {
  max-width: 640px;
  margin: clamp(28px, 4vh, 48px) 0 0;
  padding: clamp(22px, 3vw, 32px);
  border-top: 3px solid var(--accent);
  background: rgba(247, 243, 233, 0.62);
  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(20px, 1.7vw, 27px);
  line-height: 1.45;
}

.project-status {
  display: inline-block;
  padding: 8px 13px;
  margin: 0 0 10px;
  color: var(--ink);
  background: var(--accent);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.project-format {
  margin: -14px 0 28px;
  color: var(--ink-soft);
  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(18px, 1.6vw, 23px);
  letter-spacing: 0.04em;
}

.project-page h3 {
  margin: 0 0 20px;
  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 400;
}

.project-roles {
  max-width: 620px;
  padding: 0;
  margin: 0 0 38px;
  color: var(--ink-soft);
  list-style: none;
  font-size: 16px;
  line-height: 1.55;
}

.project-roles li {
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
}

.project-excerpt-link {
  appearance: none;
  padding: 0 0 8px;
  border: 0;
  border-bottom: 2px solid var(--accent);
  border-radius: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.project-excerpt-link:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.project-excerpt {
  max-width: 560px;
  margin-top: 24px;
  color: var(--ink-soft);
  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(18px, 1.5vw, 23px);
  font-style: italic;
  line-height: 1.5;
}

.project-excerpt p {
  margin: 0;
}

.project-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  z-index: 6;
  display: flex;
  gap: 0;
  align-items: center;
  transform: translateX(-50%);
}

.project-dots button {
  position: relative;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.project-dots button::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  content: "";
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  transform: translate(-50%, -50%);
  transition:
    width 160ms ease,
    height 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.project-dots button:hover::before,
.project-dots button:focus-visible::before,
.project-dots button.is-active::before {
  width: 8px;
  height: 8px;
  border-color: var(--accent);
  background: var(--accent);
}

.project-dots button:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: -6px;
}

.text-link {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  width: fit-content;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  font-family: "Marcellus", Georgia, serif;
  font-size: 20px;
  text-decoration: none;
}

.offers-band {
  padding: clamp(76px, 8vw, 112px) max(32px, calc((100vw - var(--content-max)) / 2));
  scroll-snap-align: start;
  border-top: 1px solid rgba(235, 181, 140, 0.8);
  background: rgba(240, 232, 218, 0.5);
}

.offers-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  margin-bottom: clamp(44px, 6vw, 72px);
}

.offers-heading h2 {
  margin: 0;
  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(42px, 4vw, 64px);
  font-weight: 400;
  line-height: 1.02;
}

.offers-intro {
  max-width: 800px;
}

.offers-description {
  max-width: 760px;
  margin: clamp(28px, 3vw, 42px) 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.75;
}

.offers-inclusions {
  max-width: 760px;
  margin: 30px 0 0;
  color: var(--ink);
}

.offers-inclusions > p {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.offers-inclusions ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--hairline);
  list-style: none;
}

.offers-inclusions li {
  display: grid;
  gap: 7px;
  align-content: start;
  min-height: 96px;
  padding: 17px 18px 14px 0;
  border-bottom: 1px solid var(--hairline);
}

.offers-inclusions li + li {
  padding-left: 18px;
  border-left: 1px solid var(--hairline);
}

.offers-inclusions strong {
  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(17px, 1.35vw, 20px);
  font-weight: 400;
  line-height: 1.25;
}

.offers-inclusions span {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.offers-summary {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
  padding: clamp(32px, 4vw, 48px) 0 0;
  border-top: 1px solid var(--hairline);
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}

.offer-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 390px;
  padding: clamp(34px, 4vw, 56px);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: rgba(247, 243, 233, 0.46);
}

.offer-card-featured {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.55fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: end;
  min-height: 330px;
  background: rgba(247, 243, 233, 0.72);
}

.offer-name {
  margin: 0 0 22px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.offer-card h3 {
  margin: 0 0 25px;
  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(34px, 3.2vw, 50px);
  font-weight: 400;
  line-height: 1.08;
}

.offer-card-copy > p:last-child {
  max-width: 680px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.72;
}

.offer-price {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1;
}

.offer-card-featured .offer-price {
  margin-top: 0;
  text-align: right;
}

.offers-footer {
  display: flex;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  padding-top: 44px;
}

.offers-footer > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 84px max(32px, calc((100vw - var(--content-max)) / 2)) 45px;
  scroll-snap-align: end;
}

.footer-horizon {
  position: absolute;
  top: 45px;
  right: 4vw;
  left: 4vw;
  height: 1px;
  background: var(--accent);
}

.footer-horizon span {
  position: absolute;
  top: -4px;
  right: 17%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 80px;
  align-items: end;
}

.footer-grid a {
  display: block;
  width: fit-content;
  margin: 9px 0;
  color: var(--ink-soft);
  font-size: 14px;
  text-decoration: none;
}

.footer-grid p {
  margin: 0;
}

.footer-kicker {
  margin: 0 0 18px;
  font-family: "Marcellus", Georgia, serif;
  font-size: 24px;
  text-transform: uppercase;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  column-gap: 45px;
}

.footer-nav .wp-block-navigation__container {
  display: grid;
  grid-template-columns: repeat(2, auto);
  column-gap: 45px;
  align-items: start;
}

.footer-nav a {
  font-family: "Marcellus", Georgia, serif;
  font-size: 17px;
}

.footer-credits {
  justify-self: end;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
  text-align: right;
}

.footer-credits p {
  margin: 0;
}

.about-hero {
  width: min(calc(100% - 64px), var(--content-max));
  min-height: 100svh;
  margin: 0 auto;
  padding: calc(var(--header-height) + 72px) 0 100px;
  scroll-snap-align: start;
}

.about-heading h1 {
  margin: 34px 0 4px;
  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(70px, 7vw, 112px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.about-intro {
  max-width: 760px;
  margin: 24px 0 0;
  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(35px, 3.2vw, 52px);
  line-height: 1.12;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: clamp(70px, 8vw, 126px);
  align-items: start;
  margin-top: 38px;
}

.about-copy {
  padding-top: 20px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.72;
}

.about-copy p {
  max-width: 680px;
  margin: 0 0 22px;
}

.about-copy blockquote,
.about-copy .wp-block-quote {
  max-width: 630px;
  margin: 55px 0 0;
  padding: 28px 0 0;
  border-top: 3px solid var(--accent);
  border-right: 0;
  border-bottom: 0;
  border-left: 0 !important;
  border-inline-start: 0 !important;
  color: var(--ink);
  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(27px, 2.5vw, 39px);
  line-height: 1.25;
}

.portrait-figure {
  position: relative;
  margin: -370px 0 0;
  padding-left: 52px;
}

.portrait-figure img {
  width: 100%;
  max-height: 770px;
  object-fit: contain;
  object-position: center bottom;
  filter: saturate(0.96) contrast(0.99);
}

.portrait-rule {
  position: absolute;
  top: 140px;
  bottom: 145px;
  left: 10px;
  width: 2px;
  background: var(--accent);
}

.portrait-rule::after {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 11px;
  height: 11px;
  content: "";
  background: var(--accent);
  transform: translate(-50%, -50%) rotate(45deg);
}

.portrait-figure figcaption {
  margin-top: -18px;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.6;
  text-transform: uppercase;
}

.portrait-caption {
  margin: -18px 0 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.6;
  text-align: center;
  text-transform: uppercase;
}

.portrait-caption b {
  padding: 0 8px;
  color: var(--accent);
}

.portrait-figure figcaption b {
  padding: 0 8px;
  color: var(--accent);
}

@media (max-width: 1100px) {
  :root {
    --header-height: 108px;
  }

  .brand-mark {
    width: 62px;
    height: 62px;
  }

  .brand-name {
    font-size: 20px;
  }

  .desktop-nav a {
    font-size: 18px;
  }

  .chapter-page,
  .project-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(34px, 5vw, 56px);
  }
}

@media (min-width: 821px) and (max-height: 800px) {
  :root {
    --header-height: 100px;
  }

  .site-header {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .brand-mark {
    width: 58px;
    height: 58px;
  }

  .brand-name {
    font-size: 19px;
  }

  .cover-page {
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: 42px;
  }

  .cover-page h1 {
    font-size: clamp(48px, 4.7vw, 64px);
  }

  .cover-art {
    width: min(38vw, 460px);
    margin-bottom: 24px;
  }

  .chapter-page {
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 46px;
  }

  .chapter-copy h2 {
    margin-top: 22px;
    margin-bottom: 22px;
    font-size: clamp(42px, 4vw, 58px);
  }

  .chapter-art,
  .chapter-art-sober,
  .stories-art,
  .repair-art,
  .project-art,
  .approach-art {
    width: min(41vw, 500px);
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 96px;
  }

  html {
    scroll-snap-type: none;
  }

  .site-header {
    min-height: var(--header-height);
    padding: 14px 22px;
  }

  .brand {
    gap: 11px;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
  }

  .brand-name {
    font-size: 17px;
  }

  .desktop-nav {
    display: none;
  }

  .gutenberg-nav .wp-block-navigation__responsive-container-open {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 1px solid var(--accent);
    border-radius: 50%;
  }

  .gutenberg-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none;
  }

  .mobile-nav {
    position: relative;
    display: block;
  }

  .mobile-nav summary {
    display: grid;
    width: 54px;
    height: 54px;
    cursor: pointer;
    list-style: none;
    place-items: center;
    border: 1px solid var(--accent);
    border-radius: 50%;
  }

  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .burger-lines {
    display: grid;
    gap: 6px;
  }

  .burger-lines i {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .mobile-nav[open] .burger-lines i:first-child {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-nav[open] .burger-lines i:nth-child(2) {
    opacity: 0;
  }

  .mobile-nav[open] .burger-lines i:last-child {
    transform: translateY(-8px) rotate(-45deg);
  }

  .mobile-menu {
    position: absolute;
    top: 65px;
    right: 0;
    display: grid;
    min-width: 225px;
    padding: 20px 26px;
    border: 1px solid var(--accent);
    background: rgba(247, 243, 233, 0.98);
    box-shadow: 0 18px 45px rgba(15, 43, 73, 0.1);
  }

  .mobile-menu a {
    padding: 11px 0;
    font-family: "Marcellus", Georgia, serif;
    font-size: 20px;
    text-decoration: none;
  }

  .cover-page {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(360px, 1fr);
    gap: 0;
    width: calc(100% - 40px);
    min-height: 100svh;
    padding: calc(var(--header-height) + 30px) 0 56px;
  }

  .cover-page h1 {
    margin-top: 24px;
    font-size: clamp(43px, 10.8vw, 70px);
    line-height: 1.02;
  }

  .cover-art {
    align-self: center;
    justify-self: center;
    width: min(84vw, 460px);
    height: auto;
    margin: -38px auto -22px;
  }

  .cover-art .art-canvas {
    transform: translateX(3%);
  }

  .scroll-cue {
    bottom: 22px;
    left: 20px;
    font-size: 15px;
  }

  .cover-page .page-mark {
    display: none;
  }

  .chapter-page,
  .approach-page,
  .project-page {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 100svh;
    padding: calc(var(--header-height) + 30px) clamp(20px, 6vw, 44px) 68px;
  }

  .chapter-copy {
    display: contents;
  }

  .chapter-page:nth-of-type(even) .chapter-art {
    grid-row: auto;
    grid-column: auto;
    justify-self: initial;
    transform: none;
  }

  .chapter-page .eyebrow,
  .chapter-page h2,
  .chapter-page .chapter-text,
  .chapter-page .chapter-lead,
  .chapter-page .chapter-quote,
  .chapter-page .approach-copy-body,
  .chapter-page .approach-quote,
  .chapter-page .repair-statement,
  .chapter-page .project-status,
  .chapter-page .project-format,
  .chapter-page h3,
  .chapter-page .project-roles,
  .chapter-page .text-link {
    width: 100%;
    max-width: 620px;
    margin-right: auto;
    margin-left: auto;
  }

  .chapter-page .eyebrow {
    order: 1;
  }

  .chapter-copy h2 {
    order: 2;
    margin: 24px 0 22px;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(43px, 10.5vw, 68px);
  }

  .chapter-text,
  .chapter-lead,
  .approach-copy-body {
    order: 4;
    font-size: 16px;
    line-height: 1.62;
  }

  .chapter-quote,
  .approach-quote,
  .repair-statement {
    order: 5;
    margin-top: 28px;
  }

  .chapter-art {
    order: 3;
    align-self: center;
    width: min(100%, 540px);
    min-height: 0;
    max-height: none;
    margin: -8px auto 12px;
    transform: none;
  }

  .chapter-art img {
    width: 100%;
    max-height: none;
    object-fit: contain;
  }

  .chapter-art .art-canvas {
    width: 100%;
    margin-left: 0;
  }

  .chapter-art-sober .art-canvas {
    width: 100%;
    margin-left: 0;
    transform: translateX(2%);
  }

  .approach-page {
    display: flex;
    min-height: 100svh;
    padding: calc(var(--header-height) + 30px) clamp(20px, 6vw, 44px) 68px;
    overflow: hidden;
  }

  .approach-copy-body {
    max-width: 620px;
  }

  .approach-quote {
    width: 100%;
    font-size: 22px;
  }

  .approach-art {
    width: min(100%, 540px);
    margin-top: -12px;
    margin-bottom: 4px;
  }

  .stories-art .art-canvas {
    width: 100%;
    margin-left: 0;
  }

  .repair-page .chapter-text {
    order: 4;
  }

  .repair-page .repair-art {
    order: 3;
    margin-top: 4px;
  }

  .repair-art .art-canvas {
    width: 100%;
    margin-left: 0;
  }

  .project-art .art-canvas {
    width: 100%;
    margin-left: 0;
  }

  .page-mark {
    right: 24px;
    bottom: 24px;
  }

  .project-art {
    order: 4;
    margin-bottom: 18px;
  }

  .project-page .project-format {
    order: 3;
    margin-top: 0;
    margin-bottom: 4px;
  }

  .project-page h3 {
    order: 5;
  }

  .project-page .project-roles {
    order: 6;
  }

  .project-page .text-link {
    order: 7;
  }

  .project-page .project-excerpt {
    order: 8;
    width: 100%;
    max-width: 620px;
    margin-right: auto;
    margin-left: auto;
  }

  .project-dots {
    position: static;
    order: 9;
    margin: 22px auto -18px;
    transform: none;
  }

  .offers-band {
    padding: 68px 26px;
  }

  .offers-heading {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 42px;
  }

  .offers-description {
    margin-top: 28px;
  }

  .offers-inclusions ul {
    grid-template-columns: 1fr;
  }

  .offers-inclusions li {
    min-height: 0;
    padding: 16px 0;
  }

  .offers-inclusions li + li {
    padding-left: 0;
    border-left: 0;
  }

  .offers-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 30px;
    padding-top: 34px;
  }

  .offers-grid {
    grid-template-columns: 1fr;
  }

  .offer-card,
  .offer-card-featured {
    display: flex;
    grid-column: auto;
    min-height: 0;
    padding: 36px 30px 38px;
  }

  .offer-card + .offer-card {
    border-top: 0;
  }

  .offer-card h3 {
    font-size: clamp(34px, 9vw, 46px);
  }

  .offer-card-copy > p:last-child {
    font-size: 15px;
    line-height: 1.66;
  }

  .offer-card-featured .offer-price {
    margin-top: 44px;
    text-align: left;
  }

  .offers-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 38px;
  }

  .site-footer {
    padding: 80px 28px 38px;
  }

  .footer-horizon {
    right: 28px;
    left: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 46px 28px;
  }

  .footer-credits {
    grid-column: 1 / -1;
    justify-self: start;
    text-align: left;
  }

  .about-hero {
    width: calc(100% - 52px);
    padding: calc(var(--header-height) + 48px) 0 75px;
  }

  .about-heading h1 {
    font-size: clamp(58px, 15vw, 82px);
  }

  .about-intro {
    font-size: clamp(31px, 7.5vw, 44px);
  }

  .desktop-break {
    display: none;
  }

  .about-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-top: 0;
  }

  .portrait-figure {
    order: -1;
    box-sizing: border-box;
    width: min(100%, 560px);
    margin: clamp(18px, 5vw, 28px) auto 0;
    padding-left: 0;
  }

  .portrait-figure img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    margin: 0 auto;
    object-position: center top;
  }

  .portrait-rule {
    top: 18%;
    bottom: 13%;
    left: 8px;
  }

  .portrait-figure figcaption {
    display: none;
  }

  .portrait-caption {
    display: none;
  }

  .about-copy {
    width: 100%;
    font-size: 17px;
  }
}

@media (max-width: 520px) {
  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.24em;
  }

  .cover-page h1 {
    font-size: clamp(40px, 12vw, 57px);
  }

  .chapter-page,
  .project-page {
    padding-right: 19px;
    padding-left: 19px;
  }

  .approach-semantic.sr-only,
  .approach-map-hint {
    padding-right: 19px;
    padding-left: 19px;
  }

  .chapter-copy h2 {
    font-size: clamp(39px, 11.4vw, 55px);
  }

  .approach-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 0;
    border-top: 0;
  }

  .approach-steps li {
    padding-top: 11px;
    border-top: 1px solid var(--accent);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-nav,
  .footer-credits {
    grid-column: 1;
  }

  .about-hero {
    width: calc(100% - 38px);
  }

  .about-heading h1 {
    font-size: clamp(52px, 16vw, 72px);
  }

  .about-intro {
    font-size: 31px;
  }

  .portrait-figure {
    width: min(100%, 460px);
    margin-top: 18px;
  }

  .about-copy {
    font-size: 16px;
  }

  .about-copy blockquote {
    font-size: 28px;
  }
}

.standard-page {
  width: min(calc(100% - 64px), 860px);
  min-height: 65vh;
  padding: calc(var(--header-height) + 72px) 0 90px;
  margin: 0 auto;
}

.standard-page > h1,
.standard-page .wp-block-post-title {
  margin: 0 0 40px;
  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(52px, 6vw, 82px);
  font-weight: 400;
  line-height: 1;
}

@media (max-width: 820px) {
  .footer-nav .wp-block-navigation__container {
    grid-template-columns: 1fr;
  }

  .standard-page {
    width: calc(100% - 44px);
    padding-top: calc(var(--header-height) + 44px);
  }
}

.admin-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 14%, rgba(239, 180, 134, 0.16), transparent 25rem),
    var(--paper);
}

.admin-page {
  width: min(calc(100% - 64px), 1400px);
  margin: 0 auto;
  padding: calc(var(--header-height) + 64px) 0 90px;
}

.admin-heading {
  display: flex;
  gap: 50px;
  align-items: end;
  justify-content: space-between;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--accent);
}

.admin-heading h1 {
  max-width: 760px;
  margin: 24px 0 18px;
  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(50px, 5.5vw, 82px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.admin-heading > div:first-child > p:last-child {
  max-width: 680px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
}

.admin-heading-actions {
  display: grid;
  flex: 0 0 auto;
  gap: 18px;
  justify-items: end;
}

.admin-heading-actions > span {
  color: var(--ink-soft);
  font-size: 12px;
}

.admin-heading-actions .text-link {
  font-size: 17px;
}

.admin-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 38px;
}

.admin-projects-panel,
.admin-editor-panel,
.admin-empty-state {
  border: 1px solid rgba(15, 43, 73, 0.14);
  background: rgba(255, 253, 247, 0.64);
  box-shadow: 0 18px 60px rgba(15, 43, 73, 0.055);
}

.admin-projects-panel {
  position: sticky;
  top: calc(var(--header-height) + 22px);
  overflow: hidden;
}

.admin-panel-title {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
  border-bottom: 1px solid var(--hairline);
}

.admin-panel-title p {
  margin: 0 0 4px;
  font-family: "Marcellus", Georgia, serif;
  font-size: 24px;
}

.admin-panel-title span {
  color: var(--ink-soft);
  font-size: 11px;
}

.admin-primary-button,
.admin-delete-button,
.admin-upload-button {
  min-height: 44px;
  border: 0;
  font-family: "Inter", Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 160ms ease, transform 160ms ease;
}

.admin-primary-button {
  padding: 12px 18px;
  color: var(--paper);
  background: var(--ink);
}

.admin-primary-button:hover,
.admin-upload-button:hover {
  transform: translateY(-1px);
}

.admin-primary-button:disabled,
.admin-delete-button:disabled,
.admin-upload-button:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.admin-add-button {
  min-height: 38px;
  padding: 9px 12px;
  font-size: 10px;
}

.admin-project-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.admin-project-list li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-bottom: 1px solid var(--hairline);
}

.admin-project-list li::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  content: "";
  background: var(--accent);
  opacity: 0;
}

.admin-project-list li.is-active {
  background: rgba(239, 180, 134, 0.13);
}

.admin-project-list li.is-active::before {
  opacity: 1;
}

.admin-project-select {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  min-width: 0;
  padding: 20px 10px 20px 20px;
  border: 0;
  color: var(--ink);
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.admin-project-index {
  padding-top: 2px;
  color: var(--accent);
  font-family: "Marcellus", Georgia, serif;
  font-size: 13px;
}

.admin-project-select b,
.admin-project-select small {
  display: block;
}

.admin-project-select b {
  overflow: hidden;
  font-family: "Marcellus", Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-project-select small {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.45;
}

.admin-order-buttons {
  display: grid;
  gap: 4px;
  padding-right: 12px;
}

.admin-order-buttons button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--hairline);
  color: var(--ink);
  background: rgba(247, 243, 233, 0.72);
  cursor: pointer;
}

.admin-order-buttons button:disabled {
  cursor: default;
  opacity: 0.25;
}

.admin-order-note {
  padding: 16px 20px 20px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.5;
}

.admin-editor-panel {
  min-width: 0;
}

.admin-editor-toolbar {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  padding: 30px 34px;
  border-bottom: 1px solid var(--hairline);
}

.admin-section-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.admin-editor-toolbar h2 {
  margin: 0;
  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
}

.admin-visibility {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  flex: 0 0 auto;
  cursor: pointer;
}

.admin-visibility input {
  width: 42px;
  height: 23px;
  margin: 0;
  appearance: none;
  border: 1px solid rgba(15, 43, 73, 0.35);
  border-radius: 20px;
  background: rgba(15, 43, 73, 0.08);
  cursor: pointer;
  transition: background-color 160ms ease;
}

.admin-visibility input::before {
  display: block;
  width: 17px;
  height: 17px;
  margin: 2px;
  content: "";
  border-radius: 50%;
  background: var(--ink-soft);
  transition: transform 160ms ease, background-color 160ms ease;
}

.admin-visibility input:checked {
  border-color: var(--accent);
  background: rgba(239, 180, 134, 0.34);
}

.admin-visibility input:checked::before {
  background: var(--accent);
  transform: translateX(19px);
}

.admin-visibility span {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 34px;
}

.admin-field {
  display: grid;
  gap: 9px;
}

.admin-field-wide {
  grid-column: 1 / -1;
}

.admin-field > span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-field input,
.admin-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(15, 43, 73, 0.3);
  border-radius: 0;
  color: var(--ink);
  outline: 0;
  background: rgba(247, 243, 233, 0.72);
  font: inherit;
}

.admin-field input {
  min-height: 50px;
  padding: 12px 14px;
}

.admin-field textarea {
  min-height: 88px;
  padding: 14px;
  line-height: 1.55;
  resize: vertical;
}

.admin-field input:focus,
.admin-field textarea:focus {
  border-bottom-color: var(--accent);
  box-shadow: inset 0 -1px 0 var(--accent);
}

.admin-field small {
  justify-self: end;
  color: var(--ink-soft);
  font-size: 10px;
}

.admin-image-editor {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  border-top: 1px solid var(--hairline);
}

.admin-image-preview {
  display: grid;
  min-height: 300px;
  overflow: hidden;
  background:
    linear-gradient(45deg, rgba(15, 43, 73, 0.035) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(15, 43, 73, 0.035) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(15, 43, 73, 0.035) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(15, 43, 73, 0.035) 75%);
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
  place-items: center;
}

.admin-image-preview img {
  width: 100%;
  height: auto;
  max-height: 390px;
  object-fit: contain;
}

.admin-image-controls h3 {
  margin: 0 0 14px;
  font-family: "Marcellus", Georgia, serif;
  font-size: 30px;
  font-weight: 400;
}

.admin-image-controls > p {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.admin-upload-button {
  position: relative;
  display: inline-grid;
  padding: 0 17px;
  margin-bottom: 24px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  place-items: center;
}

.admin-upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.admin-editor-actions {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  padding: 26px 34px 32px;
  border-top: 1px solid var(--hairline);
}

.admin-editor-actions > p {
  max-width: 500px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.admin-editor-actions > div {
  display: flex;
  gap: 12px;
  flex: 0 0 auto;
}

.admin-delete-button {
  padding: 11px 15px;
  color: #7d3a35;
  background: transparent;
}

.admin-empty-state {
  display: grid;
  min-height: 460px;
  padding: 40px;
  text-align: center;
  place-content: center;
}

.admin-empty-state h2,
.admin-denied h1 {
  margin: 20px 0;
  font-family: "Marcellus", Georgia, serif;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 400;
}

.admin-empty-state p {
  color: var(--ink-soft);
}

.admin-denied {
  display: grid;
  min-height: 100vh;
  padding: 60px;
  text-align: center;
  place-content: center;
  justify-items: center;
}

@media (max-width: 980px) {
  .admin-page {
    width: calc(100% - 40px);
    padding-top: calc(var(--header-height) + 42px);
  }

  .admin-heading {
    align-items: start;
  }

  .admin-workspace {
    grid-template-columns: 1fr;
  }

  .admin-projects-panel {
    position: static;
  }

  .admin-project-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-project-list li:nth-child(odd) {
    border-right: 1px solid var(--hairline);
  }
}

@media (max-width: 700px) {
  .admin-page {
    width: calc(100% - 28px);
    padding-top: calc(var(--header-height) + 32px);
  }

  .admin-heading {
    display: grid;
    gap: 25px;
    padding-bottom: 32px;
  }

  .admin-heading h1 {
    font-size: clamp(44px, 13vw, 64px);
  }

  .admin-heading-actions {
    justify-items: start;
  }

  .admin-project-list {
    grid-template-columns: 1fr;
  }

  .admin-project-list li:nth-child(odd) {
    border-right: 0;
  }

  .admin-editor-toolbar,
  .admin-editor-actions {
    align-items: flex-start;
  }

  .admin-editor-toolbar,
  .admin-form-grid,
  .admin-image-editor,
  .admin-editor-actions {
    padding-right: 20px;
    padding-left: 20px;
  }

  .admin-form-grid,
  .admin-image-editor {
    grid-template-columns: 1fr;
  }

  .admin-field-wide {
    grid-column: 1;
  }

  .admin-editor-actions {
    display: grid;
  }

  .admin-editor-actions > div {
    width: 100%;
  }

  .admin-editor-actions button {
    flex: 1;
  }
}

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

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

/*
 * Correctifs 1.0.2 — navigation mobile et chapitre V.
 * Ces règles restent volontairement en fin de feuille afin de neutraliser
 * les styles de mise en page génériques sans modifier les autres chapitres.
 */
.uvuv-project-carousel {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}

.uvuv-project-carousel > .uvuv-project-slides {
  grid-column: 1 / -1;
  min-width: 0;
}

@media (max-width: 820px) {
  body.admin-bar .site-header {
    top: var(--uvuv-admin-offset, 46px);
  }

  .site-header {
    top: var(--uvuv-admin-offset, 0px);
    min-height: var(--header-height);
    padding-top: max(14px, env(safe-area-inset-top));
    overflow: visible;
  }

  .gutenberg-nav,
  .gutenberg-nav .wp-block-navigation__responsive-container-open {
    position: relative;
    z-index: 102;
  }

  .gutenberg-nav .wp-block-navigation__responsive-container.is-menu-open {
    position: fixed;
    inset: 0;
    z-index: 100;
    width: 100vw;
    height: 100dvh;
    min-height: 100svh;
    padding:
      max(82px, calc(58px + env(safe-area-inset-top)))
      clamp(28px, 8vw, 52px)
      max(36px, env(safe-area-inset-bottom));
    overflow-y: auto;
  }

  body.admin-bar .gutenberg-nav .wp-block-navigation__responsive-container.is-menu-open {
    top: var(--uvuv-admin-offset, 46px);
    height: calc(100dvh - var(--uvuv-admin-offset, 46px));
    min-height: calc(100svh - var(--uvuv-admin-offset, 46px));
  }

  .gutenberg-nav .wp-block-navigation__responsive-container-close {
    top: max(22px, env(safe-area-inset-top));
    right: clamp(22px, 6vw, 36px);
  }

  .gutenberg-nav .wp-block-navigation__responsive-container-content,
  .gutenberg-nav .wp-block-navigation__container {
    width: 100%;
  }

  .gutenberg-nav .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__container {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .gutenberg-nav .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation-item__content {
    display: block;
    width: 100%;
    padding: 14px 0;
  }

  .uvuv-project-carousel {
    width: 100%;
    min-height: 0;
    padding-top: calc(var(--header-height) + 22px);
    padding-bottom: 44px;
    overflow: visible;
  }

  .uvuv-project-carousel .uvuv-project-slide.is-active {
    gap: 0;
    min-height: 0;
  }

  .uvuv-project-carousel .project-copy {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
  }

  .uvuv-project-carousel .chapter-copy h2 {
    margin-top: 18px;
    margin-bottom: 8px;
  }

  .uvuv-project-carousel .project-format {
    margin: 0 auto 12px;
  }

  .uvuv-project-carousel .project-art {
    order: 4;
    width: min(100%, 520px);
    margin: 0 auto 12px;
  }

  .uvuv-project-carousel .project-page h3,
  .uvuv-project-carousel h3 {
    margin-top: 2px;
    margin-bottom: 12px;
  }

  .uvuv-project-carousel .project-roles {
    margin-bottom: 24px;
  }

  .uvuv-project-carousel .project-dots {
    margin-top: 18px;
    margin-bottom: 0;
  }

  .uvuv-project-carousel .page-mark {
    display: none;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: var(--uvuv-admin-offset, 46px);
  }
}

@media (max-width: 600px) {
  body.admin-bar .site-header {
    top: var(--uvuv-admin-offset, 46px);
  }

  body.admin-bar .gutenberg-nav .wp-block-navigation__responsive-container.is-menu-open {
    top: var(--uvuv-admin-offset, 46px);
    height: calc(100dvh - var(--uvuv-admin-offset, 46px));
    min-height: calc(100svh - var(--uvuv-admin-offset, 46px));
  }

  .uvuv-project-carousel {
    padding-right: 20px;
    padding-left: 20px;
  }
}
