/* =========================================================================
   Syntetyc design tokens
   One source of truth for colour, type, space and shape.
   Nothing in this file changes at runtime: the site is static.
   ========================================================================= */

:root {
  /* The site is a light editorial page: the browser is told, so the form
     controls and the scrollbars do not turn dark on a dark system. */
  color-scheme: light;

  /* ---- Surfaces ------------------------------------------------------- */
  --paper: #ffffff;
  --paper-warm: #f2efe8;
  --paper-deep: #e7e3d9;
  --ink: #14161b;
  --ink-soft: #3d424c;
  --ink-muted: #636a76;
  --ink-faint: #707680;

  --line: #e3dfd7;
  --line-strong: #cec8bc;
  --line-dark: #2a2e37;

  /* ---- Accent --------------------------------------------------------- */
  --pine: #0f6b4e;
  --pine-dark: #0a4f39;
  --pine-tint: #e7f0ec;
  --pine-bright: #00a873;
  --clay: #a4502c;
  --clay-tint: #f7ebe5;
  --gold: #9a7420;

  /* ---- Type ----------------------------------------------------------- */
  --font-display: "Bricolage Grotesque", "Instrument Sans", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-text: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* A scale with even steps: every size is the previous one plus a fifth,
     so the jump from a section title to a card title never looks broken. */
  --step--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.0625rem, 1.01rem + 0.25vw, 1.1875rem);
  --step-2: clamp(1.25rem, 1.16rem + 0.45vw, 1.4375rem);
  --step-3: clamp(1.5rem, 1.34rem + 0.8vw, 1.875rem);
  --step-4: clamp(1.875rem, 1.58rem + 1.45vw, 2.625rem);
  --step-5: clamp(2.25rem, 1.76rem + 2.45vw, 3.625rem);
  --step-6: clamp(2.75rem, 1.95rem + 4vw, 4.5rem);

  --leading-tight: 1.04;
  --leading-snug: 1.18;
  --leading-normal: 1.45;
  --leading-relaxed: 1.6;

  --tracking-tight: -0.03em;
  --tracking-snug: -0.015em;
  --tracking-normal: 0;
  --tracking-wide: 0.01em;
  --tracking-caps: 0.12em;

  /* ---- Space ---------------------------------------------------------- */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2.25rem;
  --space-xl: 3.5rem;
  --space-2xl: 5rem;
  --space-3xl: 7.5rem;

  --section-space: clamp(3.5rem, 7vw, 7rem);
  --section-space-tight: clamp(2.5rem, 4.5vw, 4rem);

  /* ---- Layout --------------------------------------------------------- */
  --container: 1280px;
  --container-narrow: 880px;
  --measure: 68ch;
  --measure-tight: 56ch;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);

  /* ---- Shape ---------------------------------------------------------- */
  --radius: 2px;
  --radius-lg: 3px;
  --border: 1px solid var(--line);

  /* ---- Focus ---------------------------------------------------------- */
  /* The ring of the keyboard. The green of the brand is too dark to be seen
     on the dark footer, so there is a second colour for the dark surfaces. */
  --focus-ring: var(--pine);
  --focus-ring-dark: var(--pine-bright);
  --focus-width: 2px;

  /* ---- Motion --------------------------------------------------------- */
  --ease: cubic-bezier(0.32, 0.72, 0.28, 1);
  --dur-fast: 140ms;
  --dur: 240ms;
  --dur-slow: 520ms;

  /* ---- Layers --------------------------------------------------------- */
  --z-header: 100;
  --z-menu: 200;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0ms;
    --dur: 0ms;
    --dur-slow: 0ms;
  }
}

/* =========================================================================
   The scale of the breakpoints
   =========================================================================
   Three widths decide the whole layout. Every media query of the site uses
   one of them, so the page changes the same way on every part of it.

     640px   a phone in the hand
     768px   a tablet
     1024px  a laptop

   The queries are written from the wide side down, because that is how the
   layout is built: the columns of a grid are set at 1024px and fall back to
   two at 640px and to one below.
   ========================================================================= */

/* =========================================================================
   Base: reset, self-hosted fonts, document defaults
   ========================================================================= */

/* ---- Fonts (self-hosted, no CDN) -------------------------------------- */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin.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: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-ext.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: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin.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: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin-ext.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: "Instrument Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-italic-latin.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: "Instrument Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-italic-latin-ext.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;
}

/* ---- Reset ------------------------------------------------------------- */

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

/*
 * The attribute hidden hides a thing whatever the styles of the site say
 * about it, so a block that is waiting for the script does not show.
 */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

/* A page that moves by itself is a problem for the reader who asked the
   system to move less. The jump is instant instead of smooth. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: var(--leading-relaxed);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--space-s);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
  font-optical-sizing: auto;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-5);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}
h2 {
  font-size: var(--step-4);
  line-height: 1.08;
  letter-spacing: var(--tracking-tight);
}
h3 {
  font-size: var(--step-2);
  line-height: 1.2;
  letter-spacing: var(--tracking-snug);
}
h4 {
  font-size: var(--step-1);
  font-family: var(--font-text);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-normal);
}

p {
  margin: 0 0 var(--space-s);
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0 0 var(--space-s);
  padding-left: 1.15em;
}

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

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

a:hover {
  color: var(--pine-dark);
}

/*
 * The ring of the keyboard.
 *
 * The rule is written twice: :focus is the fallback for the browsers that do
 * not know :focus-visible, and :focus:not(:focus-visible) takes the ring away
 * from the mouse, so a click never leaves a mark on the page.
 */
:focus {
  outline: var(--focus-width) solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 1px;
}

/*
 * The ring has to be seen on every surface. The green of the brand
 * disappears on the dark footer, the dark banner and the dark section, so
 * there the ring takes the bright green.
 */
.site-footer :focus,
.banner :focus,
.social-strip :focus,
.section--ink :focus {
  outline-color: var(--focus-ring-dark);
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: var(--focus-width) solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 1px;
}

.site-footer :focus-visible,
.banner :focus-visible,
.social-strip :focus-visible,
.section--ink :focus-visible {
  outline-color: var(--focus-ring-dark);
}

/* The text that is selected carries the colour of the brand. */
::selection {
  background: var(--pine-tint);
  color: var(--ink);
}

/* The controls of the browser follow the colour of the brand. */
input,
textarea,
select,
button {
  accent-color: var(--pine);
}

hr {
  border: 0;
  border-top: var(--border);
  margin: var(--space-xl) 0;
}

blockquote {
  margin: var(--space-l) 0;
  padding-left: var(--space-m);
  border-left: 2px solid var(--pine);
  font-family: var(--font-text);
  font-style: italic;
  font-size: var(--step-1);
  line-height: var(--leading-normal);
  color: var(--ink);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step-0);
}

th,
td {
  text-align: left;
  padding: var(--space-xs) var(--space-s);
  border-bottom: var(--border);
}

th {
  color: var(--ink);
  font-weight: 600;
}

code,
kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

/* ---- Utilities --------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: var(--space-s);
  z-index: 500;
  transform: translateY(-120%);
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-2xs) var(--space-s);
  font-size: var(--step--1);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(var(--space-s));
  color: var(--paper);
}

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

.nowrap {
  white-space: nowrap;
}

/* =========================================================================
   Layout: containers, header, navigation, footer, section rhythm
   ========================================================================= */

/* ---- Containers -------------------------------------------------------- */

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

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--section-space);
}

.section--tight {
  padding-block: var(--section-space-tight);
}

.section--warm {
  background: var(--paper-warm);
}

/*
 * The white paper of the page, written down. A page that puts a warm section
 * in the middle can pin the sections around it to the white paper, instead of
 * letting the rhythm of the page decide.
 */
.section--white {
  background: var(--paper);
}

.section--deep {
  background: var(--paper-deep);
}

.section--ink {
  background: var(--ink);
  color: #d9dbe0;
}

.section--ink h1,
.section--ink h2,
.section--ink h3,
.section--ink h4 {
  color: var(--paper);
}

.section--rule {
  border-top: var(--border);
}

.stack > * + * {
  margin-top: var(--space-s);
}

.stack-l > * + * {
  margin-top: var(--space-l);
}

/* ---- Header ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  /* Solid on purpose: a translucent bar lets the page show through and
     reads as a layer floating over the content instead of a fixed bar. */
  background: var(--paper);
  border-bottom: var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  min-height: 2.75rem;
  text-decoration: none;
  flex: 0 0 auto;
}

