/* talenti-furniture.com
   Built mobile first: every rule below is the 360px rule until a min-width
   query widens it. Sections butt against each other - there is no vertical
   rhythm between them, the air lives inside the frame. */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 16px);
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--on-ground);
  font: 400 var(--body)/1.65 var(--sans);
  overflow-x: hidden;           /* a swipe track must never drag the page */
  -webkit-font-smoothing: antialiased;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; font-family: var(--serif); line-height: 1.12; }
h1 { font-size: var(--display); letter-spacing: -0.01em; }
h2 { font-size: var(--headline); }
h3 { font-size: var(--title); line-height: 1.22; }
h4 { font-size: var(--body-lg); font-family: var(--sans); font-weight: 500; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

/* Links carry their underline all the time. On hover the line turns lime and
   thickens: it never draws itself in or slides, that belongs to other sites. */
a.link {
  text-decoration: underline;
  text-decoration-color: rgba(242, 237, 230, 0.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color var(--fast) var(--in),
              text-decoration-thickness var(--fast) var(--in);
}
a.link:hover, a.link:focus-visible {
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
  transition-duration: 200ms;
}
.on-sand a.link { text-decoration-color: rgba(51, 45, 39, 0.4); }
.on-sand a.link:hover, .on-sand a.link:focus-visible { text-decoration-color: #7E9A1D; }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--lime); color: var(--on-lime);
  padding: 12px 18px; border-radius: var(--r-control); font-size: var(--small);
}
.skip:focus { top: 8px; }

/* ---------------------------------------------------------------- shell */

.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--margin); }

.label {
  margin: 0;
  font-size: var(--label);
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--on-ground-muted);
}
.on-sand .label { color: var(--on-sand-muted); }
.label--lime { color: var(--lime); }

.lede { font-size: var(--body-lg); line-height: 1.6; max-width: min(100%, 34em); }
.measure { max-width: min(100%, var(--measure)); }

/* ------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px;
  border: 1px solid transparent; border-radius: var(--r-control);
  background: var(--lime); color: var(--on-lime);
  font: 500 var(--label)/1 var(--sans);
  letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: letter-spacing var(--mid) var(--in), padding var(--mid) var(--in),
              background var(--mid) var(--in);
}
/* The hover is the house move: the letters space out, the frame squeezes. */
.btn:hover, .btn:focus-visible { letter-spacing: 0.24em; padding-block: 10px; }

.btn--ghost {
  background: transparent; color: var(--on-ground);
  border-color: var(--outline-strong);
}
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--lime); color: var(--lime); }
.on-sand .btn--ghost { color: var(--on-sand); border-color: var(--outline-sand); }
.on-sand .btn--ghost:hover { color: #55671D; border-color: #7E9A1D; }

/* ------------------------------------------------------------ masthead */

.masthead {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--header);
  display: flex; align-items: center;
  transition: height var(--mid) var(--in), background var(--mid) var(--in);
}
.masthead::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(58, 51, 45, 0.92);
  border-bottom: 1px solid var(--outline);
  opacity: 0; transition: opacity var(--mid) var(--in);
}
/* The masthead stays transparent over the first poster, but it does not float
   on bare photograph: a vignette runs down behind it. Measured on a white wall,
   the backing under the second row of links is rgb(91,89,87), luminance 0.10,
   and #F2EDE6 on it is 5.9 to 1. */
.masthead::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; z-index: -2;
  height: calc(var(--header) + 40px); pointer-events: none;
  background: linear-gradient(to bottom,
    rgb(var(--scrim) / 0.72) 0%, rgb(var(--scrim) / 0.60) 62%, rgb(var(--scrim) / 0) 100%);
  transition: opacity var(--mid) var(--in);
}
.masthead.is-stuck::after { opacity: 0; }
.masthead.is-stuck { height: var(--header-stuck); }
.masthead.is-stuck::before { opacity: 1; backdrop-filter: blur(10px); }

.masthead__row {
  width: 100%; max-width: var(--container); margin-inline: auto;
  padding-inline: var(--margin);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 21px; letter-spacing: 0.04em;
  text-decoration: none; color: var(--on-ground);
  min-height: 44px;
}
.wordmark svg { width: 26px; height: 18px; color: var(--lime); flex: none; }

/* Two rows of two on the desktop masthead, one row once it sticks. */
.masthead__nav { display: none; }
.masthead__cta { display: none; }

.menu-btn {
  appearance: none; border: 1px solid var(--outline-strong); background: transparent;
  color: var(--on-ground); min-height: 44px; min-width: 76px; padding: 10px 16px;
  border-radius: var(--r-control); cursor: pointer;
  font: 500 var(--label)/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase;
}

