/* ==========================================================================
   TSATLI — colour card
   Every ground is an edition's own colour. A section sets --field / --fg
   (from data.js, via data-field) and everything inside tints itself from them.
   ========================================================================== */

:root {
  --night: #121110;
  --night-fg: #ece6dd;
  --cinnabar: #a8392b;

  --field: var(--night);
  --fg: var(--night-fg);
  --chrome-field: var(--night);
  --chrome-fg: var(--night-fg);

  --latin: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --display: "CJK Punct Serif", "Archivo", "Noto Serif SC", "Songti SC", serif;
  --text: "CJK Punct Sans", "Archivo", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --cjk: "Noto Serif SC", "Songti SC", "STSong", serif;

  --gutter: clamp(20px, 4vw, 64px);
  --r-media: 22px;
  --r-panel: 18px;
  --r-small: 12px;
  --header-h: 68px;
  --bar-h: 34px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dashes, ellipses and curly quotes in Chinese text come from a Chinese face;
   Latin faces draw "——" as two short bars with a gap. */
@font-face {
  font-family: "CJK Punct Serif";
  src: local("Songti SC"), local("STSongti-SC-Regular"), local("STSong"), local("SimSun"), local("Noto Serif CJK SC"), local("Source Han Serif SC");
  unicode-range: U+2014, U+2026, U+201C-201D;
}

@font-face {
  font-family: "CJK Punct Sans";
  src: local("PingFang SC"), local("PingFangSC-Regular"), local("Microsoft YaHei"), local("Noto Sans CJK SC"), local("Source Han Sans SC");
  unicode-range: U+2014, U+2026, U+201C-201D;
}

html:not([lang^="zh"]) {
  --display: "Archivo", "Noto Serif SC", "Helvetica Neue", Arial, sans-serif;
  --text: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: color-mix(in srgb, var(--chrome-fg) 35%, transparent) var(--chrome-field);
}

body {
  margin: 0;
  background: var(--field);
  color: var(--fg);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  caret-color: currentColor;
}

/* Colour changes animate only after the first paint, so a page opens already dyed. */
.ready body {
  transition: background-color 1.1s var(--ease), color 1.1s var(--ease), opacity 0.32s var(--ease);
}

.ready .site-header {
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease);
}

.is-leaving body {
  opacity: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

::selection {
  background: var(--fg);
  color: var(--field);
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

/* ---------- Fields ---------- */

.field {
  background: var(--field);
  color: var(--fg);
}

.soft {
  color: color-mix(in srgb, var(--fg) 80%, var(--field));
}

.wrap {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: clamp(112px, 14vw, 200px);
  padding-bottom: clamp(112px, 14vw, 200px);
}

.center {
  text-align: center;
}

.center .t-display,
.center .t-lede {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Type ---------- */

.t-name,
.t-display,
.t-h2,
.t-h3 {
  font-family: var(--display);
  font-stretch: 125%;
  margin: 0;
  text-wrap: balance;
}

.t-name {
  font-size: clamp(64px, 11vw, 136px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.04em;
}

.t-display {
  font-size: clamp(44px, 6vw, 92px);
  font-stretch: 108%;
  font-weight: 620;
  line-height: 1;
  letter-spacing: -0.035em;
}

.t-h2 {
  font-size: clamp(32px, 3.7vw, 56px);
  font-stretch: 106%;
  font-weight: 620;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.t-h3 {
  font-size: clamp(21px, 1.8vw, 26px);
  font-weight: 620;
  line-height: 1.2;
  letter-spacing: -0.018em;
  font-stretch: 104%;
}

/* Two-tone headings: the second phrase steps back. */
.t-display .soft,
.t-h2 .soft {
  color: color-mix(in srgb, var(--fg) 64%, var(--field));
}

/* Smaller headings need body-text contrast, so their second phrase steps back less. */
.t-h3 .soft {
  color: color-mix(in srgb, var(--fg) 82%, var(--field));
}

.t-lede {
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.5;
  max-width: 34em;
  text-wrap: pretty;
}

.t-body {
  max-width: 36em;
  text-wrap: pretty;
}

.t-meta {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.num {
  font-variant-numeric: tabular-nums;
}

/* The Chinese colour name that travels with every Latin one, and vice versa. */
.cn {
  font-family: var(--cjk);
  font-weight: 700;
  font-stretch: normal;
  letter-spacing: 0.04em;
}

.alt {
  font-family: var(--latin);
  font-stretch: 125%;
  font-weight: 650;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

/* ---------- Bar & header ---------- */

.bar {
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter);
  background: var(--night);
  color: var(--night-fg);
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  z-index: 60;
}

.bar a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.bar i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: -1px;
  background: var(--sw);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter);
  color: var(--chrome-fg);
  background: transparent;
}

.site-header.is-over {
  position: fixed;
  top: var(--bar-h);
  left: 0;
  right: 0;
}

.site-header.is-solid {
  top: 0;
  background: color-mix(in srgb, var(--chrome-field) 78%, transparent);
  backdrop-filter: saturate(1.6) blur(20px);
  -webkit-backdrop-filter: saturate(1.6) blur(20px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--chrome-fg) 10%, transparent);
}

.wordmark {
  font-family: var(--latin);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 500;
}

.nav a {
  padding: 6px 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  background-size: 100% 1px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}

.lang-toggle button {
  padding: 6px 0;
  color: color-mix(in srgb, currentColor 95%, transparent);
  text-decoration: underline 1.5px transparent;
  text-underline-offset: 5px;
  transition: text-decoration-color 0.3s;
}

.lang-toggle button:hover,
.lang-toggle button[aria-pressed="true"] {
  color: currentColor;
  text-decoration-color: currentColor;
}

.lang-toggle > span {
  opacity: 0.35;
}

.menu-btn,
.header-cta {
  display: none;
  font-size: 14px;
  font-weight: 500;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--chrome-field);
  color: var(--chrome-fg);
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav nav {
  display: grid;
  gap: 4px;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 650;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.mobile-nav .close {
  position: absolute;
  top: 20px;
  right: var(--gutter);
  font-size: 14px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--field);
  border: 1.5px solid var(--fg);
  font-family: var(--text);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

.btn:hover {
  background: transparent;
  color: var(--fg);
}

.btn--line {
  background: transparent;
  color: var(--fg);
}

.btn--line:hover {
  background: var(--fg);
  color: var(--field);
}

.btn--block {
  width: 100%;
}

.btn[disabled] {
  background: transparent;
  color: color-mix(in srgb, var(--fg) 60%, var(--field));
  border-color: color-mix(in srgb, var(--fg) 30%, transparent);
  cursor: not-allowed;
}

.arrow::after {
  content: "→";
  display: inline-block;
  margin-left: 0.5em;
  transition: transform 0.45s var(--ease);
}

.btn:hover .arrow::after,
a:hover .arrow::after {
  transform: translateX(4px);
}

.link {
  display: inline-flex;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
}

/* ---------- Silk ---------- */

.silk {
  width: 100%;
  height: 100%;
}

.silk--fallback {
  background: var(--field);
}

.swatch-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-media);
  isolation: isolate;
  background: color-mix(in srgb, var(--fg) 8%, var(--field));
}

.swatch-frame canvas {
  position: absolute;
  inset: 0;
}

/* A photograph, where there is one, takes the place of the rendered silk. */
img.photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.has-photo > canvas.silk,
.has-photo > .piece {
  display: none;
}

.flatlay > img.photo {
  border-radius: var(--r-media);
}

.hours-wrap > img.photo {
  opacity: 0.45;
}

/* The register photograph is a room at night, so its words sit on night, not on the page colour. */
.register__art.has-photo {
  --field: var(--night);
  --fg: var(--night-fg);
  color: var(--fg);
}

/* ---------- Meter ---------- */

.meter {
  height: 3px;
  background: color-mix(in srgb, var(--fg) 22%, transparent);
  position: relative;
}

.meter i {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--fg);
  transition: width 1.4s var(--ease);
}

/* ==========================================================================
   Home
   ========================================================================== */

.hero {
  position: relative;
  min-height: calc(100svh - var(--bar-h));
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}

.hero > canvas {
  position: absolute;
  inset: 0;
}

/* Lets the name and line hold their contrast over the brightest folds. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(0deg, color-mix(in srgb, var(--field) 88%, transparent) 0%, transparent 58%),
    linear-gradient(180deg, color-mix(in srgb, var(--field) 85%, transparent) 0%, transparent 24%);
}

.hero__body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.7fr);
  gap: 48px;
  align-items: end;
  padding: calc(var(--bar-h) + var(--header-h) + 48px) var(--gutter) 48px;
}

.hero__name {
  display: grid;
  gap: 28px;
}

.hero__name .t-name .cn {
  display: block;
  font-size: 0.62em;
  letter-spacing: 0.08em;
  margin-top: 0.18em;
}

html[lang^="zh"] .hero__name .t-name .cn {
  font-size: 1em;
  margin-top: 0;
}

html[lang^="zh"] .hero__name .t-name .alt {
  display: block;
  font-size: 0.4em;
  margin-top: 0.25em;
  letter-spacing: -0.02em;
}

.hero__line {
  max-width: 26em;
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.5;
}

.hero__alloc {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: var(--r-media);
  background: color-mix(in srgb, var(--field) 80%, transparent);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
}

.hero__alloc .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.hero__alloc b {
  font-family: var(--latin);
  font-stretch: 125%;
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* The colour index along the bottom of the first viewport. */
.index {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid color-mix(in srgb, var(--fg) 25%, transparent);
  background: color-mix(in srgb, var(--field) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.index a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 2px 14px;
  align-items: center;
  padding: 16px var(--gutter) 18px;
  border-right: 1px solid color-mix(in srgb, var(--fg) 25%, transparent);
  font-size: 14px;
  line-height: 1.35;
  transition: background-color 0.4s var(--ease);
}

.index a:last-child {
  border-right: 0;
}

.index a:hover {
  background: color-mix(in srgb, var(--fg) 10%, transparent);
}

.index i {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 25%, transparent);
}

.index .is-closed i {
  opacity: 0.45;
}

.index b {
  font-weight: 650;
}

.index span {
  font-size: 13px;
}

/* The colour on the loom now is marked by a bar, not a lighter fill, so its text keeps contrast. */
.index [aria-current="true"] {
  box-shadow: inset 0 3px 0 var(--fg);
}

/* Statement on night */

.statement-lead {
  max-width: 13em;
  margin-bottom: clamp(56px, 7vw, 104px);
}

.statement {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}

.statement__text {
  display: grid;
  gap: 28px;
  padding-top: 0.5em;
}

.statement__quote {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  max-width: 22em;
}

/* The card: one band per edition, sized by what is left of it. */

.card-head--center {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 28px;
}

.card-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: end;
  padding-bottom: clamp(56px, 7vw, 96px);
}

