/* CE-IV — brand lookbook only. Page background stays Coral Stone; coloured TILES are demonstrations. */

.lb-bar { position: sticky; top: 0; z-index: 50; background: var(--stone); }
.lb-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 4.5rem; }
.lb-bar img { height: 2.125rem; width: auto; }
.lb-bar__meta { display: flex; align-items: center; gap: var(--s-4); font-family: var(--sans); font-size: .875rem; color: var(--slate); }

.lb-cover { padding-block: clamp(4rem, 2rem + 8vw, 9rem) var(--section); }
.lb-cover__grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--s-6); align-items: end; }
.lb-cover .keep { max-width: 18rem; justify-self: end; width: 100%; }

.lb-contents { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-3) var(--s-4); counter-reset: c; }
.lb-contents a { display: grid; gap: .2rem; text-decoration: none; font-family: var(--sans); font-weight: 500; font-size: 1.0625rem; color: var(--night); padding-block: .35rem; }
.lb-contents a span { font-size: var(--fs-num); font-weight: 600; color: var(--flame); }
.lb-contents a:hover { color: var(--blue); }

.lb-section { padding-block: var(--section); }
.lb-section > .container > h2 { font-size: var(--fs-h1); letter-spacing: var(--track-head); line-height: var(--lh-tight); margin-bottom: var(--s-6); max-width: 16ch; }
.lb-sub { margin-top: var(--s-7); }
.lb-sub > h3 { margin-bottom: var(--s-4); }
.lb-sub > .label { display: block; margin-bottom: var(--s-2); }

.lb-grid { display: grid; gap: var(--s-4); }
.lb-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lb-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lb-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lb-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.lb-copy dt { font-family: var(--sans); font-size: var(--fs-label); font-weight: 600; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--slate); margin-bottom: .35rem; }
.lb-copy dd { margin: 0 0 var(--s-4); }
.lb-copy dd:last-child { margin-bottom: 0; }
.lb-big { font-family: var(--sans); font-size: var(--fs-h3); font-weight: 500; line-height: 1.3; letter-spacing: -.015em; max-width: 30ch; }

/* Tiles: demonstration surfaces */
.tile { border-radius: var(--radius); background: var(--haze); padding: var(--s-5); display: grid; place-items: center; min-height: 14rem; position: relative; }
.tile--white { background: var(--white); }
.tile--blue { background: var(--blue); color: var(--white); }
.tile--night { background: var(--night); color: var(--stone); }
.tile--stone { background: var(--stone); padding: var(--s-3) 0; place-items: start; min-height: 0; }
.tile img { width: auto; max-width: 100%; }
.tile__cap { margin-top: var(--s-2); font-family: var(--sans); font-size: .875rem; color: var(--slate); }
.tile__cap strong { color: var(--night); font-weight: 600; }

/* Clear space */
.clearspace { display: inline-grid; place-items: center; padding: var(--cs, 2.6rem); background: var(--haze); border-radius: var(--radius); position: relative; }
.clearspace img { height: 7rem; width: auto; }
.clearspace__x { position: absolute; font-family: var(--sans); font-size: .75rem; font-weight: 600; color: var(--blue); letter-spacing: .08em; }
.clearspace__x--t { top: .6rem; left: 50%; transform: translateX(-50%); }
.clearspace__x--l { left: .6rem; top: 50%; transform: translateY(-50%); }

/* Min sizes */
.minsizes { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s-5); }
.minsizes figure { margin: 0; display: grid; gap: .6rem; }
.minsizes figcaption { font-family: var(--sans); font-size: .875rem; color: var(--slate); }

/* Incorrect usage */
.wrong { display: grid; gap: .6rem; }
.wrong .tile { min-height: 10rem; overflow: hidden; }
.wrong .tile img { height: 3rem; }
.wrong p { font-family: var(--sans); font-size: .9375rem; margin: 0; }
.wrong p::before { content: "✕ "; color: var(--flame); font-weight: 700; }
.wrong--stretch img { transform: scaleX(1.6); }
.wrong--rotate img { transform: rotate(-14deg); }
.wrong--recolour img { filter: hue-rotate(160deg) saturate(1.6); }
.wrong--shadow img { filter: drop-shadow(4px 6px 4px rgba(0,0,0,.45)); }
.wrong--contrast .tile { background: var(--haze); }
.wrong--contrast img { opacity: .55; }
.wrong--crop img { height: 9rem !important; transform: translate(30%, 18%); }

