/* Ami Morrow.
   Paper, ink and swatches are all sampled from her own photographs.
   Display: Le Murmure (Velvetyne, OFL). Text: Brygada 1918 (OFL). */

@font-face {
  font-family: "Le Murmure";
  src: url(../fonts/LeMurmure-Regular.woff2) format("woff2");
  font-display: block;
  /* normalise the line box so cap tops and baselines land in the same place in every browser */
  ascent-override: 84%;
  descent-override: 16%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Brygada 1918";
  src: url(../fonts/Brygada1918-Roman.woff2) format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Brygada 1918";
  src: url(../fonts/Brygada1918-Italic.woff2) format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  /* sampled from the photographs */
  --paper:   #EEE6DC; /* cream salon wall, looks 07, 10, 11 */
  --blush:   #E4D2C3; /* blush wall behind the teal bob, look 05 */
  --ink:     #2A1F1B; /* espresso brunette, looks 03 and 08 */
  --umber:   #5C4A40; /* brunette mid tone, looks 06 and 10 */
  --caramel: #7A5233; /* caramel ends, look 04 */
  --honey:   #B08A5E; /* honey blonde, looks 03 and 04 (never used for small text) */
  --teal:    #2E4A48; /* the teal bob, look 05 */
  --rule:    rgba(42, 31, 27, .2);

  --display: "Le Murmure", "Arial Narrow", "Helvetica Neue Condensed", sans-serif;
  --text: "Brygada 1918", Georgia, "Times New Roman", serif;

  --bleed: clamp(16px, 4.45vw, 64px);                      /* margin a photograph may bleed into */
  --m: max(var(--bleed), calc((100vw - 1600px) / 2));      /* page margin: the page stops growing at 1600px */
  --g: clamp(12px, 1.7vw, 24px);    /* gutter */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.6 var(--text);
  font-kerning: normal;
  font-variant-numeric: oldstyle-nums proportional-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
p, h1, h2, h3, ol, dl, dd, figure, blockquote { margin: 0; }
p, figcaption, dd { text-wrap: pretty; }   /* no single word left alone on a last line */
ol { padding: 0; list-style: none; }
em { font-style: italic; }
::selection { background: var(--teal); color: var(--paper); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }

.vh {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: var(--m); top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

.display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .86;
  letter-spacing: .004em;
}

/* the swatch: a tress of hair cut from each photograph, root to ends, with its strands and a cut, uneven tip */
.tress {
  --strands:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .14) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, transparent 0 2px, rgba(0, 0, 0, .13) 2px 3px, transparent 3px 7px);
  display: inline-block;
  flex: none;
  width: 9px;
  height: 34px;
  background: var(--strands), linear-gradient(var(--root), var(--ends));
  clip-path: polygon(0 0, 100% 0, 100% 92%, 80% 100%, 64% 95%, 50% 100%, 36% 95%, 20% 100%, 0 92%);
}

/* ============================================================
   Cover
   ============================================================ */
.cover {
  position: relative;
  container-type: inline-size;
  padding: clamp(14px, 2vw, 26px) var(--m) clamp(56px, 7vw, 112px);
}
/* the running head: how to book, set like the folio line of a magazine */
.runner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 2px 24px;
  font-size: 15px;
  line-height: 1.3;
  font-style: italic;
  color: var(--umber);
}
.runner em { font-size: 16px; color: var(--ink); }
.runner__ways { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 22px; }
.runner__tel { font-variant-numeric: lining-nums proportional-nums; letter-spacing: .02em; }
.runner a { text-decoration-color: rgba(42, 31, 27, .4); }
.runner a:hover { text-decoration-color: currentColor; }

.stage {
  /* the masthead fills the measure, but never so tall that the cover outgrows the screen */
  --fs: calc((100vw - 2 * var(--m)) / 3.22);
  --fs: min(calc(100cqw / 3.19), calc((100svh - 90px) / 1.96));
  font-size: var(--fs);
  display: grid;
  grid-template-columns: 1fr 1.18em 1fr;
  grid-template-rows: auto auto auto 1fr;
  column-gap: .08em;
  isolation: isolate;
  margin-top: clamp(6px, 1.2vw, 18px);
}
.masthead {
  grid-column: 1 / -1;
  grid-row: 1;
  position: relative;
  z-index: 2;
  font: 400 1em/1 var(--display);
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  letter-spacing: .004em;
  color: var(--ink);
  pointer-events: none;
}
.cover__photo {
  grid-column: 2;
  grid-row: 1 / -1;
  margin-top: .32em; /* sets the crown of the cover look about halfway down the letters */
  position: relative;
  align-self: start;
}
.cover__img {
  position: relative;
  z-index: 1;
  width: 100%;
  background: var(--blush);
}
.cover__lift {
  /* the same photograph again, masked to the hair and head (img/cover-mask.png, made by tools/make_cover_mask.py),
     so the cover look sits in front of the masthead */
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  -webkit-mask: url(../img/cover-mask.png) 0 0 / 100% 100% no-repeat;
  mask: url(../img/cover-mask.png) 0 0 / 100% 100% no-repeat;
  pointer-events: none;
}

