:root {
  color-scheme: light;
  --paper: #f8f3e8;
  --light: #fffcf5;
  --ink: #27221d;
  --muted: #5b5046;
  --line: #ded3c1;
  --accent: #a83525;
  --accent-dark: #86281b;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 280px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); }
img { display: block; width: 100%; height: auto; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid #286581; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
h1, h2 { letter-spacing: -.055em; line-height: .99; }
h2 { font-size: clamp(2.65rem, 5vw, 4.6rem); }
.container { width: min(100% - 128px, 1336px); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 5; padding: 10px 16px; background: var(--light); }
.skip-link:focus { top: 16px; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 81px; }
.wordmark { display: inline-flex; align-items: center; width: fit-content; text-decoration: none; font-size: 1.5rem; font-weight: 780; letter-spacing: -.075em; line-height: 1; }
.brand-mark { width: 27px; height: 27px; display: inline-grid; place-items: center; background: var(--accent); border-radius: 5px; margin-right: 9px; }
.brand-mark::before { content: ''; width: 13px; height: 13px; border: 3px solid var(--paper); border-radius: 50%; }
.wordmark-dot { color: var(--accent); }
.primary-nav, .footer-inner nav { display: flex; align-items: center; gap: clamp(20px, 3.6vw, 52px); }
.primary-nav a, .footer-inner nav a { text-decoration: none; font-size: .9rem; font-weight: 620; }
.primary-nav a:hover, .primary-nav a[aria-current], .footer-inner nav a:hover { color: var(--accent); }
.lab-link { justify-self: end; padding: 9px 17px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .85rem; font-weight: 680; }
.lab-link span { margin-left: 5px; color: var(--accent); }
.lab-link:hover, .lab-link[aria-current] { background: #efe4d3; border-color: #d5c4ac; }
.hero { display: grid; grid-template-columns: minmax(340px, .87fr) minmax(0, 1.13fr); gap: clamp(34px, 5vw, 80px); align-items: center; padding-block: 57px 67px; }
.hero-copy { padding-block: 16px; }
.eyebrow { color: var(--accent); font-size: .68rem; font-weight: 760; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { font-size: clamp(3.6rem, 6.5vw, 7.3rem); margin: 17px 0 23px; letter-spacing: -.07em; }
.hero h1 em { color: var(--accent); font-weight: inherit; }
.hero-copy > p:not(.eyebrow) { max-width: 390px; color: var(--muted); line-height: 1.65; font-size: clamp(.97rem, 1.17vw, 1.13rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 29px; }
.button { display: inline-flex; align-items: center; justify-content: center; column-gap: 13px; max-width: 100%; width: fit-content; min-height: 48px; padding: 11px 17px; border: 1px solid transparent; border-radius: 5px; text-decoration: none; font-size: .88rem; font-weight: 730; line-height: 1.2; white-space: nowrap; }
.button span, .text-link span { font-size: 1.1em; }
.button--primary { color: #fff8f0; background: var(--accent); }
.button--primary:hover { background: var(--accent-dark); }
.button--outline { border-color: var(--line); background: transparent; color: var(--ink); }
.button--outline:hover { border-color: var(--accent); color: var(--accent); }
.text-link { color: var(--ink); background: transparent; border: 0; padding: 5px 0; text-underline-offset: 4px; font-size: .86rem; font-weight: 690; }
.text-link span { color: var(--accent); margin-left: 3px; }
.text-link:hover { color: var(--accent); }
.hero-image { position: relative; isolation: isolate; }
.hero-image img { aspect-ratio: 1.24; object-fit: cover; object-position: 53% 55%; border-radius: 7px; background: #b77251; }
.hero-image figcaption { position: absolute; display: flex; gap: 10px; align-items: center; right: 15px; bottom: 15px; padding: 10px 13px 10px 10px; border-radius: 6px; background: #fff8ec; box-shadow: 0 5px 22px #39221529; font-size: .73rem; line-height: 1.35; }
.hero-image figcaption strong, .hero-image figcaption small { display: block; }
.hero-image figcaption small { color: var(--muted); margin-top: 2px; }
.sample-pin { width: 28px; height: 28px; border-radius: 3px; background: #c78363; }
.section { padding-block: 61px 76px; }
.section--light { background: var(--light); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.section-intro h2, .page-intro h1 { margin-top: 10px; }
.description { max-width: 630px; color: var(--muted); margin-top: 13px; }
.palette-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 25px; }
.palette-card { background: var(--paper); min-width: 0; border-radius: 7px; border: 1px solid var(--line); overflow: hidden; }
.palette-samples { display: grid; grid-template-columns: repeat(4, 1fr); min-height: 124px; }
.color-chip { position: relative; border: 0; background: var(--chip); color: var(--ink); min-width: 0; padding: 0; isolation: isolate; }
.color-chip:hover { box-shadow: inset 0 0 0 2px #fff9ed; }
.color-chip:focus-visible { z-index: 1; outline-offset: -4px; }
.color-chip span { display: block; position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); background: #fffcf4; padding: 2px 4px; border-radius: 3px; font: 10px/1.45 ui-monospace, 'Courier New', monospace; opacity: 0; }
.color-chip:hover span, .color-chip:focus-visible span { opacity: 1; }
.palette-info { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 19px 18px 6px; }
.family { font-family: var(--sans); font-size: .65rem; font-weight: 740; letter-spacing: .11em; text-transform: uppercase; color: var(--accent); }
.palette-info h3 { font-size: clamp(1.4rem, 2.3vw, 2.05rem); line-height: 1.15; letter-spacing: -.045em; }
.circle-link { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; text-decoration: none; }
.circle-link:hover { background: var(--accent); color: var(--light); border-color: var(--accent); }
.palette-summary { font-size: .84rem; color: var(--muted); padding: 0 18px 18px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 25px; }
.guide-card { text-decoration: none; border: 1px solid var(--line); border-radius: 7px; background: var(--light); padding: 21px; display: flex; flex-direction: column; align-items: start; }
.guide-card:hover { border-color: var(--accent); }
.guide-icon { display: grid; place-items: center; width: 39px; height: 39px; margin-bottom: 19px; border-radius: 50%; color: var(--accent); background: #f2dfd0; font-size: 1.2rem; }
.guide-card h3 { margin-block: 5px 8px; font-size: 1.63rem; line-height: 1.08; letter-spacing: -.035em; }
.guide-card p { color: var(--muted); font-size: .88rem; padding-bottom: 16px; }
.guide-more { margin-top: auto; color: var(--accent); font-size: .79rem; font-weight: 700; }
.site-footer { padding-block: 32px; border-top: 1px solid var(--line); background: #eee5d5; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner p { font-size: .82rem; color: var(--muted); margin-top: 9px; }
.page-intro { padding-block: 65px 31px; }
.page-intro h1 { font-size: clamp(3.1rem, 7.4vw, 6.65rem); }
.page-intro .description { font-size: clamp(1rem, 1.25vw, 1.16rem); }
.section--compact { padding-top: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pill { color: var(--ink); background: transparent; border: 1px solid #c9bba8; border-radius: 999px; padding: 6px 14px; min-height: 39px; font-size: .83rem; font-weight: 650; }
.filter-pill:hover { border-color: var(--accent); }
.filter-pill[aria-pressed='true'] { color: #fff8ef; background: var(--accent); border-color: var(--accent); }
.all-palettes .palette-card { background: var(--light); }
.all-palettes .palette-samples { min-height: 164px; }
.lab-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(310px, 1fr); align-items: start; gap: 23px; padding-bottom: 76px; }
.room { --wall: #c78363; --trim: #ebdccb; --room-accent: #934731; position: relative; aspect-ratio: 1.44; border-radius: 7px; overflow: hidden; isolation: isolate; background: linear-gradient(124deg, #fff5e23b 0 35%, transparent 36% 58%, #21191330 90%), var(--wall); }
.room > div { position: absolute; }
.room-arch { left: 8%; top: 8%; width: 31%; height: 69%; background: linear-gradient(106deg, #20170d56, #fff1d22b), var(--wall); border: .52vw solid var(--trim); border-bottom: 0; border-radius: 50% 50% 0 0/35% 35% 0 0; }
.room-window { right: 9%; top: 9%; width: 27%; height: 44%; border: .66vw solid var(--trim); background: linear-gradient(90deg, transparent 47%, var(--trim) 48% 52%, transparent 53%), linear-gradient(0deg, #cabd9a 3%, #eae2c7 40%, #dfe1d0 41%, #fbf6e5 90%); }
.room-floor { inset: 73% 0 0; border-top: .85vw solid var(--trim); background: repeating-linear-gradient(103deg, transparent 0 11%, #3c291746 11% 11.5%, transparent 11.8% 17%), linear-gradient(176deg, #926544, #d0a781); }
.room-rug { width: 75%; height: 18%; bottom: 3%; left: 15%; border-radius: 50%; background: #ebddc3; box-shadow: 0 6px 12px #4c351d4a; }
.room-sofa { width: 48%; height: 29%; left: 14%; bottom: 20%; border-radius: 11% 11% 9% 9%; border-bottom: 1.2vw solid #b0a28e; background: linear-gradient(#fbf0de 14%, #ded2bb 81%); box-shadow: 0 11px 10px #3f2d1955; }
.room-sofa::after { content: ''; position: absolute; inset: auto 2% 9%; height: 28%; border-radius: 12px; background: #e8dcc3; box-shadow: inset 0 3px 4px #f8f0df; }
.room-cushion { width: 11%; height: 14%; left: 23%; bottom: 31%; transform: rotate(-11deg); border-radius: 14%; background: linear-gradient(145deg, #fff3dd29, #22150f2e), var(--room-accent); }
.room-table { width: 23%; height: 20%; left: 67%; bottom: 10%; border-radius: 52% 52% 30% 30%/30% 30% 15% 15%; background: linear-gradient(180deg, #ffffff16 0 25%, #1c130b54 28%, transparent 55%), var(--room-accent); box-shadow: 4px 8px 8px #3c2a2149; }
.room-vase { left: 76%; bottom: 26%; width: 5%; height: 10%; border-radius: 22% 22% 40% 40%; background: #655a45; box-shadow: inset 5px 0 5px #ffffff23; }
.lab-note { color: var(--muted); font-size: .8rem; margin-top: 9px; }
.lab-panel { background: var(--light); border: 1px solid var(--line); border-radius: 7px; padding: 20px; }
.lab-panel h2 { font-size: 2.35rem; margin-bottom: 14px; }
.lab-panel label { display: block; font-size: .84rem; font-weight: 700; margin-bottom: 4px; }
.lab-panel select, .lab-panel input[type='text'], .share-fallback { width: 100%; padding: 7px 9px; min-width: 0; color: var(--ink); background: var(--light); border: 1px solid #cdbfae; border-radius: 4px; }
.lab-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 16px; }
.lab-inputs { display: flex; flex-direction: column; gap: 5px; }
.lab-inputs input[type='color'] { display: block; width: 100%; height: 44px; padding: 0; border: 1px solid #b1a18c; border-radius: 4px; overflow: hidden; background: transparent; cursor: pointer; }
.lab-inputs input[type='color']::-webkit-color-swatch-wrapper { padding: 0; }
.lab-inputs input[type='color']::-webkit-color-swatch, .lab-inputs input[type='color']::-moz-color-swatch { border: 0; }
.lab-inputs input[type='text'] { font-family: ui-monospace, monospace; font-size: .8rem; }
.lab-inputs [aria-invalid='true'] { border: 2px solid var(--accent); }
.lab-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 19px; }
.share-fallback { margin-top: 12px; }
.guide-layout { display: grid; grid-template-columns: minmax(190px, .55fr) minmax(0, 1.45fr); gap: clamp(28px, 5vw, 75px); padding-bottom: 76px; }
.guide-nav { align-self: start; background: var(--light); border: 1px solid var(--line); border-radius: 6px; padding: 18px; }
.guide-nav a { display: flex; justify-content: space-between; text-decoration: none; gap: 10px; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; font-size: .85rem; }
.guide-nav a:hover { color: var(--accent); }
.guide-article { scroll-margin-top: 20px; border-top: 1px solid var(--line); padding-block: 21px; }
.guide-article h2 { margin-top: 6px; font-size: clamp(2rem, 4vw, 3.2rem); }
.guide-steps { display: grid; gap: 15px; margin-top: 19px; }
.guide-steps h3 { font-size: 1.26rem; font-weight: 650; }
.guide-steps p, .about-copy p { color: var(--muted); font-size: .95rem; }
.about-layout { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 28px; padding-block: 67px 77px; }
.about-layout .page-intro { width: auto; padding: 0; }
.about-layout .page-intro h1 { font-size: clamp(3rem, 6.5vw, 5rem); }
.about-copy { display: grid; gap: 11px; margin-top: 12px; }
.about-copy .button { margin-top: 6px; }
.toast { position: fixed; z-index: 10; right: 14px; bottom: 14px; max-width: min(calc(100% - 28px), 420px); pointer-events: none; background: var(--ink); color: var(--light); padding: 10px 14px; border-radius: 5px; font-size: .84rem; }
.toast:empty { padding: 0; }
@media (max-width: 1070px) {
  .container { width: calc(100% - 76px); }
  .hero { gap: 25px; grid-template-columns: minmax(320px, .95fr) minmax(0, 1.05fr); }
  .hero-image img { aspect-ratio: 1.05; }
}
@media (max-width: 799px) {
  .container { width: calc(100% - 36px); }
  .header-inner { grid-template-columns: 1fr auto; gap: 10px; min-height: auto; padding-block: 15px 11px; }
  .primary-nav { grid-row: 2; grid-column: 1 / -1; gap: 24px; padding-top: 7px; border-top: 1px solid var(--line); }
  .lab-link { grid-row: 1; grid-column: 2; }
  .hero, .about-layout { grid-template-columns: 1fr; padding-block: 31px 42px; gap: 23px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(3.45rem, 10.7vw, 6.35rem); margin-block: 11px 14px; }
  .hero-actions { margin-top: 19px; }
  .hero-image img { aspect-ratio: 1.42; }
  .section { padding-block: 36px 47px; }
  .section--compact { padding-top: 0; }
  .palette-grid, .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .page-intro { padding-block: 38px 24px; }
  .lab-layout { grid-template-columns: 1fr; padding-bottom: 46px; }
  .guide-layout { grid-template-columns: 1fr; gap: 20px; padding-bottom: 47px; }
  .all-palettes .palette-samples { min-height: 114px; }
}
@media (max-width: 480px) {
  .section-head, .footer-inner { align-items: start; flex-direction: column; }
  .section-head { gap: 13px; }
  .palette-grid, .guide-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.95rem, 11.1vw, 3.75rem); }
  .palette-samples { min-height: 103px; }
  .footer-inner nav { flex-wrap: wrap; gap: 9px 20px; }
}

/* Draw direction marks without depending on the system glyph set. */
.button span[aria-hidden], .text-link span[aria-hidden], .lab-link span[aria-hidden],
.guide-more span[aria-hidden], .guide-nav a span[aria-hidden] { display: inline-block; font-size: 0; vertical-align: .04rem; }
.circle-link, .guide-icon { font-size: 0; }
.button span[aria-hidden]::before, .text-link span[aria-hidden]::before,
.lab-link span[aria-hidden]::before, .guide-more span[aria-hidden]::before,
.guide-nav a span[aria-hidden]::before, .circle-link::before {
  content: ''; display: inline-block; width: 9px; height: 9px;
  border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  background: linear-gradient(-45deg, transparent calc(50% - .7px), currentColor calc(50% - .7px) calc(50% + .7px), transparent calc(50% + .7px));
}
.guide-nav a span[aria-hidden]::before { transform: rotate(135deg); }
.guide-icon::before { content: ''; width: 15px; height: 15px; border: 1.5px solid currentColor; border-radius: 50%; }
.guide-card:first-child .guide-icon::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.guide-card:nth-child(2) .guide-icon::before { border-style: dotted; border-width: 2px; }
.guide-card:nth-child(3) .guide-icon::before { border-radius: 2px; background: repeating-linear-gradient(135deg, transparent 0 3px, currentColor 3px 4px); }