/*
 * The logo is the mark of the house, so it is the biggest thing of the
 * header: the name of the site has to be readable at a glance. It is a
 * vector, so it grows without losing a single pixel.
 */
.brand__logo {
  width: auto;
  height: 2.75rem;
}

.brand__wordmark {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: var(--weight-semibold);
  color: var(--ink);
  letter-spacing: var(--tracking-snug);
  line-height: 1;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-m);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
 * The links of the menu look like links: the colour of a link and a line
 * under it. A menu written in the colour of the text says nothing about the
 * fact that those words take the reader somewhere else.
 *
 * The page that is open is said in the colour of the ink and with a thicker
 * line, so that it is not confused with the other links of the row.
 */
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.4rem;
  font-size: var(--step--1);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  color: var(--pine);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: color var(--dur-fast) var(--ease),
    text-decoration-thickness var(--dur-fast) var(--ease);
}

.nav__link:hover {
  color: var(--pine-dark);
  text-decoration-thickness: 2px;
}

.nav__link:active {
  color: var(--pine-dark);
}

.nav__link[aria-current="page"] {
  color: var(--ink);
  text-decoration-color: var(--ink);
  text-decoration-thickness: 2px;
}

/* Language switcher: a compact text toggle, not a select. */
.lang {
  display: flex;
  align-items: center;
  gap: var(--space-3xs);
  font-size: var(--step--1);
  border-left: var(--border);
  padding-left: var(--space-s);
  margin-left: var(--space-2xs);
}

.lang__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--pine);
  letter-spacing: var(--tracking-wide);
  font-weight: var(--weight-medium);
  padding: 0.6rem 0.35rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.lang__link:hover {
  color: var(--pine-dark);
  text-decoration-thickness: 2px;
}

.lang__link[aria-current="true"] {
  color: var(--ink);
  text-decoration-color: var(--pine);
  text-decoration-thickness: 2px;
}

.lang__sep {
  color: var(--line-strong);
}

/*
 * The button of the header sits at the end of the menu, right after the
 * last link, so the way into the shop is the last thing of the row.
 */
.nav__item--cta {
  margin-left: var(--space-s);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}

.nav-toggle:hover {
  background: var(--paper-warm);
}

.nav-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ---- Mobile navigation ------------------------------------------------- */

.nav-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(22rem, 86vw);
  background: var(--paper);
  border-left: var(--border);
  z-index: var(--z-menu);
  transform: translateX(100%);
  transition: transform var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.nav-drawer[data-open="true"] {
  transform: translateX(0);
}

.nav-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-s) var(--space-m);
  border-bottom: var(--border);
}

.nav-drawer__list {
  list-style: none;
  margin: 0;
  padding: var(--space-s) var(--space-m);
  display: flex;
  flex-direction: column;
}

.nav-drawer__link {
  display: block;
  padding: var(--space-s) 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: var(--weight-semibold);
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
  border-bottom: var(--border);
}

.nav-drawer__link[aria-current="page"] {
  color: var(--pine);
}

.nav-drawer__foot {
  margin-top: auto;
  padding: var(--space-m);
  border-top: var(--border);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgb(20 22 27 / 0.55);
  z-index: calc(var(--z-menu) - 1);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
}

.nav-overlay[data-open="true"] {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1023px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav .nav__list,
  .nav .lang {
    display: none;
  }

  .nav {
    margin-left: auto;
  }
}

/* ---- Footer ------------------------------------------------------------ */

.site-footer {
  background: var(--ink);
  color: #a9aeb8;
  padding-block: var(--space-2xl) var(--space-l);
  font-size: var(--step--1);
}

.site-footer a {
  color: #d6d9df;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--space-xl) var(--space-l);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--line-dark);
}

.site-footer__brand .brand__wordmark {
  color: var(--paper);
}

.site-footer__tagline {
  margin-top: var(--space-s);
  max-width: 34ch;
  color: #9298a3;
  line-height: var(--leading-normal);
}

.footer-heading {
  font-family: var(--font-text);
  font-size: var(--step--1);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: var(--space-s);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding-block: 0.15rem;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  padding-top: var(--space-l);
  color: #7d838e;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: #a9aeb8;
  transition: color var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.footer-social a:hover {
  color: var(--paper);
  border-color: var(--ink-faint);
}

.footer-social a:active {
  transform: translateY(1px);
}

.footer-social svg {
  width: 1.15rem;
  height: 1.15rem;
}

@media (max-width: 1023px) {
  .site-footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-l) var(--space-m);
  }
}

@media (max-width: 639px) {
  .site-footer__top {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- Page intro -------------------------------------------------------- */

.page-head {
  padding-block: var(--space-2xl) var(--space-xl);
  border-bottom: var(--border);
}

.page-head__inner {
  max-width: var(--container-narrow);
}

/* ---- Breadcrumbs ------------------------------------------------------- */

.breadcrumbs {
  font-size: var(--step--1);
  color: var(--ink-muted);
  margin-bottom: var(--space-m);
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2xs);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: var(--space-2xs);
  color: var(--line-strong);
}

.breadcrumbs a {
  color: var(--ink-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* =========================================================================
   Components: the reusable pieces of the design system
   ========================================================================= */

.icon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
}

/*
 * The sprite holds the symbols of the icons. It is a container of definitions
 * and it must not take any space in the page, so it is collapsed instead of
 * being left as an empty box of 300 by 150 pixels above the header.
 */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---- Eyebrow ----------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  margin: 0 0 var(--space-s);
  font-family: var(--font-text);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--pine);
}

.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  flex: 0 0 auto;
}

.eyebrow--plain::before {
  display: none;
}

.eyebrow__count {
  color: var(--ink-faint);
  font-weight: 500;
}

/* ---- Lead paragraph ---------------------------------------------------- */

.lead {
  font-size: var(--step-1);
  line-height: var(--leading-normal);
  color: var(--ink-soft);
  max-width: var(--measure);
}

.lead--tight {
  font-size: var(--step-1);
}

/* ---- Hero -------------------------------------------------------------- */

.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) var(--space-2xl);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__title {
  font-size: var(--step-6);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-m);
}

.hero__text {
  font-size: var(--step-1);
  line-height: var(--leading-normal);
  color: var(--ink-soft);
  max-width: 34ch;
}

/*
 * The mark of the hero: the icon that says what the page is about, the
 * envelope of the page of contact.
 */
.hero__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: var(--space-m);
  border: 1px solid var(--pine-tint);
  border-radius: var(--radius);
  background: var(--pine-tint);
  color: var(--pine);
  font-size: 1.75rem;
}

.hero__media {
  position: relative;
}

.hero__media img {
  width: 100%;
  aspect-ratio: var(--ratio, 4 / 5);
  object-fit: cover;
  max-height: 76vh;
  border-radius: var(--radius);
  background: var(--paper-warm);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-s);
  margin-top: var(--space-m);
}

@media (max-width: 1023px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__media {
    order: -1;
  }

  .hero__text {
    max-width: none;
  }
}

/* ---- Hero variants ----------------------------------------------------- */

.hero--center {
  text-align: center;
}

.hero--center .hero__inner {
  grid-template-columns: minmax(0, 1fr);
}

.hero--center .hero__body {
  max-width: var(--measure);
  margin-inline: auto;
}

.hero--center .hero__text {
  margin-inline: auto;
  max-width: var(--measure);
}

.hero--center .hero__actions {
  justify-content: center;
}

.hero--center .hero__media {
  margin-top: clamp(2rem, 4vw, 3.5rem);
}

/* ---- Hero with a picture behind the text ------------------------------- */

/*
 * The picture fills the whole width of the page and the text sits on top of
 * it, the way the original site opened the home page.
 */
.hero--bg {
  position: relative;
  display: grid;
  align-content: start;
  min-height: clamp(560px, 82vh, 860px);
  padding-block: clamp(2.5rem, 8vh, 5rem) clamp(3rem, 10vh, 6rem);
  overflow: hidden;
  background: var(--paper-warm);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}

/*
 * The veil keeps the text readable over the picture. It is white because the
 * sky of the illustration is pale: the dark text of the site keeps its
 * contrast without darkening the artwork.
 */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.6) 42%,
    rgba(255, 255, 255, 0.24) 72%,
    rgba(255, 255, 255, 0.12) 100%
  );
}

.hero--bg .container {
  position: relative;
  z-index: 1;
}