.cover__role {
  grid-column: 1;
  grid-row: 2;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.18;
  max-width: 13em;
  margin-top: clamp(20px, 2.4vw, 36px);
}
.cover__role .amp { font-style: italic; }
.cover__salon {
  display: block;
  margin-top: .7em;
  font-size: 17px;
  line-height: 1.4;
  font-style: italic;
  color: var(--umber);
}

.contents {
  grid-column: 3;
  grid-row: 2 / span 2;
  justify-self: end;
  align-self: start;
  margin-top: clamp(20px, 2.4vw, 36px);
  font-size: 17px;
  width: min(100%, 15em);
}
.contents__title { color: var(--umber); margin-bottom: 6px; }
.contents ol { border-top: 1px solid var(--rule); }
.contents li { border-bottom: 1px solid var(--rule); }
.contents a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0 8px;
  text-decoration: none;
}
.contents__label { font-size: 20px; }
.contents a:hover .contents__label { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.contents__page { font-style: italic; color: var(--umber); white-space: nowrap; }

.cover__note {
  grid-column: 1;
  grid-row: 4;
  align-self: end;
  font-size: 15px;
  line-height: 1.45;
  color: var(--umber);
  max-width: 17em;
}
.cover__note em { color: var(--ink); }

/* ============================================================
   The looks
   ============================================================ */
.looks { padding-top: clamp(40px, 6vw, 96px); }
.looks__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--g);
  padding-inline: var(--m);
  align-items: end;
}
.looks__title {
  grid-column: 1 / span 4;
  font-size: clamp(110px, 16.4vw, 252px);
  line-height: .84;
}
.looks__title span { display: block; }
.looks__intro {
  grid-column: 6 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(24px, 3vw, 48px);
  align-items: end;
  padding-bottom: .4em;
}
.lede {
  grid-column: 2;
  grid-row: 1;
  font-size: clamp(19px, 1.55vw, 23px);
  line-height: 1.45;
  font-style: italic;
  max-width: 19em;
}
.shadecard__note {
  grid-column: 2;
  grid-row: 2;
  margin-top: 14px;
  font-size: 15px;
  color: var(--umber);
}

/* the shade card: eleven tresses hanging from one ring, lightest to deepest */
.shadecard {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  gap: clamp(5px, .55vw, 8px);
  position: relative;
  padding-top: 0;
}
.shadecard li { position: relative; }
.shadecard a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.shadecard__n {
  font: 400 clamp(15px, 1.3vw, 19px)/1 var(--display);
  font-variant-numeric: lining-nums;
}
.shadecard .tress {
  width: clamp(18px, 1.75vw, 26px);
  height: clamp(96px, 10.4vw, 150px);
  position: relative;
  transform-origin: 50% 0;
  transition: transform .45s cubic-bezier(.3, .7, .3, 1);
  clip-path: polygon(0 0, 100% 0, 100% 94%, 88% 100%, 76% 96%, 62% 100%, 50% 95%, 38% 100%, 24% 96%, 12% 100%, 0 94%);
}
.shadecard li::before {
  /* the ring the swatches hang from */
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  top: calc(clamp(15px, 1.3vw, 19px) + 4px);
  height: 3px;
  background: var(--umber);
}
.shadecard li:first-child::before { left: -4px; border-radius: 2px 0 0 2px; }
.shadecard li:last-child::before { right: -4px; border-radius: 0 2px 2px 0; }
.shadecard a:hover .tress, .shadecard a:focus-visible .tress { transform: rotate(-7deg); }

/* ============================================================
   The looks, laid out as spreads.
   Every photograph is a print: a thin border of print white inside a hairline.
   The stocks under them are sampled from the photographs themselves and deepen
   as the hair does: champagne, honey, blush, paper, sage, espresso.
   ============================================================ */
.looks {
  --print: #FBF8F3;                 /* print white */
  --keyline: rgba(42, 31, 27, .17);
  --bd: clamp(6px, .66vw, 11px);    /* the white border of a print */
  --champagne: #E6D5B8;             /* the warm wall behind look 02 */
  --honey: #D9BE9A;                 /* look 04's caramel, let down with paper */
  --sage: #C9CABA;                  /* look 09's jumper and the leaves in its wallpaper */
  --espresso: #2B201C;              /* look 11 */
  --capgap: calc(var(--g) * 1.25);
}
.spread {
  position: relative;
  isolation: isolate;
  overflow-x: clip;                 /* stocks run off the edge of the page, never past it */
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--g);
  padding-inline: var(--m);
  margin-top: clamp(120px, 13vw, 210px);
  align-items: start;
}
.plate { position: relative; min-width: 0; margin: 0; }
.plate__img {
  display: block;
  position: relative;
  padding: var(--bd);
  background: var(--print);
  border: 1px solid var(--keyline);
  cursor: zoom-in;
  transition: border-color .3s ease;
}
.plate__img:hover { border-color: rgba(42, 31, 27, .45); }
.plate__img img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--ar, 3 / 4);
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  background: var(--blush);
}
/* a photograph that runs off the page has no border */
.plate--bleed .plate__img { padding: 0; border: 0; background: none; }