@media (min-width: 900px) {
  .menu-btn { display: none; }
  .masthead__nav {
    display: grid; grid-template-columns: repeat(2, auto);
    column-gap: var(--gutter); row-gap: 0; margin-left: auto;
  }
  .masthead__nav a {
    display: inline-flex; align-items: center; min-height: 44px;
    font-size: var(--label); font-weight: 300; letter-spacing: 0.18em;
    text-transform: uppercase; text-decoration: none; color: var(--on-ground);
    border-bottom: 1px solid transparent;
    transition: color var(--fast) var(--in), border-color var(--fast) var(--in);
  }
  .masthead__nav a:hover, .masthead__nav a:focus-visible,
  .masthead__nav a[aria-current] { color: var(--lime); border-bottom-color: var(--lime); }
  .masthead__cta { display: inline-flex; margin-left: var(--gutter); }
  .masthead.is-stuck .masthead__nav { grid-template-columns: repeat(4, auto); }
}

/* ------------------------------------------------- mobile poster overlay */

.overlay {
  position: fixed; inset: 0; z-index: 90;
  background: var(--deep);
  display: grid; grid-template-rows: auto 1fr auto;
  overflow: hidden;                       /* the swipe track stays inside */
  visibility: hidden; opacity: 0;
  transition: opacity var(--mid) var(--in), visibility 0s linear var(--mid);
}
.overlay.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }

.overlay__photo { position: absolute; inset: 0; z-index: 0; }
.overlay__photo img { width: 100%; height: 100%; object-fit: cover; opacity: 0.78; }
.overlay__photo::after {
  content: ''; position: absolute; inset: 0;
  /* 0.72 at the top is the number that keeps the 13px lime label at 4.75 to 1
     over the worst case the photograph can offer, a white sky. */
  background: linear-gradient(to bottom, rgb(var(--scrim) / 0.72), rgb(var(--scrim) / 0.9));
}

.overlay__bar {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px var(--margin); min-height: var(--header);
}
.overlay__track {
  position: relative; z-index: 2;
  display: flex; width: 200%; height: 100%;
  transition: transform var(--slow) var(--in);
}
.overlay__panel {
  width: 50%; flex: none; overflow-y: auto; overscroll-behavior: contain;
  padding: 8px var(--margin) 24px;
}
.overlay__panel h2 { font-size: var(--label); font-family: var(--sans); letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--lime); margin-bottom: 12px; }
.overlay__panel a {
  display: block; min-height: 52px; padding: 10px 0;
  font-family: var(--serif); font-size: 28px; line-height: 1.2;
  text-decoration: none; color: var(--on-deep);
  border-bottom: 1px solid var(--outline);
}
.overlay__panel a:hover, .overlay__panel a:focus-visible { color: var(--lime); }
.overlay__foot {
  position: relative; z-index: 2;
  padding: 14px var(--margin) calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--outline);
  display: grid; gap: 10px;
}
.overlay__foot .label { display: grid; gap: 4px; overflow-wrap: anywhere; }
.overlay__dots { display: flex; gap: 10px; justify-content: center; }
.overlay__dots button {
  appearance: none; border: 0; background: var(--outline-strong);
  width: 44px; height: 44px; padding: 0; cursor: pointer; position: relative;
}
.overlay__dots button::after {
  content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 26px; height: 3px; background: var(--outline-strong);
}
.overlay__dots button { background: transparent; }
.overlay__dots button[aria-selected='true']::after { background: var(--lime); }

body.is-locked { overflow: hidden; }

/* ------------------------------------------------------------- posters */

/* A poster is a photograph with the words inside it. The frame never shows a
   photograph larger than the file: --nat-w and --nat-h are the natural pixel
   size, and both the width and the height of the box are capped by them, so
   `object-fit: cover` can only ever scale a frame down. */
/* A poster is one grid cell with two things stacked in it: an empty spacer that
   carries the shape of the photograph, and the words. The cell is as tall as
   whichever is taller, so a long headline on a 360px screen makes the poster
   grow instead of climbing out of the top of it.

   --maxw and --ar come from the file: the build clamps the ratio between 4:5
   and 16:9 and never lets the box exceed the natural width, so `cover` can only
   ever scale a photograph down. */