.hero--bg .hero__inner {
  grid-template-columns: minmax(0, 1fr);
}

.hero--bg .hero__body {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}

.hero--bg .hero__title {
  font-size: var(--step-5);
  max-width: 44rem;
  margin-inline: auto;
}

.hero--bg .hero__text {
  max-width: 42rem;
  margin-inline: auto;
}

.hero--bg .hero__actions {
  justify-content: center;
}

/*
 * A hero with a dark veil. The artwork of a shop is bright and the text of
 * the site is dark, so the picture needs a dark veil under a light text. It
 * is the veil of the hero of the course and of the free brushes, and the
 * text sits on the left, where the veil is thickest.
 */
.hero--bg--dark .hero__scrim {
  background: linear-gradient(
    115deg,
    rgba(9, 11, 15, 0.94) 0%,
    rgba(9, 11, 15, 0.86) 30%,
    rgba(9, 11, 15, 0.52) 58%,
    rgba(9, 11, 15, 0.22) 82%,
    rgba(9, 11, 15, 0.06) 100%
  );
}

.hero--bg--dark .hero__body {
  max-width: 44rem;
  margin-inline: 0;
  text-align: left;
}

.hero--bg--dark .hero__title {
  color: var(--paper);
}

.hero--bg--dark .hero__text {
  max-width: 42rem;
  margin-inline: 0;
  color: rgba(255, 255, 255, 0.88);
}

/*
 * The text of a hero with a dark veil is on the left, and everything that
 * goes with it has to start on the same left line: the sentence, the reasons
 * to trust the shop and the buttons. The rules of the hero with a white veil
 * centre them, because that hero centres its text too.
 */
.hero--bg--dark .hero__actions {
  justify-content: flex-start;
}

.hero--bg--dark .eyebrow {
  color: var(--pine-bright);
}

.hero--bg--dark .block-price {
  color: var(--paper);
}

.hero--bg--dark .benefit {
  color: rgba(255, 255, 255, 0.82);
}

.hero--bg--dark .benefit svg {
  color: var(--pine-bright);
}

.hero--bg--dark .btn--outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--paper);
}

.hero--bg--dark .btn--outline:hover {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

/*
 * A hero of less height: the picture is behind the text and the text says
 * enough in a short band, without the reader having to scroll to see the
 * first thing of the page.
 */
.hero--bg--compact {
  min-height: clamp(360px, 56vh, 520px);
  padding-block: clamp(1.75rem, 5vh, 3rem) clamp(2rem, 6vh, 3.5rem);
}

/*
 * A hero that says only the title and the sentence. The band is as short as
 * that text needs, so the page starts without the reader having to scroll.
 */
.hero--bg--short {
  min-height: clamp(250px, 38vh, 340px);
  padding-block: clamp(1.5rem, 4vh, 2.25rem) clamp(1.75rem, 5vh, 2.75rem);
}

@media (max-width: 767px) {
  .hero--bg {
    min-height: clamp(460px, 68vh, 620px);
  }

  /*
   * On a narrow screen the picture is cropped to its middle, where the
   * character stands, and the text lands on top of it. The crop moves to the
   * empty sky instead.
   */
  .hero__bg img {
    object-position: 25% 50%;
  }

  .hero__scrim {
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.55) 0%,
      rgba(255, 255, 255, 0.4) 45%,
      rgba(255, 255, 255, 0.12) 78%,
      rgba(255, 255, 255, 0) 100%
    );
  }
}

/*
 * On a narrow screen the picture of a hero with a dark veil is cropped and the
 * text lands on top of it, so the veil has to cover the whole picture and the
 * crop moves to the character of the illustration. A hero of less height stays
 * less height on a phone too.
 */
@media (max-width: 767px) {
  .hero--bg--dark .hero__scrim {
    background: linear-gradient(
      to bottom,
      rgba(9, 11, 15, 0.93) 0%,
      rgba(9, 11, 15, 0.87) 55%,
      rgba(9, 11, 15, 0.72) 100%
    );
  }

  .hero--bg--dark .hero__bg img {
    object-position: 78% 50%;
  }

  .hero--bg--compact {
    min-height: clamp(320px, 48vh, 440px);
  }

  .hero--bg--short {
    min-height: clamp(230px, 34vh, 320px);
  }
}

/* ---- Section header ---------------------------------------------------- */

.section-head {
  max-width: var(--container-narrow);
  margin-bottom: var(--space-xl);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

/*
 * A head with a button at its right. The title takes the room that is left
 * and the button sits in the corner, so the reader finds the way out of the
 * section without scrolling through all of it.
 */
.section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-m) var(--space-l);
  max-width: none;
}

.section-head--row .section-head__body {
  flex: 1 1 20rem;
  min-width: 0;
}

/* The button keeps its shape when it falls under the title on a phone. */
@media (max-width: 639px) {
  .section-head--row .btn {
    width: 100%;
  }
}

.section-head__title {
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-s);
}

.section-head__text {
  color: var(--ink-muted);
  font-size: var(--step-1);
  max-width: var(--measure);
}

/* ---- Buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.8rem 1.45rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-text);
  font-size: var(--step--1);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

/* The press is felt: the button goes down a pixel under the finger. */
.btn:active {
  transform: translateY(1px);
}

.btn svg {
  width: 1.05em;
  height: 1.05em;
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
}

.btn--primary:hover {
  background: var(--pine-dark);
  color: var(--paper);
}

.btn--accent {
  background: var(--pine);
  color: #fff;
}

.btn--accent:hover {
  background: var(--pine-dark);
  color: #fff;
}

.btn--outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--ink);
  background: var(--paper);
  color: var(--ink);
}

.btn--light {
  background: var(--paper);
  color: var(--ink);
}

.btn--light:hover {
  background: var(--paper-warm);
  color: var(--ink);
}

.btn--ghost-light {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--ghost-light:hover {
  border-color: var(--paper);
  color: var(--paper);
}

.btn--sm {
  min-height: 2.75rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.8125rem;
}

/* ---- Text link with arrow ---------------------------------------------- */

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-text);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--pine);
  text-decoration: none;
}

/*
 * The line goes under the words and not under the arrow, so the arrow keeps
 * its own shape.
 */
