/* Shared look for all 3 prototypes. */

:root {
  --bg: #FBF7F0;
  --ink: #1F2A37;
  --muted: #5B6676;
  --line: #E9E1D3;
  --card: #FFFFFF;
  --accent: #E07A2E;
  --accent-soft: #FCEBDD;
  --teal: #2F6F62;
  --teal-soft: #E1EFEA;
  --risk: #B4472F;
  --risk-soft: #FBE9E4;
  --plan: #6B5BB5;
  --plan-soft: #EEEBFA;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(31,42,55,.06), 0 6px 20px rgba(31,42,55,.06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 20px/1.6 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: Fraunces, Georgia, serif; line-height: 1.15; margin: 0 0 .4em; }
a { color: var(--teal); text-underline-offset: 2px; }
.msr {
  font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal;
  line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block;
  white-space: nowrap; direction: ltr; -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga'; user-select: none;
}
/* Full screen width with a small side margin (24px on phones, see bottom). */
.wrap { max-width: none; margin: 0; padding: 0 48px; }

/* Prototype switcher bar */
.proto-bar {
  position: sticky; top: 0; z-index: 50; background: #1F2A37; color: #fff;
  font-size: 13px; display: flex; gap: 6px; align-items: center; padding: 8px 16px;
  overflow-x: auto;
}
.proto-bar b { margin-right: 8px; opacity: .7; font-weight: 500; white-space: nowrap; }
.proto-bar a {
  color: #fff; text-decoration: none; padding: 4px 12px; border-radius: 99px;
  white-space: nowrap; opacity: .8;
}
.proto-bar a.on, .proto-bar a:hover { background: rgba(255,255,255,.14); opacity: 1; }

/* What can happen / What I have done blocks */
.part { border-radius: 18px; padding: 18px 22px; }
.part + .part { margin-top: 10px; }
.part-label {
  display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px;
}
.part-label .msr { font-size: 22px; }
.part p { margin: 0; }
.part.risk { background: var(--risk-soft); }
.part.risk .part-label { color: var(--risk); }
.part.done { background: var(--teal-soft); }
.part.done .part-label { color: var(--teal); }
.part.plan { background: var(--plan-soft); }
.part.plan .part-label { color: var(--plan); }

/* Product / link thumbnails */
.media-title {
  font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin: 18px 0 10px;
}
.media-title { margin-top: 26px; }
/* Desktop: big cards, 2-3 per row. Phone: one swipeable row (see media query). */
.media-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.media-card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--ink);
  transition: transform .2s, box-shadow .2s;
}
a.media-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(31,42,55,.14); }
.media-img {
  aspect-ratio: 4 / 3; background: linear-gradient(160deg, #FFFFFF 0%, #F3EEE6 100%);
  display: flex; align-items: center; justify-content: center; padding: 22px; overflow: hidden;
}
.media-img img {
  width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply;
  transition: transform .35s ease;
}
.media-img img.cover { object-fit: cover; mix-blend-mode: normal; }
.media-img:has(img.cover) { padding: 0; }
a.media-card:hover .media-img img { transform: scale(1.07); }
.media-img img.favicon { width: 72px; height: 72px; }
.media-img .msr { font-size: 72px; color: var(--muted); }
.missing {
  font: 600 12px/1.3 ui-monospace, monospace; color: #9A3B2B; background: #FFF4F1;
  border: 1px dashed #E3A091; border-radius: 10px; padding: 10px; text-align: center; word-break: break-all;
}
.media-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.media-label {
  font: 600 22px/1.25 Fraunces, Georgia, serif;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.media-sub {
  font-size: 15px; color: var(--muted); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.media-cta {
  align-self: flex-start; margin-top: auto; padding: 8px 14px; border-radius: 99px;
  background: var(--accent); color: #fff; font-size: 15px; font-weight: 600; overflow-wrap: anywhere;
}
.media-cta.off { background: #FFF4F1; color: #9A3B2B; border: 1px dashed #E3A091; font-family: ui-monospace, monospace; font-size: 11px; }
@media (max-width: 640px) {
  .media-strip {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
    margin: 0 -24px; padding: 4px 24px 14px; scrollbar-width: none;
  }
  .media-strip::-webkit-scrollbar { display: none; }
  .media-card { flex: 0 0 78%; scroll-snap-align: start; }
}
/* Step icon bubbles used on all 3 pages */
.si .msr { font-size: 30px; }

/* Video cards */
.video-card {
  display: block; text-decoration: none; color: var(--ink); background: var(--card);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .15s;
}
.video-card:hover { transform: translateY(-3px); }
.video-thumb { position: relative; aspect-ratio: 16 / 9; background: #000; display: block; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; }
.video-thumb .msr {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; font-size: 64px;
  color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.video-body { padding: 14px 16px 16px; }
.video-yt { display: flex; gap: 6px; align-items: flex-start; font-size: 14px; color: var(--muted); margin-bottom: 6px; text-decoration: none; }
.video-yt .msr { font-size: 16px; color: #D33; }
.video-body p { margin: 0; font-size: 17px; }

.footer {
  padding: 40px 24px 60px; text-align: center; color: var(--muted); font-size: 15px;
}

/* Phones: smaller side margin and text so nothing overflows. */
@media (max-width: 640px) {
  body { font-size: 18px; }
  .wrap { padding: 0 24px; }
}

/* Keep "View on Amazon ↗" on one line in narrow cards (the missing-link note may wrap). */
.media-cta { white-space: nowrap; }
.media-cta.off { white-space: normal; }
@media (max-width: 640px) { .media-cta { font-size: 14px; padding: 7px 12px; } }