.poster {
  position: relative;
  display: grid;
  /* minmax(0, 1fr), not auto: an auto track takes the max-content width of the
     headline, and a long first line then makes the poster wider than the
     screen. The text is clipped by overflow and the page looks broken. */
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, var(--maxw, 100%));
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--r-poster);
  background: var(--deep);
  isolation: isolate;
}
.poster::before {
  content: ''; grid-area: 1 / 1; width: 100%;
  aspect-ratio: 4 / 5; max-height: 78vh;
}
@media (min-width: 600px) {
  .poster::before { aspect-ratio: var(--ar, 1.6); max-height: 88vh; }
}
.poster--tall::before { max-height: 86vh; }
@media (min-width: 600px) { .poster--tall::before { max-height: 94vh; } }

.poster__frame { position: absolute; inset: 0; z-index: 0; }
.poster__frame img { width: 100%; height: 100%; object-fit: cover; }

/* The scrim is tied to the words, not to the frame.

   A gradient across the whole poster cannot be strong enough at the top line of
   a four line headline and light enough to leave the photograph alone. So the
   frame gets only a thin band under the transparent masthead, and the text
   block carries its own backing that reaches 120px above the first line.

   --dim is set per photograph by the build from the measured brightness of the
   corner the text sits in: a dark terrace gets 0.70, a white sky gets 0.84.
   Checked as a number, not by eye: at --dim 0.70 the worst case backing under
   #F2EDE6 is rgb(94,92,90), luminance 0.11, contrast 5.5 to 1. */
.poster::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgb(var(--scrim) / 0.5) 0%, rgb(var(--scrim) / 0) 20%),
    linear-gradient(to top, rgb(var(--scrim) / 0.35) 0%, rgb(var(--scrim) / 0) 26%);
}

/* The block spans the whole frame so its backing has no vertical edge; the
   words inside it are the thing that is 680px wide. */
.poster__inner {
  grid-area: 1 / 1; align-self: end;
  position: relative; z-index: 2;
  display: grid; gap: 12px; justify-items: start;
  padding: calc(var(--header) + 28px) var(--margin) clamp(24px, 4vw, 56px);
}
@media (min-width: 600px) { .poster__inner { gap: 14px; } }
.poster__inner > * { max-width: min(100%, 680px); }
.poster__inner::before {
  content: ''; position: absolute; z-index: -1; inset: -220px 0 0 0;
  pointer-events: none;
  background: linear-gradient(to top,
    rgb(var(--scrim) / calc(var(--dim) + 0.08)) 0%,
    rgb(var(--scrim) / var(--dim)) 46%,
    rgb(var(--scrim) / calc(var(--dim) * 0.72)) 68%,
    rgb(var(--scrim) / calc(var(--dim) * 0.34)) 84%,
    rgb(var(--scrim) / calc(var(--dim) * 0.10)) 93%,
    rgb(var(--scrim) / 0) 100%);
}
/* On a wide screen the backing stops where the words stop, so the right half
   of the photograph is left alone. The text column is 680px of a 1440 frame,
   so the mask holds full strength to 47 per cent and is gone by 80. */
@media (min-width: 900px) {
  .poster__inner::before {
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 42%,
      rgb(0 0 0 / 0.55) 64%, rgb(0 0 0 / 0.2) 80%, transparent 94%);
    mask-image: linear-gradient(to right, #000 0%, #000 42%,
      rgb(0 0 0 / 0.55) 64%, rgb(0 0 0 / 0.2) 80%, transparent 94%);
  }
}
/* On a phone the poster is only about 450px tall and the text takes most of it,
   so the fade above the words is shorter or the whole frame goes dark. */
@media (max-width: 599px) {
  .poster__inner::before { inset: -96px 0 0 0; }
}
.poster__inner .lede { color: var(--on-ground); }
.poster h1, .poster h2 { max-width: min(100%, 15ch); }
.poster .lede { max-width: min(100%, 34em); }

.poster h1, .poster h2 { text-wrap: balance; }

/* Category and collection tiles: the caption is parked below the bottom edge,
   hidden by the rounded skirt, and rises into the frame on hover. */
.tile {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--r-poster); background: var(--deep);
  text-decoration: none; color: var(--on-ground);
  aspect-ratio: 4 / 5;
}
/* <picture> is the child of the frame, the <img> is the child of <picture>.
   Without a height on the picture element the img has nothing to be 100% of and
   the photograph sits at its own height inside a taller box. */