.link-arrow__text {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.link-arrow svg {
  width: 1rem;
  height: 1rem;
  transition: transform var(--dur-fast) var(--ease);
}

.link-arrow:hover {
  color: var(--pine-dark);
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

.link-arrow:hover .link-arrow__text {
  text-decoration-thickness: 2px;
}

/* ---- Grids ------------------------------------------------------------- */

.grid {
  display: grid;
  gap: var(--space-l) var(--space-m);
  grid-template-columns: repeat(auto-fill, minmax(var(--min, 16rem), 1fr));
}

.grid--tight {
  gap: var(--space-m) var(--space-s);
}

.grid--2 {
  grid-template-columns: repeat(auto-fill, minmax(min(24rem, 100%), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr));
}

/* The number of columns is decided by the breakpoint and not by the space
   that is left over, so a row of cards always looks the same. */
@media (min-width: 1024px) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/*
 * The catalogue of a shop is long, so it keeps two columns on a phone.
 * One column of products would be a page that never ends.
 */
@media (max-width: 639px) {
  .grid--catalogue {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/*
 * The grid of the products of a work has one card of every format: prints,
 * clothes, objects for the house and the small things. The cards of the
 * gallery are too big for a grid that holds a dozen of them, so the grid of
 * the products has its own size: six across on a laptop, four on a tablet and
 * two on a phone, where one column would make the page endless.
 */
.grid--products {
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
}

@media (min-width: 1024px) {
  .grid--products {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .grid--products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .grid--products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/*
 * The band of cards with an icon: four across on a laptop, two on a tablet and
 * one on a phone. The columns are decided by the breakpoint and not by the
 * space that is left over, so the band always looks the same.
 */
@media (min-width: 1024px) {
  .grid--icons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .grid--icons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .grid--icons {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- The grid of the portfolio ------------------------------------------ */

/*
 * A work of the gallery is a square with its picture, and the name of the
 * work arrives over the picture when the pointer does.
 */
.work-card {
  position: relative;
  min-width: 0;
}

.work-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--paper-warm);
  border-radius: var(--radius);
}

.work-card__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  transition: transform var(--dur-slow) var(--ease);
}

.work-card:hover .work-card__media img,
.work-card:focus-within .work-card__media img {
  transform: scale(1.04);
}

/* The veil over the picture: soft, dark and transparent. */
.work-card__overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.75rem 0.85rem 0.85rem;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.82) 0%,
    rgba(10, 10, 10, 0.55) 45%,
    rgba(10, 10, 10, 0) 100%
  );
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
  pointer-events: none;
}

.work-card:hover .work-card__overlay,
.work-card:focus-within .work-card__overlay {
  opacity: 1;
}

.work-card__title {
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: var(--weight-semibold);
  line-height: 1.3;
  letter-spacing: var(--tracking-snug);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

/*
 * The line under the name of the work: what the thing costs. It shares the
 * veil of the title, so it arrives with it.
 */
.work-card__meta {
  display: block;
  margin-top: 0.2rem;
  font-size: var(--step--1);
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

/*
 * On a screen without a pointer there is no hover, so the name is always
 * there. The width of the site is 640, 768 and 1024, and the small screens
 * are the ones that need it.
 */
@media (max-width: 767px) {
  .work-card__overlay {
    opacity: 1;
  }
}

/*
 * The grid of the portfolio can also be a masonry: every work keeps the ratio
 * of its picture and the columns fill the space they have, so there are no
 * two rows of the same height. The columns of the CSS do the work, so the
 * page needs no script to lay them out.
 *
 * The card of the work does not change: the same picture, the same name over
 * the picture when the pointer arrives and the same zoom. Only the shape of
 * the grid is different.
 */
.grid.grid--masonry {
  display: block;
  column-count: 4;
  column-gap: var(--space-s);
}

@media (max-width: 1023px) {
  .grid.grid--masonry {
    column-count: 3;
  }
}

@media (max-width: 767px) {
  .grid.grid--masonry {
    column-count: 2;
  }
}

@media (max-width: 639px) {
  .grid.grid--masonry {
    column-count: 1;
  }
}

/* A work is never cut in two by the edge of a column. */
.grid--masonry > .work-card {
  width: 100%;
  margin: 0 0 var(--space-s);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}

/*
 * A work of a masonry is shown as it is: the picture keeps its own ratio
 * instead of being cropped into a square.
 *
 * The ratio is the one of the picture, written down in its style (`--ratio`).
 * A browser that has to open the file to know how tall the picture is stops
 * waiting and asks for every picture of the gallery at once, and a gallery of
 * fifty works is a lot of pictures to ask for before the reader scrolls.
 */
.grid--masonry .work-card__media img {
  height: auto;
  aspect-ratio: var(--ratio, auto);
}

/*
 * A card of a masonry keeps the ratio of its picture too, so a picture that
 * is wider than it is tall is not cut to fit a portrait. The card is the one
 * of the other grids, with the same name, the same text and the same button.
 */
.grid--masonry > .card {
  width: 100%;
  margin: 0 0 var(--space-s);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}

.grid--masonry .card__media img {
  height: auto;
  aspect-ratio: var(--ratio, auto);
}

/*
 * The card of a shop shows the screenshot of the shop as it is.
 *
 * The other grids of cards cut the picture to a portrait, because that is
 * what a card of a work wants. The picture of a shop is a screenshot of its
 * page: cut, it loses the logo of the shop and says nothing. So the card
 * keeps the ratio of the screenshot, and a line around it tells where the
 * picture ends.
 */
.grid--shops .card__media {
  border: var(--border);
}

.grid--shops .card__media img {
  height: auto;
  aspect-ratio: var(--ratio, auto);
}

/*
 * The grid of the mousepads shows the drawing as the mat shows it, in the
 * wide format of the mousepad, and not the photograph of the desk where the
 * mat lies. A mat is wider than it is tall, so the card keeps that ratio and
 * the picture is not cut into a square.
 */
.grid--mousepads .work-card__media img {
  height: auto;
  aspect-ratio: var(--ratio, auto);
}

/*
 * The button of the card of a shop always sits at the bottom of the card, so
 * the buttons of a row are in a line even when the sentence of one shop is
 * longer than the sentence of the one beside it.
 */
.grid--shops .card__cta {
  margin-top: auto;
}

/* ---- The catalogue of the prints --------------------------------------- */

/*
 * A product of the catalogue: the picture of the object, the name of the work
 * and the format with the shop that sells it.
 */
.print-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.print-card__media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
}

.print-card__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  padding: 0.5rem;
  transition: transform var(--dur-slow) var(--ease);
}

.print-card:hover .print-card__media img {
  transform: scale(1.035);
}

.print-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.print-card__title {
  margin: 0;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.print-card__meta {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--pine);
}

/* ---- Card -------------------------------------------------------------- */.card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
  transition: transform var(--dur-fast) var(--ease);
}

.card:active {
  transform: translateY(1px);
}

.card__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--paper-warm);
  border-radius: var(--radius);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: var(--ratio, 4 / 5);
  transition: transform var(--dur-slow) var(--ease);
}

.card:hover .card__media img {
  transform: scale(1.035);
}

.card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: var(--weight-semibold);
  line-height: 1.25;
  letter-spacing: var(--tracking-snug);
}

.card__title a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--pine), var(--pine));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size var(--dur) var(--ease), color var(--dur-fast) var(--ease);
  /* The title is the only link of a card, so its hit area is padded to
     reach a comfortable size on a touch screen. */
  padding-block: 0.55rem;
  margin-block: -0.55rem;
}

.card:hover .card__title a {
  background-size: 100% 1px;
}

.card__meta {
  font-size: var(--step--1);
  color: var(--ink-muted);
  line-height: 1.45;
}

.card__cta {
  margin-top: 0.15rem;
  min-height: 2.25rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--pine);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card__cta svg {
  width: 0.95rem;
  height: 0.95rem;
  transition: transform var(--dur-fast) var(--ease);
}

.card:hover .card__cta svg {
  transform: translateX(3px);
}

.card--flat .card__media {
  border-radius: 0;
}

/*
 * A card with an icon: the icon goes on top, the text below and the whole card
 * is one link. The card is a solid object on the paper of the section: it has
 * an edge of its own, it lifts when the pointer arrives and the tile of the
 * icon fills with the colour of the brand.
 */
.card--inline {
  position: relative;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-s);
  padding: var(--space-m);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--paper);
  transition:
    transform var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.card--inline:hover {
  transform: translateY(-2px);
  border-color: var(--pine);
  box-shadow: 0 14px 28px -20px var(--pine);
}

.card--inline:focus-within {
  border-color: var(--pine);
}

.card__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--pine-tint);
  border-radius: var(--radius);
  background: var(--pine-tint);
  color: var(--pine);
  transition:
    background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.card__icon img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

/* The symbol of the sprite, at the size of the tile. */
.card__icon-mark {
  width: 1.5rem;
  height: 1.5rem;
}

.card--inline:hover .card__icon,
.card--inline:focus-within .card__icon {
  background: var(--pine);
  border-color: var(--pine);
  color: var(--paper);
}

.card__body {
  min-width: 0;
  flex: 1 1 auto;
}

.card--inline .card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.card--inline .card__title {
  margin-bottom: 0;
  font-size: var(--step-0);
}

/*
 * The title is the link of the card and it covers the whole card, so the card
 * is one big target to press and one link to read. The button of the card
 * sits on top of it and keeps its own click.
 */
.card--inline .card__title a {
  padding-block: 0;
  margin-block: 0;
}

.card--inline .card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
}

.card--inline .card__meta {
  margin: 0;
}

/* The button sits at the bottom of the card, so they all line up. */
.card--inline .card__cta {
  margin-top: auto;
  padding-top: var(--space-xs);
  position: relative;
  z-index: 1;
}

/* Card with a caption line under the media, like a printed plate. */
.plate {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.plate__media {
  overflow: hidden;
  background: var(--paper-warm);
  border-radius: var(--radius);
}

.plate__media img {
  width: 100%;
  aspect-ratio: var(--ratio, 1);
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.plate:hover .plate__media img {
  transform: scale(1.03);
}

.plate__caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-s);
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
}

.plate__caption-title {
  color: var(--ink);
  font-weight: 600;
}

.plate__caption-meta {
  color: var(--ink-muted);
  white-space: nowrap;
}

/* ---- Spotlight (secondary image + copy) -------------------------------- */

.spotlight__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.spotlight__title {
  font-size: var(--step-4);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-s);
}

.spotlight__text {
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: var(--measure);
  margin: 0;
}

