/* Framebound's page in the app's own look (Framebound#44, Marketing/look.md):
   a 1950s comic on the back of the rack. Newsprint panels with ink keylines,
   a cover-red masthead, Ben-Day dots, misregistered lettering. The app's own
   screens stay photographic; the era is the frame around them.
   Fonts (SIL OFL 1.1) are self-hosted in ./fonts with their licences. */

@font-face { font-family: "Bangers"; src: url("fonts/Bangers-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Bowlby One SC"; src: url("fonts/BowlbyOneSC-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Comic Neue"; src: url("fonts/ComicNeue-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Comic Neue"; src: url("fonts/ComicNeue-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/CourierPrime-Regular.ttf") format("truetype"); font-display: swap; }

.theme-framebound {
  --fb-red: #BB2216;
  --fb-oxblood: #921611;
  --fb-newsprint: #EBDDB8;
  --fb-panel: #F3E8C9;
  --fb-gold: #EDBC6F;
  --fb-rust: #B06B3E;
  --fb-ink: #37281F;
  --fb-rack: #1E1611;
  --fb-headline: "Bangers", "Impact", "Arial Narrow Bold", sans-serif;
  --fb-caption: "Bowlby One SC", "Arial Black", sans-serif;
  --fb-body: "Comic Neue", "Trebuchet MS", sans-serif;
  --fb-small: "Courier Prime", "Courier New", monospace;
  --fb-keyline: 4px;
  --color-bg: var(--fb-rack);
  --app-accent: var(--fb-gold);
  --color-accent: var(--fb-gold);
  --color-text: var(--fb-newsprint);
  --color-text-secondary: rgba(235, 221, 184, 0.72);
  --color-surface: rgba(237, 188, 111, 0.08);
  --color-border: rgba(237, 188, 111, 0.2);
  --color-tag-bg: rgba(237, 188, 111, 0.14);
}

body.theme-framebound {
  background-color: var(--fb-rack);
  background-image:
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.35) 100%),
    radial-gradient(rgba(237, 188, 111, 0.07) 1px, transparent 1.5px);
  background-size: 100% 100%, 9px 9px;
  background-attachment: fixed;
}

.theme-framebound main { max-width: 1080px; }

/* Lettering: newsprint letters, an ink keyline, the oxblood plate a hair off register. */
.fb-lettered {
  font-family: var(--fb-headline);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 0.95;
  color: var(--fb-newsprint);
  -webkit-text-stroke: 2px var(--fb-ink);
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--fb-oxblood);
  margin: 0;
}

/* ── The hero, as a cover ── */
.theme-framebound .app-hero {
  position: relative;
  margin-top: 12px;
  padding: clamp(24px, 5vw, 48px);
  background:
    radial-gradient(rgba(146, 22, 17, 0.55) 1.3px, transparent 1.8px) 0 0 / 10px 10px,
    var(--fb-red);
  border: var(--fb-keyline) solid var(--fb-ink);
  border-radius: 6px;
  box-shadow: 10px 10px 0 #000;
  color: var(--fb-newsprint);
}
.theme-framebound .app-hero .breadcrumb,
.theme-framebound .app-hero .breadcrumb a { color: var(--fb-newsprint); }
.theme-framebound .app-hero h1 {
  font-family: var(--fb-headline);
  font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  -webkit-text-stroke: 2px var(--fb-ink);
  paint-order: stroke fill;
  text-shadow: 5px 5px 0 var(--fb-oxblood);
  transform: rotate(-3deg);
}
.theme-framebound .app-hero .hero-strap {
  font-family: var(--fb-headline);
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--fb-gold);
  -webkit-text-stroke: 1px var(--fb-ink);
  paint-order: stroke fill;
  text-shadow: 3px 3px 0 var(--fb-ink);
}
.theme-framebound .app-hero .subtitle {
  font-family: var(--fb-body);
  font-size: 1.15rem;
  color: var(--fb-ink);
  background: var(--fb-panel);
  border: 3px solid var(--fb-ink);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.45);
  padding: 14px 18px;
  max-width: 640px;
}
.theme-framebound .app-hero .tag {
  font-family: var(--fb-caption);
  font-size: 0.75rem;
  background: var(--fb-newsprint);
  color: var(--fb-ink);
  border: 2px solid var(--fb-ink);
}
.theme-framebound .app-hero .app-status,
.theme-framebound .app-hero .app-status__note { color: var(--fb-newsprint); }

