/* =============================================================================
   Fine Art Druck — design system
   -----------------------------------------------------------------------------
   A white-walled gallery: warm paper ground, ink type, photographs given space.
   Structure comes from an editorial grid and hairlines, never from cards,
   shadows or gradients.

   Independent of lfcc.ch: different typefaces (Newsreader/Inter vs NTR/Open
   Sans), a warm paper palette rather than navy and blue, and left-aligned
   section heads rather than centred ones.
   ========================================================================== */

/* -----------------------------------------------------------------------------
   1. Fonts — self-hosted, so the site makes no third-party request
   -----------------------------------------------------------------------------
   Built by tools/build-fonts.py: subset to the Western-European glyph set and
   instanced down to the axes this design actually uses. 130 KB for three faces,
   including a real italic rather than a synthesised one.

   No unicode-range splitting: each face is a single file covering the whole
   subset, so there is nothing to split on. A character outside the subset falls
   back to the next family in the stack.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 500;
  font-display: swap;
  src: url('../fonts/newsreader.woff2') format('woff2');
}

@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 200 400;
  font-display: swap;
  src: url('../fonts/newsreader-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/inter.woff2') format('woff2');
}

/* -----------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Colour. Paper white is warm on purpose — it nods to Büttenpapier and keeps
     the photographs from looking cold against a clinical white. */
  --paper:        #faf8f5;
  --paper-tint:   #f1ece4;
  --paper-deep:   #e8e1d6;
  --ink:          #14151a;
  --ink-soft:     #2b2d33;
  --muted:        #6b6c72;   /* 4.9:1 on --paper */
  --line:         #e2dcd2;
  --line-strong:  #cfc7b9;   /* hairlines only — 1.6:1, far too light to carry a glyph */
  --muted-soft:   #93897c;   /* 3.2:1 on --paper: the lightest tone still legal for
                                large text and for graphical objects (WCAG 1.4.11) */
  --accent:       #a2522c;   /* pigment sienna — 5.2:1 on --paper */
  --accent-lift:  #8c4526;

  --on-ink:            #f4f1ec;
  --on-ink-muted:      #a9a69f;
  --on-ink-line:       rgba(244, 241, 236, .18);

  /* Type */
  --font-display: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --font-text:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --t-hero:   clamp(2.9rem, 1.15rem + 6.2vw, 7rem);
  --t-h1:     clamp(2.35rem, 1.35rem + 3.6vw, 4.5rem);
  --t-h2:     clamp(1.8rem, 1.24rem + 2.1vw, 3.05rem);
  --t-h3:     clamp(1.2rem, 1.06rem + 0.5vw, 1.5rem);
  --t-lead:   clamp(1.1rem, 1.02rem + 0.4vw, 1.38rem);
  --t-body:   clamp(1rem, 0.97rem + 0.14vw, 1.0625rem);
  --t-small:  0.875rem;
  --t-micro:  0.75rem;

  /* Space */
  --s-1:  0.25rem;
  --s-2:  0.5rem;
  --s-3:  0.75rem;
  --s-4:  1rem;
  --s-5:  1.5rem;
  --s-6:  2rem;
  --s-7:  3rem;
  --s-8:  4rem;
  --s-9:  6rem;
  --s-10: 8rem;

  --section-y: clamp(4rem, 8vw, 9rem);
  --gutter:    clamp(1.25rem, 5vw, 4.5rem);
  --shell-max: 78rem;
  --measure:   64ch;

  --header-h: 4.25rem;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

@media (min-width: 60rem) {
  :root { --header-h: 5.25rem; }
}

/* -----------------------------------------------------------------------------
   3. Reset
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--t-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.1; }
p, ul, ol, dl, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; background-color: var(--placeholder, var(--paper-deep)); }

/* <picture> is a plain wrapper with auto height, so an inner `height: 100%` would
   resolve against nothing and collapse back to the intrinsic ratio. Any context
   that crops with object-fit has to stretch the wrapper too. */
.cover-box, .cover-box picture { display: block; width: 100%; height: 100%; }
address { font-style: normal; }
button { font: inherit; color: inherit; }

a { color: inherit; }

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