.spotlight__media img {
  width: 100%;
  aspect-ratio: var(--ratio, 16 / 10);
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--paper-warm);
}

/*
 * A spotlight with a square picture.
 *
 * The picture of the chubby cat is almost square and the column it lives in
 * is the wide one, so it filled half of the screen and the section ended up
 * taller than the screen. A compact spotlight gives the picture the size of a
 * card and the text takes the room that is left.
 */
.spotlight--compact .spotlight__inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.6fr);
}

.spotlight--compact .spotlight__media {
  max-width: 20rem;
  margin-inline: auto;
}

@media (max-width: 767px) {
  .spotlight__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- Social strip ------------------------------------------------------ */

/*
 * A thin band with the social networks of the studio, under the head of the
 * page of the artist. It is black and the icons are white, so the band is
 * read as a line and not as a section of the page.
 */
.social-strip {
  background: var(--ink);
  padding-block: var(--space-xs);
}

.social-strip__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-m);
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: #ffffff;
  transition: color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.social-strip a:hover {
  color: var(--pine-bright);
}

.social-strip a:active {
  transform: translateY(1px);
}

.social-strip svg {
  width: 1.2rem;
  height: 1.2rem;
}

/* ---- Portfolio --------------------------------------------------------- */

/*
 * The way back to the gallery, in a thin bar that stays under the header.
 *
 * The page of a work is long: the picture, the description, the shops and
 * the other works. The way out stays in sight the whole time, in the same
 * bar the page of the course uses under the header.
 */
.back-bar {
  position: sticky;
  top: 4.5rem;
  z-index: 40;
  background: var(--paper);
  border-bottom: var(--border);
}

/*
 * The way back to the gallery. It sits on its own, above the artwork, so
 * the reader never has to look for it.
 */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--pine);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

/* The line goes under the words and not under the arrow. */
.back-link span {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.back-link svg {
  width: 1rem;
  height: 1rem;
  transition: transform var(--dur-fast) var(--ease);
}

.back-link:hover {
  color: var(--pine-dark);
}

.back-link:hover span {
  text-decoration-thickness: 2px;
}

.back-link:hover svg {
  transform: translateX(-3px);
}

.section--flush {
  padding-block: 0;
}

.section--flush + .section {
  padding-top: var(--space-m);
}

/* The artwork and its description, side by side. */
.work {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.work__media img {
  width: 100%;
  border-radius: var(--radius);
  background: var(--paper-warm);
}

.work__title {
  font-size: var(--step-5);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-s);
}

.work__description {
  font-size: var(--step-1);
  line-height: var(--leading-normal);
  color: var(--ink-soft);
  max-width: var(--measure);
}

@media (max-width: 1023px) {
  .work {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* A product of the artwork: the picture of the product and the store. */
.product-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.product-card__media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-warm);
}

.product-card__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

/*
 * The picture of a product is the picture of the object, so it is shown whole
 * and not cropped: the empty space is the colour of the paper.
 */
.product-card__media--fit {
  background: var(--paper);
}

.product-card__media--fit img {
  object-fit: contain;
  padding: 0.5rem;
}

/*
 * When the shop has no picture of the product, the picture of the work fills
 * the card instead of floating in the middle of it.
 */
.product-card__media--cover img {
  object-fit: cover;
}

.product-card:hover .product-card__media img {
  transform: scale(1.035);
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.product-card__title {
  margin: 0;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.product-card__store {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--pine);
}

.product-card__store svg {
  width: 0.9rem;
  height: 0.9rem;
}

/* ---- Feature list (text only) ----------------------------------------- */

.feature {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: var(--space-m);
  border-top: var(--border);
}

.feature__title {
  margin: 0;
  font-size: var(--step-1);
  font-family: var(--font-text);
  font-weight: 600;
  letter-spacing: var(--tracking-normal);
  color: var(--ink);
}

.feature__text {
  margin: 0;
  font-size: var(--step-0);
  color: var(--ink-muted);
  line-height: var(--leading-normal);
}

/* ---- Figure ------------------------------------------------------------ */

.figure {
  margin: 0;
}

.figure img {
  width: 100%;
  border-radius: var(--radius);
}

.figure figcaption {
  margin-top: 0.6rem;
  padding-top: 0.55rem;
  border-top: var(--border);
  font-size: var(--step--1);
  color: var(--ink-muted);
}

/* ---- Prose (long-form) ------------------------------------------------- */

.prose {
  max-width: var(--measure);
  font-size: var(--step-1);
  line-height: 1.65;
  color: var(--ink-soft);
}

.prose > * + * {
  margin-top: var(--space-s);
}

/*
 * A section of cards that closes with a paragraph needs air between the two,
 * or the paragraph reads as a line stuck to the bottom of the cards.
 */
.grid + .prose {
  margin-top: var(--space-l);
}

.prose h2 {
  margin-top: var(--space-xl);
  font-size: var(--step-3);
}

.prose h3 {
  margin-top: var(--space-l);
  font-size: var(--step-2);
}

.prose h4 {
  margin-top: var(--space-m);
}

.prose p {
  margin: 0;
}

.prose ul,
.prose ol {
  margin: 0;
  padding-left: 1.2em;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose a {
  color: var(--pine);
}

.prose img {
  border-radius: var(--radius);
}

.prose figure {
  margin: var(--space-l) 0;
}

.prose figcaption {
  margin-top: 0.55rem;
  font-size: var(--step--1);
  color: var(--ink-muted);
}

.prose--lead > p:first-of-type {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: var(--weight-medium);
  line-height: var(--leading-normal);
  color: var(--ink);
}

/* ---- The curriculum ----------------------------------------------------- */

/*
 * A curriculum is a list of labels and their text: the label on the left, the
 * text on the right, and a line of the paper between the rows. On a phone the
 * label falls on top of its text.
 */
.resume {
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.resume__row {
  display: grid;
  gap: var(--space-2xs);
  padding-block: var(--space-m);
  border-bottom: 1px solid var(--line-strong);
}

.resume__label {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
  color: var(--ink);
}

.resume__body {
  margin: 0;
  max-width: var(--measure);
  font-size: var(--step-0);
  line-height: var(--leading-relaxed);
  color: var(--ink-soft);
}

.resume__body p {
  margin: 0;
}

.resume__body p + p {
  margin-top: 0.6rem;
}

@media (min-width: 1024px) {
  .resume__row {
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: var(--space-l);
  }
}

/* ---- FAQ --------------------------------------------------------------- */

.faq {
  border-top: var(--border);
}

.faq__item {
  border-bottom: var(--border);
}

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-m);
  padding: var(--space-s) 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: var(--weight-semibold);
  line-height: 1.28;
  letter-spacing: var(--tracking-snug);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q:hover {
  color: var(--pine-dark);
}

.faq__icon {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.3rem;
  color: var(--pine);
  transition: transform var(--dur) var(--ease);
}

.faq__item[open] .faq__icon {
  transform: rotate(45deg);
}

.faq__a {
  padding: 0 0 var(--space-m);
  max-width: var(--measure);
  color: var(--ink-muted);
}

.faq__a > * + * {
  margin-top: var(--space-s);
}

/* ---- Banner (call to action) ------------------------------------------- */

.banner {
  background: var(--ink);
  color: #c6cad2;
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-l);
  align-items: center;
}

.banner__title {
  color: var(--paper);
  font-size: var(--step-3);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-snug);
  margin-bottom: var(--space-2xs);
}

.banner__text {
  margin: 0;
  max-width: 46ch;
  color: #a9aeb8;
}

.banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-s);
}

@media (max-width: 767px) {
  .banner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- Store strip ------------------------------------------------------- */

.stores {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(11rem, 100%), 1fr));
  gap: var(--space-s);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* The strip of shops holds the same number of columns on every screen. */