/* a stock: a sheet of colour laid under part of a print, running off the edge of the page */
.plate--stock::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: var(--stock-at);
  background: var(--stock);
  pointer-events: none;
}
/* a mount: the print set into a coloured board, captioned on the board */
.plate--mat { background: var(--mat); padding: var(--matp) var(--matp) 0; }
.plate--mat .plate__cap { margin-top: 0; padding-block: calc(var(--matp) * .5) calc(var(--matp) * .62); }

/* captions: the number in Le Murmure, a swatch cut from the photograph, and a line of italic */
.plate__cap {
  display: flex;
  align-items: flex-end;
  gap: clamp(12px, 1.2vw, 18px);
  margin-top: clamp(12px, 1.1vw, 16px);
}
.plate__no {
  position: relative;
  font: 400 clamp(58px, 6vw, 92px)/.84 var(--display);
  padding-top: 20px;
  letter-spacing: .01em;
  flex: none;
}
.plate__look {
  position: absolute;
  top: 0;
  left: 1px;
  font: italic 400 14px/1 var(--text);
  letter-spacing: 0;
  color: var(--umber);
}
.plate__text {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  font-size: clamp(17px, 1.2vw, 19px);
  line-height: 1.3;
  font-style: italic;
  max-width: 17em;
  padding-bottom: 2px;
  text-wrap: balance;
}
.plate__text em { font-style: normal; color: var(--umber); }
/* in a caption the swatch carries the little clip it hangs from, so it reads as a swatch and not as punctuation */
.plate__text .tress {
  --clip: 7px;    /* the clip it hangs from */
  --stem: 2px;    /* how far the hair sits in from the edge of the clip */
  --in: var(--stem);
  width: 14px;
  height: 46px;
  background:
    linear-gradient(#C9B8A8, #C9B8A8) 0 0 / 100% var(--clip) no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .14) 0 1px, transparent 1px 5px) var(--in) var(--clip) / calc(100% - 2 * var(--in)) 100% no-repeat,
    repeating-linear-gradient(90deg, transparent 0 2px, rgba(0, 0, 0, .13) 2px 3px, transparent 3px 7px) var(--in) var(--clip) / calc(100% - 2 * var(--in)) 100% no-repeat,
    linear-gradient(var(--root), var(--ends)) var(--in) var(--clip) / calc(100% - 2 * var(--in)) 100% no-repeat,
    var(--rim, transparent);
  clip-path: polygon(0 0, 100% 0, 100% var(--clip), calc(100% - var(--stem)) var(--clip), calc(100% - var(--stem)) 91%,
    78% 100%, 66% 95%, 50% 100%, 34% 95%, 22% 100%, var(--stem) 91%, var(--stem) var(--clip), 0 var(--clip));
  margin-bottom: 1px;
}
/* a caption set in the margin beside its print, level with the foot of the photograph */
.cap-r .plate__cap, .cap-l .plate__cap {
  position: absolute;
  bottom: 0;
  margin: 0;
  width: var(--capw, clamp(150px, 14.5vw, 220px));
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.cap-r .plate__cap { left: calc(100% + var(--capgap)); }
.cap-l .plate__cap { right: calc(100% + var(--capgap)); align-items: flex-end; text-align: right; }
.cap-l .plate__text { flex-direction: row-reverse; }
.cap-l .plate__look { left: auto; right: 1px; }

/* Spread one: the blondes */
.spread--1 { margin-top: clamp(112px, 12vw, 190px); }
.spread--1 #look-01 {
  grid-column: 2 / span 5;
  --stock: var(--champagne);
  --stock-at: calc(-1 * clamp(48px, 5.5vw, 88px)) -47% 30% -100vw;
}
.spread--1 #look-02 { grid-column: 10 / span 3; align-self: end; }

/* Spread two: look 03 runs off the right hand page, look 04 is mounted on honey */
.spread--2 #look-03 { grid-column: 7 / -1; grid-row: 1; margin-right: calc(-1 * var(--m)); }
.spread--2 #look-04 {
  grid-column: 1 / span 4;
  grid-row: 1;
  margin-top: clamp(48px, 6vw, 100px);
  --mat: var(--honey);
  --matp: 11%;
}

/* the press line */
.pull {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--g);
  padding-inline: var(--m);
  margin-top: clamp(120px, 14vw, 224px);
}
.pull__lead {
  grid-column: 2 / span 4;
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.45;
  font-style: italic;
  margin-bottom: clamp(18px, 2vw, 30px);
  max-width: 21em;
}
.pull__words {
  grid-column: 1 / -1;
  margin: 0;
  font: 400 clamp(76px, 12.4vw, 196px)/.86 var(--display);
  letter-spacing: .002em;
  text-indent: -.32em;
  padding-left: .32em;
  text-wrap: balance;
}