::selection { background: var(--accent); color: var(--paper); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  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(--gutter);
  z-index: 200;
  transform: translateY(-110%);
  padding: var(--s-3) var(--s-5);
  background: var(--ink);
  color: var(--on-ink);
  font-size: var(--t-small);
  text-decoration: none;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* -----------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */

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

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 5rem); }
.section--intro { padding-top: clamp(3rem, 7vw, 7rem); }

.section--tint {
  background: var(--paper-tint);
  border-block: 1px solid var(--line);
}

.section--quote { padding-block: clamp(3.5rem, 7vw, 8rem); }

.measure { max-width: var(--measure); }

/* Asymmetric two-column split: text 5 cols / media 6 cols with a gap between. */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
}

@media (min-width: 60rem) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
    gap: clamp(3rem, 6vw, 6rem);
  }
  .split--reverse .split__text  { order: 2; }
  .split--reverse .split__media { order: 1; }
  .split__media { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* -----------------------------------------------------------------------------
   5. Typography components
   -------------------------------------------------------------------------- */

.eyebrow {
  margin: 0 0 var(--s-5);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--light { color: rgba(244, 241, 236, .88); }

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 1.75rem;
  height: 1px;
  margin-right: .75rem;
  vertical-align: .28em;
  background: var(--accent);
}

.h2, .section-head__title {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  font-weight: 300;
  letter-spacing: -.015em;
  line-height: 1.12;
  text-wrap: balance;
}

.section-head {
  max-width: 46ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head__lead {
  margin-top: var(--s-5);
  font-size: var(--t-lead);
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.prose {
  max-width: var(--measure);
  margin-top: var(--s-5);
  color: var(--ink-soft);
  text-wrap: pretty;
}
.prose:first-of-type { margin-top: var(--s-6); }
.prose--lead { font-size: var(--t-lead); font-weight: 300; line-height: 1.6; color: var(--ink); }
.prose--note { font-size: var(--t-small); color: var(--muted); }

/* -----------------------------------------------------------------------------
   6. Links and buttons
   -------------------------------------------------------------------------- */

.link-arrow {
  display: inline-flex;
  align-items: baseline;
  gap: .55rem;
  font-size: var(--t-small);
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--ink);
  text-decoration: none;
  padding-block: .35rem;
}
.link-arrow::after {
  content: '';
  width: 1.4rem; height: 1px;
  background: currentColor;
  transition: width .28s var(--ease);
  align-self: center;
}
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover::after { width: 2.2rem; }
.link-arrow--inline { display: inline; }
.link-arrow--inline::after { display: none; }
.link-arrow--inline {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  text-decoration-color: var(--line-strong);
}
.link-arrow--inline:hover { text-decoration-color: var(--accent); }

.link-external {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}
.link-external:hover { color: var(--accent-lift); }

.inline-action {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-6);
  margin-top: var(--s-6);
}
.inline-action--centered { justify-content: center; margin-top: clamp(2.5rem, 5vw, 4rem); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .85rem 1.75rem;
  border: 1px solid transparent;
  font-size: var(--t-small);
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}

.btn--primary { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); }

.btn--ghost { background: transparent; color: var(--on-ink); border-color: rgba(244,241,236,.45); }
.btn--ghost:hover { background: rgba(244,241,236,.12); border-color: var(--on-ink); }

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

/* -----------------------------------------------------------------------------
   7. Masthead
   -------------------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: color .3s var(--ease);
}

/* The background lives on a pseudo-element, not on .masthead itself. A
   backdrop-filter turns its element into a containing block for position:fixed
   descendants — which would collapse the fixed mobile nav panel to the height of
   the header. Keeping the filter one level down avoids that entirely. */
.masthead::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}

@supports (backdrop-filter: blur(1px)) {
  .masthead::before { backdrop-filter: saturate(140%) blur(14px); }
}

.masthead.is-scrolled::before {
  background: color-mix(in srgb, var(--paper) 97%, transparent);
  border-bottom-color: var(--line);
}

/* Over a hero the header sits on the photograph until the page scrolls. */
.page--home .masthead:not(.is-scrolled),
.masthead.is-over-hero:not(.is-scrolled) { color: var(--on-ink); }