@media (min-width: 1024px) {
  .stores {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .stores {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .stores {
    grid-template-columns: minmax(0, 1fr);
  }
}

.store {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  min-height: 2.75rem;
  padding: var(--space-s);
  border: var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: var(--step--1);
  background: var(--paper);
  transition: border-color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.store:hover {
  border-color: var(--ink);
  background: var(--paper-warm);
  color: var(--ink);
}

.store:active {
  transform: translateY(1px);
}

.store svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--pine);
}

.store__what {
  display: block;
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

/* ---- Chips / tags ------------------------------------------------------ */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  padding: 0.2rem 0.75rem;
  border: var(--border);
  border-radius: 100px;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  background: var(--paper);
}

.chip--accent {
  border-color: transparent;
  background: var(--pine-tint);
  color: var(--pine-dark);
}

.chip--clay {
  border-color: transparent;
  background: var(--clay-tint);
  color: var(--clay);
}

/* ---- Stat row ---------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(10rem, 100%), 1fr));
  gap: var(--space-m);
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--border);
}

.stat {
  padding-top: var(--space-s);
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: var(--weight-semibold);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
}

.stat__label {
  display: block;
  margin-top: 0.4rem;
  font-size: var(--step--1);
  color: var(--ink-muted);
}

/* ---- Article cards (blog index) ---------------------------------------- */

.post-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
  transition: transform var(--dur-fast) var(--ease);
}

.post-card:active {
  transform: translateY(1px);
}

.post-card__media {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-warm);
}

.post-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.post-card:hover .post-card__media img {
  transform: scale(1.035);
}

.post-card__cat {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--pine);
}

.post-card__title {
  margin: 0;
  font-size: var(--step-2);
  font-weight: var(--weight-semibold);
  line-height: 1.22;
  letter-spacing: var(--tracking-snug);
}

.post-card__title a {
  color: var(--ink);
  text-decoration: none;
}

.post-card:hover .post-card__title a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.post-card__excerpt {
  margin: 0;
  font-size: var(--step-0);
  color: var(--ink-muted);
  line-height: var(--leading-normal);
}

/* ---- Article body helpers (from the migrated rich text) ---------------- */

.post-lead {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: var(--weight-medium);
  line-height: var(--leading-normal);
  color: var(--ink);
}

.post-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(13rem, 100%), 1fr));
  gap: var(--space-s);
  margin: var(--space-l) 0;
  padding: 0;
}

/*
 * The gallery of an article shows the prints of the painting. The card is
 * framed, so the artwork is never cut: it sits whole inside the frame.
 */
.post-gallery .post-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.6rem;
  border: var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  background: var(--paper);
  transition: border-color var(--dur-fast) var(--ease);
}

.post-gallery .post-card:hover {
  border-color: var(--ink);
}

.post-gallery .post-card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  border-radius: 2px;
  background: var(--paper-warm);
}

.post-gallery .post-card-txt {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.post-gallery .post-card-title {
  font-weight: 600;
  color: var(--ink);
  font-size: var(--step--1);
}

.post-gallery .post-card-meta,
.post-gallery .post-card-cta {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.post-gallery .post-card-cta {
  color: var(--pine);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.post-seeall {
  margin: var(--space-l) 0 0;
  font-weight: 600;
}

/* A chip that links to a shop. The posts and the portfolio share it. */
.post-shops,
.shop-chips__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  margin: var(--space-l) 0;
  padding: 0;
}

.post-shop,
.shop-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  min-height: 2.25rem;
  padding: 0.4rem 0.75rem;
  border: var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: var(--step--1);
  background: var(--paper);
  transition: border-color var(--dur-fast) var(--ease);
}

.post-shop:hover,
.shop-chip:hover {
  border-color: var(--ink);
}

.post-shop-name,
.shop-chip__name {
  font-weight: 600;
  color: var(--ink);
}

.post-shop-what,
.shop-chip__what {
  color: var(--ink-muted);
}

/* The shops of the studio, under the products of a work. */
.shop-chips {
  margin-top: var(--space-l);
}

.shop-chips__title {
  margin: 0;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.shop-chips__list {
  margin-top: var(--space-2xs);
  margin-bottom: 0;
}

/* ---- Hub cards (featured articles block) ------------------------------- */

.hub {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr));
  gap: var(--space-m);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* The featured articles keep the same shape on every screen. */
@media (min-width: 1024px) {
  .hub {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .hub {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .hub {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hub-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: var(--space-s);
  border: var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  background: var(--paper);
  transition: border-color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease);
}

.hub-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.hub-card:active {
  transform: translateY(0);
}

.hub-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 2px;
}

.hub-card-cat {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--pine);
}

.hub-card-title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: var(--weight-semibold);
  line-height: 1.22;
  letter-spacing: var(--tracking-snug);
  color: var(--ink);
}

.hub-card-excerpt {
  font-size: var(--step--1);
  color: var(--ink-muted);
  line-height: 1.5;
}

.hub-card-cta {
  margin-top: auto;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--pine);
}

/* ---- Product detail ---------------------------------------------------- */

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.product__media img {
  width: 100%;
  border-radius: var(--radius);
  background: var(--paper-warm);
}

/*
 * The picture of the work is a poster, and a poster is tall: at the width of
 * the column it would take the whole screen and push the description out of
 * it. The picture stops at 420 pixels, in the middle of the column, and the
 * reader opens it in a lightbox when they want to see it as big as the
 * screen allows.
 */
.product__media {
  display: flex;
  justify-content: center;
}

.art-zoom {
  position: relative;
  display: block;
  width: 100%;
  max-width: 420px;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

/* The sign that the picture opens bigger, in the corner of the picture. */
.art-zoom__hint {
  position: absolute;
  right: var(--space-3xs);
  bottom: var(--space-3xs);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 10px 22px -14px rgba(20, 22, 27, 0.6);
}

.art-zoom__hint svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* ---- Lightbox ----------------------------------------------------------- */

/*
 * The picture opened as big as the screen allows. The native dialog does the
 * heavy work: it traps the keyboard, closes with Escape and paints the veil
 * behind it, with no library and no code beyond opening and closing it.
 */
.lightbox {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  /*
   * The veil is the colour of the ink of the studio, solid: a veil with
   * some white in it leaves the ghost of the title of the page behind, and
   * the picture is the only thing that should be there.
   */
  background: var(--ink);
  overflow: hidden;
}

.lightbox::backdrop {
  background: transparent;
}

.lightbox__frame {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: var(--space-s);
}

.lightbox__frame img {
  /*
   * The height of the picture is a measure of the screen and not a
   * percentage: the row of the grid is sized by the picture itself, so a
   * percentage would never resolve and the picture would run out of the
   * screen.
   */
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--paper);
}

.lightbox__close {
  position: absolute;
  top: var(--space-xs);
  right: var(--space-xs);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.lightbox__close svg {
  width: 1.25rem;
  height: 1.25rem;
}

.product__title {
  font-size: var(--step-4);
}

/* The kind of print goes under the name of the work, in a quieter voice. */
.product__subtitle {
  margin: 0 0 var(--space-2xs);
  font-size: var(--step-1);
  color: var(--ink-muted);
}

/* The price of a card of the catalogue. */
.card__price {
  margin: 0;
  font-size: var(--step--1);
  font-weight: var(--weight-semibold);
  color: var(--ink);
}

/* The reasons sit between the description and the shops. */
.product__info .benefits {
  margin: var(--space-m) 0 var(--space-m);
}

.product__stores {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

@media (max-width: 1023px) {
  .product {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- Email capture ----------------------------------------------------- */

.capture {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  max-width: 30rem;
}

.capture__input {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.72rem 0.9rem;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  font-family: var(--font-text);
  font-size: var(--step-0);
  color: var(--ink);
}

.capture__input:focus {
  outline: 2px solid var(--pine);
  outline-offset: 1px;
  border-color: var(--pine);
}

.capture__note {
  flex-basis: 100%;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin: 0;
}

/* ---- Newsletter band ---------------------------------------------------- */

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-l);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: var(--border);
  border-radius: var(--radius);
  background: var(--paper-warm);
}

@media (max-width: 767px) {
  .newsletter {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- Table of contents ------------------------------------------------- */

.toc {
  font-size: var(--step--1);
  border-left: 2px solid var(--line);
  padding-left: var(--space-m);
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.toc a {
  color: var(--pine);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.toc a:hover {
  color: var(--pine-dark);
  text-decoration-thickness: 2px;
}

/* ---- Article header ---------------------------------------------------- */

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-s);
  margin: var(--space-s) 0 0;
  font-size: var(--step--1);
  color: var(--ink-muted);
}

.article-meta > * + *::before {
  content: "·";
  margin-right: var(--space-s);
  color: var(--line-strong);
}

/* ---- Block note and price ---------------------------------------------- */

.block-note {
  margin: 0 0 var(--space-2xs);
  font-size: var(--step-1);
  line-height: 1;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.block-price {
  margin: var(--space-s) 0 0;
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--ink);
}

/* ---- Filter of a gallery ----------------------------------------------- */

/*
 * The title of the gallery and the filter that goes with it share the same
 * row: the filter sits at the top right, so the list it opens has the whole
 * grid under it.
 */
.portfolio-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-m) var(--space-l);
  margin-bottom: var(--space-xl);
}

/*
 * The title takes the room that is left, so the row never breaks when the
 * filter grows with the name of the category that is chosen.
 */
.portfolio-head .section-head {
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  margin-bottom: 0;
}

/*
 * The categories of the gallery live in a button that opens a list. The
 * options are links, one per category page, so the gallery can be shared
 * with one filter applied and the list works without any script.
 */
.filter {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-2xs);
}

.filter__dropdown {
  position: relative;
}

.filter__button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.6rem 1rem;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--paper);
  font-family: var(--font-text);
  font-size: var(--step--1);
  font-weight: var(--weight-semibold);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: border-color var(--dur-fast) var(--ease);
}

