/* ColorDrape site. Neutral paper and ink; every color on the page comes from a palette. */
@font-face { font-family: "Familjen Grotesk"; src: url("/fonts/FamiljenGrotesk-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Familjen Grotesk"; src: url("/fonts/FamiljenGrotesk-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Familjen Grotesk"; src: url("/fonts/FamiljenGrotesk-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Familjen Grotesk"; src: url("/fonts/FamiljenGrotesk-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --paper: #F3F1EE;
  --surface: #E7E4E0;
  --surround: #8C8A87; /* fixed mid gray behind any color comparison */
  --ink: #22211F;
  --muted: #5E5B57;
  --line: #CFCBC5;
  --radius: 14px;
  --gutter: 20px;
  --font: "Familjen Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Hiragino Sans", "Noto Sans KR", "Noto Sans JP", "Malgun Gothic", "Yu Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); overflow-wrap: break-word; }
:lang(ko), :lang(ja) { word-break: keep-all; line-break: strict; }
img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { font-weight: 700; line-height: 1.1; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.3rem + 4.4vw, 4.1rem); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.25rem); }
h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; margin: 0; }
li { margin-bottom: .4em; }
code { font: 500 .82em/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.lead { font-size: clamp(1.12rem, 1rem + .5vw, 1.3rem); line-height: 1.5; }
.muted, .fig-note, figcaption { color: var(--muted); }
.fig-note, figcaption { font-size: .92rem; line-height: 1.5; margin-top: .8rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.5rem; padding-top: .8rem; padding-bottom: .8rem; }
.wordmark { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: 1.22rem; letter-spacing: -0.02em; text-decoration: none; }
.mark { flex: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: .2rem 1.4rem; font-weight: 500; font-size: 1rem; }
.site-header nav a { text-decoration: none; padding: .45rem 0; }
.site-header nav a:hover, .site-header nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

.site-footer { margin-top: 6rem; border-top: 1px solid var(--line); background: var(--surface); font-size: .97rem; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 2rem; padding-top: 2.6rem; padding-bottom: 2rem; }
.site-footer p { color: var(--muted); max-width: 34ch; margin-top: .7rem; }
.site-footer li { margin-bottom: .55em; }
.site-footer a[aria-current] { font-weight: 600; }
.foot-legal { grid-column: 1 / -1; max-width: none !important; margin: 0; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .9rem; }

/* Swatches and the fixed gray surround */
.sw { display: block; width: 100%; overflow: visible; }
.fan { display: block; width: 100%; overflow: visible; }
.surround { background: var(--surround); border-radius: var(--radius); padding: clamp(1rem, 3vw, 1.75rem); margin: 0; }
.panel { background: #F8F7F5; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 1.6rem); }
.palette { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(.5rem, 1.6vw, 1rem); }
.palette li { margin: 0; }
.palette-hex { gap: clamp(.9rem, 2vw, 1.4rem) clamp(.5rem, 1.6vw, 1rem); }
.palette-hex code { display: block; margin-top: .5rem; color: var(--ink); font-size: .8rem; font-weight: 600; }
.palette-hex .sig { display: block; font-size: .78rem; font-weight: 600; color: var(--ink); margin-top: .15rem; }

/* Axis bars */
.axes { display: grid; gap: 1.25rem; }
.axis-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin-bottom: .55rem; }
.axis-name { font-weight: 600; }
.axis-note { font-size: .95rem; color: var(--muted); }
.axis-track, .mini { position: relative; height: 18px; }
.axis-track::before, .mini::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--line); }
.axis-track::after, .mini::after { content: ""; position: absolute; left: 50%; top: 4px; width: 1px; height: 10px; background: var(--line); }
.axis-track i, .mini i { position: absolute; top: 0; width: 6px; height: 18px; margin-left: -3px; border-radius: 2px; background: var(--ink); }
.axis-ends { display: flex; justify-content: space-between; font-size: .88rem; color: var(--muted); margin-top: .2rem; }

/* Compare figure */
.compare { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--b); --split: 50%; }
.compare-a { position: absolute; inset: 0 auto 0 0; width: var(--split); background: var(--a); }
.compare-line { position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; margin-left: -1px; background: var(--paper); }
.compare-line span { position: absolute; left: 50%; bottom: 12%; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.compare-line span::before, .compare-line span::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; border: solid var(--ink); border-width: 2px 0 0 2px; }
.compare-line span::before { left: 6px; transform: translateY(-50%) rotate(-45deg); }
.compare-line span::after { right: 6px; transform: translateY(-50%) rotate(135deg); }
.compare-chip { position: absolute; left: 50%; top: 40%; width: 30%; transform: translate(-50%, -50%); }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.compare-labels { display: flex; justify-content: space-between; gap: 1rem; margin-top: .7rem; font-size: .9rem; font-weight: 600; color: var(--ink); }

