/* Christmas by Colour — clean, Pantone-inspired, no web fonts */

:root {
  --ink: #000;
  --paper: #fff;
  --muted: #5f5f5f;
  --rule: #dadada;
  --wash: #f3f3f3;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gap: clamp(1.25rem, 4vw, 3.5rem);
  --pad: clamp(1.25rem, 5vw, 3rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--ink); color: var(--paper);
  padding: .5rem 1rem; z-index: 10;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: max(var(--pad), env(safe-area-inset-left, 0px)) max(var(--pad), env(safe-area-inset-right, 0px));
}

/* Header ------------------------------------------------------------ */
.site-header {
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 2rem;
  padding-block: 1.5rem 1.25rem;
  border-bottom: 2px solid var(--ink);
}
.logo {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.logo a { text-decoration: none; }

.site-nav ul {
  display: flex; flex-wrap: wrap;
  margin: 0; padding: 0; list-style: none;
}
.site-nav li + li::before {
  content: "/";
  color: var(--muted);
  padding-inline: .5rem;
}
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }
.site-nav a[aria-current="page"] { font-weight: 700; }

/* Type ---------------------------------------------------------------- */
h1, h2, h3 { margin: 0 0 .75rem; line-height: 1.1; letter-spacing: -.015em; }
h1 {
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 700;
  max-width: 14ch;
}
h2 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); }
h3 { font-size: 1rem; }
p { margin: 0 0 1rem; }

.meta, .muted { color: var(--muted); }
.meta { font-size: .875rem; margin-bottom: 1.25rem; }
.small { font-size: .875rem; }

.prose { max-width: 36rem; }
.prose ul { padding-left: 1.1rem; }
.prose blockquote {
  margin: 0 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--ink);
}
.prose blockquote footer { color: var(--muted); font-size: .875rem; }
.prose blockquote footer::before { content: "– "; }

ul.plain { list-style: none; padding: 0; margin: 0 0 1rem; }
ul.plain.small { columns: 2; column-gap: 1.5rem; }

/* Buttons ------------------------------------------------------------- */
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  padding: .8rem 1.3rem;
  border: 2px solid var(--ink);
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn--small { padding: .45rem .9rem; font-size: .875rem; }

.actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}
.link { font-weight: 700; }

/* Home ------------------------------------------------------------------ */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 26rem) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
  padding-block: clamp(2rem, 6vw, 4.5rem);
}
.intro__text p { max-width: 34rem; }

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: clamp(.75rem, 1.5vw, 1.25rem);
  margin: 0; padding: 0; list-style: none;
}

/* Pantone-style chip: colour on top, white label strip below */
.chip {
  display: block;
  height: 100%;
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--rule);
  transition: border-color .15s;
}
.chip:hover { border-color: var(--ink); }
.chip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--wash);
}
.chip__label { display: block; padding: .6rem .7rem .8rem; line-height: 1.3; }
.chip__name { display: block; font-weight: 700; font-size: .9375rem; }
.chip__by { display: block; color: var(--muted); font-size: .8125rem; }

/* Inner pages ---------------------------------------------------------- */
.page-head { padding-block: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-head h1 { max-width: 18ch; }
.page-head p { max-width: 38rem; font-size: 1.125rem; margin: 0; }

.entry {
  display: grid;
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  gap: var(--gap);
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--rule);
  scroll-margin-top: 1rem;
}
.entry__media { display: grid; gap: 1rem; align-content: start; }
.entry__media img { width: 100%; background: var(--wash); }

.sizes { list-style: none; padding: 0; margin: 0; }
.sizes li { border-top: 1px solid var(--rule); }
.sizes li:last-child { border-bottom: 1px solid var(--rule); }
.sizes a {
  display: flex; justify-content: space-between;
  padding: .6rem 0;
  text-decoration: none;
}
.sizes a::after { content: "Download"; color: var(--muted); font-size: .875rem; }
.sizes a:hover::after { color: var(--ink); text-decoration: underline; }

/* Shop */
.packs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-block: 1.5rem; }
.options { list-style: none; padding: 0; margin: 1.5rem 0 .75rem; }
.options li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: .6rem 0;
  border-top: 1px solid var(--rule);
}
.options li:last-child { border-bottom: 1px solid var(--rule); }
.price { font-weight: 700; font-variant-numeric: tabular-nums; }
.status { font-weight: 700; font-size: 1.125rem; margin-top: 1.5rem; }

/* Footer --------------------------------------------------------------- */
.site-footer { margin-top: clamp(2rem, 6vw, 4rem); }
.site-footer__inner {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: .5rem 2rem;
  padding-block: 1.5rem 2rem;
  border-top: 2px solid var(--ink);
  font-size: .875rem;
}
.site-footer p { margin: 0; }

/* Responsive ------------------------------------------------------------ */
@media (max-width: 52rem) {
  .intro, .entry { grid-template-columns: 1fr; }
  .entry__media { order: -1; }
  .swatches { grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); }
}
@media (max-width: 30rem) {
  .site-header__inner { flex-direction: column; gap: .35rem; }
  .swatches { grid-template-columns: 1fr 1fr; }
  .options li { grid-template-columns: 1fr auto; }
  .options .btn { grid-column: 1 / -1; text-align: center; }
  .packs { grid-template-columns: 1fr; gap: .5rem; }
}

@media print {
  .site-nav, .skip-link, .btn { display: none; }
}
