/* IconetteStudio · swatch book
   Layout: left column = intro + numbered rows of paint-chip swatches; right column = a phone
   that stays in view and shows whichever chip was tapped. Below: ruled editorial bands for
   setup, the secret icon and questions. Thin ink rules, no cards, no shadows on text blocks. */

:root {
  --paper: #FAF6F0;
  --paper-2: #F2ECE4;
  --chip: #FFFFFF;
  --ink: #2A2523;
  --ink-2: #6A605A;
  --rule: #E2D9CE;
  --plum: #6E6682;
  --phone: #221E1C;
  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --body: 'DM Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --gutter: clamp(20px, 5vw, 64px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1D1A18; --paper-2: #24201D; --chip: #2A2522; --ink: #F2EBE5; --ink-2: #B9ADA5;
    --rule: #3A332E; --plum: #BCB2D6; --phone: #0D0B0A;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
h1 i, h2 i { font-weight: 400; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 30; }
.skip:focus { left: 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.num { font-size: 12.5px; letter-spacing: .1em; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: calc(22px + env(safe-area-inset-top, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)) 18px max(var(--gutter), env(safe-area-inset-left, 0px));
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 18px; }
.brand em { font-style: normal; font-weight: 400; color: var(--ink-2); }
.top nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a:hover { color: var(--ink); }
.top .shop-link { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }

.btn {
  display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none;
  font-weight: 600; font-size: 16px; padding: 13px 22px; border-radius: 2px; transition: background .15s ease;
}
.btn:hover { background: var(--plum); }
.btn[aria-disabled="true"] { background: transparent; color: var(--ink-2); border: 1px solid var(--rule); pointer-events: none; }

/* main two-column layout */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 84px); align-items: start;
  padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) 72px max(var(--gutter), env(safe-area-inset-left, 0px));
  max-width: 1320px; margin: 0 auto;
}
.intro { display: grid; gap: 18px; padding: 34px 0 52px; border-bottom: 1px solid var(--ink); }
h1 { font-size: clamp(46px, 6.4vw, 88px); line-height: .97; max-width: 12ch; }
.lede { font-size: 19px; color: var(--ink-2); max-width: 46ch; }
.cta { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 6px; }
.hint { font-size: 14.5px; color: var(--ink-2); }

.book { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--rule); align-items: start; scroll-margin-top: 20px; }
.rh { display: grid; gap: 5px; }
.rh h3 { font-size: 25px; line-height: 1.1; }
.rh p { font-size: 15px; color: var(--ink-2); }
.rh .sold { font-size: 13px; }
.tag { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin: 3px 0; padding: 5px 12px 5px 10px; border-radius: 4px; background: #E7C27A; color: #3A2A12; font-size: 13px; font-weight: 600; line-height: 1.2; }
.tag::before { content: "\2605"; font-size: 12px; }
.tag.alt { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule); padding-left: 12px; }
.tag.alt::before { content: none; }
.tag.new { background: var(--ink); color: var(--paper); padding-left: 12px; }
.tag.new::before { content: none; }
.tag.soon { background: transparent; color: var(--ink-2); font-style: italic; font-weight: 500; padding: 0; }
.tag.soon::before { content: none; }
.chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.chip {
  appearance: none; font: inherit; color: inherit; text-align: left; cursor: pointer;
  background: var(--chip); border: 1px solid var(--rule); padding: 6px 6px 10px; display: grid; gap: 2px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.chip .sw { display: block; height: 82px; background: var(--c); margin-bottom: 7px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.cn { font-weight: 600; font-size: 14.5px; }
.hx { font: 12px/1.2 var(--mono); color: var(--ink-2); letter-spacing: .03em; }
.chip:hover { transform: translateY(-3px); box-shadow: 0 12px 22px -14px rgba(40, 30, 25, .35); }
.chip[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

.viewer { position: sticky; top: 16px; display: grid; justify-items: center; gap: 12px; padding-top: 16px; max-height: calc(100vh - 32px); }
/* phone scales with the window height so the button below always stays on screen */
.phone { width: clamp(140px, calc((100vh - 270px) * 0.45), 252px); background: var(--phone); padding: 9px; border-radius: 40px; box-shadow: 0 32px 50px -26px rgba(30, 20, 15, .5); }
.phone img { width: 100%; height: auto; aspect-ratio: 540 / 1169; border-radius: 32px; transition: opacity .18s ease; }
.vl { text-align: center; display: grid; gap: 2px; }
.vl b { font-family: var(--display); font-weight: 600; font-size: 23px; }
.vl span { font-size: 14px; color: var(--ink-2); }

/* bands */
.band { border-top: 1px solid var(--ink); }
.band-in {
  max-width: 1320px; margin: 0 auto;
  padding: clamp(56px, 7vw, 88px) max(var(--gutter), env(safe-area-inset-right, 0px)) clamp(56px, 7vw, 88px) max(var(--gutter), env(safe-area-inset-left, 0px));
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px clamp(32px, 5vw, 84px);
}
.band-head { display: grid; gap: 10px; align-content: start; }
.band-head h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.08; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps li { display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 1px solid var(--rule); }
.steps h3 { font-size: 22px; }
.steps p { font-size: 15.5px; color: var(--ink-2); }

.secret { background: var(--paper-2); }
.secret-in { grid-template-columns: 300px minmax(0, 1fr) auto; align-items: center; }
.secret-text { font-size: 18px; color: var(--ink-2); max-width: 46ch; }
.sealed { display: grid; grid-template-columns: repeat(2, 64px); gap: 10px; }
.sealed span {
  aspect-ratio: 1; border-radius: 15px; background: var(--c); position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}
.sealed span::after {
  content: "?"; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-weight: 600; font-size: 26px; color: rgba(255,255,255,.88); mix-blend-mode: difference;
}

.faq { display: grid; border-top: 1px solid var(--rule); }
details { border-bottom: 1px solid var(--rule); }
summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; gap: 20px; align-items: baseline; font-weight: 600; font-size: 17.5px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--display); font-size: 26px; line-height: 1; color: var(--plum); flex-shrink: 0; transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-2); padding: 0 0 22px; max-width: 64ch; }

