/* Mindful Mind — mindfulmind.pl */

/* ---------- Fonts (self-hosted, latin + latin-ext) ---------- */
@font-face {
  font-family: "Alegreya";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/alegreya-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Alegreya";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/alegreya-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Alegreya";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/alegreya-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Alegreya";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/alegreya-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Alegreya Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/alegreya-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Alegreya Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/alegreya-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Alegreya Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/alegreya-sans-latin-ext-400-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Alegreya Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/alegreya-sans-latin-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Alegreya Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/alegreya-sans-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Alegreya Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/alegreya-sans-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --mist: #f1f3ef;      /* tło: poranna mgła nad lasem */
  --paper: #fbfcfa;     /* jaśniejsze pasy */
  --lichen: #dce3da;    /* linie, delikatne wypełnienia */
  --lichen-soft: #e7ece5;
  --ink: #1f2b25;       /* tekst: leśny tusz */
  --moss: #4a5f4c;      /* drugi plan, linki */
  --muted: #5c6b60;     /* opisy, źródła */
  --saffron: #b87514;   /* ensō — kolor szaty mnicha */
  --saffron-deep: #9c5f0c;

  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --sans: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;

  --wrap: 72rem;
  --measure: 37rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --space-section: clamp(5.5rem, 12vw, 10.5rem);
  --header-h: 4.25rem;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.1875rem;          /* 19px */
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  font-variant-numeric: oldstyle-nums;
}

p, ul, ol, dl, blockquote, figure { margin: 0; }

a {
  color: var(--moss);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--saffron-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: #ead7b4; color: var(--ink); }

[id] { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--mist);
  padding: 0.6rem 1rem;
  border-radius: 0.4rem;
}
.skip:focus { top: 1rem; color: var(--mist); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 243, 239, 0.9);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--lichen); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  white-space: nowrap;
}
.brand svg { width: 1.9rem; height: 1.9rem; flex: none; }
.brand svg path { fill: var(--saffron); }
.brand:hover { color: var(--ink); }

.nav-list {
  display: flex;
  gap: clamp(1rem, 2.4vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.0625rem;
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
}
.nav-list a:hover { border-bottom-color: var(--saffron); }

.nav-toggle {
  display: none;
  font: inherit;
  font-size: 1.0625rem;
  color: var(--ink);
  background: none;
  border: 1px solid var(--lichen);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  cursor: pointer;
}

@media (max-width: 52rem) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute;
    inset: var(--header-h) 0 auto 0;
    background: var(--mist);
    border-bottom: 1px solid var(--lichen);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .nav-list a {
    display: block;
    padding-block: 0.7rem;
    font-size: 1.25rem;
    font-family: var(--serif);
    border-bottom: 1px solid var(--lichen-soft);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--ink); color: var(--mist); }
.btn-primary:hover { background: var(--moss); border-color: var(--moss); color: var(--paper); }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { background: var(--lichen-soft); color: var(--ink); }

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(4rem, 9vw, 7rem);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}
.hero h1 {
  font-size: clamp(calc(2.125rem - 2px), calc(4vw - 2px), calc(3.25rem - 2px));
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.005em;
  max-width: 14em;
  /* optical alignment: the round "G" touches the edge at one point only,
     so it is hung slightly left to line up with the flat "Z" below */
  margin-left: -0.025em;
}
.hero-sub {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  line-height: 1.3;
  margin-top: 1rem;
  color: var(--moss);
  max-width: 24em;
}
.hero-lead {
  max-width: 31rem;
  margin-top: 2rem;
  font-size: 1.25rem;
  color: var(--ink);
}
.hero .actions { margin-top: 2.25rem; }

/* Breathing ensō — the one moving thing on the page */
.breath {
  justify-self: center;
  width: min(100%, 25rem);
  text-align: center;
}
.breath-stage {
  position: relative;
  aspect-ratio: 1;
}
.breath-stage svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.breath-disc { fill: var(--lichen-soft); }
.breath-enso { fill: var(--saffron); }
.breath-scale {
  transform-origin: 100px 100px;
  transform-box: view-box;
  animation: breathe 10s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
.breath-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  color: var(--moss);
  pointer-events: none;
}
.breath-label span { grid-area: 1 / 1; opacity: 0; }
.breath-label .in { animation: label-in 10s linear infinite; }
.breath-label .out { animation: label-out 10s linear infinite; }
.breath-label .still { display: none; }

