/*
 * The blog. Same shop as the home page: cream canvas, ink, lime, toon
 * lettering with the lime-then-ink offset, Archivo stamps, Caveat hands.
 * It is a reading room, not a scroll world. No motion, no pinning.
 *
 * Cyrillic: Luckiest Guy, Archivo and Figtree have no Cyrillic glyphs, so
 * display type falls to Nunito 900 and text is set in Onest throughout.
 */
:root {
  --paper: #FFFDF6;
  --canvas: #EDE6D6;
  --surface: #F6F0E6;
  --ink: #1C1914;
  --soft: #5C574E;
  --lime: #C6FF2E;
  --toon: "Luckiest Guy", "Nunito", "Archivo", system-ui, sans-serif;
  --display: "Archivo", "Onest", system-ui, sans-serif;
  --text: "Onest", "Figtree", system-ui, sans-serif;
  --hand: "Caveat", ui-rounded, cursive;
  --gutter: clamp(1rem, 4.5vw, 2rem);
  --measure: 42rem;
  --shadow: 5px 6px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  z-index: 10;
  background: var(--lime);
  border: 2px solid var(--ink);
  padding: 0.4rem 0.8rem;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

/* ----------------------------------------------------------------- bar -- */

.bar { border-bottom: 2px solid var(--ink); background: var(--surface); }
.bar__in, .foot__in, main {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.bar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
}
.bar__brand {
  font-family: var(--display);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.bar__nav { display: flex; align-items: center; gap: 1.1rem; }
.bar__nav > a:not(.btn) {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.bar__nav > a[aria-current="page"] { border-bottom-color: var(--lime); }
.bar__nav > a:not(.btn):hover { border-bottom-color: var(--ink); }

.btn {
  display: inline-block;
  background: var(--lime);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 4px 5px 0 var(--ink);
  padding: 0.7rem 1.1rem;
  font-family: var(--display);
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.btn--sm { padding: 0.35rem 0.7rem; font-size: 0.75rem; box-shadow: 3px 4px 0 var(--ink); }

/* ---------------------------------------------------------------- type -- */

.toon {
  font-family: var(--toon);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.98;
  margin: 0;
  text-shadow: 0.07em 0.08em 0 var(--lime), 0.11em 0.12em 0 var(--ink);
  text-wrap: balance;
}
.toon--xl { font-size: clamp(3rem, 12vw, 5.5rem); }
.toon--lg { font-size: clamp(2.1rem, 7.5vw, 3.4rem); }
.toon--md { font-size: clamp(1.7rem, 5vw, 2.2rem); }

.stamp {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hand {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.15;
  margin: 0.6rem 0 0;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--soft); }
.crumbs a { text-decoration: none; border-bottom: 2px solid color-mix(in oklab, var(--ink) 25%, transparent); }
.crumbs a:hover { border-bottom-color: var(--ink); }

/* ---------------------------------------------------------------- post -- */

main { padding-block: clamp(2rem, 6vw, 3.5rem) 1rem; }

.post__head { margin-bottom: 2rem; }
.post__meta {
  margin: 1.4rem 0 0;
  color: var(--soft);
  font-size: 0.9rem;
}

.toc {
  border: 2px dashed var(--ink);
  background: color-mix(in oklab, var(--paper) 70%, transparent);
  padding: 0.9rem 1.1rem 1rem;
  margin: 0 0 2.2rem;
}
.toc__title {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.toc ol { margin: 0; padding-left: 1.3rem; }
.toc li { margin: 0.15rem 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.post__body > * { margin: 0 0 1.1em; }
.post__body h2, .post__body h3 {
  font-family: var(--text);
  font-weight: 700;
  line-height: 1.25;
  margin: 2.3em 0 0.7em;
  scroll-margin-top: 1.5rem;
  text-wrap: balance;
}
.post__body h2 { font-size: 1.55rem; }
.post__body h3 { font-size: 1.2rem; }
.post__body h2 span {
  background: linear-gradient(transparent 60%, var(--lime) 60%, var(--lime) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: 0.1em;
}
.post__body a {
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.2em;
}
.post__body a:hover { background: var(--lime); }
.post__body strong { font-weight: 700; }
.post__body ul, .post__body ol { padding-left: 1.4rem; }
.post__body li { margin: 0.35em 0; padding-left: 0.2rem; }
.post__body ol li::marker { font-family: var(--display); font-weight: 900; }
.post__body blockquote {
  margin: 0 0 2rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  padding: 1rem 1.2rem;
}
.post__body blockquote > :last-child { margin-bottom: 0; }
.post__body blockquote p { margin: 0 0 0.8em; }
.post__body img { display: block; border: 2px solid var(--ink); }
.post__body code {
  font-size: 0.9em;
  background: var(--surface);
  border: 1px solid color-mix(in oklab, var(--ink) 20%, transparent);
  padding: 0.05em 0.3em;
}

/* ----------------------------------------------------------------- cta -- */

.cta {
  position: relative;
  margin: 3.5rem 0 2rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  padding: 1.3rem 1.3rem 1.5rem;
}
/* He stands on the floor of the ticket, beside the button, clear of the prices. */
.cta__mascot {
  position: absolute;
  right: 1rem;
  bottom: 2px;
  width: 4rem;
  pointer-events: none;
}
.cta .toon { margin: 0.4rem 0 1.1rem; }
.skus {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sku {
  display: flex;
  flex-direction: column;
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 0.7rem 0.75rem 0.8rem;
}
.sku--start { background: color-mix(in oklab, var(--lime) 30%, var(--paper)); }
.sku__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}
.sku__price {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.65rem;
  line-height: 1.1;
  margin-top: 0.25rem;
}
.sku__cadence { font-weight: 600; font-size: 0.85rem; }
.sku__line { font-size: 0.85rem; line-height: 1.35; margin-top: 0.45rem; color: var(--soft); }
.cta .hand { margin: 1rem 0 0.9rem; max-width: calc(100% - 5rem); }

/* ---------------------------------------------------------------- list -- */

.list__head {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "crumbs crumbs" "mascot title" "mascot hand";
  column-gap: clamp(0.75rem, 3vw, 1.5rem);
  align-items: end;
  margin-bottom: 2.2rem;
}
.list__head .crumbs { grid-area: crumbs; }
.list__head .toon { grid-area: title; }
.list__head .hand { grid-area: hand; align-self: start; }
.list__mascot { grid-area: mascot; width: clamp(4.5rem, 16vw, 7rem); align-self: center; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.card article {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  padding: 1rem 1.2rem 1.15rem;
}
.card:hover article { transform: translate(-1px, -1px); box-shadow: 6px 7px 0 var(--ink); }
.card__meta { margin: 0; color: var(--soft); font-size: 0.85rem; }
.card__title {
  margin: 0.25rem 0 0.35rem;
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 700;
}
.card__title a { text-decoration: none; }
/* The whole card is the link, the heading stays the accessible name. */
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card:hover .card__title a { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 0.2em; }
.card__desc { margin: 0; }
.empty { font-family: var(--hand); font-size: 1.6rem; }

.more { margin-top: 3rem; }
.more__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
}
.more .card__title { font-size: 1.15rem; }

/* ---------------------------------------------------------------- foot -- */

.foot { border-top: 2px solid var(--ink); background: var(--surface); margin-top: 3rem; }
.foot__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  padding-block: 1.3rem 1.6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.foot__brand { margin: 0; }
.foot__links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; list-style: none; margin: 0; padding: 0; }
.foot__links a { text-decoration: none; border-bottom: 2px solid color-mix(in oklab, var(--ink) 25%, transparent); }
.foot__links a:hover { border-bottom-color: var(--ink); }

/* --------------------------------------------------------------- phone -- */

@media (max-width: 640px) {
  body { font-size: 1.03rem; }
  .bar__brand { font-size: 0.7rem; letter-spacing: 0.12em; }
  .bar__nav { gap: 0.8rem; }
  .skus { grid-template-columns: 1fr; }
  .sku { display: grid; grid-template-columns: auto 1fr; column-gap: 0.8rem; align-items: baseline; }
  .sku__name { grid-column: 1 / -1; }
  .sku__price { margin: 0; }
  .sku__line { grid-column: 1 / -1; margin-top: 0.25rem; }
  .cta__mascot { width: 3.4rem; right: 0.7rem; }
  .cta .hand { max-width: calc(100% - 4rem); }
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn:active, .card:hover article { transform: none; }
}