.band {
  background: var(--field);
  color: var(--fg);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: stretch;
  padding: clamp(40px, 5vw, 72px) var(--gutter);
}

.band__body {
  display: grid;
  align-content: space-between;
  gap: 40px;
}

.band__name {
  display: grid;
  gap: 16px;
}

.band__name .t-display .cn {
  font-size: 0.62em;
  letter-spacing: 0.08em;
  margin-left: 0.3em;
}

html[lang^="zh"] .band__name .t-display .cn {
  font-size: 1em;
  margin-left: 0;
}

html[lang^="zh"] .band__name .t-display .alt {
  font-size: 0.45em;
  margin-left: 0.4em;
}

.band__facts {
  display: grid;
  gap: 18px;
  max-width: 28em;
}

.band__facts .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 25%, transparent);
}

.band .swatch-frame {
  min-height: clamp(360px, 52vw, 720px);
}

.band--open .swatch-frame {
  min-height: clamp(320px, 40vw, 560px);
}

/* Retired colours: the swatch is gone; a strip the width of a selvedge remains. */
.band--closed {
  padding-top: 36px;
  padding-bottom: 36px;
}

.band--closed .swatch-frame {
  min-height: 180px;
  clip-path: inset(0 0 0 calc(100% - 22px) round 999px);
  transition: clip-path 1.2s var(--ease);
}

.band--closed:hover .swatch-frame {
  clip-path: inset(0 0 0 0 round var(--r-media));
}

.band--closed .band__body {
  gap: 20px;
}

.band--closed .t-display {
  font-size: clamp(36px, 4.4vw, 64px);
}

/* Reveal: the swatch opens to full bleed as the page scrolls, one line at a time.
   --p (0–1) is written by main.js from the section's scroll progress. */

.reveal {
  --p: 0;
  position: relative;
  height: 340vh;
}

.reveal__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}

.reveal__media {
  --open: clamp(0, calc(var(--p) / 0.42), 1);
  position: absolute;
  inset: 0;
  clip-path: inset(calc((1 - var(--open)) * 21%) calc((1 - var(--open)) * 27%) round calc((1 - var(--open)) * 28px));
  transform: scale(calc(1.12 - var(--open) * 0.12));
  will-change: clip-path, transform;
}