/* ── Sections ── */
.fb-section { padding: 48px 0 8px; }
.fb-section h2.fb-lettered { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-bottom: 24px; }
.fb-caption {
  display: inline-block;
  background: var(--fb-gold);
  color: var(--fb-ink);
  border: 3px solid var(--fb-ink);
  padding: 3px 10px;
  margin: 0 0 10px;
  font: 400 0.78rem/1.3 var(--fb-caption);
  letter-spacing: 0.03em;
}
.fb-panel {
  background: var(--fb-panel);
  color: var(--fb-ink);
  border: var(--fb-keyline) solid var(--fb-ink);
  box-shadow: 6px 6px 0 #000;
  padding: 20px;
  font-family: var(--fb-body);
  font-size: 1.06rem;
  line-height: 1.55;
}
.fb-panel h3 {
  font: 400 1.7rem/1 var(--fb-headline);
  letter-spacing: 0.02em;
  color: var(--fb-red);
  margin: 0 0 10px;
}
.fb-panel p { margin: 0 0 10px; }
.fb-panel p:last-child { margin-bottom: 0; }
.fb-panel a { color: var(--fb-red); }
.fb-panel ul { margin: 0; padding-left: 1.1em; }
.fb-panel li { margin-bottom: 4px; }

/* The preview: the app in motion, beside the pitch. */
.fb-reel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.fb-reel .fb-wordmark { width: min(520px, 100%); height: auto; display: block; margin-bottom: 18px; transform: rotate(-2deg); }
.fb-device { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 28px; align-items: center; margin-bottom: 26px; }
.fb-device video {
  width: 100%;
  height: auto;
  display: block;
  border: var(--fb-keyline) solid var(--fb-ink);
  border-radius: 22px;
  box-shadow: 8px 8px 0 var(--fb-oxblood), 8px 8px 0 4px #000;
  background: #000;
}
#screenshots .fb-device { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); }
.fb-videos { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1.65fr); gap: 18px; align-items: end; }
.fb-videos figure { margin: 0; }
.fb-videos figcaption { font: 400 1.1rem/1 var(--fb-headline); letter-spacing: 0.04em; color: var(--fb-gold); text-align: center; margin-top: 14px; }
.fb-reel video, .fb-reel .fb-reel-poster {
  width: 100%;
  height: auto;
  display: block;
  border: var(--fb-keyline) solid var(--fb-ink);
  border-radius: 22px;
  box-shadow: 8px 8px 0 var(--fb-oxblood), 8px 8px 0 4px #000;
  background: #000;
}

/* The covers: the store's frames, racked. */
.fb-rack {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 4px 4px 18px;
  scrollbar-color: var(--fb-gold) transparent;
}
.fb-rack figure { flex: 0 0 230px; scroll-snap-align: start; }
.fb-rack figure { margin: 0; }
.fb-rack img {
  width: 100%;
  height: auto;
  display: block;
  border: 3px solid #000;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease;
}
.fb-rack figcaption {
  font: 400 0.95rem/1.35 var(--fb-body);
  color: var(--color-text-secondary);
  margin-top: 10px;
}
.fb-rack--ipad figure { flex-basis: 340px; }
.fb-rack--duo figure { flex-basis: 420px; }
.fb-fold { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: center; margin-bottom: 26px; }
.fb-fold video {
  width: 100%;
  height: auto;
  display: block;
  border: var(--fb-keyline) solid var(--fb-ink);
  border-radius: 14px;
  box-shadow: 8px 8px 0 var(--fb-oxblood), 8px 8px 0 4px #000;
  background: #000;
}
@media (prefers-reduced-motion: no-preference) {
  .fb-rack figure:hover img { transform: rotate(-1.5deg) translateY(-4px); }
}

