/* flash.bodmoor.nl — dark theme taken from the Gumroad landing pages' own dark
   palette (--paper #181614, --ink #fff7ed, --teal, --accent) and the cards'
   fonts (Poppins headings, Source Sans 3 body). Card previews keep square
   corners, like the printed cards. */

@font-face {
  font-family: "Poppins"; font-weight: 700; font-display: swap;
  src: url("/fonts/Poppins-Bold.ttf") format("truetype");
}
@font-face {
  font-family: "Source Sans 3"; font-weight: 600; font-display: swap;
  src: url("/fonts/SourceSans3-Semibold.ttf") format("truetype");
}

:root {
  --paper: #181614; --paper-2: #221f1c; --ink: #fff7ed; --dim: #c8beb2; --line: #3a352f;
  --teal: #1a8a80; --accent: #e08a4e;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -14px rgba(0, 0, 0, .8);
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--teal); text-underline-offset: 3px; }
h1, h2, h3, .brand, .buy, nav { font-family: "Poppins", system-ui, sans-serif; }
img { display: block; }

/* ---- layout: fixed menu on the left ---- */
.shell { display: flex; min-height: 100vh; }
.side {
  position: fixed; inset: 0 auto 0 0; width: 248px; overflow-y: auto;
  background: var(--paper); border-right: 1px solid var(--line); padding: 28px 20px;
  display: flex; flex-direction: column; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.brand img { width: 30px; height: 30px; }
.brand .bt { display: flex; flex-direction: column; line-height: 1.15; }
.brand small { display: block; color: var(--dim); font-weight: 400; font-size: .72rem; letter-spacing: .06em; font-family: "Source Sans 3", sans-serif; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px;
  color: var(--dim); text-decoration: none; font-size: .92rem; border-left: 3px solid transparent;
}
.side nav a:hover { color: var(--ink); background: var(--paper-2); }
.side nav a.on { color: var(--ink); background: var(--paper-2); border-left-color: var(--accent); }
.side nav a .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--dot, var(--teal)); }
.side .foot { margin-top: auto; color: var(--dim); font-size: .78rem; line-height: 1.5; }
.side .foot a { color: var(--dim); }

main { margin-left: 248px; flex: 1; padding: 52px 56px 72px; min-width: 0; }
.wrap { max-width: 920px; margin: 0 auto; }

/* ---- overview ---- */
.hero h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 14px; max-width: 22ch; }
.hero p.lead { color: var(--dim); font-size: 1.08rem; max-width: 62ch; margin: 0 0 14px; }
.contact { color: var(--dim); font-size: .95rem; margin: 0 0 34px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.pcard {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column; color: var(--ink);
}
.pcard:hover { border-color: var(--pc, var(--teal)); }
/* cover image keeps the card's 148:105 ratio; width/height attrs + aspect-ratio
   reserve the box, so no layout shift while the image loads */
.pcard .cover { display: block; }
.pcard .cover img { width: 100%; height: auto; aspect-ratio: 148 / 105; object-fit: cover; border-radius: 0; background: #000; }
.pcard .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard h2 { font-size: 1rem; margin: 0; line-height: 1.35; }
.pcard h2 a { color: var(--ink); text-decoration: none; }
.pcard h2 a:hover { text-decoration: underline; }
.pcard .meta { color: var(--dim); font-size: .85rem; }
.pcard .go { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; font-size: .88rem; gap: 8px; }
.pcard .go .buy { color: var(--pc, var(--accent)); font-family: "Poppins", sans-serif; font-weight: 700; text-decoration: none; }
.pcard .go .buy:hover { text-decoration: underline; }

/* ---- product page ---- */
.crumbs { font-size: .85rem; color: var(--dim); margin-bottom: 18px; }
.crumbs a { color: var(--dim); }
h1.ptitle { font-size: 1.9rem; line-height: 1.2; margin: 0 0 10px; max-width: 24ch; }
.byline { color: var(--dim); margin: 0 0 26px; }
.buyrow { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 30px; }
.buy {
  display: inline-block; background: var(--pc, var(--accent)); color: #181614; font-weight: 700;
  padding: 12px 22px; border-radius: 10px; text-decoration: none; font-size: 1rem;
}
.buy:hover { filter: brightness(1.1); }
.buy.alt {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line); font-weight: 600;
}
.buy.alt:hover { border-color: var(--ink); filter: none; }
.taxnote { margin: -24px 0 28px; font-size: .8rem; color: var(--dim); }

/* share row: plain intent links with inline SVG icons, no third-party JS
   (keeps the CSP closed and avoids platform tracking) */
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.share .share-label { color: var(--dim); font-size: .85rem; margin-right: 4px; }
.sbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper-2); color: var(--dim);
  cursor: pointer; text-decoration: none; font: inherit;
}
.sbtn:hover { color: var(--ink); border-color: var(--ink); }
.sbtn.copied { color: var(--teal); border-color: var(--teal); }
.hero .share { margin: 0 0 16px; }
.lead { font-size: 1.1rem; color: var(--ink); max-width: 66ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0 36px; }
.chips li {
  font-size: .82rem; color: var(--dim); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px; background: var(--paper-2);
}

/* flip cards, like the Gumroad landing pages: click to turn front/back over */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; margin: 0 0 36px; }
.gallery figure { margin: 0; }
.flip {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer;
  perspective: 1600px; color: inherit; font: inherit; text-align: left;
}
.flip .inner {
  position: relative; display: block; width: 100%; aspect-ratio: 148 / 105;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1); transform-style: preserve-3d;
}
.flip[aria-pressed="true"] .inner { transform: rotateY(180deg); }
.flip img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.flip img.back { transform: rotateY(180deg); }
.flip:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.flip .hint { display: block; font-size: .78rem; color: var(--dim); margin-top: 8px; }
.gallery figcaption { color: var(--dim); font-size: .8rem; padding-top: 6px; }

.note { border-top: 1px solid var(--line); padding-top: 20px; color: var(--dim); font-size: .9rem; max-width: 70ch; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; font-size: .9rem; }

footer.site { margin-left: 248px; border-top: 1px solid var(--line); padding: 22px 56px; color: var(--dim); font-size: .82rem; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 880px) {
  .shell { display: block; }
  .side { position: static; width: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 16px 20px; }
  .side nav { flex-direction: row; overflow-x: auto; gap: 6px; }
  .side nav a { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; }
  .side nav a.on { border-bottom-color: var(--accent); border-radius: 8px 8px 0 0; }
  .side .foot { display: none; }
  main { margin-left: 0; padding: 32px 20px 56px; }
  footer.site { margin-left: 0; padding: 18px 20px; }
  .gallery { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.6rem; }
  .flip .inner, .flip[aria-pressed="true"] .inner { transition: none; }
}