.page--home .masthead:not(.is-scrolled)::before,
.masthead.is-over-hero:not(.is-scrolled)::before {
  background: transparent;
  backdrop-filter: none;
}

.masthead__inner {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: .4em;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem);
  font-weight: 400;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark__line--2 { color: var(--accent); }
.page--home .masthead:not(.is-scrolled) .wordmark__line--2,
.masthead.is-over-hero:not(.is-scrolled) .wordmark__line--2 { color: var(--on-ink); opacity: .72; }

/* --- Navigation --------------------------------------------------------- */

.nav__list { display: flex; }

.nav__link {
  display: block;
  padding: .5rem .85rem;
  font-size: var(--t-small);
  font-weight: 400;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: .85rem; right: .85rem; bottom: .15rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .26s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current]::after { transform: scaleX(1); }

.nav__item--has-children > .nav__link { padding-right: .35rem; }

.nav__disclosure {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem; height: 2.25rem;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}
.nav__chevron { width: .7rem; transition: transform .26s var(--ease); }
.nav__disclosure[aria-expanded='true'] .nav__chevron { transform: rotate(180deg); }

.nav__link--cta {
  margin-left: .5rem;
  padding: .7rem 1.4rem;
  background: var(--ink);
  color: var(--on-ink);
  font-weight: 500;
  letter-spacing: .02em;
  transition: background-color .22s var(--ease);
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: var(--accent); }
.page--home .masthead:not(.is-scrolled) .nav__link--cta,
.masthead.is-over-hero:not(.is-scrolled) .nav__link--cta {
  background: var(--on-ink);
  color: var(--ink);
}
.page--home .masthead:not(.is-scrolled) .nav__link--cta:hover,
.masthead.is-over-hero:not(.is-scrolled) .nav__link--cta:hover {
  background: var(--accent);
  color: var(--paper);
}

.nav-toggle { display: none; }

/* --- Desktop navigation ------------------------------------------------- */

@media (min-width: 64rem) {
  .nav__list { align-items: center; gap: .15rem; }

  .nav__item--has-children { display: flex; align-items: center; position: relative; }

  .nav__submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 15rem;
    padding: var(--s-3) 0;
    background: var(--paper);
    border: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-.35rem);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
    color: var(--ink);
  }
  .nav__item--has-children:hover .nav__submenu,
  .nav__item--has-children:focus-within .nav__submenu,
  .nav__submenu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__sublink {
    display: block;
    padding: .55rem 1.25rem;
    font-size: var(--t-small);
    text-decoration: none;
    color: var(--ink-soft);
    transition: color .18s var(--ease), background-color .18s var(--ease);
  }
  .nav__sublink:hover,
  .nav__sublink[aria-current] { color: var(--accent); background: var(--paper-tint); }
}

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

@media (max-width: 63.999rem) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    min-height: 2.75rem;
    padding: .5rem .25rem .5rem .5rem;
    background: none;
    border: 0;
    cursor: pointer;
    font-size: var(--t-small);
    letter-spacing: .04em;
  }
  .nav-toggle__bars { display: grid; gap: 5px; width: 1.25rem; }
  .nav-toggle__bars span {
    display: block;
    height: 1px;
    background: currentColor;
    transition: transform .26s var(--ease), opacity .2s var(--ease);
  }
  .nav-toggle[aria-expanded='true'] .nav-toggle__bars span:first-child { transform: translateY(3px) rotate(45deg); }
  .nav-toggle[aria-expanded='true'] .nav-toggle__bars span:last-child  { transform: translateY(-3px) rotate(-45deg); }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    background: var(--paper);
    color: var(--ink);
    padding: var(--s-6) var(--gutter) var(--s-9);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-.75rem);
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

  .nav__list { flex-direction: column; }

  .nav__item {
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .nav__link {
    padding: 1.05rem 0;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 300;
  }
  .nav__link::after { display: none; }

  .nav__disclosure { width: 3rem; height: 3rem; justify-self: end; }

  .nav__submenu {
    grid-column: 1 / -1;
    display: none;
    padding: 0 0 var(--s-5) var(--s-4);
    border-left: 1px solid var(--line);
    margin-bottom: var(--s-4);
  }
  .nav__submenu.is-open { display: block; }

  .nav__sublink {
    display: block;
    padding: .6rem 0;
    font-size: 1rem;
    color: var(--ink-soft);
    text-decoration: none;
  }
  .nav__sublink[aria-current] { color: var(--accent); }

  .nav__item--cta { border-bottom: 0; margin-top: var(--s-6); }
  .nav__link--cta {
    margin-left: 0;
    text-align: center;
    font-family: var(--font-text);
    font-size: var(--t-small);
    font-weight: 500;
    padding: 1rem 1.5rem;
  }

  /* While the panel is open the header always uses the solid paper treatment. */
  .page--home .masthead.is-nav-open,
  .masthead.is-nav-open { color: var(--ink); }
  .page--home .masthead.is-nav-open::before,
  .masthead.is-nav-open::before { background: var(--paper); backdrop-filter: none; }
  .page--home .masthead.is-nav-open .wordmark__line--2 { color: var(--accent); opacity: 1; }
  .page--home .masthead.is-nav-open .nav__link--cta { background: var(--ink); color: var(--on-ink); }

  body.is-nav-open { overflow: hidden; }
}