.reveal__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 70% at 50% 55%, transparent 30%, color-mix(in srgb, var(--field) 70%, transparent));
  opacity: var(--open);
}

.reveal__lines {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 var(--gutter);
  text-align: center;
  pointer-events: none;
}

.reveal__line {
  grid-area: 1 / 1;
  max-width: 15em;
  margin: 0;
  font-family: var(--display);
  font-stretch: 108%;
  font-weight: 620;
  font-size: clamp(36px, 5vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
  opacity: var(--o, 0);
  transform: translateY(calc((1 - var(--o, 0)) * 24px));
  filter: blur(calc((1 - var(--o, 0)) * 8px));
}

.reveal__line .soft {
  color: color-mix(in srgb, var(--fg) 72%, var(--field));
}

.reveal--static {
  height: auto;
}

.reveal--static .reveal__stage {
  position: relative;
  height: auto;
  min-height: 80svh;
}

.reveal--static .reveal__media {
  clip-path: none;
  transform: none;
}

.reveal--static .reveal__lines {
  position: relative;
  min-height: 80svh;
  gap: 32px;
  align-content: center;
}

.reveal--static .reveal__line {
  grid-area: auto;
  opacity: 1;
  transform: none;
  filter: none;
}

/* The brass tag. Drawn, because it is the one object every set shares. */

.tag {
  --brass-ink: #3d2b12;
  position: relative;
  width: min(340px, 100%);
  aspect-ratio: 16 / 10;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 22px 26px 20px 64px;
  border-radius: 16px;
  color: var(--brass-ink);
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(255, 244, 214, 0.55), transparent 55%),
    linear-gradient(135deg, #d8b56f 0%, #b98e45 38%, #e2c58a 58%, #9f7836 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 220, 0.7),
    inset 0 -2px 0 rgba(70, 45, 10, 0.35),
    0 2px 3px rgba(0, 0, 0, 0.18),
    0 24px 50px -24px rgba(0, 0, 0, 0.55);
  transform: rotate(-4deg);
}

.tag__hole {
  position: absolute;
  left: 22px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--field);
  box-shadow: inset 0 2px 3px rgba(40, 25, 5, 0.55), 0 1px 0 rgba(255, 246, 220, 0.6);
}

.tag__brand,
.tag__lot {
  font-family: var(--latin);
  font-size: 12px;
  font-weight: 650;
  font-stretch: 112%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 244, 214, 0.5);
}

html[lang^="zh"] .tag__lot {
  font-family: var(--text);
  letter-spacing: 0.08em;
}

.tag__no {
  align-self: center;
  font-family: var(--latin);
  font-stretch: 125%;
  font-weight: 700;
  font-size: clamp(30px, 3.2vw, 40px);
  letter-spacing: -0.03em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 0 rgba(255, 244, 214, 0.55), 0 -1px 0 rgba(60, 38, 8, 0.25);
}

.tag-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
}

.tag-stage {
  display: grid;
  place-items: center;
  min-height: clamp(260px, 28vw, 400px);
}

.tag-text {
  display: grid;
  gap: 26px;
}

.tag-uses {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid color-mix(in srgb, var(--fg) 22%, transparent);
}

.tag-uses li {
  text-wrap: pretty;
  padding: 16px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 22%, transparent);
}

.tag-uses b {
  font-weight: 650;
  margin-right: 6px;
}

/* Evenings */

.evenings-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 88px);
}

.evenings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.evening {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 240px;
  padding: 26px;
  border-radius: var(--r-panel);
  background: color-mix(in srgb, var(--fg) 7%, var(--field));
}

.evening .t-meta {
  font-weight: 600;
}

/* On a tinted panel the field is lighter, so secondary text steps back less. */
.evening .soft,
.lot-panel .soft,
.hero__alloc .soft {
  color: color-mix(in srgb, var(--fg) 92%, var(--field));
}

.evenings-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-top: clamp(40px, 5vw, 64px);
}

/* A set's record, looked up by number */

.record {
  display: grid;
  gap: 36px;
  justify-items: center;
  width: 100%;
  max-width: 560px;
}

.record dl {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid color-mix(in srgb, var(--fg) 25%, transparent);
}

.record dt {
  font-size: 13px;
}

.record dd {
  margin: 2px 0 0;
  font-weight: 600;
}

.lot-panel {
  display: grid;
  gap: 12px;
  padding: 20px 22px;
  border-radius: var(--r-panel);
  background: color-mix(in srgb, var(--fg) 8%, transparent);
}

.lot-panel .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 14px;
}

.lot-panel b {
  font-family: var(--latin);
  font-stretch: 125%;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
}

/* Colour samples (internal page) */

.samples-group {
  padding-bottom: clamp(56px, 7vw, 96px);
}

.samples--shop {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 18px;
}

.samples--shop .sample__body .t-h3 {
  font-size: 26px;
}

.samples-group > .t-h3 {
  margin-bottom: 20px;
}

.samples {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.sample {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  text-align: left;
  border-radius: var(--r-panel);
  overflow: hidden;
  background: var(--field);
  color: var(--fg);
  box-shadow: 0 0 0 0 transparent;
  transition: box-shadow 0.3s var(--ease), transform 0.4s var(--ease);
}

.sample:hover {
  transform: translateY(-3px);
}

.sample[aria-pressed="true"] {
  box-shadow: 0 0 0 3px var(--night), 0 0 0 5px var(--night-fg);
}

.sample__img {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--field);
}

.sample__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sample__body {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px 18px 18px;
}

.sample__body .t-h3 {
  font-size: 22px;
}

.sample__note {
  font-size: 14px;
  line-height: 1.45;
}

.sample__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.sample__check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--night-fg);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s var(--ease), transform 0.35s var(--ease);
}

.sample__check::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 7px;
  width: 7px;
  height: 13px;
  border: solid var(--night);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.sample[aria-pressed="true"] .sample__check {
  opacity: 1;
  transform: none;
}

.tray {
  position: sticky;
  bottom: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--night) 86%, transparent);
  color: var(--night-fg);
  --field: var(--night);
  --fg: var(--night-fg);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 -1px 0 color-mix(in srgb, var(--night-fg) 14%, transparent);
}

.tray__count b {
  font-family: var(--latin);
  font-stretch: 125%;
  font-weight: 700;
  font-size: 22px;
}

.tray__list {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 200px;
}

.tray-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--night-fg) 10%, transparent);
  font-size: 14px;
}

.tray-chip i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

/* Mill */

.mill {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
}

.mill .swatch-frame {
  aspect-ratio: 4 / 5;
}

