/* pickmall.app/brand/. Colours, grounds and the road pattern follow
   docs/identity.md; the page is generated by store/build.rb. Panels that show
   a ground (raspberry, white, ink) keep it in both colour schemes. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --raspberry: #C2185B;
  --blush: #FFC1D8;
  --ink: #1A1A1A;
  --white: #FFFFFF;
  --paper: var(--white);
  --text: var(--ink);
  --soft: rgb(26 26 26 / 0.64);
  --hair: rgb(26 26 26 / 0.12);
  --tint: #FBF3F6;
  --link: var(--raspberry);
  --gutter: clamp(16px, 4vw, 64px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: var(--ink);
    --text: var(--white);
    --soft: rgb(255 255 255 / 0.68);
    --hair: rgb(255 255 255 / 0.14);
    --tint: rgb(255 193 216 / 0.07);
    --link: var(--blush);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.55 "Bricolage Grotesque", system-ui, sans-serif;
  font-optical-sizing: auto;
  overflow-x: hidden;
}
::selection { background: var(--blush); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--blush); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 10; background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 12px; }
.muted { color: var(--soft); }

/* The round full stop: 0.2em across, 0.04em after the last letter. */
.stop {
  display: inline-block;
  width: 0.2em;
  height: 0.2em;
  margin-left: 0.04em;
  border-radius: 50%;
  background: var(--raspberry);
  overflow: hidden;
  text-indent: 1em;
  vertical-align: baseline;
}
@media (prefers-color-scheme: dark) { .stop { background: var(--blush); } }

h1, h2, .big {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0;
  text-wrap: balance;
}
h3 { font-size: 1.125rem; margin: 0 0 8px; letter-spacing: -0.01em; }

/* Grounds that stay put */
.raspberry { background: var(--raspberry); color: var(--white); }
.raspberry .stop, .top .stop { background: var(--blush); }
.raspberry, .top { position: relative; isolation: isolate; overflow: hidden; }

/* Road pattern: anchored right at 62% width, fading out to the left. Raspberry only. */
.roads {
  position: absolute;
  inset: 0 0 0 auto;
  width: 62%;
  z-index: -1;
  background: url("/roads.svg") right center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to left, #000 10%, transparent 100%);
  mask-image: linear-gradient(to left, #000 10%, transparent 100%);
  pointer-events: none;
}

/* Header */
.top { background: var(--raspberry); color: var(--white); padding: 28px var(--gutter) clamp(56px, 9vh, 104px); }
.bar { display: flex; align-items: center; justify-content: space-between; }
.home img { height: 32px; width: auto; }
.bar nav a { color: inherit; text-decoration: none; opacity: 0.88; }
.bar nav a:hover { opacity: 1; text-decoration: underline; }
.intro { max-width: 1120px; margin: clamp(56px, 10vh, 112px) auto 0; }
h1 { font-size: clamp(3rem, 1.6rem + 5vw, 5.75rem); max-width: 11ch; }
.lede { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem); max-width: 40ch; margin: 24px 0 0; }
.get {
  display: inline-flex;
  align-items: center;
  margin-top: 32px;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--white);
  color: var(--raspberry);
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.get:hover { transform: translateY(-2px); }
.get.ink { background: var(--raspberry); color: var(--white); margin-top: 8px; }
.fine { margin: 12px 0 0; font-size: 0.95rem; color: #FFE4EE; }

/* On this page */
.toc { border-bottom: 1px solid var(--hair); position: sticky; top: 0; z-index: 5; background: var(--paper); }
.toc ol {
  display: flex;
  gap: 4px 22px;
  margin: 0 auto;
  padding: 14px var(--gutter);
  max-width: calc(1120px + 2 * var(--gutter));
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  font-size: 0.95rem;
}
.toc a { color: var(--soft); text-decoration: none; }
.toc a:hover { color: var(--text); text-decoration: underline; }

/* Sections */
main { max-width: calc(1120px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(56px, 9vh, 96px) 0 0; scroll-margin-top: 56px; }
.head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px clamp(24px, 5vw, 80px); align-items: baseline; margin-bottom: 32px; }
.head h2 { font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem); }
.head p { margin: 0; max-width: 48ch; font-size: 1.125rem; }
.links { margin: 14px 0 0; color: var(--soft); font-size: 0.95rem; }
.note { color: var(--soft); font-size: 0.95rem; max-width: 70ch; }
figure { margin: 0; }

.stage { border-radius: 28px; display: grid; place-items: center; padding: clamp(56px, 10vw, 128px) 24px; }
.stage img { width: min(640px, 82%); }

.grounds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ground { border-radius: 22px; padding: 56px 24px 20px; display: flex; flex-direction: column; gap: 48px; }
.ground img { width: min(280px, 88%); margin: 0 auto; }
.ground figcaption { font-size: 0.95rem; }
.ground.white { background: var(--white); color: var(--ink); border: 1px solid rgb(26 26 26 / 0.12); }
.ground.white a { color: var(--raspberry); }
.ground.ink { background: var(--ink); color: var(--white); border: 1px solid rgb(255 255 255 / 0.14); }
.ground.raspberry a, .ground.ink a, .part.raspberry a { color: var(--white); }