/* Colour */
.swatch { display: grid; gap: var(--s-2); }
.swatch__chip { aspect-ratio: 4 / 3; border-radius: var(--radius); display: flex; align-items: flex-end; padding: var(--s-2); font-family: var(--sans); font-weight: 600; font-size: .875rem; }
.swatch__chip--stone { background: var(--haze); padding: .6rem; } /* a Haze frame, so the page colour is visible as a chip */
.swatch__chip--stone span { flex: 1; align-self: stretch; background: var(--stone); border-radius: 2px; display: flex; align-items: flex-end; padding: calc(var(--s-2) - .6rem); }
.swatch h3 { font-size: 1.25rem; }
.swatch dl { margin: 0; font-family: var(--sans); font-size: .875rem; display: grid; grid-template-columns: auto 1fr; gap: .15rem .9rem; }
.swatch dt { color: var(--slate); }
.swatch dd { margin: 0; font-variant-numeric: tabular-nums; }
.swatch p { font-size: .9375rem; }
.ratio-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); }
.ratio { border-radius: var(--radius); padding: var(--s-3); font-family: var(--sans); }
.ratio strong { display: block; font-size: 1.75rem; letter-spacing: -.03em; }
.ratio span { font-size: .875rem; }

/* Type */
.specimen { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-5); align-items: start; }
.specimen__big { font-size: clamp(5rem, 3rem + 8vw, 10rem); line-height: .9; letter-spacing: -.05em; color: var(--blue); }
.specimen__big--sans { font-family: var(--sans); font-weight: 600; }
.specimen__big--serif { font-family: var(--serif); font-weight: 400; }
.weights { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-family: var(--sans); font-size: 1.5rem; margin-top: var(--s-2); }
.scale { list-style: none; display: grid; gap: var(--s-4); }
.scale li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: var(--s-3); align-items: baseline; }
.scale .label { line-height: 1.5; }

/* Visual language */
.slope-art svg { width: 100%; max-width: 26rem; }
.crenel-demo { display: grid; gap: var(--s-3); }

/* Digital */
.grid-demo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-2); }
.grid-demo span { height: 7rem; background: var(--haze); border-radius: 2px; font-family: var(--sans); font-size: .75rem; color: var(--slate); display: grid; place-items: end center; padding-bottom: .4rem; }
.space-scale { list-style: none; display: grid; gap: .6rem; }
.space-scale li { display: grid; grid-template-columns: 7rem auto 1fr; gap: var(--s-2); align-items: center; font-family: var(--sans); font-size: .875rem; }
.space-scale i { display: block; height: .75rem; background: var(--blue); border-radius: 2px; }
.demo-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.nav-demo { background: var(--white); border-radius: var(--radius); padding: var(--s-2) var(--s-3); display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.nav-demo img { height: 1.75rem; width: auto; }
.nav-demo ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-3); }
.nav-demo .site-nav__link { font-size: .875rem; }