/* Spread three: the turn into teal, alone on blush stock */
.spread--3 {
  background: var(--blush);
  padding-block: clamp(64px, 8vw, 128px);
  margin-top: clamp(120px, 14vw, 224px);
}
.plate--feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--g);
  align-items: end;
}
.plate--feature .plate__img { grid-column: 4 / span 5; grid-row: 1; }
.plate--feature .plate__cap { display: contents; }
.plate--feature .plate__no {
  grid-column: 2 / span 6;
  grid-row: 1;
  align-self: start;
  position: relative;
  z-index: 2;
  font-size: clamp(170px, 30vw, 460px);
  line-height: .8;
  color: var(--teal);
  padding-top: calc(.1em + 10px);
  margin-top: calc(-.1em - 10px);
  /* the 5 crosses well into the print, over the plain wall and clear of the hair: a deliberate overlap, never a near miss */
  margin-left: .08em;
  pointer-events: none;
}
.plate--feature .plate__look { font-size: 17px; color: var(--teal); top: 0; }
.plate--feature .plate__text {
  grid-column: 10 / span 3;
  grid-row: 1;
  font-size: clamp(19px, 1.6vw, 24px);
  max-width: 11em;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.plate--feature .plate__text .tress { --clip: 12px; --stem: 4px; width: 30px; height: 140px; }

/* Spread four: facing pages. Each print takes a share of the row in proportion to its shape,
   so the two photographs come out exactly the same height */
.facing {
  grid-column: 3 / span 8;
  display: flex;
  align-items: flex-start;
  gap: calc(var(--g) * 4);
}
.facing .plate { flex: var(--arn) 1 calc(2 * var(--bd) + 2px); }
.facing .plate { --capw: clamp(140px, 13.5vw, 200px); }

/* Spread five: look 08 laid over the corner of look 09 */
/* look 08 sits clearly higher than look 09, so the overlap reads as laid on by hand, not as a slip */
.spread--5 #look-08 { grid-column: 2 / span 4; grid-row: 1; z-index: 2; margin-top: 0; }
.spread--5 #look-08 .plate__cap { max-width: 75%; }
.spread--5 #look-09 {
  grid-column: 5 / span 6;
  grid-row: 1;
  margin-top: clamp(64px, 6.5vw, 104px);
  --stock: var(--sage);
  --stock-at: 38% -100vw calc(-1 * clamp(48px, 5.5vw, 88px)) 34%;
}