.filter__button::-webkit-details-marker {
  display: none;
}

.filter__button:hover {
  border-color: var(--line-strong);
}

.filter__button svg {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--ink-muted);
}

.filter__chevron {
  transition: transform var(--dur) var(--ease);
}

.filter__dropdown[open] .filter__chevron {
  transform: rotate(180deg);
}

/* The category that is chosen, next to the name of the button. */
.filter__value {
  padding: 0.1rem 0.55rem;
  border-radius: 100px;
  background: var(--pine-tint);
  color: var(--pine-dark);
  font-weight: var(--weight-medium);
}

/*
 * The list has eight categories. It opens in two columns so the whole of it
 * is seen without scrolling inside it.
 */
/*
 * The list hangs from the right edge of the button, so it never runs out of
 * the page when the button is at the right.
 */
.filter__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.1rem 0.35rem;
  min-width: 22rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 44px -28px rgba(20, 22, 27, 0.55);
}

.filter__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  width: 100%;
  min-height: 2.75rem;
  padding: 0.4rem 0.7rem;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  font-family: var(--font-text);
  font-size: var(--step--1);
  color: var(--ink-soft);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.filter__option:hover {
  background: var(--paper-warm);
  color: var(--ink);
}

/* The category of the page that is being read. */
.filter__option--active {
  background: var(--pine-tint);
  color: var(--pine-dark);
  font-weight: var(--weight-semibold);
}

.filter__count {
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.filter__option--active .filter__count {
  color: var(--pine-dark);
}

.filter__status {
  margin: 0;
  font-size: var(--step--1);
  color: var(--ink-muted);
}

@media (max-width: 767px) {
  .portfolio-head {
    margin-bottom: var(--space-l);
  }

  .filter {
    width: 100%;
    align-items: stretch;
  }
}

@media (max-width: 639px) {
  .filter__dropdown,
  .filter__button {
    width: 100%;
  }

  .filter__button {
    justify-content: flex-start;
  }

  .filter__menu {
    right: 0;
    min-width: 0;
  }
}

/* =========================================================================
   The parts that sell
   The pages of the site are not a shop with a basket: the money is made in
   the shops of the studios. So these pages have to do what a shop page does,
   only that the button at the end opens the shop instead of adding to a
   basket: the price, the reasons to trust it, the way out and, on the phone,
   the way out that stays in sight while the reader looks at the artwork.
   ========================================================================= */

/* ---- The reasons, with an icon each ------------------------------------ */

.benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--step--1);
  line-height: var(--leading-snug);
  color: var(--ink-soft);
}

.benefit svg {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--pine);
}

/* ---- The box of buying -------------------------------------------------- */

.buybox {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-s);
  margin-top: var(--space-m);
  padding-top: var(--space-m);
  border-top: var(--border);
}

.buybox__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0;
}

.buybox__amount {
  font-size: var(--step-3);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  color: var(--ink);
}

.buybox__note {
  font-size: var(--step--1);
  color: var(--ink-muted);
}

.buybox__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ---- The bar that stays at the bottom of the phone ----------------------- */

.buybar {
  display: none;
}

@media (max-width: 767px) {
  /*
   * The reader of a phone sees the artwork for a while before the shops
   * appear below. The bar keeps the way out in sight the whole time.
   */
  .buybar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: var(--z-header);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem var(--gutter);
    padding-bottom: calc(0.65rem + env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: var(--border);
    box-shadow: 0 -2px 12px rgba(10, 10, 10, 0.08);
  }

  .buybar__text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
  }

  .buybar__price {
    font-size: var(--step-0);
    font-weight: var(--weight-semibold);
    white-space: nowrap;
  }

  .buybar__note {
    font-size: 0.75rem;
    color: var(--ink-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .buybar .btn {
    flex: none;
  }

  /* The bar sits over the footer, so the page leaves room for it. */
  body:has(.buybar) {
    padding-bottom: 4.5rem;
  }
}

/* ---- The band of shops -------------------------------------------------- */

.shop-band__cta {
  margin: var(--space-m) 0 0;
}

/* ---- The foot of a card of work ---------------------------------------- */

.work-card--caption .work-card__foot {
  padding-top: 0.55rem;
}

.work-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
}

.work-card__name a {
  color: var(--ink);
  text-decoration: none;
}

.work-card__name a:hover {
  color: var(--pine);
}

/* On a card with a foot the name is already written below, so the veil
   carries the way out instead of repeating it. */
.work-card--caption .work-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--step--1);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.01em;
  color: #fff;
}

.work-card--caption .work-card__cta svg {
  width: 1rem;
  height: 1rem;
  flex: none;
}

/* =========================================================================
   The page of a course
   A course page has to sell: the picture opens it, the price is on the first
   screen and every section leaves a way to buy it.
   ========================================================================= */

/* ---- Hero -------------------------------------------------------------- */

.course-hero {
  position: relative;
  display: grid;
  align-content: center;
  min-height: clamp(520px, 82vh, 760px);
  padding-block: clamp(3rem, 8vh, 5.5rem);
  overflow: hidden;
  background: var(--paper-warm);
}

.course-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.course-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 60%;
}

/*
 * The veil is dark. The artwork of the course is bright and the text of the
 * site is dark, so the picture needs a dark veil under a light text. It fades
 * towards the bottom right, where the grass and the path of the painting stay
 * visible.
 */
.course-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    115deg,
    rgba(9, 11, 15, 0.94) 0%,
    rgba(9, 11, 15, 0.88) 28%,
    rgba(9, 11, 15, 0.56) 56%,
    rgba(9, 11, 15, 0.22) 80%,
    rgba(9, 11, 15, 0.06) 100%
  );
}

.course-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

/*
 * The text of the hero is on the dark veil, so it is light. The green of the
 * brand cannot be read on a dark ground, so the eyebrow takes the bright one.
 */
.course-hero__title {
  font-size: var(--step-5);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  max-width: 32rem;
  margin-bottom: var(--space-s);
  color: var(--paper);
}

.course-hero__lead {
  font-size: var(--step-1);
  line-height: var(--leading-normal);
  color: rgba(255, 255, 255, 0.88);
  max-width: 44rem;
  margin: 0;
}

.course-hero .eyebrow {
  color: var(--pine-bright);
}

.course-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
  list-style: none;
  margin: var(--space-m) 0 0;
  padding: 0;
}

.course-hero__facts .chip svg {
  width: 1rem;
  height: 1rem;
  color: var(--pine);
}

/* ---- The price card ---------------------------------------------------- */

.course-offer {
  display: grid;
  gap: var(--space-s);
  justify-items: start;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: 0 28px 60px -34px rgba(20, 22, 27, 0.5);
}

.course-offer__price {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  margin: 0;
  font-family: var(--font-display);
}

.course-offer__symbol {
  font-size: var(--step-2);
  color: var(--ink-muted);
}

.course-offer__amount {
  font-size: var(--step-6);
  font-weight: var(--weight-semibold);
  line-height: 0.9;
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
}

.course-offer__note {
  margin: 0;
  font-size: var(--step--1);
  color: var(--ink-muted);
}

.course-offer__cta {
  width: 100%;
}

.course-offer__list {
  display: grid;
  gap: 0.45rem;
  margin: var(--space-2xs) 0 0;
  padding: var(--space-s) 0 0;
  border-top: var(--border);
  list-style: none;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.course-offer__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.course-offer__check {
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  color: var(--pine);
}

/* ---- The way down the page --------------------------------------------- */

.course-nav {
  position: sticky;
  top: 4.5rem;
  z-index: 50;
  background: var(--paper);
  border-bottom: var(--border);
}

.course-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-m);
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
}

