/* PriceSavers homepage. Every slant shares the side edge of the original logo's blue block. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-standard-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-standard-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #06183a;
  --navy: #062a5c;
  --navy-2: #0a3a7c;
  --blue: #0a5fc4;
  --blue-bright: #2a84f2;
  --sky: #e6f0fc;
  --paper: #f8f6f1;
  --white: #fff;
  --sun: #ffc93c;
  --sun-deep: #f5ae00;
  --text: #0d2142;
  --muted: #55657f;
  --line: rgba(6, 42, 92, 0.13);
  --admin: #a21caf;      /* admin-only tools on public pages; used for nothing a customer sees */
  --admin-deep: #86198f;
  --card-line: #cdd3dd; /* product cards: the border and the line under the picture share one opaque colour */
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Figtree", "Segoe UI", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --head: 112px;
  --slant: 7.35deg;        /* logo block: 7.75 across for every 60.12 down */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote, dl, dd, fieldset { margin: 0; padding: 0; border: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sun-deep); outline-offset: 3px; }

h1, h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 850;
  font-stretch: 106%;
  letter-spacing: -0.025em;
  line-height: 0.98;
}
h2 { font-size: clamp(38px, 6.6vw, 92px); }

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

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--sun); color: var(--ink); font-weight: 700;
}
.skip:focus { top: 12px; }

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 16px 5px 12px;
  --bg: var(--blue);
  color: var(--white);
  font: italic 800 14px/1.2 var(--display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.eyebrow--sun { --bg: var(--sun); color: var(--ink); }
.hl { color: var(--blue); }

/* A skewed backing keeps the true angle at any height and leaves the text upright. */
.eyebrow, .btn, .slide__role, .slide__stock--out, .price__save, .price--hero, .chip, .card__flag,
.offer__pct, .sleep__cats a, .catch__q, .catch__tags li, .foot__logo {
  position: relative;
  isolation: isolate;
}
.eyebrow::before, .btn::before, .slide__role::before, .slide__stock--out::before, .price__save::before, .price--hero::before, .chip::before, .card__flag::before,
.offer__pct::before, .sleep__cats a::before, .catch__q::before, .catch__tags li::before, .foot__logo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bg);
  transform: skewX(calc(var(--slant) * -1));
  transition: background-color 0.2s;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 34px;
  --bg: var(--sun);
  color: var(--ink);
  font: italic 800 17px/1 var(--display);
  text-decoration: none;
  transition: background-color 0.2s, translate 0.2s;
}
.btn:hover { --bg: #ffdb6e; translate: 3px 0; }
.btn--small { min-height: 44px; padding: 10px 26px; font-size: 15px; }
.btn--ghost { --bg: rgba(255, 255, 255, 0.14); color: var(--white); }
.btn--ghost:hover { --bg: rgba(255, 255, 255, 0.24); }
.link-btn { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--navy); }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
  transition: transform 0.3s;
}
.top.is-slim { transform: translateY(calc(var(--bar, 30px) * -1)); }
.top__bar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 6px var(--gutter);
  background: var(--navy);
  color: #d9e6f8;
  font-size: 13.5px;
  line-height: 1.4;
}
.top__bar strong { color: var(--sun); font-weight: 700; }
.top__bar span { opacity: 0.5; margin-inline: 4px; }
.top__main {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 40px);
  max-width: none;
  padding: 14px var(--gutter);
}
.logo { flex: 0 0 auto; display: block; }
.logo img { width: clamp(158px, 15vw, 214px); }
/* The new logo's block hangs below its panel, and its words sit a little below the panel's middle to balance it.
   Where the logo shares a row with a menu (this header, and the admin bar), the picture is set down by 1.75 of its
   86.39 units of height, which puts the middle of the words exactly on the row's centre line. */
.logo img[data-logo="new"], .admin__logo img[data-logo="new"] { transform: translateY(2.03%); }
.nav { display: flex; gap: clamp(14px, 2.2vw, 32px); margin-left: auto; }
.nav a {
  position: relative;
  padding: 6px 0;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--blue);
  transform: skewX(calc(var(--slant) * -1)) scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.nav a:hover::after, .nav a.is-current::after { transform: skewX(calc(var(--slant) * -1)) scaleX(1); }

