@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700&family=Noto+Serif+SC:wght@500;600;700&display=swap');

:root {
  --paper: #f5f3ee;
  --ink: #1b211f;
  --muted: #6e746f;
  --line: rgba(27, 33, 31, 0.18);
  --panel: #fbfaf7;
  --serif: 'Noto Serif SC', Georgia, serif;
  --sans: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'DM Mono', 'SFMono-Regular', Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
body:has(.about-panel:not([hidden])) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #3478a3; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 14px; background: #fff; transform: translateY(-160%); transition: transform 180ms ease; }
.skip-link:focus { transform: translateY(0); }

.site-shell { min-height: 100vh; }
.site-header { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 24px clamp(20px, 4vw, 64px); color: #f8f6f1; mix-blend-mode: difference; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: var(--serif); font-size: 17px; }
.brand-copy { display: grid; line-height: 1.1; letter-spacing: .12em; }
.brand-copy strong { font-size: 12px; font-weight: 600; }
.brand-copy small { margin-top: 5px; font-family: var(--mono); font-size: 8px; letter-spacing: .12em; opacity: .72; }
.header-nav { display: flex; align-items: center; gap: 26px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; }
.header-nav a, .ghost-button { min-height: 44px; display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 0; cursor: pointer; opacity: .84; transition: opacity 180ms ease; }
.header-nav a:hover, .ghost-button:hover { opacity: 1; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; min-height: max(720px, 100svh); }
.hero-stage { position: relative; min-height: 720px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--canvas); color: var(--canvas-ink); transition: background-color 500ms cubic-bezier(.2,.8,.2,1), color 260ms ease; }
.hero-stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 70% 35%, rgba(255,255,255,.15), transparent 30%), linear-gradient(135deg, rgba(255,255,255,.08), transparent 50%); mix-blend-mode: screen; }
.stage-meta { position: absolute; left: clamp(22px, 4vw, 64px); right: clamp(22px, 4vw, 64px); display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; opacity: .7; z-index: 1; }
.stage-meta-top { top: 104px; }
.stage-meta-bottom { bottom: 32px; align-items: center; }
.scroll-cue { display: inline-flex; align-items: center; gap: 9px; }
.scroll-cue i { display: inline-block; width: 28px; height: 1px; background: currentColor; }
.hero-lockup { position: relative; z-index: 1; width: min(760px, 78%); margin-top: 8vh; }
.eyebrow, .kicker { margin: 0; font-family: var(--mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
.hero-lockup .eyebrow { margin-bottom: 28px; opacity: .72; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 34px; font-family: var(--serif); font-size: clamp(52px, 8vw, 124px); font-weight: 600; line-height: .95; letter-spacing: -.06em; }
h1 span { display: inline-block; margin-right: .16em; }
h1 em { font-family: var(--sans); font-size: .22em; font-style: normal; font-weight: 500; letter-spacing: .15em; vertical-align: top; opacity: .82; }
.hero-intro { max-width: 390px; margin-left: 2px; font-size: clamp(15px, 1.4vw, 18px); line-height: 1.75; opacity: .9; }
.color-card { display: flex; flex-direction: column; padding: 140px 34px 34px; background: var(--panel); }
.card-head, .card-footer, .hex-row { display: flex; align-items: center; justify-content: space-between; }
.card-head { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.kicker { color: var(--muted); }
.icon-button { display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; transition: transform 180ms ease, background-color 180ms ease; }
.icon-button:hover { transform: translateY(-2px); background: rgba(27,33,31,.06); }
.icon-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.color-name { display: grid; gap: 5px; padding: 50px 0 35px; }
.color-name span:first-child { font-family: var(--serif); font-size: clamp(36px, 4vw, 56px); line-height: 1; }
.color-name span:last-child { color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .17em; }
.hex-row { padding-bottom: 18px; font-family: var(--mono); font-size: 12px; }
.hex-row span:last-child { color: var(--muted); }
.rgb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: 30px; background: var(--line); border: 1px solid var(--line); }
.rgb-grid div { display: grid; gap: 6px; padding: 12px; background: var(--panel); }
.rgb-grid span, .rgb-grid strong { font-family: var(--mono); }
.rgb-grid span { color: var(--muted); font-size: 10px; }
.rgb-grid strong { font-size: 14px; font-weight: 500; }
.color-note { max-width: 270px; margin-bottom: 30px; color: #414743; font-family: var(--serif); font-size: 15px; line-height: 1.8; }
.card-footer { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .1em; }

.archive-section { padding: 120px clamp(20px, 7vw, 110px) 132px; background: var(--paper); }
.section-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 56px; }
h2 { margin-bottom: 0; font-family: var(--serif); font-size: clamp(38px, 5vw, 72px); line-height: 1.05; letter-spacing: -.05em; }
.section-copy { max-width: 300px; margin-bottom: 3px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.archive-tools { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
.search-box { display: flex; align-items: center; gap: 10px; min-width: min(320px, 100%); border-bottom: 1px solid var(--ink); padding: 9px 0; }
.search-box svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: inherit; font-family: var(--mono); font-size: 12px; }
.search-box input::placeholder { color: #929791; }
.filter-list { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-button { min-height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; cursor: pointer; transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease; }
.filter-button:hover, .filter-button.is-active { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.swatch-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.swatch { position: relative; min-height: 176px; display: flex; flex-direction: column; justify-content: space-between; padding: 17px; border: 0; text-align: left; cursor: pointer; color: var(--swatch-ink); background: var(--swatch); transition: transform 220ms ease, box-shadow 220ms ease; }
.swatch:hover, .swatch:focus-visible { transform: translateY(-6px); box-shadow: 0 15px 30px rgba(20, 25, 23, .13); }
.swatch-top, .swatch-bottom { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }
.swatch-bottom { align-items: end; }
.swatch-name { font-family: var(--serif); font-size: 17px; letter-spacing: -.04em; }
.swatch-code { opacity: .72; }
.empty-state { padding: 60px 0; color: var(--muted); font-family: var(--serif); font-size: 22px; }

.notes-section { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: 32px; padding: 100px clamp(20px, 7vw, 110px); background: #e9e4da; }
.notes-mark { align-self: start; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; }
.notes-content { max-width: 660px; }
.notes-content h2 { max-width: 560px; margin: 18px 0 24px; font-size: clamp(32px, 4vw, 56px); }
.notes-content p:not(.eyebrow) { max-width: 540px; margin-bottom: 28px; color: #575c56; font-size: 16px; line-height: 1.8; }
.text-link, .outline-link { display: inline-flex; align-items: center; gap: 10px; border-bottom: 1px solid currentColor; padding-bottom: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: .05em; }
.notes-stamp { justify-self: end; width: 110px; height: 110px; display: grid; place-items: center; border: 1px solid rgba(27,33,31,.4); border-radius: 50%; transform: rotate(-11deg); text-align: center; font-family: var(--mono); font-size: 10px; line-height: 1.45; letter-spacing: .14em; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 23px clamp(20px, 4vw, 64px); background: #1d211f; color: #d9d6ce; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; }
.site-footer a { opacity: .72; }
.site-footer a:hover { opacity: 1; }

.about-backdrop { position: fixed; inset: 0; z-index: 10; background: rgba(12, 16, 15, .45); backdrop-filter: blur(3px); }
.about-panel { position: fixed; z-index: 11; top: 0; right: 0; bottom: 0; width: min(480px, 100%); display: flex; flex-direction: column; padding: 30px clamp(24px, 5vw, 52px); background: #f7f5f0; box-shadow: -20px 0 60px rgba(13,18,16,.12); animation: panel-in 260ms ease both; }
.about-backdrop[hidden], .about-panel[hidden] { display: none; }
@keyframes panel-in { from { transform: translateX(20px); opacity: .5; } to { transform: translateX(0); opacity: 1; } }
.about-panel-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.about-panel h2 { margin: 72px 0 22px; font-size: clamp(34px, 5vw, 56px); }
.about-panel > p { color: #5e645e; font-size: 15px; line-height: 1.8; }
.about-list { display: grid; gap: 18px; margin: 40px 0; }
.about-list div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding-top: 13px; border-top: 1px solid var(--line); }
.about-list dt { color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; }
.about-list dd { margin: 0; font-size: 13px; }
.outline-link { align-self: flex-start; margin-top: auto; }
.toast { position: fixed; z-index: 20; right: 20px; bottom: 20px; padding: 12px 16px; border: 1px solid rgba(255,255,255,.2); background: #1d211f; color: #fff; font-family: var(--mono); font-size: 11px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1040px) {
  .hero { grid-template-columns: minmax(0, 1fr) 320px; }
  .swatch-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .site-header { position: absolute; padding: 18px 20px; }
  .brand-copy small { display: none; }
  .header-nav { gap: 14px; font-size: 9px; }
  .header-nav a:nth-child(2) { display: none; }
  .hero { display: block; min-height: 0; }
  .hero-stage { min-height: 620px; }
  .stage-meta-top { top: 86px; }
  .hero-lockup { width: calc(100% - 44px); margin-top: 9vh; }
  h1 { font-size: clamp(50px, 15vw, 84px); }
  h1 em { font-size: .2em; }
  .color-card { min-height: 480px; padding: 30px 22px; }
  .color-name { padding: 34px 0 25px; }
  .archive-section { padding-top: 82px; padding-bottom: 92px; }
  .section-heading, .archive-tools { display: block; }
  .section-copy { max-width: 420px; margin-top: 18px; }
  .filter-list { margin-top: 18px; }
  .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .swatch { min-height: 145px; padding: 13px; }
  .notes-section { grid-template-columns: 1fr; gap: 20px; padding-top: 78px; padding-bottom: 78px; }
  .notes-stamp { justify-self: start; margin-top: 8px; }
  .site-footer { flex-wrap: wrap; line-height: 1.5; }
  .site-footer span:nth-child(2) { order: 3; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