.breath-note {
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  color: var(--muted);
}
.breath-control {
  margin-top: 0.35rem;
  font-size: 1.0625rem;
}
.breath-toggle {
  font: inherit;
  color: var(--moss);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.breath.is-paused .breath-scale,
.breath.is-paused .breath-label span { animation-play-state: paused; }

/* 5 s wdech, 5 s wydech */
@keyframes breathe {
  0%   { transform: scale(0.74) rotate(-6deg); }
  50%  { transform: scale(1) rotate(0deg); }
  100% { transform: scale(0.74) rotate(-6deg); }
}
@keyframes label-in {
  0% { opacity: 0; }
  6% { opacity: 1; }
  42% { opacity: 1; }
  49%, 100% { opacity: 0; }
}
@keyframes label-out {
  0%, 50% { opacity: 0; }
  56% { opacity: 1; }
  92% { opacity: 1; }
  99%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .breath-scale,
  .breath-label .in,
  .breath-label .out { animation: none; }
  .breath-label .in,
  .breath-label .out { display: none; }
  .breath-label .still { display: block; opacity: 1; }
  .breath-toggle { display: none; }
}

@media (max-width: 52rem) {
  .hero-inner { grid-template-columns: 1fr; }
  .breath { width: min(78%, 20rem); order: 2; }
}

/* ---------- Sections: heading in the margin, text in the reading column ---------- */
.section { padding-block: var(--space-section); }
.section-paper { background: var(--paper); }

.marginal {
  display: grid;
  grid-template-columns: minmax(11rem, 1fr) minmax(0, var(--measure));
  column-gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}
.marginal > h2,
.marginal > .side {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.05;
}
.col {
  max-width: var(--measure);
}
.col-wide { max-width: none; }
.marginal-next { margin-top: clamp(4.5rem, 9vw, 7rem); }
.marginal-wide { grid-template-columns: minmax(11rem, 1fr) minmax(0, 2.2fr); }

.col > * + * { margin-top: 1.5rem; }

.lead {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  line-height: 1.3;
}
.col h3 {
  font-size: 1.625rem;
  margin-top: 3.75rem;
}
.col h3 + * { margin-top: 1.25rem; }

.note {
  font-size: 1.0625rem;
  color: var(--muted);
}

@media (max-width: 52rem) {
  .marginal { grid-template-columns: 1fr; }
  .marginal > h2 {
    position: static;
    margin-bottom: 1.75rem;
  }
}

/* Lists */
.plain {
  list-style: none;
  padding: 0;
}
.plain li {
  position: relative;
  padding-left: 1.6rem;
}
.plain li + li { margin-top: 0.85rem; }
.plain li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.62em;
  width: 0.55rem;
  height: 0.55rem;
  border: 1.5px solid var(--saffron);
  border-radius: 50%;
}

/* Two ways of practice */
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2.5rem;
  margin-top: 3rem !important;
}
.pair h3 {
  margin-top: 0;
  font-size: 1.625rem;
}
.pair p { margin-top: 0.85rem; }
@media (max-width: 40rem) {
  .pair { grid-template-columns: 1fr; }
}

.quote {
  margin-top: 3.5rem !important;
  padding-left: 1.5rem;
  border-left: 2px solid var(--saffron);
}
.quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.35;
}
.quote footer {
  margin-top: 0.6rem;
  font-size: 1.0625rem;
  color: var(--muted);
}

/* Research findings: figures hang in their own column */
.findings {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem !important;
}
.findings li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  column-gap: 1.25rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--lichen);
}
.findings li:last-child { border-bottom: 1px solid var(--lichen); }
.fig {
  font-family: var(--serif);
  font-size: 2.25rem;
  line-height: 1;
  color: #a8690f;
  font-variant-numeric: lining-nums;
}
.fig-word { font-size: 1.5rem; line-height: 1.1; }
.findings .src {
  margin-top: 0.3rem;
  font-size: 1rem;
  color: var(--muted);
}
@media (max-width: 30rem) {
  .findings li { grid-template-columns: 1fr; row-gap: 0.4rem; }
}

/* Session steps (a real sequence) */
.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  column-gap: 1rem;
}
.steps li + li { margin-top: 1.5rem; }
.steps li::before {
  content: counter(step);
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1.1;
  color: var(--saffron-deep);
  font-variant-numeric: lining-nums;
}
.steps strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3125rem;
}

/* Price */
.price {
  margin-top: 3.5rem !important;
  padding-top: 2.25rem;
  border-top: 1px solid var(--lichen);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.5rem 1.75rem;
}
.price-amount {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  line-height: 1;
  font-variant-numeric: lining-nums;
}
.price-amount small {
  font-size: 0.45em;
  color: var(--muted);
}
.price-meta {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.45;
}
.price .actions {
  grid-column: 1 / -1;
  margin-top: 1.5rem;
}
.price .note { grid-column: 1 / -1; text-align: center; }