.burger { display: none; flex: 0 0 44px; width: 44px; height: 44px; margin-left: auto; position: relative; }
.burger span {
  position: absolute; left: 9px; right: 9px; height: 3px;
  background: var(--navy);
  transform: skewX(calc(var(--slant) * -1));
  transition: transform 0.25s, opacity 0.2s, top 0.25s;
}
.burger span:nth-child(1) { top: 13px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 29px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 104px 28px 36px;
  overflow-y: auto; /* a short (landscape) screen scrolls the menu itself; the page behind is locked */
  overscroll-behavior: contain;
  background: var(--navy);
  color: var(--white);
}
.menu[hidden] { display: none; }
.menu > * { flex: 0 0 auto; }
.menu nav { display: grid; gap: 2px; }
.menu nav a {
  padding: 9px 0;
  font: italic 800 clamp(22px, 6vw, 26px)/1.15 var(--display);
  letter-spacing: -0.015em;
  text-decoration: none;
}
.menu__foot { color: #c9daf3; }
.menu__foot strong { color: var(--sun); font-size: 22px; }

/* Hero */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero__stage {
  position: relative;
  display: grid;
  height: clamp(560px, calc(100svh - var(--head) - 92px), 860px);
}
.slide {
  grid-area: 1 / 1;
  position: relative;
  visibility: hidden;
  min-width: 0;
}
.slide.is-active { visibility: visible; z-index: 2; }
.slide__media {
  position: absolute;
  inset: 0 0 0 33%;
  overflow: hidden;
  background: var(--navy-2);
}
.slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.slide__panel {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 44%;
  padding: 24px clamp(64px, 7.2vw, 130px) 24px clamp(16px, 6vw, 130px);
  isolation: isolate;
}
.slide__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--navy);
  transform-origin: 0 0;
  transform: skewX(calc(var(--slant) * -1));
}
.slide__panel::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -1;
  width: 0.9vw;
  background: var(--blue);
  transform-origin: 100% 0;
  transform: skewX(calc(var(--slant) * -1));
  pointer-events: none;
}
.slide__role {
  margin-bottom: 14px;
  padding: 5px 18px 5px 12px;
  --bg: var(--blue);
  font: italic 800 clamp(13px, 1.1vw, 15px)/1.2 var(--display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.slide__headline { font-size: clamp(34px, min(4vw, 7.4vh), 84px); }
.slide__lede { max-width: 36ch; margin-top: 14px; color: #cfddf2; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.45; }
.slide__foot { display: flex; align-items: center; gap: 22px; margin-top: 20px; flex-wrap: wrap; }
.slide__stock { color: #cfddf2; font-size: 14.5px; }
/* A sold-out offer stays on show; its availability line says so on a badge instead of giving a quantity. */
.slide__stock--out {
  padding: 6px 16px 6px 12px;
  --bg: var(--white);
  color: var(--ink);
  font: italic 800 15px/1.2 var(--display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* The one price component, used everywhere */
.price { display: grid; justify-items: start; gap: 2px; font-family: var(--display); }
.price__rrp {
  display: inline-flex;
  gap: 6px;
  font: 600 16px/1.2 var(--body);
  color: var(--muted);
}
.price__was { position: relative; display: inline-block; font-variant-numeric: tabular-nums; }
.price__strike {
  position: absolute;
  left: -2px; right: -2px; top: 52%;
  height: 2px;
  background: currentColor;
  transform-origin: left;
}
.price__sale {
  font-style: italic;
  font-weight: 900;
  font-stretch: 100%;
  font-size: clamp(38px, 3.4vw, 46px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.price__save {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
  padding: 4px 14px 4px 10px;
  --bg: var(--sun);
  color: var(--ink);
  font: italic 800 14.5px/1.2 var(--display);
}
.price__save b { font-weight: 800; }

.price--hero {
  margin-top: 18px;
  padding: 12px 34px 14px 22px;
  --bg: var(--white);
}
.price--hero .price__sale { font-size: clamp(56px, min(6.2vw, 10.5vh), 118px); color: var(--blue); }
.price--hero .price__rrp { font-size: 16px; }
.price--hero .price__save { font-size: clamp(15px, 1.25vw, 18px); white-space: nowrap; }

.price--dark .price__rrp { color: #c1d3ee; }
.price--dark .price__sale { color: var(--sun); font-size: clamp(64px, 8.4vw, 124px); }
.price--dark .price__save { --bg: var(--white); font-size: 17px; }

/* Controls */
.hero__view { position: relative; }
.hero__wipe { position: absolute; inset: 0; z-index: 8; pointer-events: none; overflow: hidden; }
.hero__wipe i {
  position: absolute;
  top: -2%; bottom: -2%; left: -20%;
  width: 190%;
  transform: translateX(-125%) skewX(calc(var(--slant) * -1));
  will-change: transform;
}
.hero__wipe i:nth-child(1) { background: var(--sun); }
.hero__wipe i:nth-child(2) { background: var(--blue); }
.hero__wipe i:nth-child(3) { background: var(--navy); }

.hero__controls {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: stretch;
  background: var(--ink);
}
.hero__tabs { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); flex: 1; min-width: 0; overflow: hidden; }
/* Every boundary here is the same slanted line, hung from the top of the bar so label height can't shift it. */
.hero__tabs::before, .hero__tabs::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(100% / 3);
  width: 1px;
  margin-left: -0.5px;
  background: rgba(255, 255, 255, 0.1);
  transform-origin: 0 0;
  transform: skewX(calc(var(--slant) * -1));
}
.hero__tabs::after { left: calc(200% / 3); }
/* One marker glides between the tabs, in step with the wipe. */
.hero__marker {
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: calc(100% / 3);
  transform: translateX(calc(var(--active, 0) * 100%));
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}
.hero__marker::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blue);
  box-shadow: inset 0 -3px var(--sun);
  transform-origin: 0 0;
  transform: skewX(calc(var(--slant) * -1));
}
.tab {
  position: relative;
  display: grid;
  gap: 1px;
  padding: 14px 20px 15px max(var(--gutter), 24px);
  z-index: 2;
  text-align: left;
  color: #b8cbe7;
  transition: color 0.45s 0.2s;
}
.tab::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  transform-origin: 0 0;
  transform: skewX(calc(var(--slant) * -1));
  transition: background-color 0.25s;
}
.tab + .tab { padding-left: 24px; }
.tab:focus-visible { outline-offset: -4px; }
.tab__role { font: italic 800 clamp(14px, 1.25vw, 18px)/1.15 var(--display); transition: color 0.45s 0.2s; }
.tab__name { font-size: 14px; line-height: 1.3; }
.tab:hover { color: var(--white); transition-delay: 0s; }
.tab:hover::before { background: rgba(255, 255, 255, 0.05); }
.tab[aria-current="true"] { color: var(--white); }
.tab[aria-current="true"] .tab__role { color: var(--sun); }
.hero__transport { display: flex; align-items: center; gap: 8px; padding: 0 var(--gutter) 0 22px; }
.round {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s;
}
.round:hover { background: var(--blue); }
.round svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; grid-area: 1 / 1; }
.round .solid { fill: currentColor; stroke: none; }
.ring { position: absolute; inset: 0; width: 44px !important; height: 44px !important; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--sun); stroke-width: 3; stroke-dasharray: 126; stroke-dashoffset: 126; }
.ico-play { display: none; }
.round--play.is-paused .ico-play { display: block; }
.round--play.is-paused .ico-pause { display: none; }

/* Promise band */
.promise {
  position: relative;
  z-index: 3;
  padding: clamp(14px, 2vw, 26px) var(--gutter) 0;
  color: var(--navy);
}
.promise ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: calc(var(--max) - 2 * var(--gutter));
  margin-inline: auto;
  overflow: hidden;
  background: var(--white);
  border-top: 4px solid var(--sun);
  box-shadow: 0 18px 50px -32px rgba(6, 42, 92, 0.5);
}
.promise li { display: grid; gap: 1px; padding: 20px 22px; }
.promise li + li { box-shadow: inset 1px 0 var(--line); }
.promise strong { font: italic 850 clamp(21px, 2.1vw, 30px)/1.05 var(--display); letter-spacing: -0.02em; }
.promise span { font-size: 14.5px; line-height: 1.3; color: #33445f; }

/* Finder */
.finder { padding: clamp(60px, 8vw, 116px) 0 clamp(56px, 7vw, 100px); }
.finder__head { margin-bottom: clamp(26px, 3.4vw, 44px); }
.finder__head h2 span { display: inline-block; }
.filters {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 36px;
  align-items: end;
  padding: clamp(18px, 2.4vw, 28px);
  margin-bottom: clamp(24px, 3vw, 40px);
  background: var(--white);
  box-shadow: 0 18px 50px -32px rgba(6, 42, 92, 0.5);
}
.filter legend {
  margin-bottom: 10px;
  font: italic 800 15px/1.2 var(--display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--blue);
}
.filter--shape { grid-column: 1 / -1; }
.filter__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px 18px;
  --bg: var(--sky);
  color: var(--navy);
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.1;
  transition: background-color 0.2s, color 0.2s;
}
.chip:hover { --bg: #d3e4fa; }
.chip[aria-pressed="true"] { --bg: var(--navy); color: var(--white); }
.filters__status { display: flex; align-items: center; gap: 18px; min-height: 46px; justify-self: end; }
#resultCount { font: italic 800 19px/1.2 var(--display); color: var(--navy); white-space: nowrap; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}
/* One bordered, softly rounded piece: picture on top, details and price inside the same padding below. */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: 12px;
  box-shadow: 0 14px 34px -30px rgba(6, 42, 92, 0.55);
  transition: translate 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.card[hidden] { display: none; }
/* The lifted shadow fades in on a layer of its own; animating box-shadow itself repaints every frame and stutters. */
.card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  box-shadow: 0 30px 60px -30px rgba(6, 42, 92, 0.6);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}
/* The picture's corners follow the card's, and it casts one soft shadow along its bottom edge that parts it from the
   details without making a panel. The spread pulls it in from the sides so nothing spills past them. The light
   bottom line (the card border's colour, opaque so it is the same over any picture) gives every picture an edge, so
   the shadow reads the same under a white cut-out as under a room photo. */
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 11px 11px 0 0; background: var(--sky); border-bottom: 1px solid var(--card-line); box-shadow: 0 15px 9px -14px rgba(6, 24, 58, 0.26); }
.card__media img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* A supplier cut-out on plain white is shown whole on the white card, trimmed to the piece (see ps_image_analyse), instead
   of being cropped to fill the frame. */