/* Spread six: the deepest shades on espresso stock, look 10 hanging over the edge of the page */
.spread--6 {
  --pad: clamp(72px, 8.5vw, 136px);
  background: var(--espresso);
  color: var(--paper);
  padding-block: var(--pad);
  margin-top: clamp(220px, 24vw, 360px);
}
.spread--6 .plate__img { border-color: transparent; }
.spread--6 .plate__text .tress { --rim: rgba(238, 230, 220, .55); --in: calc(var(--stem) + 1px); }
.spread--6 .plate__look, .spread--6 .plate__text em { color: #CDBDAF; }
/* look 10's left edge and look 11's caption share one upright, the column line at 8 */
.spread--6 #look-10 { grid-column: 8 / span 4; grid-row: 1; margin-top: calc(-1 * var(--pad) - clamp(90px, 11vw, 170px)); }
.spread--6 #look-11 { grid-column: 2 / span 6; grid-row: 1; --capgap: var(--g); }
/* on a wide screen look 11 also crosses the foot of the stock, so the two prints pin it from opposite corners */
@media (min-width: 1100px) {
  .spread--6 #look-11 { --hang: clamp(90px, 10vw, 160px); margin-bottom: calc(-1 * var(--pad) - var(--hang)); }
  .spread--6 #look-11 .plate__cap { bottom: calc(var(--hang) + var(--pad) * .55); }
  .looks + .story { margin-top: calc(clamp(140px, 16vw, 260px) + clamp(90px, 10vw, 160px)); }
}

/* the slow reveal: each print is drawn up into its frame as it comes into view (see js/reveal.js) */
@media (prefers-reduced-motion: no-preference) {
  .reveal .plate .plate__img { clip-path: inset(0 0 0 0); transition: clip-path 1.3s cubic-bezier(.62, 0, .18, 1), border-color .3s ease; }
  .reveal .plate:not(.is-in) .plate__img { clip-path: inset(100% 0 0 0); }
  .reveal .plate .plate__cap { transition: opacity .9s ease .5s, transform .9s cubic-bezier(.2, .7, .2, 1) .5s; }
  .reveal .plate:not(.is-in) .plate__cap { opacity: 0; transform: translateY(10px); }
  .reveal .plate--feature .plate__cap { transition: none; }
  .reveal .plate--stock::before { clip-path: inset(0 0 0 0); transition: clip-path 1.5s cubic-bezier(.62, 0, .18, 1) .1s; }
  .reveal .spread--1 .plate--stock:not(.is-in)::before { clip-path: inset(0 100% 0 0); }
  .reveal .spread--5 .plate--stock:not(.is-in)::before { clip-path: inset(0 0 0 100%); }
  .reveal .plate--feature:not(.is-in) .plate__no,
  .reveal .plate--feature:not(.is-in) .plate__text { opacity: 0; }
  .reveal .plate--feature .plate__no,
  .reveal .plate--feature .plate__text { transition: opacity 1s ease .55s; }
}
@media print {
  .reveal .plate .plate__img { clip-path: none !important; }
  .reveal .plate .plate__cap { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   Her story
   ============================================================ */
.story {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--g);
  padding-inline: var(--m);
  margin-top: clamp(140px, 16vw, 260px);
}
.story__title {
  grid-column: 1 / -1;
  font-size: clamp(72px, 13.2vw, 208px);
}
.story__title span { display: block; }
.story__title span + span { padding-left: 2.1em; }
.story__body {
  grid-column: 5 / span 6;
  grid-row: 2;
  margin-top: clamp(40px, 5vw, 80px);
  font-size: clamp(19px, 1.5vw, 22px);
  line-height: 1.62;
  max-width: 34em;
}
.story__body p + p { margin-top: 1em; }
.story__first::first-letter {
  float: left;
  font: 400 6.1em/.8 var(--display);
  margin: .06em .1em 0 -.02em;
  color: var(--caramel);
}
.story__quals {
  grid-column: 1 / span 3;
  grid-row: 2;
  margin-top: clamp(48px, 6vw, 96px);
  align-self: start;
}
.story__quals-title {
  font-size: 17px;
  font-weight: 400;
  font-style: italic;
  color: var(--umber);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
.story__quals dl > div {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--rule);
}
.story__quals dt {
  font: 400 clamp(56px, 5.6vw, 84px)/.8 var(--display);
  position: relative;
  padding-top: 18px;
  flex: none;
}
.story__quals .lvl {
  position: absolute; top: 0; left: 1px;
  font: italic 400 14px/1 var(--text);
  color: var(--umber);
}
.story__quals dd { font-size: 19px; line-height: 1.3; padding-bottom: 2px; }

/* ============================================================
   Recognition
   ============================================================ */
.honours {
  padding-inline: var(--m);
  margin-top: clamp(120px, 14vw, 220px);
}
.honours__title {
  font-size: 17px;
  font-weight: 400;
  font-style: italic;
  color: var(--umber);
  margin-bottom: 10px;
}
.honours__list { border-top: 1px solid var(--ink); }
.honour {
  --overhang: clamp(18px, 2vw, 28px);   /* how far each small print hangs over the rule below its row */
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr;
  column-gap: var(--g);
  padding: clamp(22px, 2.4vw, 34px) 0 clamp(26px, 2.6vw, 38px);
  border-bottom: 1px solid var(--rule);
}
.honour__year {
  grid-column: 1 / span 2;
  grid-row: 1;
  font: 400 clamp(36px, 4vw, 60px)/.9 var(--display);
  color: var(--caramel);
  font-variant-numeric: lining-nums;
}
.honour__name {
  grid-column: 3 / span 7;
  grid-row: 1;
  font: 400 clamp(44px, 5.2vw, 80px)/.9 var(--display);
  text-transform: uppercase;
  text-wrap: balance;
}
.honour--win .honour__name { font-size: clamp(64px, 9.2vw, 144px); }
.honour__detail {
  grid-column: 3 / span 5;
  grid-row: 2;
  align-self: end;
  margin-top: clamp(14px, 1.4vw, 20px);
  font-size: 17px;
  line-height: 1.5;
  max-width: 30em;
}
.honour__detail strong {
  font-weight: 400;
  font-variant-caps: all-small-caps;
  letter-spacing: .07em;
  font-size: 1.08em;
  color: var(--teal);
}
/* a small print of Ami on the night, captioned like a photograph pinned to the page, hanging over the rule */
.honour__photo {
  grid-column: 11 / span 2;
  grid-row: 1 / span 2;
  justify-self: end;
  align-self: end;
  width: clamp(124px, 11.2vw, 164px);
  margin-bottom: calc(-1 * var(--overhang) - clamp(26px, 2.6vw, 38px));
  position: relative;
  z-index: 1;
}
.honour__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  padding: 5px;
  background: #FBF8F3;
  border: 1px solid rgba(42, 31, 27, .17);
}
/* its caption sits on the rule, to the left of the print */
.honour__photo figcaption {
  position: absolute;
  right: calc(100% + 14px);
  bottom: calc(var(--overhang) + 7px);
  width: 13.5em;
  text-align: right;
  font-size: 13px;
  line-height: 1.35;
  font-style: italic;
  color: var(--umber);
}
/* the overhanging print needs room in the row that follows */
.honour + .honour { padding-top: calc(clamp(22px, 2.4vw, 34px) + var(--overhang)); }
.honours__list { padding-bottom: var(--overhang); }

/* ============================================================
   Appointments
   ============================================================ */
.appointments {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--g);
  padding-inline: var(--m);
  margin-top: clamp(140px, 16vw, 260px);
  align-items: start;
}
.appointments__title {
  grid-column: 1 / -1;
  font-size: clamp(72px, 15.6vw, 246px);
  white-space: nowrap;
}
/* the way to book: one courteous line, then the salon's telephone number and website, set plainly */
.appointments__body {
  grid-column: 1 / span 5;
  grid-row: 2;
  margin-top: clamp(36px, 4vw, 64px);
  font-size: clamp(21px, 1.8vw, 26px);
  max-width: 15em;
}
.appointments__message {
  line-height: 1.4;
  text-wrap: pretty;
}
.appointments__ways {
  margin: 1.1em 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
  font-size: .88em;
  line-height: 1.3;
}
.appointments__ways li {
  padding: 12px 0 11px;
  border-bottom: 1px solid var(--rule);
  font-variant-numeric: lining-nums proportional-nums;
}
.appointments__ways a { text-decoration-color: rgba(42, 31, 27, .45); }
.appointments__ways a:hover { text-decoration-color: currentColor; }