.tile picture, .poster__frame picture, .overlay__photo picture {
  display: block; width: 100%; height: 100%;
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile--wide { aspect-ratio: 3 / 2; }
.tile::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(var(--scrim) / 0.88) 0%, rgb(var(--scrim) / 0.34) 40%, rgb(var(--scrim) / 0) 64%);
}
.tile__cap {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  padding: 16px 18px 18px;
  display: grid; gap: 4px;
}
.tile__name { font-family: var(--serif); font-size: var(--title); }
.tile__sub {
  font-size: var(--small); color: var(--on-ground-muted);
  transform: translateY(150%); opacity: 0;
  transition: transform var(--mid) var(--in), opacity var(--mid) var(--in);
}
.tile:hover .tile__sub, .tile:focus-visible .tile__sub { transform: none; opacity: 1; }

/* The frame drifts under the cursor by 2 per cent; the frame itself stands. */
.tile img, .photo img { transition: transform 320ms var(--in); will-change: transform; }
.tile:hover img { transform: scale(1.04) translate(var(--dx, 0), var(--dy, 0)); }

.photo { position: relative; overflow: hidden; border-radius: var(--r-poster); background: var(--deep); }
.photo img { width: 100%; height: auto; }
.photo:hover img { transform: scale(1.03); }

figure { margin: 0; }
figcaption { margin-top: 10px; font-size: var(--small); color: var(--on-ground-muted); }
.on-sand figcaption { color: var(--on-sand-muted); }

/* --------------------------------------------------------- sheet blocks */

/* Long reading, tables and forms sit on the sand sheet. Sections stack with
   no gap: the sheet starts where the poster ends. */
.sheet {
  background: var(--sand); color: var(--on-sand);
  border-radius: var(--r-poster);
  padding-block: clamp(40px, 6vw, 88px);
}
.sheet + .sheet { border-radius: 0 0 48px 48px; }
.band { background: var(--deep); padding-block: clamp(40px, 6vw, 80px); border-radius: var(--r-poster); }
.ground { padding-block: clamp(40px, 6vw, 80px); }

/* min-width: 0 on every grid child. Without it a grid track takes its content
   as its minimum, and one table with a min-width pushes the whole page sideways
   on a phone: four pages of the last site in the network scrolled for exactly
   this reason. */
.stack { display: grid; gap: clamp(20px, 3vw, 36px); }
.stack > *, .wrap > *, .head > * { min-width: 0; }
.head { display: grid; gap: 12px; max-width: 46ch; }

/* Three wide columns at 1240, one column on a phone. Every grid child gets
   min-width 0 so a table inside it cannot push the page sideways. */
.cols { display: grid; gap: var(--gutter); align-items: start; }
.cols > * { min-width: 0; }
.cols > .stack { align-content: start; }
@media (min-width: 768px) { .cols--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .cols--3 { grid-template-columns: repeat(3, 1fr); }
  .cols--wide { grid-template-columns: 2fr 1fr; }
  .cols--narrow { grid-template-columns: 1fr 2fr; }
}

.list-plain { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.list-plain li { padding-left: 22px; position: relative; }
.list-plain li::before {
  content: ''; position: absolute; left: 0; top: 0.62em;
  width: 10px; height: 2px; background: var(--lime);
}

/* ------------------------------------------------------------- tables */

.table-scroll { overflow-x: auto; max-width: 100%; overscroll-behavior-x: contain; }
table {
  width: 100%; border-collapse: collapse;
  font-size: var(--small); font-variant-numeric: tabular-nums;
  min-width: 520px;
}
caption { text-align: left; font-size: var(--small); color: var(--on-sand-muted); padding-bottom: 12px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--outline-sand); vertical-align: top; }
/* Only the column heads are set in capitals. A row head is a piece name, and a
   piece name in capitals at 13px is the small type the customer complained
   about on the last site. */
thead th {
  font-weight: 500; font-size: var(--label); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--on-sand-muted);
  border-bottom-color: var(--on-sand);
}
tbody th { font-weight: 500; font-size: var(--small); color: var(--on-sand); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }

/* --------------------------------------------------------- infographic */

.infographic { display: grid; gap: 14px; }
.infographic svg { width: 100%; height: auto; }

/* --------------------------------------------------------------- forms */

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field > label {
  font-size: var(--label); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--on-ground-muted);
}
.field input, .field textarea, .field select {
  width: 100%; font: 400 16px/1.5 var(--sans);   /* 16px or iOS zooms in */
  color: var(--on-ground); background: rgba(58, 51, 45, 0.7);
  border: 1px solid var(--outline); border-bottom: 2px solid var(--lime);
  border-radius: var(--r-control); padding: 13px 14px; min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(242, 237, 230, 0.45); }
.field .hint { font-size: var(--small); color: var(--on-ground-muted); }
.field .err { font-size: var(--small); color: var(--error); }
.field [aria-invalid='true'] { border-color: var(--error); border-bottom-color: var(--error); }