/* Tematy spotkań grupowych */
.themes {
  margin-top: 1.5rem !important;
}
.themes div {
  padding-block: 1.35rem;
  border-top: 1px solid var(--lichen);
}
.themes dt {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 500;
}
.themes dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}
.about-photo img {
  width: 100%;
  border-radius: 0.5rem;
}
.about-photo figcaption {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: var(--muted);
}
.about h2 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
}
.about .col { margin-top: 1.5rem; }
@media (max-width: 52rem) {
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 26rem; }
}

/* ---------- Testimonials ---------- */
.voices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3.5rem clamp(2.5rem, 5vw, 4.5rem);
}
/* grid gap does the spacing; keeps both columns on one line */
.voices > * + * { margin-top: 0; }
.voices blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3125rem;
  line-height: 1.45;
}
.voices footer {
  margin-top: 0.75rem;
  font-size: 1.0625rem;
  color: var(--muted);
}
@media (max-width: 46rem) {
  .voices { grid-template-columns: 1fr; }
}

/* ---------- Echo Snu ---------- */
.echo-motto {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.75rem, 3.4vw, 2.375rem);
  line-height: 1.2;
  color: var(--moss);
}

/* ---------- Contact ---------- */
.contact-mail {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.625rem, 2.4vw, 1.75rem);
  line-height: 1.2;
  color: var(--ink);
  word-break: break-word;
}
.contact-lines {
  list-style: none;
  padding: 0;
}
.contact-lines li + li { margin-top: 0.35rem; }
.closing {
  margin-top: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.625rem;
  color: var(--moss);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--lichen);
  padding-block: 2.5rem 3rem;
  font-size: 1rem;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  padding: 0;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.footer-small {
  flex-basis: 100%;
  font-size: 0.9375rem;
}

/* ---------- Privacy page ---------- */
.doc {
  padding-block: clamp(3rem, 7vw, 5.5rem) var(--space-section);
}
.doc h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
}
.doc h2 {
  font-size: 1.625rem;
  margin-top: 2.5rem;
}
.doc .col > * + * { margin-top: 1rem; }
.doc ul { padding-left: 1.25rem; }
.doc li + li { margin-top: 0.35rem; }
.todo {
  background: #f5e6c8;
  padding: 0 0.25em;
  border-radius: 0.2em;
}

@media (max-width: 52rem) {
  .marginal-wide { grid-template-columns: 1fr; }
}

@media (max-width: 34rem) {
  .price { grid-template-columns: 1fr; }
}

/* ---------- Line illustrations ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.section { --art-bg: var(--mist); }
.section-paper { --art-bg: var(--paper); }
.art {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.art path,
.art circle,
.art rect {
  fill: none;
  stroke: var(--moss);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.art .fill { fill: var(--art-bg); }
.art .accent { fill: var(--saffron); stroke: none; }

.side h2 {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1.05;
}
.side-art {
  max-width: 15rem;
  margin-top: 2.75rem;
}
.pair .art {
  max-width: 13.5rem;
  margin-bottom: 1.5rem;
}
.joy {
  max-width: 17rem;
  margin-top: 3rem !important;
  text-align: center;
}
.joy .closing {
  margin-top: 1rem;
  margin-inline: -1.5rem;
  white-space: nowrap;
}

@media (max-width: 52rem) {
  .marginal > .side {
    position: static;
    margin-bottom: 1.75rem;
  }
  .side-art {
    max-width: 12.5rem;
    margin-top: 1.75rem;
  }
}

/* illustrations centred on phones */
@media (max-width: 52rem) {
  .side-art,
  .joy { margin-inline: auto; }
}
@media (max-width: 40rem) {
  .pair .art { margin-inline: auto; }
}

/* footer: privacy on its own line on phones, three links together */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.footer-links a { font-weight: 700; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--ink); }
.cookie-open {
  font: inherit;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.cookie-open:hover { color: var(--ink); }
.doc .col .cookie-open { color: var(--moss); }
.doc .col .cookie-open:hover { color: var(--ink); }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed;
  z-index: 60;
  left: var(--gutter);
  bottom: 1.25rem;
  width: min(25rem, calc(100% - 2 * var(--gutter)));
  padding: 1.1rem 1.25rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--lichen);
  border-radius: 0.75rem;
  box-shadow: 0 0.75rem 2.5rem rgba(31, 43, 37, 0.12);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
}
.cookie[hidden] { display: none; }
.cookie-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.9rem;
}
.cookie-actions button {
  flex: 1;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.cookie-actions button:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 40rem) {
  .cookie { bottom: 0.75rem; }
}
@media (max-width: 40rem) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
  }
  .footer-legal { justify-content: center; }
  .footer-links {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 1.5rem;
  }
}