/* Elsewhere: the two links out, set like the contents list on the cover so the page closes as it opened */
.elsewhere {
  grid-column: 9 / span 4;
  grid-row: 2;
  align-self: end;
  justify-self: end;
  width: min(100%, 21em);
  font-size: 17px;
}
.elsewhere__title { font-size: 17px; font-weight: 400; font-style: italic; color: var(--umber); margin: 0 0 6px; }
.elsewhere ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.elsewhere li { border-bottom: 1px solid var(--rule); }
.elsewhere a {
  display: block;
  padding: 9px 0 8px;
  font-size: 18px;
  line-height: 1.3;
  text-decoration: none;
}
.elsewhere a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }

/* ============================================================
   Colophon
   ============================================================ */
.colophon {
  margin-top: clamp(120px, 14vw, 220px);
  padding: 22px var(--m) 40px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--g);
  row-gap: 8px;
  align-items: baseline;
  font-size: 15px;
  color: var(--umber);
}
.colophon__name { grid-column: 1 / span 3; font: 400 40px/.9 var(--display); text-transform: uppercase; color: var(--ink); }
.colophon__role { grid-column: 4 / span 4; }
.colophon__set { grid-column: 8 / span 3; }
.colophon__top { grid-column: 11 / span 2; text-align: right; white-space: nowrap; }
.colophon__top a { color: var(--ink); }

/* ============================================================
   Viewer
   ============================================================ */
