.palette-lab { margin-block: clamp(2rem, 5vw, 4rem); scroll-margin-top: 6rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "intro intro" "inspiration example" "picker type"; gap: clamp(12px, 2.2vw, 30px); }
.palette-intro { grid-area: intro; }
.palette-intro h2 { margin: 0 0 .35rem; }
.palette-intro p { margin: 0; max-width: 42rem; }
.palette-inspiration { grid-area: inspiration; }
.palette-example { grid-area: example; }
.palette-lab figure { min-width: 0; margin: 0; }
.palette-lab figcaption { display: block; margin-bottom: .55rem; font-size: .8rem; font-weight: 650; }
.palette-scene, .palette-site { position: relative; overflow: hidden; aspect-ratio: 3 / 2; border-radius: 12px; }
.palette-scene { background: #e3d2b8; }
.palette-scene picture, .palette-scene img, .palette-scene canvas { width: 100%; height: 100%; display: block; object-fit: cover; }
.palette-scene picture, .palette-scene canvas { position: absolute; inset: 0; }
.palette-lab [hidden] { display: none !important; }
.palette-site { --surface: #301018; --ink: #f4e6d0; --action: #f4e6d0; --action-ink: #211820; display: grid; grid-template-columns: 53% 47%; container-type: inline-size; background: var(--surface); color: var(--ink); }
.palette-site-copy { display: flex; min-width: 0; flex-flow: column; align-items: flex-start; justify-content: center; gap: clamp(8px, 1.6vw, 24px); padding: clamp(12px, 6cqw, 36px); }
.palette-site-brand { font-size: clamp(.68rem, 1.15vw, .85rem); font-weight: 650; }
.palette-site-action { display: inline-flex; align-items: center; gap: .45em; border-radius: 4px; background: var(--action); color: var(--action-ink); padding: .62em .85em; font-size: clamp(.64rem, 1vw, .8rem); font-weight: 650; line-height: 1.2; }
.palette-site-media { position: relative; overflow: hidden; background: color-mix(in srgb, var(--ink) 24%, var(--surface)); }
.palette-site-media canvas { display: block; width: 100%; height: 100%; object-fit: cover; }
.palette-picker { grid-area: picker; min-width: 0; }
.palette-picker-header { display: flex; gap: .75rem; justify-content: space-between; align-items: center; margin-bottom: .55rem; }
.palette-picker-header p { margin: 0; font-size: .93rem; font-weight: 650; }
.palette-nav { display:flex; flex: 0 0 auto; gap: 8px; }
.palette-nav button { display:grid; place-items: center; width: 44px; height: 44px; border: 1px solid #c9b7a6; border-radius: 50%; font: inherit; font-size: 1.6rem; line-height: 1; color: #241d17; background: #fffdf9; cursor: pointer; }
.palette-nav button:disabled { cursor: default; opacity: .5; }
.palette-carousel { padding: 4px; }
.palette-carousel .swiper-slide { width: clamp(144px, 21vw, 192px); height: auto; }
.palette-choice { display: grid; width: 100%; height: 128px; gap: 0; grid-auto-rows: 1fr; border: 1px solid #dbcebe; border-radius: 12px; padding: 8px; color: #241d17; background: #f7efe3; cursor: pointer; }
.palette-choice[aria-pressed="true"] { border-color: #584435; box-shadow: inset 0 0 0 1px #584435; }
.palette-picker button:focus-visible { outline: 2px solid #82502f; outline-offset: 2px; }
.palette-chip { position: relative; display: grid; place-items: center; min-height: 0; isolation: isolate; }
.palette-chip::before { content: ""; position: absolute; z-index: -2; inset: 1px 6px; background: var(--chip-color); border-radius: 56% 38% 43% 30% / 52% 68% 42% 58%; }
.palette-chip.is-rendered::before { display: none; }
.palette-chip canvas { position: absolute; z-index: -1; width: 100%; height: 100%; inset: 0; }
.palette-chip span { padding: 0 8px; text-align: center; color: var(--chip-ink); font-size: .75rem; line-height: 1.08; font-weight: 650; }
.palette-carousel.is-fallback { overflow: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.palette-carousel.is-fallback .swiper-wrapper { gap: 12px; }
.palette-carousel.is-fallback .swiper-slide { scroll-snap-align: start; }
@media (max-width: 760px) {
 .palette-lab { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "inspiration" "picker" "example" "type"; gap: 15px; }
 .palette-carousel .swiper-slide { width: 145px; }
}

/* Font samples share the same type settings as the website preview. */
.palette-site-copy {
  font-family: var(--sample-body, Inter, sans-serif);
  gap: clamp(7px, 2.3cqw, 15px);
  padding: clamp(10px, 4.8cqw, 30px);
}
.palette-site-copy strong,
.type-sample {
  font-family: var(--sample-heading, "Instrument Serif", Georgia, serif);
  font-weight: var(--sample-weight, 400);
}
.palette-site-copy strong {
  font-size: calc(clamp(1.2rem, 6.8cqw, 3.15rem) * var(--sample-scale, 1));
  line-height: 1.02;
  letter-spacing: normal;
  overflow-wrap: anywhere;
}
.palette-site-copy p {
  margin: 0;
  color: var(--ink) !important;
  font: 400 clamp(.75rem, 2.55cqw, 1rem)/1.3 var(--sample-body, Inter, sans-serif);
}
.palette-site .palette-site-brand,
.palette-site .palette-site-action {
  font-size: clamp(.75rem, 2.4cqw, .9rem);
}
.type-picker {
  grid-area: type;
  min-width: 0;
}
.palette-lab .palette-picker-header h3 {
  margin: 0 0 .15rem;
  font-size: 1rem;
}
.palette-lab .palette-picker-header p {
  font-size: .8rem;
}
.type-carousel .swiper-slide {
  width: clamp(152px, 18vw, 184px);
}
.type-choice {
  width: 100%;
  height: 128px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 5px;
  padding: 10px;
  border: 1px solid #dbcebe;
  border-radius: 12px;
  text-align: left;
  background: #fffdf9;
  color: #241d17;
  cursor: pointer;
}
.type-choice[aria-pressed="true"] {
  border-color: #584435;
  box-shadow: inset 0 0 0 1px #584435;
}
.type-picker button:focus-visible {
  outline: 2px solid #82502f;
  outline-offset: 2px;
}
.type-sample {
  align-self: center;
  font-size: calc(1.35rem * var(--sample-scale, 1));
  line-height: 1.05;
}
.type-names {
  display: block;
  border-top: 1px solid #e8ded0;
  padding-top: 6px;
  font: 600 .73rem/1.3 system-ui, sans-serif;
}
@media (max-width: 760px) {
  .palette-site {
    aspect-ratio: auto;
    min-height: max(190px, 60vw);
    grid-template-columns: 58% 42%;
  }
  .palette-site-media canvas {
    position: absolute;
    inset: 0;
  }
}

@font-face {
  font-family: "Preview Instrument Serif";
  src: url("./instrumentserif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Preview Geist";
  src: url("./geist.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Preview Inter";
  src: url("./inter.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Preview Rubik";
  src: url("./rubik.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Preview DM Sans';
  font-style: normal;
  font-weight: 400 650;
  font-display: swap;
  src: url(./type/dmsans.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Preview Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./type/archivoblack.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Preview Source Sans 3';
  font-style: normal;
  font-weight: 400 650;
  font-display: swap;
  src: url(./type/sourcesans3.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Preview Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(./type/playfairdisplay.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Preview Mulish';
  font-style: normal;
  font-weight: 400 650;
  font-display: swap;
  src: url(./type/mulish.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Preview Bricolage Grotesque';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(./type/bricolagegrotesque.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Preview Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(./type/cormorantgaramond.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Preview Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./type/barlowcondensed.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Preview DM Serif Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./type/dmseriftext.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Preview Baskervville';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./type/baskervville.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Preview Lexend';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(./type/lexend.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Preview Fahkwang';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(./type/fahkwang.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Preview Cinzel';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(./type/cinzel.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Preview Young Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./type/youngserif.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Preview Quicksand';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(./type/quicksand.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Preview Climate Crisis';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./type/climatecrisis.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Keep the working board visible beneath a compact introduction on laptops. */
.pf-site .idea-book-intro { padding-block:16px 12px; }
.pf-site .idea-book-intro .eyebrow { margin:0 0 6px; font-size:11px; }
.pf-site .idea-book-intro h1 { margin:0 0 7px; max-width:none; font-size:clamp(28px,2.7vw,38px); line-height:1.15; }
.pf-site .idea-book-intro > p:last-child { margin:0; max-width:none; font-size:16px; line-height:1.45; }
.pf-site .section.palette-lab { margin-block:0 20px; padding-block:0; grid-template-areas:"inspiration example" "picker type"; gap:12px 20px; scroll-margin-top:0; }
@media(min-width:901px) and (min-height:540px) {
 .pf-site .section.palette-lab { height:calc(100svh - var(--site-header-height,88px) - var(--idea-intro-height,116px) - 16px); min-height:0; grid-template-rows:minmax(0,1fr) auto; }
 .palette-lab figure { min-height:0; display:flex; flex-direction:column; }
 .palette-lab figcaption { flex:none; font-size:12px; margin-bottom:4px; }
 .palette-lab :is(.palette-scene,.palette-site) { flex:1; min-height:0; height:100%; aspect-ratio:auto; }
 .palette-lab .palette-picker-header { margin-bottom:4px; }
 .palette-lab :is(.palette-choice,.type-choice) { height:102px; }
 .palette-lab .palette-carousel { padding:3px; }
 .palette-lab .palette-site-copy { gap:7px; padding:12px; }
 .palette-lab .palette-site-copy strong { font-size:calc(clamp(20px,4.8cqw,35px) * var(--sample-scale,1)); }
 .palette-lab .palette-site-copy p { font-size:12px; line-height:1.3; }
 .palette-lab .palette-site-brand { font-size:12px; }
 .palette-lab .palette-site-action { font-size:12px; padding:7px 9px; }
 .palette-lab .type-sample { font-size:calc(1.15rem * var(--sample-scale,1)); }
}
@media(max-width:760px) {
 .pf-site .section.palette-lab { grid-template-areas:"inspiration" "picker" "example" "type"; gap:14px; }
 .pf-site .idea-book-intro { padding-block:18px 14px; }
 .pf-site .idea-book-intro h1 { font-size:30px; }
 .pf-site .idea-book-intro > p:last-child { font-size:16px; }
}
@media(min-width:901px) and (min-height:540px) and (max-height:620px) {
 .palette-lab .palette-site-brand { display:none; }
 .palette-lab .palette-site-copy { padding:10px; gap:6px; }
 .palette-lab .palette-site-copy strong { font-size:calc(clamp(18px,4.5cqw,28px) * var(--sample-scale,1)); }
}

@media(min-width:901px) and (min-height:540px) and (max-height:580px) { .pf-site .idea-book-intro{padding-block:10px 8px}.pf-site .idea-book-intro h1{font-size:28px}.palette-lab :is(.palette-choice,.type-choice){height:86px}.palette-lab .palette-site-copy p{font-size:11px}.palette-lab .palette-site-action{padding:5px 7px} }