/* Share card */
.sharecard { display: block; width: 100%; border-radius: 10px; font-family: var(--font); }
.sc-small { font-size: 11px; font-weight: 500; fill: var(--muted); }
.sc-tone { font-size: 26px; font-weight: 700; fill: var(--ink); letter-spacing: -.4px; }
.sc-traits { font-size: 13px; font-weight: 500; fill: var(--ink); }

/* Home */
.hero { padding: clamp(2.2rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: end; }
.hero h1 { max-width: 11em; }
.hero .lead { margin-top: 1.3rem; max-width: 34em; }
.status { margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px solid var(--line); max-width: 34em; }
.status strong { font-weight: 600; }
.hero-fan { margin: 0 -2% -1% 0; }

.pinked-rule { height: 7px; border: 0; margin: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='7'%3E%3Cpath d='M0 6.5L7 .8l7 5.7' fill='none' stroke='%23CFCBC5' stroke-width='1.2'/%3E%3C/svg%3E") repeat-x left center; }

.band { padding: clamp(2.8rem, 7vw, 5.5rem) 0 0; }
.band > .wrap > h2 { max-width: 18em; }
.band-intro { max-width: 40em; margin-top: 1rem; }

.steps { counter-reset: step; margin-top: clamp(1.5rem, 4vw, 3rem) !important; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) minmax(0, var(--fig, .9fr)); gap: 0 clamp(1rem, 3vw, 2.5rem); align-items: start; padding: clamp(1.4rem, 3.5vw, 2.4rem) 0; border-top: 1px solid var(--line); margin: 0; }
.steps > li::before { content: counter(step); font-weight: 700; font-size: 2.4rem; line-height: 1; letter-spacing: -0.03em; }
.steps > li:nth-child(2) { --fig: 1.1fr; }
.steps > li:nth-child(3) { --fig: .8fr; }
.steps h3 { font-size: 1.45rem; margin-bottom: .6rem; }
.steps p { max-width: 32em; }
.steps figure { margin: 0; }
.measured { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; max-width: 300px; }
.measured li { margin: 0; font-size: .9rem; font-weight: 600; }
.measured .sw { margin-bottom: .4rem; }

.result { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; margin-top: clamp(1.5rem, 4vw, 2.6rem); }
.result-name { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin: .2rem 0 .7rem; }
.result-side .panel { margin-top: 1.4rem; }
.result-main h3 { margin-bottom: .8rem; }
.result-main .surround + h3 { margin-top: 1.8rem; }

.pricing { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); margin-top: clamp(1.5rem, 4vw, 2.6rem); border-top: 2px solid var(--ink); }
.pricing > div { padding: 1.6rem 0 0; }
.pricing > div + div { border-left: 1px solid var(--line); padding-left: clamp(1.2rem, 3vw, 2.4rem); margin-left: clamp(1.2rem, 3vw, 2.4rem); }
.price { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin: .5rem 0 .3rem; }
.price-note { color: var(--muted); margin-bottom: 1.2rem; }
.ticks { list-style: none; padding: 0; margin: 1rem 0 0; }
.ticks li { position: relative; padding-left: 1.5rem; margin-bottom: .7em; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .58em; width: .5rem; height: .5rem; background: var(--ink); }
.pricing-foot { max-width: 44em; margin-top: 1.8rem; color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }
.split.flip { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
.split h2 { margin-bottom: 1rem; }
.split p { max-width: 36em; }
.share-fig { max-width: 300px; margin: 0; }
.more { font-weight: 600; }

.faq { margin: clamp(1.4rem, 3vw, 2rem) 0 0; max-width: 46em; }
.faq dt { font-weight: 600; font-size: 1.12rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.faq dd { margin: .4rem 0 1.2rem; }

.tonestrip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.4rem clamp(.6rem, 2vw, 1.4rem); margin-top: 1.6rem !important; }
.tonestrip li { margin: 0; }
.tonestrip a { display: block; text-decoration: none; font-weight: 600; font-size: .95rem; line-height: 1.25; }
.tonestrip a span { display: block; margin-top: .5rem; }
.tonestrip a:hover span { text-decoration: underline; }
.guide-links { margin-top: 1.4rem !important; max-width: 44em; }
.guide-links li { padding: .85rem 0; border-top: 1px solid var(--line); margin: 0; font-weight: 600; font-size: 1.1rem; }
.guide-links small { display: block; font-weight: 400; font-size: .92rem; color: var(--muted); }

/* Documents: method, guides, tones, legal */
.doc { max-width: calc(44rem + 2 * var(--gutter)); margin: 0 auto; padding: clamp(1.4rem, 4vw, 2.6rem) var(--gutter) 0; }
.doc-wide { max-width: calc(58rem + 2 * var(--gutter)); }
.doc h1 { font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.3rem); margin-bottom: 1rem; }
.doc h2 { margin: 2.8rem 0 .9rem; font-size: clamp(1.45rem, 1.2rem + 1vw, 1.85rem); scroll-margin-top: 1rem; }
.doc h3 { margin: 1.8rem 0 .5rem; }
.doc figure { margin: 1.8rem 0; }
.doc .panel { margin: 1.4rem 0; }
.doc-wide > p, .doc-wide > section > p { max-width: 44rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem .5rem; padding: 0; margin: 0 0 1.6rem; font-size: .92rem; color: var(--muted); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--line); }
.dateline { color: var(--muted); font-size: .95rem; margin-bottom: 1.6rem; }
.doc table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .98rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: .7rem .8rem .7rem 0; border-bottom: 1px solid var(--line); }
.doc thead th { border-bottom: 2px solid var(--ink); font-weight: 600; }
.related { margin-top: 3.2rem; padding-top: .4rem; border-top: 2px solid var(--ink); }
.related h2 { margin-top: 1.2rem; font-size: 1.25rem; }
.related ul { list-style: none; padding: 0; }
.related li { padding: .5rem 0; border-bottom: 1px solid var(--line); margin: 0; font-weight: 500; }
.guide-list li { padding: 1.3rem 0; border-top: 1px solid var(--line); margin: 0; }
.guide-list h2 { margin: 0 0 .4rem; font-size: 1.4rem; }
.guide-list p { margin: 0; color: var(--muted); }
.guide-list { margin: 2rem 0 !important; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.note { border-left: 3px solid var(--ink); padding: .2rem 0 .2rem 1rem; margin: 1.6rem 0; }

.tonetable-wrap { margin: 1.6rem 0; }
.tonetable th[scope="row"] { font-weight: 600; white-space: nowrap; }
.tonetable th[scope="row"] .sw { display: inline-block; width: 22px; vertical-align: -5px; margin-right: .55rem; }
.tonetable thead small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.tonetable td { vertical-align: middle; min-width: 4.2rem; }
.tonetable .tt-dom { color: var(--muted); }

.tone-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(1rem, 4vw, 3rem); align-items: center; }
.tone-page .panel { max-width: 34rem; }
.near { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem clamp(1rem, 3vw, 2rem); margin: 1.6rem 0 !important; }
.near li { margin: 0; border-top: 2px solid var(--ink); padding-top: .2rem; }
.near h3 { margin: .8rem 0 .7rem; }
.near-sw { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; background: var(--surround); padding: 8px; border-radius: 8px; margin-bottom: .9rem; }
.near p { font-size: .97rem; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-weight: 600; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2rem; }