.parts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.part { border-radius: 22px; padding: 32px 20px 18px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 28px; min-height: 260px; text-align: center; font-size: 0.95rem; }
.part img { margin: auto; }
.part.print { background: var(--tint); border: 1px solid var(--hair); flex-direction: row; flex-wrap: wrap; justify-content: center; }
.part.print figcaption { flex-basis: 100%; }
.part.print img.rev { background: var(--ink); border-radius: 16px; padding: 6px; margin: auto 0; }
.part.print img:not(.rev) { background: var(--white); border-radius: 16px; padding: 6px; margin: auto 0; }

.sizing { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; }
.clear { border-radius: 22px; padding: 40px 24px 20px; display: flex; flex-direction: column; align-items: center; gap: 28px; font-size: 0.95rem; }
/* The hole is a quarter of the mark's height, and the mark sets the logo's height. */
.clear .box { --h: clamp(56px, 7vw, 96px); padding: calc(var(--h) / 4); border: 1.5px dashed var(--blush); }
.clear .box img { height: var(--h); width: auto; }
.ladder { border-radius: 22px; padding: 40px 24px 20px; background: var(--white); color: var(--ink); border: 1px solid rgb(26 26 26 / 0.12); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; font-size: 0.95rem; }
.steps { display: flex; align-items: flex-end; justify-content: center; gap: clamp(16px, 3vw, 36px); flex-wrap: wrap; }
.steps span { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 0.85rem; color: rgb(26 26 26 / 0.64); }

table { border-collapse: collapse; width: 100%; font-size: 1rem; }
th, td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
thead th { font-size: 0.85rem; color: var(--soft); font-weight: 500; }
.facts { margin-top: 24px; max-width: 760px; }
.facts tbody th { font-weight: 700; width: 34%; }

.swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.swatches li { display: flex; flex-direction: column; gap: 2px; font-size: 0.95rem; }
.chip { display: block; height: 150px; border-radius: 22px; margin-bottom: 12px; border: 1px solid var(--hair); }
.swatches strong { font-size: 1.125rem; }
.swatches code { font: 500 1rem ui-monospace, "SF Mono", Menlo, monospace; }
.rgb, .job { color: var(--soft); }
.copy {
  align-self: flex-start;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.copy:hover { border-color: var(--text); }

.specimen { border-radius: 22px; background: var(--tint); border: 1px solid var(--hair); padding: clamp(28px, 5vw, 56px); }
.specimen .big { font-size: clamp(2.75rem, 1.5rem + 5vw, 6rem); }
.specimen .small { font-size: 1.25rem; max-width: 46ch; margin: 24px 0 0; }

.icons { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; }
.icons figure { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--soft); }
.icons img { border-radius: 22.37%; }
.icons .tiny { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: flex-end; max-width: 180px; }
.icons .tiny figcaption { flex-basis: 100%; text-align: center; }
.icons .tiny img[width="16"], .icons .tiny img[width="32"] { border-radius: 0; }

.donts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.donts li { display: flex; flex-direction: column; gap: 12px; font-size: 0.95rem; }
.demo { position: relative; height: 176px; border-radius: 22px; background: var(--white); border: 1px solid rgb(26 26 26 / 0.12); display: grid; place-items: center; overflow: hidden; }
/* A strike through each wrong example */
.demo::after { content: ""; position: absolute; width: 150%; height: 2px; background: var(--ink); opacity: 0.55; transform: rotate(-24deg); }
.stretch { transform: scaleX(1.5); }
.turn { transform: rotate(-24deg); }
.glow { filter: drop-shadow(0 0 10px rgb(194 24 91 / 0.9)) drop-shadow(0 6px 6px rgb(0 0 0 / 0.35)); }
.retyped { font: 400 clamp(1.75rem, 1rem + 3vw, 3rem)/1 Georgia, "Times New Roman", serif; color: var(--ink); }

.blurbs { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; }
.blurb { border-radius: 22px; background: var(--tint); border: 1px solid var(--hair); padding: 24px; display: flex; flex-direction: column; }
.blurb p { margin: 0; font-size: 1.0625rem; }
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 32px 0 0; }
.figures div { border-top: 2px solid var(--raspberry); padding-top: 10px; }
.figures dt { color: var(--soft); font-size: 0.95rem; }
.figures dd { margin: 0; font-weight: 700; letter-spacing: -0.03em; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1.1; }
.sub { margin-top: 40px; }
.shots { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.shots img { width: 100%; border-radius: 14px; border: 1px solid var(--hair); }

.filegroup { margin-top: 32px; }
.scroll { overflow-x: auto; }
.filegroup table { min-width: 620px; }
.filegroup td:first-child { white-space: nowrap; font-weight: 500; }
.filegroup td:nth-child(2) { white-space: nowrap; color: var(--soft); }

.foot { margin-top: clamp(64px, 10vh, 112px); background: var(--ink); color: var(--white); padding: 32px var(--gutter) 48px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.95rem; max-width: 1120px; margin: 0 auto; }
.foot a { color: inherit; }

@media (max-width: 900px) {
  .head { grid-template-columns: 1fr; }
  .grounds, .sizing, .blurbs { grid-template-columns: 1fr; }
  .parts, .swatches, .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .donts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .filegroup table { min-width: 0; }
  .filegroup thead { display: none; }
  .filegroup tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--hair); }
  .filegroup td { display: block; border: 0; padding: 0; white-space: normal !important; }
  .filegroup td:first-child { overflow-wrap: anywhere; }
  .filegroup td:last-child { color: var(--soft); font-size: 0.95rem; }
}
@media (max-width: 520px) {
  .parts { grid-template-columns: 1fr; }
  .part { min-height: 200px; }
  .chip { height: 96px; }
  .demo { height: 140px; }
}