.mill__body {
  display: grid;
  gap: 28px;
  max-width: 520px;
}

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid color-mix(in srgb, var(--fg) 22%, transparent);
}

.facts li {
  display: grid;
  gap: 4px;
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 22%, transparent);
}

.facts b {
  font-family: var(--latin);
  font-stretch: 125%;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.facts span {
  font-size: 14px;
}

/* The hours */

.hours-wrap {
  position: relative;
  overflow: hidden;
}

.hours-wrap > canvas {
  position: absolute;
  inset: 0;
  opacity: 0.6;
}

.hours-wrap > .wrap {
  position: relative;
  z-index: 1;
}

.hours {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(56px, 7vw, 96px);
}

.hour {
  display: grid;
  gap: 18px;
  align-content: start;
  padding-top: 20px;
  border-top: 1.5px solid color-mix(in srgb, var(--fg) 40%, transparent);
}

.hour time {
  font-family: var(--latin);
  font-stretch: 125%;
  font-weight: 700;
  font-size: clamp(40px, 4vw, 60px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

/* Register call */

.register-call {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: end;
}

.register-call__side {
  display: grid;
  gap: 28px;
}

.ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1.5px solid color-mix(in srgb, var(--fg) 40%, transparent);
}

.ledger div {
  display: grid;
  gap: 2px;
  padding: 16px 12px 0 0;
}

.ledger b {
  font-family: var(--latin);
  font-stretch: 125%;
  font-weight: 700;
  font-size: clamp(26px, 2.4vw, 36px);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.ledger span {
  font-size: 14px;
}

/* Footer */

.site-footer {
  --field: var(--night);
  --fg: var(--night-fg);
  background: var(--field);
  color: var(--fg);
  padding: 88px var(--gutter) 28px;
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.6fr));
  gap: 48px;
  padding-bottom: 88px;
}

.site-footer h4 {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 600;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 15px;
}

.site-footer ul a {
  color: color-mix(in srgb, var(--fg) 78%, var(--field));
  transition: color 0.3s;
}

.site-footer ul a:hover {
  color: var(--fg);
}

.letters p {
  margin-bottom: 20px;
  max-width: 28em;
}

.field-line {
  display: flex;
  border-bottom: 1.5px solid color-mix(in srgb, var(--fg) 55%, transparent);
  max-width: 460px;
}

.field-line input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  padding: 12px 0;
  outline: none;
}

.field-line input::placeholder {
  color: color-mix(in srgb, var(--fg) 72%, var(--field));
}

.field-line button {
  font-weight: 600;
  padding-left: 16px;
}

.site-footer__mark {
  display: none;
  font-family: var(--latin);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(64px, 17vw, 280px);
  line-height: 0.8;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 28px;
  color: color-mix(in srgb, var(--fg) 40%, var(--field));
  white-space: nowrap;
  overflow: hidden;
  user-select: none;
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 22px;
  border-top: 1px solid color-mix(in srgb, var(--fg) 18%, transparent);
  font-size: 13px;
  color: color-mix(in srgb, var(--fg) 72%, var(--field));
}

/* ==========================================================================
   Edition page — the whole page is dyed the edition's colour.
   ========================================================================== */

.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, 1fr);
  gap: clamp(32px, 5vw, 88px);
  padding-top: 24px;
  padding-bottom: clamp(80px, 10vw, 140px);
}

.pdp__gallery {
  display: grid;
  gap: 14px;
  align-content: start;
}

.pdp__gallery figure {
  margin: 0;
}

.pdp__gallery .swatch-frame {
  aspect-ratio: 4 / 5;
}

.pdp__gallery .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pdp__gallery .pair .swatch-frame {
  aspect-ratio: 1;
}

figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  font-size: 13px;
}

.pdp__panel {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  align-self: start;
  display: grid;
  gap: 28px;
}

.crumbs {
  display: flex;
  gap: 10px;
  font-size: 14px;
}

.pdp__title {
  display: grid;
  gap: 10px;
}

.pdp__title .t-name {
  font-size: clamp(40px, 14cqi, 96px);
  white-space: nowrap;
}

.pdp__title .cn,
.pdp__title .alt {
  font-size: clamp(26px, 2.4vw, 36px);
}

.pdp__price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid color-mix(in srgb, var(--fg) 25%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 25%, transparent);
}

.pdp__price b {
  font-family: var(--latin);
  font-stretch: 125%;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.opt {
  display: grid;
  gap: 16px;
}

.opt__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

.opt__head b {
  font-weight: 600;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  gap: 8px;
}

.swatch-name {
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* The panel holds still while choices change: names scale to the panel instead of
   wrapping, and text that varies in length gets room reserved for its longest case. */
.pdp__panel {
  container-type: inline-size;
}

.pdp__panel [data-ed="line"] {
  min-height: calc(3 * 1.5em);
}

html[lang^="zh"] .pdp__panel [data-ed="line"] {
  min-height: calc(2 * 1.85em);
}

.opt__note {
  min-height: calc(2 * 1.6em);
}

.swatch-name b {
  font-weight: 600;
  margin-right: 8px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.others-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
}

.all-colours {
  display: grid;
  place-items: center;
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 80px);
}

.samples-head {
  margin: 0 0 18px;
}

.samples--shop + .samples-head {
  margin-top: clamp(48px, 6vw, 80px);
}

.swatch {
  position: relative;
  display: grid;
  gap: 8px;
  text-align: left;
  font-size: 13px;
  line-height: 1.3;
}

.swatch i {
  display: block;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: var(--sw);
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--fg) 40%, transparent);
  outline: 2px solid transparent;
  outline-offset: 3px;
  transition: outline-color 0.3s;
}

.swatch.is-closed i {
  opacity: 0.5;
}

.swatch[aria-pressed="true"] i {
  outline-color: var(--fg);
}

.swatch b {
  font-weight: 600;
}

.swatch small {
  display: block;
  font-size: 12px;
}

.sizes {
  display: grid;
  grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fg) 10%, transparent);
}

.sizes button {
  min-width: 0;
  min-height: 44px;
  padding: 6px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  transition: background-color 0.3s, color 0.3s;
}

.sizes button[aria-pressed="true"] {
  background: var(--fg);
  color: var(--field);
}

.alloc {
  display: grid;
  gap: 12px;
  padding: 20px 22px;
  border-radius: var(--r-panel);
  background: color-mix(in srgb, var(--fg) 8%, transparent);
}

.alloc .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 14px;
}

.alloc .yours b {
  font-family: var(--latin);
  font-stretch: 125%;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.note {
  font-size: 14px;
}

.accordion {
  border-top: 1px solid color-mix(in srgb, var(--fg) 25%, transparent);
}

.accordion details {
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 25%, transparent);
}