/* The caption sits in a column to the right of the field on a wide screen,
   above it on a phone. Nobody else in the network puts it there. */
@media (min-width: 768px) {
  .field { grid-template-columns: 1fr 190px; align-items: start; column-gap: 20px; }
  .field > label { grid-column: 2; grid-row: 1; padding-top: 14px; }
  .field > :not(label) { grid-column: 1; }
  .field .hint, .field .err { grid-column: 1; }
}

.form__note { font-size: var(--small); color: var(--on-ground-muted); max-width: 46ch; }
.on-sand .form__note, .on-sand .field > label, .on-sand .field .hint { color: var(--on-sand-muted); }
.on-sand .field input, .on-sand .field textarea, .on-sand .field select {
  color: var(--on-sand); background: rgba(255, 255, 255, 0.6); border-color: var(--outline-sand);
  border-bottom-color: #7E9A1D;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: var(--body); min-height: 1.6em; }
.cf-turnstile { min-height: 65px; }

/* -------------------------------------------------------- sticky rail */

/* The collection ribbon keeps the name of the poster you are looking at in a
   bar at the foot of the screen. */
.colophon {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--margin) calc(10px + env(safe-area-inset-bottom));
  background: rgba(58, 51, 45, 0.94);
  border-top: 1px solid var(--outline);
  backdrop-filter: blur(10px);
  transform: translateY(110%);
  transition: transform var(--mid) var(--in);
}
.colophon.is-on { transform: none; }
/* Nothing scrollable ends under the bar: the ribbon page reserves its height. */
body:has(.colophon) { padding-bottom: 72px; }
.colophon__name { font-family: var(--serif); font-size: var(--body-lg); }
.colophon__meta { font-size: var(--label); letter-spacing: 0.18em; text-transform: uppercase; color: var(--on-ground-muted); }
@media (max-width: 599px) { .colophon__meta { display: none; } }

/* ------------------------------------------------------------- footer */

.footer { position: relative; }
.footer .poster__inner { gap: 18px; }
.footer__strip {
  background: var(--lime); color: var(--on-lime);
  font-size: var(--label); letter-spacing: 0.18em; text-transform: uppercase;
  padding: 14px var(--margin);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center;
}
.footer__strip a {
  color: inherit; text-decoration: none;
  display: inline-flex; align-items: center; min-height: 44px;
  border-bottom: 1px solid rgba(51, 45, 39, 0.45);
}
.footer__strip span { display: inline-flex; align-items: center; min-height: 44px; }
.footer__strip a:hover { border-bottom-color: currentColor; }
.footer__links {
  background: var(--deep); padding: 28px var(--margin) 36px;
}
.footer__links nav { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 18px; }
.footer__links nav a {
  font-size: var(--label); letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; color: var(--on-deep-muted);
  min-height: 44px; display: inline-flex; align-items: center;
}
.footer__links nav a:hover { color: var(--lime); }
.footer__legal { font-size: var(--small); color: var(--on-deep-muted); }

/* ------------------------------------------------------------- motion */

/* Initial states live here, never in JavaScript: a script that sets them
   after first paint shows the content and then hides it. */
[data-rise] { opacity: 0; transform: translateY(18px); }
.is-ready [data-rise].is-in { opacity: 1; transform: none;
  transition: opacity var(--slow) var(--in), transform var(--slow) var(--in); }
html.no-js [data-rise], .no-motion [data-rise] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-rise] { opacity: 1; transform: none; }
  .tile:hover img, .photo:hover img { transform: none; }
}

/* ------------------------------------------------------- page furniture */

main { padding-top: 0; }
.page-head { padding-top: calc(var(--header) + 24px); }

.crumbs { font-size: var(--label); letter-spacing: 0.18em; text-transform: uppercase; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: '/'; margin-right: 10px; opacity: 0.5; }
.crumbs a { text-decoration: none; color: var(--on-ground-muted); }
.crumbs a:hover { color: var(--lime); }

.ribbon { display: grid; gap: 2px; }         /* posters butt against each other */
.pair { display: grid; gap: var(--gutter); }
@media (min-width: 768px) { .pair { grid-template-columns: repeat(2, 1fr); } }

.note {
  border-left: 2px solid var(--lime); padding-left: 16px;
  font-size: var(--body); color: var(--on-ground-muted); max-width: 46ch;
}
.on-sand .note { color: var(--on-sand-muted); }

.quiet { color: var(--on-ground-muted); }
.on-sand .quiet { color: var(--on-sand-muted); }