/* -----------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  min-height: min(92svh, 54rem);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  background: var(--ink);
  color: var(--on-ink);
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media picture { display: block; width: 100%; height: 100%; }
.hero__image  { width: 100%; height: 100%; object-fit: cover; }

/* Two-stop scrim: enough contrast for the type, not so much that the
   photograph turns to mud. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(12,13,16,.42) 0%, rgba(12,13,16,.18) 45%, rgba(12,13,16,.05) 70%, rgba(12,13,16,.38) 100%);
}

/* A second, local scrim under the text block. The page-wide gradient alone cannot
   guarantee contrast, because the headline sits over whatever the photograph
   happens to be doing there — on the Venice hero, a bright orange sky. */
.hero__body {
  width: 100%;
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3.5rem, 8vw, 6rem);
  padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6rem));
  background: linear-gradient(to top,
              rgba(11,12,15,.80) 0%,
              rgba(11,12,15,.66) 42%,
              rgba(11,12,15,.30) 76%,
              rgba(11,12,15,0) 100%);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--t-hero);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -.022em;
  max-width: 16ch;
}
.hero__title-line { display: block; }
.hero__title-line--alt { color: var(--on-ink-muted); font-style: italic; font-weight: 200; }

.hero__lead {
  max-width: 46ch;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: var(--t-lead);
  font-weight: 300;
  line-height: 1.55;
  color: rgba(244,241,236,.86);
  text-wrap: pretty;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: clamp(2rem, 4vw, 3rem); }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  width: 1px; height: 3rem;
  overflow: hidden;
  background: rgba(244,241,236,.22);
}
.hero__scroll span {
  display: block;
  width: 1px; height: 1rem;
  background: var(--on-ink);
  animation: scroll-hint 2.6s var(--ease) infinite;
}
@keyframes scroll-hint {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(300%); }
  100% { transform: translateY(300%); }
}

@media (max-width: 40rem) {
  .hero { min-height: min(88svh, 42rem); }
  .hero__scroll { display: none; }
}

/* -----------------------------------------------------------------------------
   9. Page head (interior pages)
   -------------------------------------------------------------------------- */

.page-head {
  padding-top: calc(var(--header-h) * .4 + clamp(3rem, 7vw, 6.5rem));
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}

.page-head__inner { max-width: 34ch; }