.accordion summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}

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

.accordion summary::after {
  content: "+";
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
  transition: transform 0.4s var(--ease);
}

.accordion details[open] summary::after {
  transform: rotate(45deg);
}

.accordion .body {
  padding: 0 0 22px;
  font-size: 15px;
}

.contents {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(40px, 7vw, 120px);
}

.contents ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1.5px solid color-mix(in srgb, var(--fg) 40%, transparent);
}

.contents li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  padding: 20px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 22%, transparent);
}

.contents li b {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 650;
  font-size: 22px;
  letter-spacing: -0.015em;
}

.contents li span:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-weight: 600;
}

/* Certificate: paper, ink, cinnabar. The one place red appears. */

.cert-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
}

.cert {
  --field: #f1ede6;
  --fg: #1a1816;
  border-radius: 14px;
  background: var(--field);
  color: var(--fg);
  padding: clamp(28px, 4vw, 52px);
  width: 100%;
  max-width: 620px;
  justify-self: end;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 32px 60px -28px rgba(0, 0, 0, 0.45);
}

.cert__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 36px;
  font-size: 14px;
}

.cert__top b {
  display: block;
  font-weight: 600;
}

.cert__no {
  font-family: var(--latin);
  font-stretch: 125%;
  font-weight: 700;
  font-size: clamp(48px, 5.4vw, 80px);
  white-space: nowrap;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.cert__no small {
  font-size: 0.34em;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: color-mix(in srgb, var(--fg) 65%, var(--field));
}

.cert__name {
  margin-top: 14px;
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 650;
  font-size: 24px;
}

.cert dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  margin: 32px 0 0;
  padding-top: 22px;
  border-top: 1px solid color-mix(in srgb, var(--fg) 20%, transparent);
}

.cert dt {
  font-size: 13px;
  color: color-mix(in srgb, var(--fg) 65%, var(--field));
}

.cert dd {
  margin: 2px 0 0;
  font-weight: 600;
}

.seal {
  --s: 64px;
  width: var(--s);
  height: var(--s);
  flex: none;
  display: inline-grid;
  place-items: center;
  background: var(--cinnabar);
  color: #f6efe6;
  font-family: var(--cjk);
  font-weight: 700;
  font-size: calc(var(--s) * 0.6);
  line-height: 1;
  border-radius: 3px;
  box-shadow: inset 0 0 0 calc(var(--s) * 0.06) var(--cinnabar), inset 0 0 0 calc(var(--s) * 0.1) rgba(246, 239, 230, 0.85);
  transform: rotate(-3deg);
}

/* Other colours on the edition page */

.others {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.other {
  display: grid;
  gap: 12px;
  background: var(--field);
  color: var(--fg);
  padding: 22px;
  min-height: 220px;
  border-radius: var(--r-panel);
  align-content: space-between;
  transition: transform 0.6s var(--ease);
}

.other:hover {
  transform: translateY(-4px);
}

.other .t-h3 .cn {
  font-size: 0.8em;
  margin-left: 0.3em;
}

/* Modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: color-mix(in srgb, var(--night) 60%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__card {
  width: min(520px, 100%);
  background: var(--field);
  color: var(--fg);
  padding: clamp(28px, 4vw, 44px);
  border-radius: 24px;
  display: grid;
  gap: 20px;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.5s var(--ease);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
}

.modal.is-open .modal__card {
  transform: none;
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 14px;
  font-weight: 500;
}

.field-input {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.field-input input,
.field-input textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid color-mix(in srgb, var(--fg) 40%, transparent);
  padding: 12px 0;
  font: inherit;
  font-size: 17px;
  font-weight: 400;
  color: inherit;
  outline: none;
  border-radius: 0;
  transition: border-color 0.3s;
}

.field-input input:focus,
.field-input textarea:focus {
  border-bottom-color: var(--fg);
}

.field-input input::placeholder,
.field-input textarea::placeholder {
  color: color-mix(in srgb, var(--fg) 72%, var(--field));
}

/* ==========================================================================
   Atelier
   ========================================================================== */

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  padding: clamp(72px, 11vw, 168px) var(--gutter) clamp(56px, 7vw, 104px);
}

.plate {
  aspect-ratio: 21 / 9;
}

.chapter {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(56px, 8vw, 112px) 0;
  border-top: 1px solid color-mix(in srgb, var(--fg) 22%, transparent);
  align-items: start;
}

.chapter__no {
  font-family: var(--latin);
  font-stretch: 125%;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.chapter__text {
  display: grid;
  gap: 22px;
  align-content: start;
}

.chapter .swatch-frame {
  aspect-ratio: 5 / 4;
}

.chapter--quote {
  grid-template-columns: 72px minmax(0, 1fr);
}

.pull {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 22em;
}

.pull cite {
  display: block;
  margin-top: 24px;
  font-family: var(--text);
  font-stretch: 100%;
  font-style: normal;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
}

.seal-plate {
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 4;
  border-radius: var(--r-media);
  background: #f1ede6;
}

.fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid color-mix(in srgb, var(--fg) 22%, transparent);
  align-self: end;
}

.fact-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 22%, transparent);
  font-size: 15px;
}

.fact-list li span:first-child {
  font-weight: 600;
}

.verify {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
}

.verify form {
  display: grid;
  gap: 14px;
  max-width: 460px;
}

.verify .field-line input {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.verify__out {
  min-height: 420px;
  display: grid;
  place-items: center;
}

.verify__empty {
  width: 100%;
  max-width: 620px;
  min-height: 360px;
  display: grid;
  place-items: center;
  border-radius: var(--r-media);
  border: 1.5px dashed color-mix(in srgb, var(--fg) 35%, transparent);
  font-size: 15px;
}

/* ==========================================================================
   Register — dyed the colour members will see first.
   ========================================================================== */

.register {
  min-height: calc(100svh - var(--header-h) - var(--bar-h));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.register__art {
  position: relative;
  overflow: hidden;
  min-height: 420px;
}

.register__art canvas {
  position: absolute;
  inset: 0;
}

.register__art .overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 36px var(--gutter);
  display: grid;
  gap: 20px;
  background: linear-gradient(0deg, color-mix(in srgb, var(--field) 92%, transparent) 45%, transparent);
}

.privileges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  border-top: 1.5px solid color-mix(in srgb, var(--fg) 40%, transparent);
}

.privileges li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 22%, transparent);
  font-size: 15px;
}

