/* C Pollard Design :: swatch book
   Everything is a colour chip: a block of paint on top, a white label strip below. */

:root {
  --tomato: #F0553A;
  --ultra: #2D3FE0;
  --mint: #7DD3B0;
  --sand: #EADBC3;
  --black: #141414;
  --white: #FFFFFF;
  --page: #FAF7F1;
  --grot: "Familjen Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --lift: 0 1px 0 rgba(20, 20, 20, .1), 0 14px 26px -16px rgba(20, 20, 20, .45);
  --tabs: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; padding-right: var(--tabs); background: var(--page); color: var(--black); font: 400 1.125rem/1.6 var(--serif); }
h1, h2, h3 { font-family: var(--grot); font-weight: 700; letter-spacing: -.02em; line-height: 1.04; margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.3rem, 8.6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 5.4vw, 2.5rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--ultra); outline-offset: 3px; border-radius: 2px; }
.shell { width: min(1080px, 100% - 32px); margin-inline: auto; }
.cap { font: 600 .8rem/1.25 var(--grot); letter-spacing: .09em; text-transform: uppercase; margin: 0; }

/* paint */
.p-tomato { --paint: var(--tomato); --on: var(--black); }
.p-ultra { --paint: var(--ultra); --on: var(--white); }
.p-mint { --paint: var(--mint); --on: var(--black); }
.p-sand { --paint: var(--sand); --on: var(--black); }
.p-black { --paint: var(--black); --on: var(--white); }

/* ---------- top + tabs ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; background: var(--white); border-radius: 5px; overflow: hidden; box-shadow: var(--lift); min-width: 0; }
.brand__paint { display: flex; height: 16px; }
.brand__paint i { flex: 1; }
.brand__paint i:nth-child(1) { background: var(--tomato); }
.brand__paint i:nth-child(2) { background: var(--ultra); }
.brand__paint i:nth-child(3) { background: var(--mint); }
.brand__paint i:nth-child(4) { background: var(--sand); }
.brand__paint i:nth-child(5) { background: var(--black); }
.brand__name { padding: 7px 12px 8px; font: 700 1.12rem/1.1 var(--grot); letter-spacing: -.01em; }
.brand:hover .brand__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border: 0; border-radius: 5px; cursor: pointer;
  background: var(--black); color: var(--white); font: 600 1rem/1 var(--grot);
}
.menu-toggle__bars { display: grid; gap: 4px; width: 20px; }
.menu-toggle__bars i { display: block; height: 4px; border-radius: 1px; }
.menu-toggle__bars i:nth-child(1) { background: var(--tomato); }
.menu-toggle__bars i:nth-child(2) { background: var(--mint); }
.menu-toggle__bars i:nth-child(3) { background: var(--sand); }
.menu-toggle[aria-expanded="true"] { background: var(--ultra); }
.tabs ul { list-style: none; margin: 0; padding: 0 16px 14px; display: grid; gap: 6px; }
.tabs a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 0 16px;
  background: var(--paint); color: var(--on); border-radius: 5px; text-decoration: none; font: 600 1.05rem/1.1 var(--grot);
}
.tabs a small { font: 600 .74rem/1 var(--grot); letter-spacing: .1em; opacity: .85; }
.tabs a[aria-current="page"] { box-shadow: inset 0 0 0 3px var(--page), inset 0 0 0 6px var(--paint); text-decoration: underline; text-underline-offset: 4px; }
.tabs a:hover { filter: brightness(1.07); text-decoration: underline; text-underline-offset: 4px; }
.js .tabs:not(.is-open) { display: none; }

/* ---------- chips ---------- */
.chip { display: flex; flex-direction: column; min-width: 0; background: var(--white); border-radius: 6px; overflow: hidden; box-shadow: var(--lift); }
.chip__paint { position: relative; background: var(--paint); color: var(--on); padding: 20px 20px 22px; min-height: 130px; }
.chip__paint .cap { opacity: .92; }
.chip__label { padding: 16px 20px 22px; flex: 1; }
.chip__label > :last-child { margin-bottom: 0; }
.chip__label .cap { color: #4d4d4d; margin-bottom: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 20px; border-radius: 5px; border: 2px solid var(--black); cursor: pointer;
  background: var(--black); color: var(--white); font: 600 1.02rem/1 var(--grot); text-decoration: none; transition: background-color .15s, color .15s, transform .15s;
}
.btn::after { content: ""; width: 14px; height: 14px; border-radius: 3px; background: var(--tomato); flex: none; transition: transform .2s; }
.btn:hover { background: var(--white); color: var(--black); }
.btn:hover::after { transform: rotate(45deg); }
.btn--ghost { background: transparent; color: var(--black); }
.btn--ghost::after { background: var(--ultra); }
.btn--ghost:hover { background: var(--black); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }

/* ---------- home: opening with fanned deck ---------- */
.opening { padding: 26px 0 40px; }
.opening__grid { display: grid; gap: 10px; }
.opening__grid > * { min-width: 0; }
.opening .cap { margin-bottom: 16px; }
.opening h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--mint) 62% 92%, transparent 92%); }
.opening__lede { font-size: 1.22rem; line-height: 1.5; max-width: 34em; margin-top: 18px; }
.fan { position: relative; height: 270px; margin-top: 10px; }
.fan__chip {
  position: absolute; left: 50%; bottom: 14px; width: 104px; height: 186px; margin-left: -52px; border-radius: 6px; overflow: hidden;
  background: var(--white); box-shadow: 0 1px 0 rgba(20, 20, 20, .12), 0 10px 18px -10px rgba(20, 20, 20, .55);
  transform-origin: 50% 96%; transform: rotate(calc(var(--turn) * var(--spread, 1.15))); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  display: flex; flex-direction: column;
}
.fan__chip span:first-child { flex: 1; background: var(--paint); }
.fan__chip span:last-child { padding: 7px 9px 9px; font: 600 .68rem/1.25 var(--grot); letter-spacing: .06em; text-transform: uppercase; }
.fan__chip b { display: block; font-size: .84rem; letter-spacing: 0; text-transform: none; }
.fan::after { content: ""; position: absolute; left: 50%; bottom: 18px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--page); box-shadow: inset 0 0 0 2px var(--black); }
.fan:hover .fan__chip { transform: rotate(calc(var(--turn) * (var(--spread, 1.15) + .1))); }

/* ---------- home: service chips ---------- */
.range { padding: 34px 0 46px; }
.range__head { margin-bottom: 22px; max-width: 40em; }
.range__head h2 { margin: 8px 0 10px; }
.range__grid { display: grid; gap: 20px; }
.service { position: relative; transition: transform .2s; }
.service .chip__paint { min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; }
.service__glyph { width: 74px; height: 74px; align-self: flex-end; }
.service h3 { margin-bottom: 8px; }
.service h3 a { text-decoration: none; }
.service h3 a::after { content: ""; position: absolute; inset: 0; }
.service:hover { transform: translateY(-6px) rotate(-.6deg); }
.service:hover h3 a { text-decoration: underline; }
.service__more { font: 600 .98rem/1 var(--grot); display: inline-block; margin-top: 6px; border-bottom: 2px solid var(--black); padding-bottom: 2px; }
.service:focus-within { outline: 3px solid var(--ultra); outline-offset: 3px; }
.service h3 a:focus-visible { outline: none; }