/* Features: a page of panels. */
.fb-panels { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.fb-panels .fb-panel { grid-column: span 2; }
.fb-panels .fb-panel.span-3 { grid-column: span 3; }
.fb-panels .fb-panel.span-6 { grid-column: span 6; }
.fb-formats { font: 400 1.05rem/1.3 var(--fb-caption); letter-spacing: 0.05em; color: var(--fb-red); }

/* The gallery as the newsstand's rack. */
.fb-newsstand > *, .fb-ad > *, .fb-reel > * { min-width: 0; }
.fb-newsstand {
  background: var(--fb-oxblood);
  color: var(--fb-newsprint);
  border: var(--fb-keyline) solid var(--fb-ink);
  box-shadow: 8px 8px 0 #000;
  padding: clamp(18px, 4vw, 36px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  font-family: var(--fb-body);
  font-size: 1.06rem;
}
.fb-newsstand ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.fb-newsstand li { border-bottom: 2px dashed rgba(235, 221, 184, 0.4); padding-bottom: 6px; }
.fb-newsstand li em { font-family: var(--fb-small); font-style: normal; font-size: 0.85rem; opacity: 0.85; }
.fb-newsstand img { width: 100%; height: auto; display: block; border: 3px solid #000; }

/* The back-page ad, with its coupon. */
.fb-ad { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; }
.fb-ad h2.fb-lettered { color: var(--fb-red); text-shadow: 4px 4px 0 var(--fb-ink); margin-bottom: 14px; font-size: clamp(2rem, 6vw, 3.2rem); }
.fb-coupon {
  border: 3px dashed var(--fb-ink);
  padding: 22px 18px 16px;
  position: relative;
  font-family: var(--fb-small);
  font-size: 1rem;
  background: var(--fb-newsprint);
  color: var(--fb-ink);
}
.fb-coupon::before {
  content: "\2702";
  position: absolute;
  top: -15px;
  left: 14px;
  background: var(--fb-newsprint);
  padding: 0 6px;
  font-size: 1.2rem;
}
.fb-small { font-family: var(--fb-small); font-size: 0.92rem; }

/* Support: the letters page. */
.fb-letters { columns: 2 300px; column-gap: 18px; }
.fb-letters .fb-panel { break-inside: avoid; margin-bottom: 18px; }

/* The beta block keeps the site's markup; dressed as a panel. */
.theme-framebound .beta-block {
  background: var(--fb-panel);
  color: var(--fb-ink);
  border: var(--fb-keyline) solid var(--fb-ink);
  box-shadow: 6px 6px 0 #000;
  padding: 22px;
  margin-top: 48px;
  font-family: var(--fb-body);
}
.theme-framebound .beta-block h2 {
  font: 400 2rem/1 var(--fb-headline);
  letter-spacing: 0.02em;
  color: var(--fb-red);
  text-transform: uppercase;
}
.theme-framebound .beta-block p { color: var(--fb-ink); }
.theme-framebound .beta-block a { color: var(--fb-red); }

@media (max-width: 760px) {
  .fb-reel, .fb-newsstand, .fb-ad { grid-template-columns: minmax(0, 1fr); }
  .fb-device { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 28px; align-items: center; margin-bottom: 26px; }
.fb-device video {
  width: 100%;
  height: auto;
  display: block;
  border: var(--fb-keyline) solid var(--fb-ink);
  border-radius: 22px;
  box-shadow: 8px 8px 0 var(--fb-oxblood), 8px 8px 0 4px #000;
  background: #000;
}
#screenshots .fb-device { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); }
.fb-videos { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1.65fr); gap: 18px; align-items: end; }
.fb-videos figure { margin: 0; }
.fb-videos figcaption { font: 400 1.1rem/1 var(--fb-headline); letter-spacing: 0.04em; color: var(--fb-gold); text-align: center; margin-top: 14px; }
.fb-reel video, .fb-reel .fb-reel-poster { max-width: 300px; margin: 0 auto; }
  .fb-panels { grid-template-columns: 1fr; }
  .fb-panels .fb-panel, .fb-panels .fb-panel.span-3, .fb-panels .fb-panel.span-6 { grid-column: auto; }
  .fb-rack figure { flex-basis: 64vw; }
  .fb-rack--ipad figure { flex-basis: 82vw; }
  .fb-rack--duo figure { flex-basis: 86vw; }
  .fb-fold { grid-template-columns: minmax(0, 1fr); }
  .fb-device, #screenshots .fb-device { grid-template-columns: minmax(0, 1fr); }
  .fb-device video { max-width: 340px; margin: 0 auto; }
  .theme-framebound .app-hero h1 { transform: rotate(-2deg); }
}

/* A frame inside a feature panel (the wear pair). */
.fb-panel > img { display: block; width: 100%; max-width: 320px; height: auto; margin: 1rem auto 0; }

/* ── The masthead: the page's title, above the red box (Kim, 20 Nov 2026) ── */
.fb-masthead { padding: 8px 0 18px; }
.fb-masthead .breadcrumb, .fb-masthead .breadcrumb a { color: var(--fb-newsprint); }
.fb-masthead__title { display: flex; align-items: center; gap: clamp(12px, 3vw, 24px); }
.fb-masthead__title h1 { margin: 0; line-height: 0; flex: 1 1 auto; min-width: 0; }
.fb-masthead .fb-wordmark { width: min(560px, 100%); height: auto; display: block; transform: rotate(-2deg); }
.fb-masthead__icon {
  width: clamp(64px, 14vw, 120px); height: auto; flex: none;
  border-radius: 22%; border: 3px solid var(--fb-ink); box-shadow: 5px 5px 0 var(--fb-oxblood);
}
.fb-masthead__strap { font-size: clamp(1.8rem, 5.5vw, 3rem); margin: 14px 0 0; }

/* The red box: no second name; the pitch beside the composite on wide
   screens, the composite below it on narrow ones. */
.theme-framebound .app-hero .breadcrumb,
.theme-framebound .app-hero .app-hero-title { display: none; }
.theme-framebound .app-hero .hero-strap { margin-top: 0; }
.fb-hero-art { margin: 8px 0 0; }
.fb-hero-art img { width: 100%; height: auto; display: block; }
@media (min-width: 860px) {
  .theme-framebound .app-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    column-gap: 32px;
    align-content: start;
  }
  .theme-framebound .app-hero > * { grid-column: 1; }
  .theme-framebound .app-hero > .fb-hero-art { grid-column: 2; grid-row: 1 / span 12; align-self: center; margin: 0; }
}