.closing { border-top: 1px solid var(--ink); display: grid; justify-items: start; gap: 22px;
  padding: clamp(64px, 8vw, 104px) max(var(--gutter), env(safe-area-inset-right, 0px)) clamp(64px, 8vw, 104px) max(var(--gutter), env(safe-area-inset-left, 0px));
  max-width: 1320px; margin: 0 auto; }
.closing h2 { font-size: clamp(38px, 5.4vw, 72px); line-height: 1; max-width: 14ch; }

.foot {
  border-top: 1px solid var(--rule); display: grid; grid-template-columns: auto 1fr; gap: 14px 28px; align-items: center;
  padding: 28px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
}
.foot nav { justify-self: end; display: flex; flex-wrap: wrap; gap: 22px; font-size: 15px; }
.foot nav a { color: var(--ink-2); }
.fine { grid-column: 1 / -1; font-size: 13.5px; color: var(--ink-2); }

/* responsive */
@media (max-width: 1080px) {
  .row { grid-template-columns: 1fr; gap: 14px; }
  .band-in, .secret-in { grid-template-columns: 1fr; }
  .sealed { grid-template-columns: repeat(4, 64px); }
}
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .layout > .col { display: contents; }
  .intro { order: 1; }
  .viewer { order: 2; position: static; padding-top: 8px; }
  #book { order: 3; }
  .phone { width: 210px; border-radius: 38px; padding: 8px; }
  .phone img { border-radius: 31px; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .top nav a:not(.shop-link) { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .chips { gap: 7px; }
  .chip { padding: 5px 5px 8px; }
  .chip .sw { height: 58px; }
  .cn { font-size: 12.5px; }
  .hx { font-size: 10.5px; }
  .foot { grid-template-columns: 1fr; }
  .foot nav { justify-self: start; }
}

/* phone-only mini preview bar */
.mini { display: none; }
@media (max-width: 860px) {
  .mini {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 20;
    display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
    background: var(--paper); border: 1px solid var(--ink); padding: 8px 8px 8px 8px; box-shadow: 0 14px 30px -16px rgba(30,20,15,.45);
    transform: translateY(140%); transition: transform .25s ease;
  }
  .mini.show { transform: translateY(0); }
  .mini-thumb { appearance: none; border: 0; padding: 3px; background: var(--phone); border-radius: 10px; width: 40px; cursor: pointer; }
  .mini-thumb img { border-radius: 7px; width: 100%; height: auto; aspect-ratio: 540 / 1169; }
  .mini-txt { display: grid; line-height: 1.25; min-width: 0; }
  .mini-txt b { font-family: var(--display); font-weight: 600; font-size: 18px; }
  .mini-txt span { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mini .btn { padding: 11px 14px; font-size: 14.5px; }
  .foot { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
}

.bundle-link { font-size: 14.5px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--rule); }
.bundle-link:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* very short windows: keep the whole preview on screen */
@media (min-width: 861px) and (max-height: 560px) {
  .phone { width: 120px; padding: 7px; border-radius: 26px; }
  .phone img { border-radius: 20px; }
  .viewer { gap: 8px; }
}