.page-head__title {
  font-family: var(--font-display);
  font-size: var(--t-h1);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.page-head__lead {
  max-width: 52ch;
  margin-top: var(--s-5);
  font-size: var(--t-lead);
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.page-head__inner { max-width: 58ch; }

/* -----------------------------------------------------------------------------
   10. Figures
   -------------------------------------------------------------------------- */

.figure { margin: 0; }
.figure__frame { overflow: hidden; background: var(--paper-deep); }
.figure img { width: 100%; }

.figure__caption {
  display: grid;
  gap: .35rem;
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  font-size: var(--t-small);
  line-height: 1.5;
}
.figure__title {
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.figure__text   { color: var(--ink-soft); max-width: 46ch; text-wrap: pretty; }
.figure__credit { font-size: var(--t-micro); color: var(--muted); letter-spacing: .02em; }

.figure--full .figure__frame { max-height: 82svh; }
.figure--full .figure__frame picture { display: block; width: 100%; height: 100%; }
.figure--full img { width: 100%; height: 100%; object-fit: cover; }
.figure--full .figure__caption {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* -----------------------------------------------------------------------------
   11. Media index — the five paper families
   -------------------------------------------------------------------------- */

.media-index { border-top: 1px solid var(--line); }
.media-index__item { border-bottom: 1px solid var(--line); }

.media-index__link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: 'number body arrow';
  align-items: center;
  gap: var(--s-4) var(--s-5);
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  text-decoration: none;
  transition: color .22s var(--ease);
}
.media-index__link:hover { color: var(--accent); }

.media-index__number {
  grid-area: number;
  align-self: start;
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--muted);
  padding-top: .45rem;
  transition: color .22s var(--ease);
}
.media-index__link:hover .media-index__number { color: var(--accent); }

.media-index__body { grid-area: body; display: grid; gap: .5rem; }

.media-index__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.4rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.015em;
}

.media-index__lead {
  max-width: 48ch;
  font-size: var(--t-small);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

.media-index__count {
  font-size: var(--t-micro);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.media-index__thumb { display: none; }

.media-index__arrow { grid-area: arrow; color: var(--muted-soft); transition: color .22s var(--ease), transform .3s var(--ease); }
.media-index__arrow svg { width: 1.5rem; }
.media-index__link:hover .media-index__arrow { color: var(--accent); transform: translateX(.35rem); }

@media (min-width: 60rem) {
  .media-index__link {
    grid-template-columns: 4rem minmax(0, 1fr) 12rem 3rem;
    grid-template-areas: 'number body thumb arrow';
    gap: var(--s-6);
  }
  .media-index__thumb {
    grid-area: thumb;
    display: block;
    overflow: hidden;
    background: var(--paper-deep);
  }
  .media-index__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    filter: grayscale(1) contrast(1.02);
    transform: scale(1.02);
    transition: filter .5s var(--ease), transform .5s var(--ease);
  }
  .media-index__link:hover .media-index__img { filter: grayscale(0); transform: scale(1); }
}

/* -----------------------------------------------------------------------------
   12. Reasons / aspects / pillars / metrics
   -------------------------------------------------------------------------- */

.reasons { display: grid; gap: 0; border-top: 1px solid var(--line); }
.reasons__item { padding-block: clamp(1.5rem, 3vw, 2.25rem); border-bottom: 1px solid var(--line); }
.reasons__number {
  display: block;
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: var(--s-3);
}
.reasons__title { font-size: var(--t-h3); font-weight: 500; letter-spacing: -.005em; line-height: 1.25; }
.reasons__text  { margin-top: var(--s-3); max-width: 46ch; color: var(--muted); text-wrap: pretty; }

@media (min-width: 48rem) {
  .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 4.5rem); }
}
@media (min-width: 75rem) {
  .reasons { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(1.75rem, 2.6vw, 2.75rem); }
  .reasons__item { border-bottom: 0; }
  .reasons__title { font-size: 1.1875rem; }
}

.aspects {
  display: grid;
  gap: clamp(2rem, 4vw, 3.25rem);
}
.aspects__item { border-top: 1px solid var(--line-strong); padding-top: var(--s-5); }
.aspects__title { font-size: var(--t-h3); font-weight: 500; line-height: 1.25; }
.aspects__text  { margin-top: var(--s-3); color: var(--muted); text-wrap: pretty; }