.viewer {
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  background: var(--paper);
  color: var(--ink);
}
.viewer::backdrop { background: var(--paper); }
.viewer[open] { display: grid; place-items: center; }
.viewer__frame {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  padding: 56px var(--m) 24px;
  gap: 16px;
}
.viewer__img {
  max-height: calc(100dvh - 150px);
  max-width: 100%;
  width: auto;
  height: auto;
  align-self: center;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: var(--blush);
}
.viewer__cap { display: flex; align-items: baseline; gap: 14px; font-style: italic; font-size: 18px; }
.viewer__no { font: 400 44px/.8 var(--display); font-style: normal; }
.viewer__btn, .viewer__close {
  appearance: none;
  background: none;
  border: 0;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.viewer__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 34px;
  line-height: 1;
  width: 64px;
  height: 64px;
}
.viewer__prev { left: calc(var(--m) - 16px); }
.viewer__next { right: calc(var(--m) - 16px); }
.viewer__close {
  position: absolute;
  top: 14px;
  right: var(--m);
  font-size: 17px;
  font-style: italic;
  padding: 8px 0;
  text-decoration: underline;
  text-underline-offset: .2em;
  text-decoration-thickness: 1px;
}
.viewer__img.is-entering { animation: plate-in .35s ease both; }
@keyframes plate-in { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   Tablet
   ============================================================ */
@media (max-width: 1099px) {
  .stage { grid-template-columns: 1fr 1.3em 1fr; }
  .cover__role { font-size: 22px; }
  .contents { font-size: 16px; }
  .contents__label { font-size: 18px; }
  .looks__title { grid-column: 1 / span 5; }
  .looks__intro { grid-column: 6 / -1; grid-template-columns: 1fr; row-gap: 24px; }
  .shadecard { grid-row: 1; }
  .lede { grid-column: 1; grid-row: 2; }
  .shadecard__note { grid-column: 1; grid-row: 3; }
  /* the looks: captions come in under their prints, the spreads keep their shape */
  .cap-r .plate__cap, .cap-l .plate__cap { position: static; width: auto; flex-direction: row; align-items: flex-end; gap: 12px; text-align: left; margin-top: 12px; }
  .cap-l .plate__text { flex-direction: row; }
  .cap-l .plate__look { left: 1px; right: auto; }
  .plate__no { font-size: 56px; }
  .plate__text { font-size: 16px; }
  .spread--1 #look-01 { grid-column: 1 / span 7; --stock-at: -48px -22% 30% -100vw; }
  .spread--1 #look-02 { grid-column: 9 / span 4; }
  .spread--2 #look-03 { grid-column: 6 / -1; }
  .spread--2 #look-03 .plate__cap { padding-right: var(--m); }
  .spread--2 #look-04 { grid-column: 1 / span 5; margin-top: 18%; }
  .plate--feature .plate__img { grid-column: 4 / span 6; }
  .plate--feature .plate__text { grid-column: 10 / span 3; }
  .facing { grid-column: 2 / span 10; gap: calc(var(--g) * 2.5); }
  .facing #look-07 .plate__cap { flex-direction: row-reverse; text-align: right; }
  .facing #look-07 .plate__text { flex-direction: row-reverse; }
  .spread--5 #look-08 { grid-column: 1 / span 5; }
  .spread--5 #look-09 { grid-column: 5 / -1; --stock-at: 40% -100vw -56px 30%; }
  .spread--6 #look-10 { grid-column: 8 / span 5; }
  .spread--6 #look-11 { grid-column: 1 / span 7; }
  .story__body { grid-column: 5 / span 8; }
  .story__quals { grid-column: 1 / span 4; }
  .honour__year { grid-column: 1 / span 2; }
  .honour__name { grid-column: 3 / span 7; }
  .honour__detail { grid-column: 3 / span 5; }
  .honour__photo { grid-column: 10 / span 3; }
  .honour__photo figcaption { width: clamp(110px, 14vw, 160px); }
  .appointments__body { grid-column: 1 / span 6; }
  .elsewhere { grid-column: 8 / span 5; }
  .colophon__name { grid-column: 1 / -1; }
  .colophon__role { grid-column: 1 / span 6; }
  .colophon__set { grid-column: 7 / span 4; }
}

/* ============================================================
   Phone
   ============================================================ */
@media (max-width: 699px) {
  body { font-size: 17px; }

  .cover { padding-bottom: 64px; }
  .runner { font-size: 14px; gap: 1px 18px; }
  .runner em { font-size: 15px; }
  .runner__ways { gap: 0 16px; }

  .stage {
    --fs: calc((100vw - 2 * var(--m)) / 2.17);
    --fs: calc(100cqw / 2.15);
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    margin-top: 44px; /* clear air between the booking line and the name */
  }
  .masthead { text-align: left; line-height: .86; grid-row: 1; }
  .masthead span { display: block; }
  .cover__role {
    grid-row: 1;
    grid-column: 1;
    justify-self: end;
    align-self: start;
    width: calc(100% - .98 * var(--fs));
    margin-top: calc(.1 * var(--fs));
    font-size: 17px;
    line-height: 1.28;
    max-width: none;
    position: relative;
    z-index: 4;
  }
  .cover__salon { font-size: 15px; line-height: 1.3; margin-top: .5em; }
  .cover__photo {
    grid-row: 2;
    grid-column: 1;
    width: 1.62em;
    justify-self: end;
    margin-top: -.58em;
  }
  .contents {
    grid-row: 3;
    grid-column: 1;
    justify-self: stretch;
    width: auto;
    margin-top: 36px;
  }
  .cover__note {
    grid-row: 2;
    grid-column: 1;
    justify-self: start;
    align-self: end;
    width: calc(100% - 1.62 * var(--fs) - 12px);
    font-size: 13px;
    line-height: 1.4;
  }
  .cover__note em { display: block; margin-bottom: 2px; }

  .looks { padding-top: 24px; }
  .looks__head { grid-template-columns: 1fr; }
  .looks__title { grid-column: 1; font-size: 40vw; line-height: .82; }
  .looks__intro { grid-column: 1; grid-template-columns: 1fr; margin-top: 30px; padding-bottom: 0; row-gap: 22px; }
  .shadecard { grid-row: 1; gap: 0; justify-content: space-between; }
  .shadecard li::before { left: -2px; right: -2px; top: 19px; }
  .shadecard .tress { width: 20px; height: 92px; }
  .shadecard__n { font-size: 15px; }
  .lede { grid-column: 1; grid-row: 2; font-size: 19px; }
  .shadecard__note { grid-column: 1; grid-row: 3; margin-top: 0; }

  /* the looks: six columns, prints overlap and hang off the page edges so the phone gets spreads too */
  .looks { --bd: 6px; --capgap: 14px; }
  .spread { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 88px; }
  .plate__no { font-size: 54px; padding-top: 18px; }
  .plate__look { font-size: 13px; }
  .plate__text { font-size: 16px; gap: 10px; }
  .plate__text .tress { --clip: 6px; width: 12px; height: 40px; }

  .spread--1 { margin-top: 80px; }
  .spread--1 #look-01 { grid-column: 1 / span 5; grid-row: 1; --stock-at: -36px -14% 34% -100vw; }
  .spread--1 #look-02 { grid-column: 4 / -1; grid-row: 2; align-self: start; margin-top: 28px; }
  /* look 02's caption steps out into the margin on its left */
  .spread--1 #look-02 .plate__cap { position: absolute; right: calc(100% + var(--capgap)); bottom: 0; width: calc(100% - var(--capgap)); margin: 0; flex-direction: column; align-items: flex-end; text-align: right; gap: 10px; }
  .spread--1 #look-02 .plate__look { left: auto; right: 1px; }
  .spread--1 #look-02 .plate__text { flex-direction: row-reverse; }

  .spread--2 #look-03 { grid-column: 1 / -1; grid-row: 1; margin-inline: calc(-1 * var(--m)); }
  .spread--2 #look-03 .plate__cap { padding-inline: var(--m); }
  .spread--2 #look-04 { grid-column: 2 / -1; grid-row: 2; margin-top: 36px; --matp: 10%; }

  .pull { margin-top: 96px; }
  .pull__lead { grid-column: 1 / -1; font-size: 18px; }
  .pull__words { font-size: 18.2vw; line-height: .88; }

  .spread--3 { margin-top: 96px; padding-block: 48px 40px; }
  .plate--feature { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 0; }
  .plate--feature .plate__no { grid-column: 1 / -1; grid-row: 1; font-size: 54vw; padding-top: calc(.08em + 22px); margin-top: 0; margin-left: 0; }
  .plate--feature .plate__img { grid-column: 2 / -1; grid-row: 1; margin-top: 36vw; }
  .plate--feature .plate__text { grid-column: 2 / -1; grid-row: 2; margin-top: 20px; max-width: none; font-size: 20px; flex-direction: row; align-items: flex-end; flex-wrap: wrap; gap: 6px 14px; }
  .plate--feature .plate__text .tress { --clip: 9px; --stem: 3px; width: 20px; height: 80px; }
  .plate--feature .plate__text em { flex-basis: 100%; margin-top: 0; padding-left: 28px; }

  .facing { grid-column: 1 / -1; gap: 14px; }
  .facing .plate__cap { flex-direction: column; align-items: flex-start; gap: 8px; }
  .facing #look-07 .plate__cap { flex-direction: column; align-items: flex-end; }
  .facing .plate__text { font-size: 15px; }

  .spread--5 #look-08 { grid-column: 1 / span 3; grid-row: 1; margin-top: 0; }
  .spread--5 #look-08 .plate__cap { position: absolute; left: calc(100% + var(--capgap)); top: 0; bottom: auto; width: calc(100% - var(--capgap)); max-width: none; margin: 0; flex-direction: column; align-items: flex-start; gap: 8px; }
  /* on a phone look 08 is printed taller, so it lies well over the corner of look 09 while its caption still clears it */
  .spread--5 #look-08 .plate__img { --ar: 4 / 5; }
  .spread--5 #look-09 { grid-column: 2 / -1; grid-row: 1; margin-top: 152px; --stock-at: 42% -100vw -40px -100vw; }

  .spread--6 { --pad: 56px; margin-top: 200px; padding-bottom: 48px; }
  .spread--6 #look-10 { grid-column: 3 / -1; grid-row: 1; margin-top: calc(-1 * var(--pad) - 96px); }
  .spread--6 #look-11 { grid-column: 1 / -1; grid-row: 2; margin-top: 48px; }

  .story { margin-top: 112px; grid-template-columns: 1fr; }
  .story__title { font-size: 19.2vw; }
  .story__title span + span { padding-left: 0; }
  .story__body, .story__quals { grid-column: 1; grid-row: auto; }
  .story__body { margin-top: 32px; font-size: 19px; }
  .story__quals { margin-top: 40px; }

  .honours { margin-top: 96px; }
  /* the year and the small print share the top of each row; the honour runs full width beneath */
  .honour { --overhang: 0px; grid-template-columns: 1fr auto; grid-template-rows: auto auto auto; padding: 20px 0 24px; }
  .honour + .honour { padding-top: 20px; }
  .honour__year { grid-column: 1; grid-row: 1; align-self: end; font-size: 40px; margin-bottom: 18px; }
  .honour__photo { grid-column: 2; grid-row: 1; width: 112px; margin: 0 0 16px; justify-self: end; }
  .honour__photo figcaption { right: calc(100% + 12px); bottom: 2px; width: 9.5em; font-size: 12.5px; }
  .honour__name, .honour--win .honour__name { grid-column: 1 / -1; grid-row: 2; }
  .honour__name { font-size: 14vw; line-height: .94; }
  .honour--win .honour__name { font-size: 19vw; }
  .honour__detail { grid-column: 1 / -1; grid-row: 3; margin-top: 12px; }

  .appointments { margin-top: 112px; grid-template-columns: 1fr; }
  .appointments__title { font-size: 25.6vw; }
  .appointments__body { grid-column: 1; margin-top: 24px; font-size: 21px; max-width: none; }
  .appointments__ways { font-size: 20px; }
  .elsewhere { grid-column: 1; grid-row: 3; justify-self: stretch; width: auto; margin-top: 64px; }

  .colophon { grid-template-columns: 1fr; row-gap: 10px; padding-bottom: 32px; }
  .colophon__name, .colophon__role, .colophon__set, .colophon__top { grid-column: 1; text-align: left; }
  .colophon__top { margin-top: 10px; }

  .viewer__frame { padding: 52px 0 16px; }
  .viewer__img { max-height: calc(100dvh - 170px); }
  .viewer__btn { top: auto; bottom: 6px; transform: none; }
  .viewer__prev { left: 4px; }
  .viewer__next { right: 4px; }
  .viewer__cap { padding-inline: 64px; text-align: center; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