/* Applications */
.app-cap { font-family: var(--sans); font-size: .875rem; color: var(--slate); margin-top: .6rem; }
.bcard { aspect-ratio: 85 / 55; border-radius: 6px; padding: 7%; display: flex; flex-direction: column; justify-content: space-between; }
.bcard--front { background: var(--white); }
.bcard--back { background: var(--blue); color: var(--white); align-items: flex-start; }
.bcard img { height: 2.75rem; width: auto; }
.bcard__name { font-family: var(--sans); font-weight: 600; font-size: 1.125rem; letter-spacing: -.01em; }
.bcard__role { font-family: var(--sans); font-size: .8125rem; opacity: .85; }
.bcard__lines { font-family: var(--sans); font-size: .75rem; line-height: 1.6; }
.bcard--back .pt { color: #F2A48E; }

.sig { background: var(--white); border-radius: var(--radius); padding: var(--s-4); font-family: var(--sans); font-size: .875rem; line-height: 1.6; }
.sig__body { font-family: var(--serif); font-size: 1rem; margin-bottom: var(--s-3); color: var(--night); }
.sig__row { display: flex; gap: var(--s-3); align-items: center; }
.sig__row img { height: 3.25rem; width: auto; }
.sig strong { font-size: 1rem; }
.sig a { color: var(--blue); }
.sig__note { color: var(--slate); font-size: .75rem; margin-top: var(--s-2); }

.slide { aspect-ratio: 16 / 9; border-radius: var(--radius); padding: 5%; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.slide--white { background: var(--white); }
.slide--night { background: var(--night); color: var(--stone); }
.slide .h4 { font-size: clamp(1.25rem, .8rem + 1.6vw, 2.25rem); line-height: 1.05; letter-spacing: -.035em; color: inherit; max-width: 16ch; }
.slide__top, .slide__foot { display: flex; justify-content: space-between; align-items: center; font-family: var(--sans); font-size: .75rem; gap: var(--s-2); }
.slide__top img { height: 1.5rem; width: auto; }
.slide--night .label { color: #A9B0CB; }
.slide--night .pt { color: #F08A6C; }
.slide__figs { display: flex; gap: var(--s-4); font-family: var(--sans); }
.slide__figs strong { display: block; font-size: clamp(1.25rem, .9rem + 1.2vw, 2rem); color: var(--blue); letter-spacing: -.03em; }
.slide__figs span { font-size: .75rem; color: var(--slate); }

.social { aspect-ratio: 1; border-radius: var(--radius); background: var(--blue); color: var(--white); padding: 9%; display: flex; flex-direction: column; justify-content: space-between; }
.social .h4 { color: var(--white); font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); line-height: 1; letter-spacing: -.04em; }
.social .pt { color: #F2A48E; }
.social img { height: 1.5rem; width: auto; }
.social p { font-family: var(--sans); font-size: .8125rem; }

.memo { aspect-ratio: 210 / 297; border-radius: var(--radius); background: var(--white); padding: 10% 9%; display: flex; flex-direction: column; justify-content: space-between; }
.memo img { height: 1.75rem; width: auto; }
.memo .h4 { font-size: clamp(1.25rem, .9rem + 1vw, 1.75rem); letter-spacing: -.03em; line-height: 1.1; }
.memo dl { font-family: var(--sans); font-size: .75rem; display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; margin: 0; }
.memo dt { color: var(--slate); }
.memo dd { margin: 0; }
.memo .note { font-size: .75rem; }

/* Rules */
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
.rules h3 { margin-bottom: var(--s-3); }
.dont { list-style: none; display: grid; gap: var(--s-2); }
.dont li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: var(--s-1); }
.dont li::before { content: "✕"; color: var(--flame); font-family: var(--sans); font-weight: 700; }
.pairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.pair { border-radius: var(--radius); padding: var(--s-3); font-family: var(--sans); font-weight: 600; font-size: 1.125rem; min-height: 6rem; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-2); }
.pair small { font-weight: 500; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }

.lb-footer { padding-block: var(--s-7) var(--s-5); font-family: var(--sans); font-size: .875rem; color: var(--slate); }
.lb-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); }

@media (max-width: 1100px) {
  .lb-contents { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lb-grid--4, .lb-grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ratio-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .lb-cover__grid, .specimen, .rules, .lb-grid--2 { grid-template-columns: 1fr; }
  .lb-cover .keep { justify-self: start; max-width: 9rem; }
  .lb-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pairs { grid-template-columns: 1fr 1fr; }
  .grid-demo { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid-demo span:nth-child(n+7) { display: none; }
}
@media (max-width: 600px) {
  .lb-contents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb-grid--3, .lb-grid--4, .lb-grid--5, .ratio-row, .pairs { grid-template-columns: 1fr; }
  .scale li { grid-template-columns: 1fr; gap: .25rem; }
  .lb-bar__meta span { display: none; }
  .clearspace img { height: 4.5rem; }
  .clearspace { --cs: 1.7rem; }
  .grid-demo { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-demo span:nth-child(n+5) { display: none; }
  .tile { padding: var(--s-4); }
}
.col > .label { display: block; }
.bcard img, .memo img, .social img { align-self: flex-start; }
.web-mock { display: block; border-radius: var(--radius); background: var(--haze); padding: .75rem; text-decoration: none; color: inherit; }
.web-mock__screen { display: block; background: var(--stone); border-radius: 2px; padding: var(--s-4); }
.web-mock:hover { color: inherit; }
.web-mock__bar { display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); font-family: var(--sans); font-size: .75rem; }
.web-mock__bar img { height: 1.25rem; width: auto; }
.web-mock .display { font-family: var(--sans); font-size: clamp(2rem, 1.4rem + 2.4vw, 3.5rem); margin: var(--s-6) 0 var(--s-3); }

/* Specimen headings inside mock-ups are styled like h4 but are not part of the page outline. */
.h4 { margin: 0; max-width: none; font-family: var(--sans); font-weight: 600; font-size: 1.0625rem; line-height: 1.4; color: var(--night); text-wrap: balance; }

/* Logo images carry width/height for layout stability; CSS heights above stay in charge of size. */
img[width][height] { width: auto; }
