/* Chromaq support site: a paper swatch book in lilac, orchid, blush and indigo. */
:root {
  --lilac: #C68EFD;
  --orchid: #E9A5F1;
  --blush: #FED2E2;
  --indigo: #8F87F1;
  --ink: #2B2848;
  --paper: #FFF7FA;
  --hole: 7px;
  --heading: "Avenir Next", "Avenir", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: "Avenir Next", "Avenir", system-ui, -apple-system, "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); }
body { margin: 0; font: 400 1.02rem/1.6 var(--body); }
a { color: var(--ink); text-decoration-color: var(--indigo); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--blush); padding: .5rem 1rem; border-radius: 10px; }

h1, h2, h3, .chipcode {
  font-family: var(--heading); font-weight: 700; text-transform: uppercase; letter-spacing: .16em;
}
h1 { font-size: clamp(1.9rem, 8vw, 3.1rem); margin: .2rem 0 .4rem; letter-spacing: .22em; }
h2 { font-size: 1.05rem; margin: 0 0 .6rem; }
h3 { font-size: .9rem; margin: 1rem 0 .3rem; letter-spacing: .12em; }

/* Top rail: the rivet the deck hangs from */
.rail { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 1.1rem; border-bottom: 2px dashed var(--orchid); flex-wrap: wrap; }
.rail .mark { display: flex; align-items: center; gap: .6rem; font-family: var(--heading); font-weight: 700; letter-spacing: .3em; text-decoration: none; }
.rail nav a { font-family: var(--heading); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-left: .9rem; }

main { max-width: 980px; margin: 0 auto; padding: 1.2rem 1.1rem 3rem; }

/* The hero is a fanned set of strips drawn in SVG */
.cover { display: grid; gap: 1.2rem; align-items: center; padding: 1.4rem 0 1rem; }
.cover svg { width: 100%; max-width: 300px; justify-self: center; }
.cover p.lede { font-size: 1.1rem; max-width: 34rem; }
.chipcode { font-size: .72rem; letter-spacing: .24em; display: inline-block; background: var(--ink); color: var(--paper); padding: .2rem .55rem; border-radius: 6px; }

/* Swatch strip card: radius 10 with a punch hole */
.strip { position: relative; border-radius: 10px; padding: 1.3rem 1.2rem 1.2rem 2.6rem; margin: 1rem 0;
  border: 1px solid rgba(43, 40, 72, .14); }
.strip::before { content: ""; position: absolute; left: 1rem; top: 1.45rem; width: calc(var(--hole) * 2); height: calc(var(--hole) * 2);
  border-radius: 50%; background: var(--paper); box-shadow: inset 0 1px 2px rgba(43, 40, 72, .35); }
.strip.lilac { background: var(--lilac); }
.strip.orchid { background: var(--orchid); }
.strip.blush { background: var(--blush); }
.strip.indigo { background: var(--indigo); }
.strip.paper { background: #fff; }
.strip p, .strip li { max-width: 60ch; }
.strip ul { padding-left: 1.1rem; margin: .3rem 0; }

/* Five tool strips side by side on wide screens */
.deck { display: grid; gap: .2rem; }
.deck .strip { margin: .5rem 0; }
.deck .strip h3 { margin-top: .6rem; }

details { background: rgba(255, 255, 255, .55); border-radius: 10px; padding: .7rem .9rem; margin: .5rem 0; }
summary { cursor: pointer; font-weight: 700; }

.ticket { display: grid; gap: .6rem; }
.ticket .mail { font-family: var(--heading); font-weight: 700; font-size: 1.1rem; word-break: break-all; }

footer { border-top: 2px dashed var(--orchid); padding: 1.2rem 1.1rem 2rem; text-align: center; font-size: .88rem; }

/* Privacy: a sample-card ledger */
.ledger { display: grid; gap: .8rem; }
.ledger .row { display: grid; gap: .3rem; }
.tag { font-family: var(--heading); font-weight: 700; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; }
table { width: 100%; border-collapse: collapse; background: rgba(255, 255, 255, .6); border-radius: 10px; overflow: hidden; }
th, td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid rgba(43, 40, 72, .12); vertical-align: top; font-size: .95rem; }
th { font-family: var(--heading); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }

@media (min-width: 720px) {
  .cover { grid-template-columns: 1.3fr 1fr; }
  .deck { grid-template-columns: repeat(2, 1fr); gap: 0 1rem; }
  .deck .strip.wide { grid-column: 1 / -1; }
  .ticket { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .cover .fan g { transform-origin: 150px 250px; animation: fan 1.1s ease-out both; }
  @keyframes fan { from { transform: rotate(0deg); } }
}