.privileges li span:first-child {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.register__form {
  padding: clamp(40px, 6vw, 88px) var(--gutter);
  display: grid;
  align-content: space-between;
  gap: 48px;
}

.steps-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.steps-bar .track {
  flex: 1;
  height: 3px;
  background: color-mix(in srgb, var(--fg) 22%, transparent);
  position: relative;
}

.steps-bar .track i {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--fg);
  transition: width 0.8s var(--ease);
}

.step {
  display: none;
  gap: 26px;
  align-content: start;
}

.step.is-active {
  display: grid;
  animation: stepIn 0.7s var(--ease);
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.step .field-input input,
.step .field-input textarea {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: clamp(24px, 2.4vw, 34px);
  letter-spacing: -0.02em;
  padding: 12px 0;
}

.step .field-input textarea {
  resize: none;
  min-height: 3.4em;
  line-height: 1.25;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, var(--fg) 35%, transparent);
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.chip i {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sw);
}

.chip[aria-pressed="true"] {
  background: var(--fg);
  color: var(--field);
  border-color: var(--fg);
}

.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.step-nav .back {
  font-size: 15px;
  font-weight: 500;
}

.step-nav .back[hidden] {
  display: block !important;
  visibility: hidden;
}

.done {
  display: none;
  gap: 26px;
}

.done.is-active {
  display: grid;
  animation: stepIn 0.9s var(--ease);
}

/* ==========================================================================
   Chinese
   Chinese headings are set in bold Song, like the names on a colour card.
   Chinese has no italic and no expanded width, so neither is asked of it.
   ========================================================================== */

html[lang^="zh"] body {
  line-height: 1.85;
  letter-spacing: 0.02em;
}

/* Chinese headings in a semibold sans, as Apple sets them for China; bold Song is
   kept for the colour names, where it reads like the label on a dye card. */
html[lang^="zh"] {
  --zh-head: "CJK Punct Sans", "Archivo", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

html[lang^="zh"] .t-display,
html[lang^="zh"] .t-h2,
html[lang^="zh"] .t-h3,
html[lang^="zh"] .statement__quote,
html[lang^="zh"] .pull,
html[lang^="zh"] .reveal__line,
html[lang^="zh"] .mobile-nav nav,
html[lang^="zh"] .step .field-input input,
html[lang^="zh"] .step .field-input textarea {
  font-family: var(--zh-head);
}

html[lang^="zh"] .t-display,
html[lang^="zh"] .t-h2,
html[lang^="zh"] .t-name {
  letter-spacing: 0.01em;
  line-height: 1.22;
}

html[lang^="zh"] .t-display {
  font-size: clamp(38px, 5vw, 80px);
  font-weight: 600;
}

html[lang^="zh"] .t-h2 {
  font-size: clamp(30px, 3.3vw, 50px);
  font-weight: 600;
}

html[lang^="zh"] .t-name {
  font-family: var(--cjk);
}

html[lang^="zh"] .t-name {
  font-size: clamp(72px, 12vw, 168px);
  letter-spacing: 0.08em;
  line-height: 1.05;
}

html[lang^="zh"] .t-lede {
  line-height: 1.85;
  font-size: clamp(17px, 1.3vw, 20px);
}

html[lang^="zh"] .statement__quote,
html[lang^="zh"] .pull {
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.03em;
}

html[lang^="zh"] .hero__line {
  line-height: 1.8;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .pdp,
  .register,
  .cert-wrap {
    grid-template-columns: 1fr;
  }

  .pdp__panel {
    position: static;
  }

  .cert {
    justify-self: start;
  }

  .register__art {
    min-height: 0;
  }

  .register__art .overlay {
    position: relative;
    padding-top: clamp(140px, 30vw, 240px);
  }

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

  .index a:nth-child(2) {
    border-right: 0;
  }

  .index a:nth-child(-n + 2) {
    border-bottom: 1px solid color-mix(in srgb, var(--fg) 25%, transparent);
  }

  .site-footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .letters {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  :root {
    --header-h: 58px;
  }

  .nav {
    display: none;
  }

  .menu-btn,
  .header-cta {
    display: block;
  }

  .site-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }

  .menu-btn {
    justify-self: start;
  }

  .header-cta {
    justify-self: end;
  }

  .wordmark {
    font-size: 16px;
  }

  .bar .hide-sm {
    display: none;
  }

  .hero__body,
  .tag-section,
  .evenings-head,
  .statement,
  .card-head,
  .band,
  .mill,
  .register-call,
  .contents,
  .verify,
  .page-hero {
    grid-template-columns: 1fr;
  }

  .hero__body {
    gap: 32px;
  }

  .band .swatch-frame {
    min-height: 300px;
    order: -1;
  }

  .band--closed .swatch-frame {
    min-height: 0;
    height: 22px;
    clip-path: none;
  }

  .hours,
  .others,
  .evenings {
    grid-template-columns: 1fr;
  }

  .chapter,
  .chapter--quote {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 560px) {
  .index a {
    padding: 14px 14px 16px var(--gutter);
    grid-template-columns: 20px 1fr;
    gap: 2px 10px;
  }

  .index i {
    width: 20px;
    height: 20px;
  }

  .index a:nth-child(even) {
    padding-left: 14px;
  }

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

  .site-footer__top {
    grid-template-columns: 1fr;
  }

  .swatches {
    gap: 6px;
  }

  .cert dl {
    grid-template-columns: 1fr;
  }

  .pdp__gallery .pair {
    grid-template-columns: 1fr;
  }

  .ledger b {
    font-size: 24px;
  }

  .sizes button {
    font-size: 13px;
  }
}

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

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

html[lang^="zh"] .pdp__title .t-name {
  font-size: clamp(48px, 18cqi, 120px);
}

/* Home: the first viewport names the product before the colour. */
.hero__title {
  max-width: 12em;
  font-size: clamp(38px, 4.2vw, 60px);
}

.page-hero .t-display {
  font-size: clamp(40px, 4.8vw, 72px);
}

.note,
.opt__note {
  text-wrap: pretty;
}

.hero__pieces {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__pieces li {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  background: color-mix(in srgb, var(--field) 70%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 30%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ==========================================================================
   Home: the set, laid flat
   ========================================================================== */

.hero--set {
  grid-template-rows: none;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding: calc(var(--bar-h) + var(--header-h) + 32px) var(--gutter) 56px;
}

.hero--set::before {
  display: none;
}

.hero__copy {
  display: grid;
  gap: 24px;
  align-content: center;
}

.set-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
}

.set-legend li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  padding: 10px 8px;
  border-top: 1px solid color-mix(in srgb, var(--fg) 18%, transparent);
  border-radius: 10px;
  transition: background-color 0.3s var(--ease);
  cursor: default;
}

.set-legend li.is-lit {
  background: color-mix(in srgb, var(--fg) 8%, transparent);
}

.set-legend b,
.pin {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  background: var(--night-fg);
  color: var(--night);
}

.set-legend strong {
  display: block;
  font-weight: 600;
}

.set-legend .soft {
  display: block;
  font-size: 13px;
  line-height: 1.4;
}

.hero__buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.flatlay {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 0.92;
  width: 100%;
}

.piece {
  position: absolute;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25), 0 28px 48px -22px rgba(0, 0, 0, 0.75);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

/* Folded cloth: soft creases where it has been folded in thirds. */
.piece::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.piece--duvet {
  left: 30%;
  top: 2%;
  width: 60%;
  height: 54%;
  transform: rotate(2deg);
}

.piece--duvet::before {
  background:
    linear-gradient(180deg, transparent 32.6%, rgba(0, 0, 0, 0.22) 33.3%, rgba(255, 255, 255, 0.14) 34%, transparent 35.5%),
    linear-gradient(180deg, transparent 65.6%, rgba(0, 0, 0, 0.22) 66.3%, rgba(255, 255, 255, 0.14) 67%, transparent 68.5%);
}

.piece--sheet {
  left: 2%;
  top: 40%;
  width: 50%;
  height: 46%;
  transform: rotate(-4deg);
}

/* The fitted sheet's elastic: a gathered edge just inside the fold. */
.piece--sheet::before {
  background: linear-gradient(90deg, transparent 49.2%, rgba(0, 0, 0, 0.22) 50%, rgba(255, 255, 255, 0.12) 50.8%, transparent 52%);
  box-shadow: inset 0 0 0 7px rgba(0, 0, 0, 0.12), inset 0 0 0 8px rgba(255, 255, 255, 0.08);
}

.piece--pillow {
  width: 42%;
  height: 25%;
  border-radius: 10px;
}

/* The Oxford flange: a stitched line 5 cm in from the edge. */
.piece--pillow::before {
  inset: 11% 8%;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.piece--p1 {
  left: 52%;
  top: 50%;
  transform: rotate(-3deg);
}

.piece--p2 {
  left: 48%;
  top: 67%;
  transform: rotate(4deg);
}

.flatlay__tag {
  position: absolute;
  left: 0;
  top: 8%;
  width: 27%;
  z-index: 3;
  transition: transform 0.6s var(--ease);
}

.flatlay__tag .tag {
  width: 100%;
  padding: 14px 16px 12px 44px;
  border-radius: 12px;
}

.flatlay__tag .tag__hole {
  left: 14px;
  width: 13px;
  height: 13px;
  margin-top: -6px;
}

.flatlay__tag .tag__no {
  font-size: clamp(13px, 1.45vw, 19px);
}

.flatlay__tag .tag__brand,
.flatlay__tag .tag__lot {
  font-size: 9px;
}

.pin {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.flatlay__tag .pin {
  top: -10px;
  left: auto;
  right: -6px;
}

.piece.is-lit,
.flatlay__tag.is-lit {
  z-index: 5;
  box-shadow: 0 0 0 2px var(--night-fg), 0 40px 60px -24px rgba(0, 0, 0, 0.85);
}

.piece--duvet.is-lit { transform: rotate(2deg) translateY(-8px) scale(1.02); }
.piece--sheet.is-lit { transform: rotate(-4deg) translateY(-8px) scale(1.02); }
.piece--p1.is-lit { transform: rotate(-3deg) translateY(-8px) scale(1.03); }
.piece--p2.is-lit { transform: rotate(4deg) translateY(-8px) scale(1.03); }
.flatlay__tag.is-lit { transform: translateY(-8px) scale(1.04); box-shadow: none; }

.flatlay__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.flatlay__colours {
  display: flex;
  gap: 10px;
}

.flatlay__colours button {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  outline: 2px solid transparent;
  outline-offset: 3px;
  transition: outline-color 0.3s;
}

.flatlay__colours button[aria-pressed="true"] {
  outline-color: var(--night-fg);
}

/* ==========================================================================
   Home: a hand of colour cards
   ========================================================================== */

.hand-wrap {
  padding: clamp(72px, 9vw, 128px) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
}

.hand-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
}

.hand-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hand-controls .link {
  margin-left: 14px;
}

.hand-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--fg) 40%, transparent);
  transition: background-color 0.3s;
}

.hand-btn:hover {
  background: color-mix(in srgb, var(--fg) 10%, transparent);
}

/* A drawn chevron. */
.hand-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  border: solid currentColor;
  border-width: 1.5px 1.5px 0 0;
  transform: translate(-65%, -50%) rotate(45deg);
}