@media (min-width: 48rem) { .aspects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 75rem) { .aspects { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pillars { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.pillars__item {
  display: grid;
  gap: var(--s-4) clamp(2rem, 5vw, 4rem);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
}
.pillars__number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem);
  font-weight: 200;
  line-height: 1;
  color: var(--muted-soft);
}
.pillars__title { font-family: var(--font-display); font-size: var(--t-h2); font-weight: 300; letter-spacing: -.015em; }
.pillars__text  { margin-top: var(--s-4); max-width: 58ch; color: var(--ink-soft); text-wrap: pretty; }

@media (min-width: 60rem) {
  .pillars__item { grid-template-columns: 8rem minmax(0, 1fr); align-items: start; }
}

.metrics { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.metrics__item { border-top: 1px solid var(--line-strong); padding-top: var(--s-5); }
.metrics__term {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  font-weight: 300;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .75rem;
}
.metrics__gloss {
  font-family: var(--font-text);
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.metrics__desc { margin: var(--s-4) 0 0; max-width: 52ch; color: var(--ink-soft); text-wrap: pretty; }

@media (min-width: 55rem) { .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* -----------------------------------------------------------------------------
   13. Paper entries
   -------------------------------------------------------------------------- */

.papers { border-top: 1px solid var(--line-strong); }

.paper {
  display: grid;
  gap: var(--s-4) clamp(2rem, 5vw, 4rem);
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-bottom: 1px solid var(--line);
}

.paper__name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.15rem + .8vw, 1.85rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.paper__spec {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .75rem;
  margin-top: var(--s-2);
}
.paper__weight { font-size: var(--t-small); font-weight: 500; color: var(--accent); }
.paper__code {
  font-size: var(--t-micro);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  padding: .15rem .5rem;
}

.paper__facts { display: grid; gap: .45rem; }
.paper__facts li {
  position: relative;
  padding-left: 1.1rem;
  font-size: var(--t-small);
  line-height: 1.5;
  color: var(--ink-soft);
}
.paper__facts li::before {
  content: '';
  position: absolute;
  left: 0; top: .62em;
  width: .4rem; height: 1px;
  background: var(--accent);
}

.paper__text { margin-top: var(--s-4); max-width: 58ch; color: var(--muted); text-wrap: pretty; }

@media (min-width: 55rem) {
  .paper { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .paper__head { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

.papers__note {
  margin-top: clamp(2rem, 4vw, 3rem);
  max-width: 52ch;
  color: var(--muted);
  font-size: var(--t-small);
}

/* -----------------------------------------------------------------------------
   14. Gallery
   -------------------------------------------------------------------------- */

.gallery__row + .gallery__row { margin-top: clamp(3rem, 7vw, 7rem); }
.gallery__row--full:first-child { margin-top: 0; }
.gallery { padding-block: clamp(3rem, 6vw, 6rem); }

.gallery__pair { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 55rem) {
  .gallery__pair { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .gallery__pair-item:nth-child(2) { margin-top: clamp(3rem, 8vw, 8rem); }
}

.gallery__wide { max-width: 62rem; }
@media (min-width: 60rem) { .gallery__wide { margin-left: auto; } }

/* -----------------------------------------------------------------------------
   15. Pull quote
   -------------------------------------------------------------------------- */

.pullquote { max-width: 44ch; margin: 0 auto; text-align: center; }
.pullquote__text {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.15rem + 1.9vw, 2.85rem);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -.018em;
  text-wrap: balance;
}
.pullquote__body { margin-top: var(--s-5); color: var(--muted); text-wrap: pretty; }
.pullquote .inline-action { justify-content: center; }

/* -----------------------------------------------------------------------------
   16. Shop band
   -------------------------------------------------------------------------- */

.shop-band {
  background: var(--ink);
  color: var(--on-ink);
  padding-block: clamp(3.5rem, 7vw, 7rem);
}
.shop-band--compact { padding-block: clamp(2.75rem, 5vw, 4.5rem); }

.shop-band__inner {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: end;
}

.shop-band__title {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -.018em;
  max-width: 20ch;
  text-wrap: balance;
}
.shop-band__lead {
  margin-top: var(--s-4);
  max-width: 44ch;
  color: var(--on-ink-muted);
  text-wrap: pretty;
}
.shop-band__action { margin: 0; }

@media (min-width: 55rem) {
  .shop-band__inner { grid-template-columns: minmax(0, 1fr) auto; gap: clamp(2rem, 6vw, 5rem); }
}

/* -----------------------------------------------------------------------------
   17. Forms
   -------------------------------------------------------------------------- */

.contact { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
@media (min-width: 62rem) {
  .contact { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(3rem, 7vw, 6rem); }
}

.form { max-width: 42rem; }
.form__field + .form__field,
.form__row + .form__field,
.form__field + .form__row { margin-top: var(--s-6); }

/* Inside a row the fields are grid tracks, so vertical rhythm comes from the grid
   gap. Without this the adjacent-sibling margin above also fires between the two
   columns and pushes the second field out of alignment with the first. */
.form__row > .form__field + .form__field { margin-top: 0; }

.form__row { display: grid; gap: var(--s-6); }
@media (min-width: 40rem) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.form__label {
  display: block;
  margin-bottom: var(--s-2);
  font-size: var(--t-small);
  font-weight: 500;
}
.form__required { color: var(--accent); }
.form__optional { font-weight: 400; color: var(--muted); font-size: var(--t-micro); letter-spacing: .08em; text-transform: uppercase; margin-left: .4rem; }

.form__input {
  width: 100%;
  min-height: 3rem;
  padding: .75rem .9rem;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.form__input:hover { border-color: var(--muted); }
.form__input:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.form__input--area { resize: vertical; min-height: 11rem; line-height: 1.6; }
.form__input.is-invalid { border-color: #a33; box-shadow: 0 0 0 1px #a33; }

.form__file {
  width: 100%;
  font-size: var(--t-small);
  padding: .65rem 0;
}
.form__file::file-selector-button {
  font: inherit;
  font-size: var(--t-small);
  margin-right: var(--s-4);
  padding: .6rem 1.1rem;
  background: var(--paper-tint);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  cursor: pointer;
}
.form__file::file-selector-button:hover { background: var(--paper-deep); }

.form__hint  { margin-top: var(--s-2); font-size: var(--t-micro); color: var(--muted); letter-spacing: .02em; }
.form__error { margin-top: var(--s-2); font-size: var(--t-small); color: #a33; }

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-5);
  margin-top: var(--s-7);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
}
.form__note { font-size: var(--t-micro); color: var(--muted); }

/* Honeypot: removed from layout, from the accessibility tree and from tab order.
   A human never sees it; a naive bot fills it and is silently discarded. */
.form__trap {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.notice { padding: var(--s-5) var(--s-6); border-left: 2px solid var(--accent); background: var(--paper-tint); }
.notice__title { font-family: var(--font-display); font-size: var(--t-h3); font-weight: 400; margin-bottom: var(--s-3); }
.notice--success { border-left-color: #3f7d52; }
.notice--error   { border-left-color: #a33; margin-bottom: var(--s-6); }
.notice--warning { border-left-color: var(--accent); margin-block: var(--s-6); }
.notice p + p { margin-top: var(--s-3); }

.contact-card { border-top: 1px solid var(--line-strong); padding-top: var(--s-5); }
.contact-card__title {
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: var(--s-6);
}
.contact-card__title:first-child { margin-top: 0; }
.contact-card__links, .contact-card__address { margin-top: var(--s-3); line-height: 1.7; }
.contact-card__links a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  text-decoration-color: var(--line-strong);
}
.contact-card__links a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.contact-card__topics { margin-top: var(--s-3); display: grid; gap: .35rem; }
.contact-card__topics li {
  position: relative;
  padding-left: 1.1rem;
  font-size: var(--t-small);
  color: var(--ink-soft);
}
.contact-card__topics li::before {
  content: '';
  position: absolute;
  left: 0; top: .62em;
  width: .4rem; height: 1px;
  background: var(--accent);
}

/* -----------------------------------------------------------------------------
   18. Über / Shop page bits
   -------------------------------------------------------------------------- */

.chapter + .chapter { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.chapter__title { font-family: var(--font-display); font-size: var(--t-h2); font-weight: 300; letter-spacing: -.015em; }

.card-facts { margin-top: var(--s-7); border-top: 1px solid var(--line-strong); padding-top: var(--s-5); }
.card-facts__title {
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.card-facts__list { margin-top: var(--s-4); display: grid; gap: var(--s-4); }
.card-facts__list div { display: grid; gap: .2rem; }
.card-facts__list dt { font-size: var(--t-micro); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card-facts__list dd { margin: 0; font-size: var(--t-small); color: var(--ink); }

.contact-strip { display: grid; gap: var(--s-5); align-items: start; }
@media (min-width: 55rem) { .contact-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-7); } }
.contact-strip__address, .contact-strip__links { line-height: 1.8; }

/* Workshop line under a postal address. Its own tone, so the postal address the
   post office needs stays the one that reads first. */
.address__studio { display: inline-block; margin-top: .6em; font-size: var(--t-small); }
.contact-strip__address .address__studio,
.contact-card__address .address__studio { color: var(--muted); }
.footer__address .address__studio { color: var(--on-ink-muted); }

.shop-notes {
  display: grid;
  gap: var(--s-4);
  margin-bottom: var(--s-7);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 48rem) { .shop-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); } }
.shop-notes__item { font-size: var(--t-small); color: var(--ink-soft); }
.shop-notes__label {
  display: block;
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .35rem;
}

/* The Ecwid storefront brings its own styling; this only reserves room for it so
   the page does not jump when the widget mounts. */
.shop-embed { min-height: 40rem; }
.shop-embed__cart { margin-bottom: var(--s-5); }

.legal h2 {
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: 500;
  margin-top: var(--s-7);
  margin-bottom: var(--s-3);
}
.legal h2:first-child { margin-top: 0; }
.legal p, .legal address { color: var(--ink-soft); line-height: 1.75; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }

.notfound-links ul { display: grid; gap: var(--s-2); }

/* -----------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--ink);
  color: var(--on-ink);
  padding-top: clamp(3.5rem, 7vw, 6rem);
}

.footer__inner {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}
@media (min-width: 48rem) { .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 70rem) { .footer__inner { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); } }

.footer__wordmark {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
  font-weight: 300;
  letter-spacing: -.01em;
}
.footer__tagline { margin-top: var(--s-3); font-size: var(--t-small); color: var(--on-ink-muted); max-width: 26ch; }

.footer__heading {
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-ink-muted);
  margin-bottom: var(--s-4);
}
.footer__address, .footer__contact { line-height: 1.8; font-size: var(--t-small); }
.footer__contact a,
.footer__nav a {
  text-decoration: none;
  color: inherit;
  transition: color .18s var(--ease);
}
.footer__contact a:hover, .footer__nav a:hover { color: var(--accent); }
.footer__nav ul { display: grid; gap: .4rem; font-size: var(--t-small); }
.footer__nav a[aria-current] { color: var(--on-ink-muted); }

.footer__base {
  max-width: var(--shell-max);
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  padding: var(--s-5) var(--gutter);
  border-top: 1px solid var(--on-ink-line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-4);
  font-size: var(--t-micro);
  color: var(--on-ink-muted);
  letter-spacing: .03em;
}
.footer__base a { text-decoration: none; }
.footer__base a:hover { color: var(--accent); }

/* -----------------------------------------------------------------------------
   20. Teaser grid (home)
   -------------------------------------------------------------------------- */

.teaser-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 55rem) {
  .teaser-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .teaser-grid__item--1 { grid-column: 1 / span 7; }
  .teaser-grid__item--2 { grid-column: 9 / span 4; margin-top: clamp(2rem, 6vw, 6rem); }
  .teaser-grid__item--3 { grid-column: 3 / span 6; margin-top: clamp(1rem, 3vw, 3rem); }
}

/* -----------------------------------------------------------------------------
   21. Motion
   -------------------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Set by site.js on anything already in the first viewport, so above-the-fold
   content paints at once instead of waiting out a transition it would fade
   through unseen. */
.js [data-reveal].is-instant { transition: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* -----------------------------------------------------------------------------
   22. Print
   -------------------------------------------------------------------------- */

@media print {
  .masthead, .footer, .shop-band, .hero__scroll, .skip-link, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero { min-height: auto; color: #000; background: #fff; margin-top: 0; }
  .hero::after, .hero__media { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 9pt; color: #555; }
}