/* ---------- type tester ---------- */
.tester { background: var(--sand); padding: 44px 0 50px; }
.tester__head { max-width: 40em; margin-bottom: 22px; }
.tester__head h2 { margin: 8px 0 10px; }
.tester__panel { display: grid; gap: 14px; }
.slider { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; }
.slider label { font: 600 1rem/1.2 var(--grot); }
.slider output { font: 600 1rem/1.2 var(--grot); font-variant-numeric: tabular-nums; text-align: right; }
.slider input { grid-column: 1 / -1; width: 100%; height: 34px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.slider input::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .45); }
.slider input::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .45); }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 30px; margin-top: -12px; border-radius: 4px; border: 0; background: var(--white); box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.slider input::-moz-range-thumb { width: 22px; height: 30px; border-radius: 4px; border: 0; background: var(--white); box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.slider input:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }
.tester__faces { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tester__faces button { min-height: 46px; padding: 0 14px; border-radius: 5px; border: 2px solid var(--white); background: transparent; color: var(--white); font: 600 .98rem/1 var(--grot); cursor: pointer; }
.tester__faces button[aria-pressed="true"] { background: var(--white); color: var(--ultra); }
.tester__faces button:hover { background: rgba(255, 255, 255, .2); }
.tester__faces button[aria-pressed="true"]:hover { background: var(--white); }
.tester__faces button:focus-visible { outline-color: var(--white); }
.tester__faces .is-reset { border-style: dashed; margin-left: auto; }
.tester__sample {
  min-height: 3.2em; padding: 8px 6px; margin: 0 -6px 14px; border-radius: 4px; overflow-wrap: anywhere; cursor: text;
  font-family: var(--grot); font-weight: 700; font-size: 44px; line-height: 1.15; letter-spacing: 0;
  outline: 2px dashed transparent; transition: outline-color .15s;
}
.tester__sample:hover { outline-color: rgba(20, 20, 20, .25); }
.tester__sample:focus-visible { outline: 2px dashed var(--ultra); outline-offset: 0; }

/* ---------- home: how a job runs ---------- */
.run { padding: 46px 0 30px; }
.run h2 { margin: 8px 0 22px; }
.run__strip { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.run__strip .chip { flex-direction: row; }
.run__strip .chip__paint { flex: 0 0 84px; min-height: 0; padding: 14px; font: 700 1.7rem/1 var(--grot); }
.run__strip .chip__label { padding: 14px 16px 16px; }
.run__strip h3 { font-size: 1.2rem; margin-bottom: 4px; }
.run__strip p { margin: 0; font-size: 1.05rem; line-height: 1.45; }

/* ---------- closing chip ---------- */
.closing { padding: 30px 0 60px; }
.closing .chip__paint { padding: 34px 22px 36px; }
.closing h2 { max-width: 16em; margin: 10px 0 14px; }
.closing p { max-width: 36em; }
.closing .btn { border-color: var(--on); background: var(--on); color: var(--paint); }
.closing .btn::after { background: var(--mint); }
.closing .btn:hover { background: transparent; color: var(--on); }
.closing .chip__label { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: baseline; }
.closing .chip__label .cap { margin: 0; }
.closing .chip__label a { font: 600 1rem/1.3 var(--grot); }

/* ---------- inner pages ---------- */
.masthead { padding: 10px 0 30px; }
.masthead .chip__paint { padding: 30px 22px 34px; min-height: 230px; display: flex; flex-direction: column; justify-content: flex-end; }
.masthead .cap { margin-bottom: 14px; }
.masthead h1 { font-size: clamp(2.2rem, 8vw, 4rem); max-width: 14em; }
.masthead .chip__label { padding: 18px 22px 24px; }
.masthead__intro { font-size: 1.22rem; line-height: 1.5; max-width: 38em; margin: 0; }
.spread { padding: 10px 0 30px; display: grid; gap: 24px; }
.spread > * { min-width: 0; }
.spec .chip__paint { min-height: 0; padding: 12px 20px; }
.spec .chip__label { padding: 22px 20px 26px; }
.spec h2 { margin-bottom: 14px; }
.spec p { max-width: 38em; }
.shade { min-width: 0; background: var(--white); border-radius: 6px; overflow: hidden; box-shadow: var(--lift); }
.shade ol { list-style: none; margin: 0; padding: 0; counter-reset: tone; }
.shade li:nth-child(1) { --tone: var(--base); }
.shade li:nth-child(2) { --tone: color-mix(in srgb, var(--base) 72%, white); }
.shade li:nth-child(3) { --tone: color-mix(in srgb, var(--base) 46%, white); }
.shade li:nth-child(4) { --tone: color-mix(in srgb, var(--base) 24%, white); }
.shade--deep li:nth-child(-n+2) { --tone-ink: var(--white); }
.shade__title { padding: 16px 18px 14px; }
.shade__title h2 { font-size: 1.5rem; margin-top: 6px; }
.shade li { counter-increment: tone; display: grid; grid-template-columns: 76px minmax(0, 1fr); min-width: 0; }
.shade li::before { content: "0" counter(tone); background: var(--tone); color: var(--tone-ink, var(--black)); font: 700 1.3rem/1 var(--grot); padding: 14px 12px; }
.shade li > div { padding: 12px 16px 16px; border-top: 1px solid rgba(20, 20, 20, .1); }
.shade li strong { display: block; font: 700 1.08rem/1.25 var(--grot); margin-bottom: 2px; }
.shade li span { display: block; font-size: 1.05rem; line-height: 1.45; }
.duo { padding: 0 0 34px; display: grid; gap: 24px; }
.duo > * { min-width: 0; }
.duo .chip__paint { min-height: 0; padding: 18px 20px; }
.duo h2 { font-size: 1.55rem; margin-top: 6px; }
.dots { list-style: none; margin: 0; padding: 0; }
.dots li { position: relative; padding: 0 0 10px 30px; line-height: 1.45; }
.dots li::before { content: ""; position: absolute; left: 0; top: .32em; width: 16px; height: 16px; border-radius: 3px; background: var(--dot, var(--tomato)); box-shadow: inset 0 0 0 1px rgba(20, 20, 20, .25); }
.dots li:nth-child(5n+2)::before { background: var(--ultra); }
.dots li:nth-child(5n+3)::before { background: var(--mint); }
.dots li:nth-child(5n+4)::before { background: var(--sand); }
.dots li:nth-child(5n+5)::before { background: var(--black); }

/* ---------- contact ---------- */
.reach { padding: 0 0 50px; display: grid; gap: 24px; }
.reach > * { min-width: 0; }
.reach .chip__paint { min-height: 0; padding: 18px 20px; }
.reach h2 { font-size: 1.55rem; margin-top: 6px; }
.row { margin: 0 0 16px; }
.row label { display: block; font: 600 1rem/1.2 var(--grot); margin-bottom: 6px; }
.row input, .row select, .row textarea {
  display: block; width: 100%; min-height: 50px; padding: 10px 12px; border: 2px solid var(--black); border-radius: 5px; background: var(--page); color: var(--black);
  font: 400 1.1rem/1.4 var(--serif);
}
.row textarea { min-height: 160px; resize: vertical; }
.row input:focus-visible, .row select:focus-visible, .row textarea:focus-visible { outline: 3px solid var(--ultra); outline-offset: 1px; background: var(--white); }
.row.has-problem input, .row.has-problem textarea { border-color: #c2331b; box-shadow: inset 6px 0 0 var(--tomato); }
.why { display: block; margin-top: 6px; font: 600 .98rem/1.3 var(--grot); color: #a52a15; }
.after-btn { margin: 14px 0 0; font-size: 1.02rem; line-height: 1.45; max-width: 34em; }
.form-flag { margin: 14px 0 0; padding: 12px 14px; border-radius: 5px; background: var(--mint); font: 600 1rem/1.4 var(--grot); }
.facts { margin: 0; }
.facts > div { padding: 10px 0; border-bottom: 1px solid rgba(20, 20, 20, .14); }
.facts > div:first-child { padding-top: 0; }
.facts dt { font: 600 .8rem/1.25 var(--grot); letter-spacing: .09em; text-transform: uppercase; color: #4d4d4d; }
.facts dd { margin: 2px 0 0; font-size: 1.12rem; overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.colophon { background: var(--white); margin-top: 20px; }
.colophon__edge { display: flex; height: 14px; }
.colophon__edge i { flex: 1; }
.colophon__edge i:nth-child(1) { background: var(--tomato); }
.colophon__edge i:nth-child(2) { background: var(--ultra); }
.colophon__edge i:nth-child(3) { background: var(--mint); }
.colophon__edge i:nth-child(4) { background: var(--sand); }
.colophon__edge i:nth-child(5) { background: var(--black); }
.colophon__grid { display: grid; gap: 28px; padding: 34px 0 30px; }
.colophon__grid > * { min-width: 0; }
.colophon__name { font: 700 1.6rem/1.05 var(--grot); letter-spacing: -.02em; margin: 0 0 8px; }
.colophon h2 { font: 600 .8rem/1.25 var(--grot); letter-spacing: .09em; text-transform: uppercase; color: #4d4d4d; margin-bottom: 10px; }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font: 600 1.02rem/1.2 var(--grot); text-decoration: none; }
.colophon li a::before { content: ""; width: 14px; height: 14px; border-radius: 3px; background: var(--paint); box-shadow: inset 0 0 0 1px rgba(20, 20, 20, .25); flex: none; }
.colophon li a:hover, .colophon li a[aria-current="page"] { text-decoration: underline; }
.colophon dl { margin: 0; }
.colophon dl > div { padding: 7px 0; border-top: 1px solid rgba(20, 20, 20, .12); }
.colophon dt { font: 600 .8rem/1.25 var(--grot); letter-spacing: .09em; text-transform: uppercase; color: #4d4d4d; }
.colophon dd { margin: 1px 0 0; overflow-wrap: anywhere; }

/* ---------- wider ---------- */
@media (min-width: 700px) {
  .shell { width: min(1080px, 100% - 64px); }
  .top { padding: 20px 32px; }
  .tabs ul { padding: 0 32px 16px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .tabs a { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; }
  .range__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .run__strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tester__body { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); flex-direction: row; }
  .tester__body .chip__label { padding: 24px 28px; }
  .duo, .reach { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .masthead .chip__paint { padding: 44px 36px 40px; min-height: 280px; }
  .masthead .chip__label { padding: 22px 36px 28px; }
  .closing .chip__paint { padding: 46px 36px; }
  .closing .chip__label { padding: 18px 36px 22px; }
  .colophon__grid { grid-template-columns: 1.1fr .8fr 1.5fr; gap: 40px; }
  .fan { height: 330px; --spread: 1.3; }
  .fan__chip { width: 132px; height: 236px; margin-left: -66px; }
  .fan__chip span:last-child { font-size: .74rem; padding: 9px 11px 11px; }
}
@media (min-width: 1024px) {
  :root { --tabs: 176px; }
  .menu-toggle { display: none; }
  .top { padding: 26px 40px 10px; }
  .brand__name { font-size: 1.3rem; padding: 9px 16px 10px; }
  .tabs, .js .tabs:not(.is-open) { display: block; position: fixed; right: 0; top: 50%; transform: translateY(-50%); width: var(--tabs); z-index: 30; }
  .tabs ul { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding: 0; }
  .tabs a {
    flex-direction: column; align-items: flex-start; justify-content: center; width: 154px; min-height: 60px; padding: 0 12px 0 16px;
    border-radius: 9px 0 0 9px; box-shadow: -4px 6px 12px -6px rgba(20, 20, 20, .5); transition: width .2s;
  }
  .tabs a:hover, .tabs a:focus-visible { width: 176px; filter: none; }
  .tabs a[aria-current="page"] { width: 176px; box-shadow: -4px 6px 12px -6px rgba(20, 20, 20, .5), inset 8px 0 0 var(--page); padding-left: 22px; }
  .opening { padding: 40px 0 60px; }
  .opening__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 20px; }
  .fan { height: 400px; margin: 0; --spread: 1.3; }
  .fan__chip { width: 132px; height: 250px; margin-left: -66px; bottom: 40px; }
  .tester, .colophon { margin-right: calc(var(--tabs) * -1); padding-right: var(--tabs); }
  .fan::after { bottom: 46px; }
  .run__strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .run__strip .chip { flex-direction: column; }
  .run__strip .chip__paint { flex: none; min-height: 96px; }
  .spread { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; gap: 30px; }
  .spread--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
  .spread--flip .spec { order: 2; }
  .spec .chip__label { padding: 30px 34px 34px; }
  .shade--wide ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shade--wide li { grid-template-columns: minmax(0, 1fr); grid-template-rows: 70px auto; }
  .shade--wide li > div { border-top: 0; border-left: 1px solid rgba(20, 20, 20, .1); }
  .reach { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