.hand-btn--prev::after {
  transform: translate(-35%, -50%) rotate(-135deg);
}

.hand {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 72px var(--gutter) 40px;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.hand::-webkit-scrollbar {
  display: none;
}

.hand.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.hcard {
  flex: none;
  position: relative;
  width: 220px;
  margin-left: -64px;
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 16px;
  overflow: hidden;
  background: var(--field);
  color: var(--fg);
  scroll-snap-align: start;
  transform: rotate(var(--tilt)) translateY(0);
  box-shadow: -10px 0 24px -12px rgba(0, 0, 0, 0.7), 0 24px 40px -24px rgba(0, 0, 0, 0.7);
  transition: transform 0.45s var(--ease), margin 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.hcard:first-child {
  margin-left: 0;
}

.hcard img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  pointer-events: none;
}

.hcard__body {
  display: grid;
  gap: 6px;
  padding: 14px 16px 16px;
}

.hcard__name {
  font-family: var(--display);
  font-stretch: 108%;
  font-weight: 620;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hcard__name .cn {
  font-size: 0.9em;
  margin-left: 0.2em;
}

/* Only the left part of a card shows in the hand, so everything sits on the left. */
.hcard__body {
  padding-right: 72px;
}

.hcard:last-child .hcard__body,
.hcard:hover .hcard__body {
  padding-right: 16px;
}

.hcard__meta {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Point at a card: it rises out of the hand, and the cards after it make room. */
@media (hover: hover) {
  .hcard:hover,
  .hcard:focus-visible {
    z-index: 10;
    transform: rotate(0deg) translateY(-48px) scale(1.08);
    box-shadow: 0 40px 60px -20px rgba(0, 0, 0, 0.9);
  }

  .hcard:hover + .hcard,
  .hcard:focus-visible + .hcard {
    margin-left: 12px;
  }
}

@media (max-width: 560px) {
  .set-legend {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .hero--set {
    grid-template-columns: 1fr;
    padding-top: calc(var(--bar-h) + var(--header-h) + 20px);
  }

  .flatlay {
    order: -1;
  }

  .hcard {
    width: 172px;
    margin-left: 12px;
    transform: none;
  }

  .hand {
    padding-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hcard,
  .piece {
    transition: none;
  }
}

/* Fixes: room for the caption under the lay, a steady dye note, and phone sizing. */
.flatlay {
  margin-bottom: 44px;
}

.flatlay__caption {
  bottom: -44px;
}

#dye-note {
  min-height: calc(3 * 1.6em);
}

.hand {
  scroll-padding-inline: var(--gutter);
}

@media (max-width: 820px) {
  .hcard__body {
    padding-right: 16px;
  }

  .flatlay__tag {
    width: 36%;
    top: 4%;
  }

  .flatlay__tag .tag {
    padding: 10px 10px 8px 30px;
  }

  .flatlay__tag .tag__hole {
    left: 9px;
    width: 10px;
    height: 10px;
    margin-top: -5px;
  }

  .flatlay__tag .tag__no {
    font-size: 15px;
  }

  .flatlay__tag .tag__brand,
  .flatlay__tag .tag__lot {
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  .flatlay__caption {
    flex-wrap: wrap;
    font-size: 13px;
  }
}

.flatlay__tag .pin {
  left: -8px;
  right: auto;
}

/* At this size only the number reads; the brand and lot lines live on the full tag below. */
.flatlay__tag .tag__brand,
.flatlay__tag .tag__lot {
  display: none;
}

.flatlay__tag .tag {
  aspect-ratio: 16 / 7;
  grid-template-rows: 1fr;
}

/* Pieces: each one a row you can tick, with its own price. */
.pieces {
  display: grid;
  gap: 8px;
}

.piece-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--r-panel);
  text-align: left;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--fg) 22%, transparent);
  transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

.piece-row[aria-checked="true"] {
  background: color-mix(in srgb, var(--fg) 8%, transparent);
  box-shadow: inset 0 0 0 1.5px var(--fg);
}

.piece-row__box {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--fg) 50%, transparent);
}