.card--cutout .card__media { background: var(--white); }
.card--cutout .card__media img { object-fit: contain; padding: 8% 9%; box-sizing: border-box; }
@media (hover: hover) {
  .card:hover { translate: 0 -6px; }
  .card:hover::after { opacity: 1; }
  .card:hover .card__media img { transform: scale(1.05); }
  .card:hover .card__name a { color: var(--blue); }
}
.card__flag {
  position: absolute;
  left: 0; top: 14px;
  padding: 6px 22px 6px 14px;
  --bg: var(--sun);
  color: var(--ink);
  font: italic 900 21px/1 var(--display);
  letter-spacing: -0.01em;
}
.card__flag::before { left: -24px; }
.card__tag {
  position: absolute;
  right: 12px; bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 3px 10px;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
/* Stock takes the label's place: red while the last few are left, grey once it has sold out. */
.card__tag--low { background: #a33; }
.card__tag--out { background: #cfd6e2; color: var(--ink); }
.card__body { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px 8px; flex: 1; }
.card__name { font: italic 800 clamp(20px, 1.7vw, 23px)/1.12 var(--display); letter-spacing: -0.012em; color: var(--navy); }
/* The name's link stretches over the whole card, so anywhere on it opens the product and shows the hand. */
.card__name a { color: inherit; text-decoration: none; transition: color 0.3s; }
.card__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__name a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.card__colour { color: var(--muted); font-size: 14.5px; }
/* The price block sits at the foot of the card inside the same padding. The RRP and the saving share the line above
   the big price (the saving drops under the RRP when a narrow card cannot fit both) and only the one-line stock note
   sits below it, so prices line up across a row however many lines the names above them take. */
.card__price { display: grid; gap: 6px; padding: 8px 20px 18px; }
.card__price .price { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; row-gap: 4px; }
.card__price .price__rrp { order: 1; }
.card__price .price__save { order: 2; margin: 0 0 0 auto; }
.card__price .price__sale { order: 3; flex-basis: 100%; }
.card__stock { font-size: 13.5px; line-height: 1.25; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.finder__more { display: flex; justify-content: center; margin-top: clamp(26px, 3.4vw, 44px); }
.finder__more[hidden] { display: none; }

.empty { padding: 44px 24px; background: var(--white); text-align: center; }
.empty[hidden] { display: none; }
.empty__title { font: italic 850 clamp(24px, 3vw, 34px)/1.1 var(--display); color: var(--navy); }
.empty__actions { display: flex; justify-content: center; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 18px; }

/* Specials */
.specials {
  position: relative;
  padding: clamp(64px, 8vw, 120px) 0;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}
.specials::before {
  content: "";
  position: absolute;
  inset: 0 -6% 0 auto;
  width: 44%;
  background: var(--navy-2);
  transform: skewX(calc(var(--slant) * -1));
}
.specials > .wrap { position: relative; }
.specials h2 .hl { color: var(--sun); }
.specials__head { display: grid; justify-items: start; margin-bottom: clamp(40px, 6vw, 84px); }
.specials__head > p:last-child { max-width: 46ch; margin-top: 16px; color: #cfddf2; }
.specials__list { display: grid; gap: clamp(56px, 8vw, 118px); }
.offer {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.offer:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.offer:nth-child(even) .offer__media { order: 2; }
.offer__media { position: relative; aspect-ratio: 4 / 3; }
.offer__base, .shard { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shard { will-change: transform; }
/* 4:3 frames, so a 9.67% run of the width matches the logo angle */
.shard--a { clip-path: polygon(0 0, 39% 0, 29.33% 100%, 0 100%); }
.shard--b { clip-path: polygon(38.9% 0, 72% 0, 62.33% 100%, 29.23% 100%); }
.shard--c { clip-path: polygon(71.9% 0, 100% 0, 100% 100%, 62.23% 100%); }
.offer__base { opacity: 0; }
.offer.is-joined .offer__base { opacity: 1; }
.offer__pct {
  position: absolute;
  right: -10px; bottom: -20px;
  z-index: 3;
  padding: 10px 34px 10px 22px;
  --bg: var(--sun);
  color: var(--ink);
  font: italic 900 clamp(34px, 4.6vw, 64px)/0.95 var(--display);
  letter-spacing: -0.03em;
}
.offer__pct small { font-size: 0.42em; font-weight: 800; letter-spacing: 0; margin-left: 4px; }
.offer:nth-child(even) .offer__pct { right: auto; left: -10px; }
.offer__name { font: italic 850 clamp(28px, 3.4vw, 48px)/1.02 var(--display); letter-spacing: -0.022em; }
.offer__colour { margin-top: 6px; color: #b9cdea; }
.offer__blurb { max-width: 44ch; margin: 14px 0 18px; color: #dfe9f8; }
/* Short supporting copy never leaves a single word on its last line */
.slide__lede, .offer__blurb { text-wrap: pretty; }
.specials__head > p:last-child { text-wrap: balance; }
.offer__foot { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 20px; color: #cfddf2; font-size: 15px; }

/* Sleep: the beds section, led by a real bed from the shop */
.sleep { padding: clamp(60px, 8vw, 116px) 0; }
.sleep__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-areas: "bed copy" "bed picks" "bed note";
  gap: clamp(20px, 2.6vw, 36px) clamp(26px, 4.4vw, 68px);
  align-items: start;
}
.sleep__bed { grid-area: bed; align-self: stretch; position: relative; min-height: 420px; margin: 0; }
.sleep__bed > a { position: absolute; inset: 0; overflow: hidden; clip-path: polygon(0 0, 100% 0, 90.33% 100%, 0 100%); background: var(--sky); }
.sleep__bed img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(.2,.7,.2,1); }
.sleep__bed:hover img { transform: scale(1.03); }
.sleep__tag {
  position: absolute; left: 0; bottom: clamp(16px, 2.4vw, 32px);
  display: grid; justify-items: start; gap: 2px;
  max-width: min(78%, 420px);
  padding: 14px 30px 16px 20px;
  background: var(--white);
  box-shadow: 0 18px 40px -22px rgba(6, 24, 58, 0.45);
}
.sleep__tag-name { font: italic 800 clamp(19px, 1.7vw, 24px)/1.12 var(--display); color: var(--navy); text-decoration: none; }
.sleep__tag-name:hover { color: var(--blue); }
.sleep__tag-colour { font-size: 14.5px; color: var(--muted); }
.price--bed { margin-top: 6px; }
.price--bed .price__sale { font-size: clamp(40px, 3.6vw, 56px); color: var(--blue); }
.sleep__copy { grid-area: copy; }
.sleep__lede { max-width: 44ch; margin-top: 14px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; }
.sleep__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; list-style: none; padding: 0; }
.sleep__cats a {
  display: inline-block;
  padding: 9px 20px;
  --bg: var(--sky);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}
.sleep__cats a:hover { --bg: var(--sun); }
.sleep__cats li:last-child a { --bg: var(--navy); color: var(--white); }
.sleep__cats li:last-child a:hover { --bg: var(--blue); }
.sleep__picks { grid-area: picks; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sleep__pick { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--white); border: 1px solid var(--card-line); }
.sleep__pick img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 1px solid var(--card-line); }
.sleep__pick img.is-cutout { object-fit: contain; padding: 8px; background: #fff; }
.sleep__pick div { padding: 10px 14px 14px; }
.sleep__pick h3 { font: italic 800 17px/1.15 var(--display); color: var(--navy); }
.sleep__pick h3 a { color: inherit; text-decoration: none; }
.sleep__pick h3 a::after { content: ""; position: absolute; inset: 0; } /* the whole card is the link */
.sleep__pick:hover h3 { color: var(--blue); }
.sleep__pick p { margin-top: 2px; font-size: 14px; color: var(--muted); }
.price--pick { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
.price--pick .price__rrp { font-size: 13.5px; order: 2; }
.price--pick .price__sale { font-size: 28px; order: 1; }
.price--pick .price__save { order: 3; flex-basis: auto; margin-top: 4px; font-size: 13px; padding: 2px 10px 2px 8px; }
.sleep__note {
  grid-area: note;
  padding: 16px 20px;
  background: var(--white);
  border-left: 6px solid var(--sun);
}
.sleep__note h3 { font: italic 800 21px/1.15 var(--display); color: var(--navy); }
.sleep__note p { margin-top: 6px; font-size: 15.5px; line-height: 1.42; }

/* The catch */
.catch { padding: clamp(60px, 8vw, 116px) 0; background: var(--sky); overflow: hidden; }
.catch__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
}
.catch__head h2 { font-size: clamp(42px, 7.2vw, 104px); }
.catch__q { display: inline-block; padding: 0 0.3em 0.05em 0.14em; --bg: var(--blue); color: var(--white); }
.catch__head p:last-child { max-width: 44ch; margin-top: 20px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; }
.catch__tags { display: flex; flex-wrap: wrap; gap: 10px; }
.catch__tags li {
  padding: 12px 26px 12px 18px;
  --bg: var(--navy);
  color: var(--white);
  font: italic 800 clamp(18px, 2vw, 26px)/1.1 var(--display);
  letter-spacing: -0.01em;
}
.catch__tags li:nth-child(2) { --bg: var(--blue); }
.catch__tags li:nth-child(3) { --bg: var(--sun); color: var(--ink); }
.catch__tags li:nth-child(4) { --bg: var(--white); color: var(--navy); }
.catch__tags li:nth-child(5) { --bg: var(--blue); }
.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
  margin-top: clamp(40px, 5vw, 72px);
}
.quotes figure { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; padding: 24px; background: var(--white); }
.quotes blockquote { font-size: 18px; line-height: 1.42; color: var(--navy); }
.quotes figcaption { font-weight: 700; font-size: 15px; }
.quotes figcaption span { display: block; font-weight: 400; color: var(--muted); }

/* Showroom */
.showroom { position: relative; background: var(--navy); color: var(--white); }
.showroom__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  grid-template-areas: "photo intro" "facts facts";
  gap: clamp(28px, 4vw, 56px) clamp(30px, 5vw, 76px);
  padding-block: clamp(46px, 6vw, 84px);
  align-items: center;
}
.showroom__photo { grid-area: photo; aspect-ratio: 7 / 5; }
/* 7:5 frame, so a 9.21% run of the width matches the logo angle; straight on the left like the bedroom picture, slanted on the right. */
.showroom__photo img { width: 100%; height: 100%; object-fit: cover; clip-path: polygon(0 0, 100% 0, 90.79% 100%, 0 100%); }
.showroom__intro { grid-area: intro; }
.showroom__intro h2 { font-size: clamp(38px, 5vw, 76px); }
.showroom__intro p:not(.eyebrow) { max-width: 40ch; margin: 16px 0 24px; color: #dbe6f7; }
.showroom__facts { grid-area: facts; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 44px); }
.showroom__facts div { display: grid; gap: 2px; align-content: start; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.showroom__facts dt { color: var(--sun); font-weight: 700; }

/* Footer */
.foot { padding-top: clamp(40px, 5vw, 64px); background: var(--ink); color: #c2d2ea; font-size: 15.5px; }
.foot__grid { display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); gap: 30px; }
.foot__logo { display: inline-block; padding: 12px 22px; --bg: var(--white); }
.foot__logo img { width: 200px; }
.foot__brand p { max-width: 30ch; margin-top: 14px; }
.foot h3 { margin: 0 0 10px; color: var(--white); font: italic 800 17px/1.2 var(--display); }
.foot nav { display: grid; gap: 6px; align-content: start; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--white); text-decoration: underline; }
/* Account column: the sign-out form sits in the link list and its button reads as a link. */
.foot nav form { display: contents; }
.foot nav button { justify-self: start; text-align: left; }
.foot nav button:hover { color: var(--white); text-decoration: underline; }
.foot__user { font-size: 14px; color: #93a8c8; }
.foot__base { margin-top: 34px; padding-block: 16px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 14px; color: #93a8c8; }

/* Small laptops: the full navigation, search and basket share one row, so they sit closer together */
@media (min-width: 1100px) and (max-width: 1399px) {
  .top__main { gap: clamp(16px, 1.6vw, 24px); }
  .nav { gap: clamp(13px, 1.5vw, 22px); }
  .nav a { font-size: 15px; }
}

/* Tablet */
@media (max-width: 1099px) {
  :root { --head: 104px; }
  .nav { display: none; }
  .burger { display: block; margin-left: 0; }
  .top__cta { margin-left: auto; }
  .top { z-index: 40; }
  .top__bar p:nth-child(2) { display: none; }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promise ul { grid-template-columns: repeat(2, 1fr); padding: 0; }
  .promise li:nth-child(3) { box-shadow: none; }
  .promise li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .catch__grid { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: repeat(4, 1fr); }
  .foot__brand { grid-column: 1 / -1; }
}

/* Stacked hero for portrait tablets and phones. Landscape screens from 700px keep the
   side-by-side hero: stacked, the photograph alone would fill the first screen. */
@media (max-width: 1099px) and (orientation: portrait), (max-width: 699px) {
  .hero__stage { height: auto; }
  .slide { display: grid; grid-template-rows: auto 1fr; }
  .slide__media { position: relative; inset: auto; aspect-ratio: 16 / 9.4; }
  .slide__panel {
    position: relative;
    inset: auto;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 28px;
    align-items: center;
    justify-items: start;
    padding: 18px var(--gutter) 26px;
    background: var(--navy);
    border-top: 5px solid var(--blue);
  }
  .slide__panel::before, .slide__panel::after { display: none; }
  .slide__role { grid-column: 1; }
  .slide__headline { grid-column: 1; font-size: clamp(34px, 6vw, 54px); }
  .slide__lede { grid-column: 1; }
  .slide__foot { grid-column: 1; margin-top: 14px; }
  .price--hero { grid-column: 2; grid-row: 1 / span 4; margin-top: 18px; }
  .price--hero .price__sale { font-size: clamp(56px, 9vw, 84px); }
}

@media (max-width: 860px) {
  /* Stacked under their copy, the bedroom and showroom pictures run the full width, so their slanted edges go. */
  .sleep__bed > a, .showroom__photo img { clip-path: none; }
  .offer, .offer:nth-child(even) { grid-template-columns: 1fr; }
  .offer:nth-child(even) .offer__media { order: 0; }
  .offer__pct { right: -6px; }
  .offer:nth-child(even) .offer__pct { left: auto; right: -6px; }
  .sleep__grid { grid-template-columns: 1fr; grid-template-areas: "copy" "bed" "picks" "note"; }
  /* Stacked, the bed picture's box holds nothing in normal flow (the photo and its label are laid over it), so an
     empty block gives it its 4:3 shape. aspect-ratio is not used here: on this stretched grid item iPhone Safari
     worked the width out from a height of nothing, and the picture vanished from under its label. */
  .sleep__bed { min-height: 0; }
  .sleep__bed::before { content: ""; display: block; padding-top: 75%; }
  .quotes { grid-template-columns: 1fr; }
  .showroom__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "photo" "intro" "facts"; }
  .showroom__facts { grid-template-columns: minmax(0, 1fr); }
  .showroom__facts div { grid-template-columns: 170px 1fr; gap: 14px; }
}

/* Mobile */
@media (max-width: 699px) {
  :root { --head: 96px; }
  body { font-size: 16px; }
  html { scroll-padding-top: 76px; }
  .top__bar { justify-content: center; font-size: 13px; padding-block: 4px; }
  .top__bar p:first-child { display: none; }
  .top__main { padding-block: 9px; gap: 10px; }
  .logo img { width: 148px; }
  .top__cta { display: none; }
  .burger { margin-left: auto; }

  .slide__media { aspect-ratio: 4 / 3; }
  .slide__panel {
    display: flex;
    align-items: flex-start;
    padding: 18px var(--gutter) 20px;
  }
  .slide__role { margin: 4px 0 10px; font-size: 13px; }
  .slide__headline { font-size: clamp(31px, 9.2vw, 42px); }
  .slide__lede { font-size: 15px; margin-top: 8px; }
  .price--hero { position: absolute; z-index: 2; right: 10px; top: -90px; margin: 0; padding: 6px 22px 8px 15px; }
  .price--hero .price__sale { font-size: 42px; }
  .price--hero .price__rrp { font-size: 13.5px; }
  .price--hero .price__save { font-size: 13.5px; margin-top: 4px; }
  .slide__panel { overflow: visible; }
  .slide__foot { margin-top: 14px; gap: 12px; }
  .slide__stock { font-size: 13.5px; }
  .slide__stock--out { padding: 5px 13px 5px 10px; }

  .hero__controls { flex-direction: column; }
  .hero__tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* The tabs reach the screen edge here, so the third selection runs off it instead of leaving a wedge. */
  .hero__marker::before {
    right: calc(var(--active, 0) * (var(--active, 0) - 1) * -6px);
    transition: right 0.9s cubic-bezier(0.65, 0, 0.35, 1);
  }
  .tab, .tab + .tab { padding: 9px 8px 10px 12px; }
  .tab__role { font-size: 13.5px; }
  .tab__name { display: none; }
  .hero__transport { justify-content: center; padding: 8px; }

  .promise li { padding: 14px 16px; }
  .promise strong { font-size: 20px; }
  .promise span { font-size: 13.5px; }

  .filters { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .filter--shape .filter__opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chip { padding: 8px 12px; font-size: 15px; text-align: center; }
  .filter--budget .filter__opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters__status { justify-self: stretch; justify-content: space-between; min-height: 30px; }

  .grid { grid-template-columns: 1fr; }
  .offer__pct { font-size: 36px; bottom: -16px; }
  .sleep__bed::before { padding-top: 100%; } /* square on a phone */
  .sleep__tag { max-width: 88%; padding: 10px 22px 12px 14px; }
  .sleep__picks { gap: 10px; }
  .sleep__pick div { padding: 8px 10px 12px; }
  .sleep__pick h3 { font-size: 15.5px; }
  .price--pick .price__sale { font-size: 24px; }
  .price--pick .price__save { display: none; }
  .sleep__note { padding: 12px 14px; }
  .showroom__facts div { grid-template-columns: clamp(124px, 37vw, 142px) 1fr; } /* room for "Monday to Friday" on one line on ordinary phones */
  .foot__grid { grid-template-columns: 1fr 1fr; }
}

/* Success messages on any page (the flash after an admin save, a line added to the basket): green with a tick and
   larger type, so they stand apart from the yellow information notices. The two classes together outrank the base
   .notice rules in account.css and shop.css, which load after this file. */
.notice.notice--ok {
  position: relative;
  --bg: #1a7a3b;
  padding: 15px 28px 15px 56px;
  color: var(--white);
  font-size: 17px; font-weight: 800; line-height: 1.3;
}
.notice.notice--ok::after {
  content: ""; position: absolute; left: 18px; top: 13px; width: 26px; height: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23fff'/%3E%3Cpath d='M6.5 12.6l3.6 3.6 7.4-8.2' fill='none' stroke='%231a7a3b' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Cut-out photos elsewhere: the homepage hero and the specials show them whole on white too. */
.slide--cutout .slide__media, .offer--cutout .offer__media { background: var(--white); }
.slide--cutout .slide__media img { object-fit: contain; padding: 6%; box-sizing: border-box; }
.offer--cutout .offer__base, .offer--cutout .shard { object-fit: contain; padding: 7% 8%; box-sizing: border-box; }

/* Showroom section: the ways on to the showroom page and the local pages, beside the directions button */
.showroom__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.showroom__more { color: var(--white); font-weight: 700; text-underline-offset: 4px; }
.showroom__more:hover { color: var(--sun); }
.showroom__facts a { text-decoration: none; }
.showroom__facts a:hover { text-decoration: underline; }

/* The finder's products as plain links, for a browser or reader that does not run the page's script */
.plain-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 10px 28px; margin-top: 8px; }
.plain-list a { font-weight: 700; color: var(--blue); }
.plain-list span { color: var(--muted); }
.plain-list__more { margin-top: 22px; }