/*
 * The bar under the header says what is in the page, and every one of its
 * links takes the reader to a part of it. They look like links: the colour
 * of a link and a line under it.
 */
.course-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: var(--step--1);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  color: var(--pine);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: color var(--dur-fast) var(--ease),
    text-decoration-thickness var(--dur-fast) var(--ease);
}

.course-nav__link:hover {
  color: var(--pine-dark);
  text-decoration-thickness: 2px;
}

/* The sections have to clear the bar that stays above them. */
.section[id] {
  scroll-margin-top: 7rem;
}

/* ---- The syllabus ------------------------------------------------------ */

.course-lessons {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  border-top: var(--border);
}

.course-lesson {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: var(--space-m);
  align-items: start;
  padding: var(--space-m) 0;
  border-bottom: var(--border);
}

.course-lesson__marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  color: var(--pine);
}

.course-lesson__marker svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--gold);
}

.course-lesson__title {
  font-size: var(--step-2);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
  margin-bottom: 0.35rem;
}

.course-lesson__text {
  margin: 0;
  max-width: 62ch;
  font-size: var(--step-0);
  color: var(--ink-soft);
}

/* ---- A block of the course --------------------------------------------- */

.course-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.course-panel--reverse .course-panel__media {
  order: -1;
}

.course-panel--stacked {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-s);
  align-items: start;
}

.course-panel__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--paper-warm);
}

.course-panel--stacked .course-panel__media img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.course-panel__title {
  font-size: var(--step-3);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
  margin-bottom: var(--space-s);
}

.course-panel__text {
  margin: 0;
  max-width: var(--measure);
  font-size: var(--step-0);
  color: var(--ink-soft);
}

/* ---- The screenshots ---------------------------------------------------- */

.course-shot {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0;
}

.course-shot__media {
  overflow: hidden;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--paper-warm);
}

.course-shot__media img {
  width: 100%;
  aspect-ratio: var(--ratio, 16 / 10);
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.course-shot:hover .course-shot__media img {
  transform: scale(1.03);
}

.course-shot__caption {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
}

.course-shot__title {
  color: var(--ink);
  font-weight: 600;
}

.course-shot__text {
  color: var(--ink-muted);
}

/* ---- The price of the closing call -------------------------------------- */

.course-banner__price {
  display: inline-flex;
  align-items: baseline;
  align-self: center;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  color: var(--paper);
}

/* ---- The reviews -------------------------------------------------------- */
.course-review {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
}

.course-review__stars {
  display: inline-flex;
  gap: 0.15rem;
  color: var(--gold);
}

.course-review__stars svg {
  width: 1.15rem;
  height: 1.15rem;
}

.course-review__text {
  margin: 0;
  font-size: var(--step-1);
  line-height: var(--leading-relaxed);
  color: var(--ink);
}

.course-review__by {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: var(--step--1);
}

.course-review__name {
  font-weight: 600;
  color: var(--ink);
}

.course-review__role {
  color: var(--ink-muted);
}

/* ---- Narrow screens ----------------------------------------------------- */

@media (max-width: 1023px) {
  .course-hero {
    min-height: 0;
  }

  /*
   * On a narrow screen the picture sits behind the whole block, so the veil
   * fades downwards and the text never lands on the artwork.
   */
  .course-hero__scrim {
    background: linear-gradient(
      to bottom,
      rgba(9, 11, 15, 0.93) 0%,
      rgba(9, 11, 15, 0.9) 44%,
      rgba(9, 11, 15, 0.7) 76%,
      rgba(9, 11, 15, 0.46) 100%
    );
  }

  .course-hero__bg img {
    object-position: 55% 40%;
  }

  .course-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .course-offer {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .course-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .course-panel--reverse .course-panel__media {
    order: 0;
  }

  .course-hero__title {
    font-size: var(--step-4);
    max-width: none;
  }

  /*
   * The bar of the sections takes two lines on a phone, so the titles of the
   * sections need more room above them when a link jumps to one.
   */
  .section[id] {
    scroll-margin-top: 13rem;
  }
}

@media (max-width: 639px) {
  .course-lesson {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: var(--space-s);
  }

  .course-offer__cta {
    width: 100%;
  }
}

/* =========================================================================
   The page of the free brushes
   A pack of brushes has to convince and to hand out a download, so the page
   is drawn like the page of the course: the artwork opens it, the offer sits
   beside it and the sections go down one by one.
   ========================================================================= */

/* ---- The hero ---------------------------------------------------------- */

/*
 * The picture of the hero is a painting of the studio made with these very
 * brushes, so it opens the page. The veil of the course is reused: the text
 * needs a dark ground and the painting has to stay visible on the right.
 */
.brushes-hero .course-hero__bg img {
  object-position: 64% 56%;
}

/* ---- The band of the applications --------------------------------------- */

.brushes-strip {
  overflow: hidden;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--paper-warm);
}

.brushes-strip img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- A block with a wide picture ---------------------------------------- */

/*
 * The picture of a panel of the course is cropped to the tall format, but the
 * screenshots of the pack are wide and carry text: a crop would cut it.
 */
.course-panel--wide .course-panel__media img {
  aspect-ratio: 16 / 9;
}

.course-panel--stacked.course-panel--wide .course-panel__media img {
  aspect-ratio: 16 / 9;
}

/* The two panels that sit side by side look like two cards of the page. */
.brushes-panels {
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.brushes-panels .course-panel {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-s);
  align-items: start;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
}

.brushes-panels .course-panel__title {
  font-size: var(--step-2);
  margin-bottom: var(--space-2xs);
}

/* ---- The gallery of illustrations ---------------------------------------- */

/*
 * The gallery is a masonry: every illustration keeps its own ratio and the
 * columns fill the space they have, so there are no two rows of the same
 * height. The columns of the CSS do the work, so the page needs no script to
 * lay them out.
 */
.brushes-masonry {
  column-count: 2;
  column-gap: var(--space-m);
}

@media (min-width: 1024px) {
  .brushes-masonry {
    column-count: 3;
  }
}

@media (max-width: 639px) {
  .brushes-masonry {
    column-gap: var(--space-s);
  }
}

/* A picture of the masonry is never cut: it keeps the ratio it comes with. */
.brushes-masonry > .course-shot {
  display: inline-block;
  width: 100%;
  margin: 0 0 var(--space-m);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}

/*
 * The picture opens bigger: the button is the picture and the sign in the
 * corner says so. It is the same button of the picture of a work.
 */
.brushes-masonry .course-shot__media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  cursor: zoom-in;
  text-align: left;
}

.brushes-masonry .course-shot__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: initial;
}

/* ---- The videos ---------------------------------------------------------- */

/*
 * A video is a picture with a button on it. The page does not carry the
 * player of YouTube until the reader asks for it, so the picture is the
 * thumbnail and the button plays the video where it is.
 */
.video-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
}

.video-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--paper-warm);
}

.video-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.video-card:hover .video-card__media img {
  transform: scale(1.03);
}

/* The link covers the whole picture, so the thumbnail is the button. */
.video-card__link {
  position: absolute;
  inset: 0;
  display: block;
}

.video-card__play {
  position: absolute;
  inset: 0;
  margin: auto;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(20, 22, 27, 0.72);
  color: var(--paper);
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.video-card__play svg {
  width: 1.5rem;
  height: 1.5rem;
  margin-left: 0.15rem;
}

.video-card:hover .video-card__play {
  background: var(--pine);
  transform: scale(1.06);
}

/* The player takes the place of the picture when the video starts. */
.video-card__media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card__title {
  margin: 0;
  font-size: var(--step-1);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
}

.video-card__text {
  margin: 0;
  font-size: var(--step--1);
  color: var(--ink-muted);
}

.video-card__out {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  font-size: var(--step--1);
  font-weight: var(--weight-medium);
  color: var(--pine-dark);
  text-decoration: none;
}

.video-card__out:hover {
  text-decoration: underline;
}

.video-card__out svg {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--clay);
}

/* ---- Narrow screens ------------------------------------------------------ */

@media (max-width: 1023px) {
  .brushes-hero .course-hero__bg img {
    object-position: 58% 46%;
  }
}

@media (max-width: 767px) {
  .video-card__play {
    width: 3rem;
    height: 3rem;
  }

  .video-card__play svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}