.piece-row[aria-checked="true"] .piece-row__box {
  background: var(--fg);
  box-shadow: none;
}

.piece-row[aria-checked="true"] .piece-row__box::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid var(--field);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.piece-row__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.piece-row__text b {
  font-weight: 600;
}

.piece-row__text .soft {
  font-size: 13px;
}

.piece-row__price {
  font-weight: 600;
}

.sizes.is-off {
  opacity: 0.45;
}

.sizes button:disabled {
  cursor: not-allowed;
}

.contents li {
  grid-template-columns: 1fr auto;
}

/* ==========================================================================
   Home: one line, one still life
   ========================================================================== */

.hero--still {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: none;
  justify-items: center;
  align-content: start;
  gap: 0;
  min-height: auto;
  padding: calc(var(--bar-h) + var(--header-h) + clamp(40px, 6vw, 80px)) var(--gutter) clamp(48px, 6vw, 72px);
  text-align: center;
}

.hero--still::before {
  display: none;
}

.still-head {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.still-head .t-display {
  font-size: clamp(44px, 6vw, 88px);
}

.still-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}

.hero--still .flatlay {
  width: min(1040px, 100%);
  aspect-ratio: 16 / 8.6;
  margin: clamp(24px, 4vw, 48px) 0 18px;
}

.hero--still .piece--sheet { left: 6%; top: 30%; width: 34%; height: 58%; transform: rotate(-3deg); }
.hero--still .piece--duvet { left: 26%; top: 4%; width: 44%; height: 74%; transform: rotate(1.5deg); }
.hero--still .piece--p1 { left: 60%; top: 26%; width: 32%; height: 32%; transform: rotate(-2deg); }
.hero--still .piece--p2 { left: 63%; top: 52%; width: 32%; height: 32%; transform: rotate(3deg); }
.hero--still .flatlay__tag { left: 30%; top: 74%; width: 16%; transform: rotate(-8deg); }

.still-colours {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

@media (max-width: 820px) {
  .hero--still .flatlay {
    aspect-ratio: 1 / 0.8;
  }

  .hero--still .piece--sheet { left: 0; top: 34%; width: 46%; height: 52%; }
  .hero--still .piece--duvet { left: 18%; top: 2%; width: 60%; height: 64%; }
  .hero--still .piece--p1 { left: 52%; top: 46%; width: 46%; height: 26%; }
  .hero--still .piece--p2 { left: 54%; top: 66%; width: 46%; height: 26%; }
  .hero--still .flatlay__tag { left: 6%; top: 78%; width: 34%; }

  .still-colours {
    flex-direction: column;
    gap: 10px;
  }

  /* The picture leads on a phone; its colours stay with it, above the words. */
  .hero--still .still-colours {
    order: -1;
    margin-bottom: 36px;
  }
}

/* The whole still life, and its colours, sit inside the first screen. */
.hero--still {
  padding-top: calc(var(--bar-h) + var(--header-h) + clamp(28px, 4vh, 56px));
}

.hero--still .flatlay {
  width: min(1000px, 100%, calc((100svh - 350px) * 1.86));
  margin-top: clamp(20px, 3vh, 40px);
}

@media (max-width: 820px) {
  .hero--still .flatlay {
    width: 100%;
  }
}

.hero--still .flatlay {
  width: min(960px, 100%, calc((100svh - 430px) * 1.86));
}

/* A photographed still life keeps its own proportions, and the number is
   engraved on the brass tag in the photograph instead of laid over it. */
.flatlay__engrave {
  display: none;
}

.hero--still .flatlay.has-photo {
  aspect-ratio: 1374 / 1145;
  width: min(760px, 100%, calc((100svh - 480px) * 1.2));
  container-type: inline-size;
}

.flatlay.has-photo > .flatlay__tag {
  display: none;
}

.flatlay.has-photo > .flatlay__engrave {
  display: block;
  position: absolute;
  left: 29.9%;
  top: 84.8%;
  transform: translate(-50%, -50%) rotate(14.5deg);
  font-size: 1.6cqi;
  font-weight: 650;
  font-stretch: 112%;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: rgba(58, 36, 8, 0.72);
  text-shadow: 0 1px 0 rgba(255, 228, 170, 0.35);
}

@media (max-width: 820px) {
  .hero--still .flatlay.has-photo {
    width: 100%;
  }
}

.hero--still .flatlay__tag .tag__no {
  font-size: clamp(11px, 1.15vw, 16px);
}

.hero--still .flatlay__tag {
  width: 21%;
}

.evening p,
.sample__note {
  text-wrap: pretty;
}