@media (max-width: 860px) {
  .hero .wrap, .result, .split, .split.flip, .tone-head { grid-template-columns: minmax(0, 1fr); }
  .hero-fan { margin: 0; max-width: 460px; }
  .steps > li { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .steps > li::before { font-size: 1.9rem; }
  .steps figure { grid-column: 2; margin-top: 1.2rem; max-width: 420px; }
  .site-footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-about { grid-column: 1 / -1; }
  .tone-head .fan { max-width: 360px; }
  .near { grid-template-columns: minmax(0, 1fr); }
  .near li { max-width: 30rem; }
  .share-fig { max-width: 260px; }
}
@media (max-width: 620px) {
  body { font-size: 1rem; }
  .pricing { grid-template-columns: minmax(0, 1fr); }
  .pricing > div + div { border-left: 0; padding-left: 0; margin-left: 0; margin-top: 1.6rem; border-top: 1px solid var(--line); }
  .palette, .tonestrip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tonestrip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tonetable .tt-dom { display: none; }
  .tonetable td { min-width: 3.4rem; padding-right: .5rem; }
  .tonetable thead small { display: none; }
  .tonetable { font-size: .9rem; }
  .steps figure { grid-column: 1 / -1; }
  .site-header nav { gap: .2rem 1.1rem; font-size: .97rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
@media print { .site-header nav, .site-footer, .skip { display: none; } }
