/* Platypus Comix modern look (2026-11-03).
   One layout for every series. Each series keeps Peter's own colors, fonts and background art
   through the theme blocks at the bottom (copied from that series' stylesheet.css). */

@font-face { font-family: 'Bangle'; src: url('/st/Bangle.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Benguia'; src: url('/st/Benguia.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'futura'; src: url('/freespirit/futura-webfont.woff') format('woff'), url('/freespirit/futura-webfont.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'journal'; src: url('/freespirit/journal-webfont.woff') format('woff'), url('/freespirit/journal-webfont.ttf') format('truetype'); font-display: swap; }

/* Sky theme (Mulberry, Keiki, Electric Wonderland, Scrambled Eggs, Miscellaneous) is the default. */
:root {
  --page: #CAE6FE;
  --page-art: none;
  --panel: #FFFFFF;
  --panel-2: #F5F5F5;
  --line: #62B3FF;
  --line-soft: #9ED1FB;
  --text: #1C2433;
  --muted: #5A6B85;
  --link: #0024FF;
  --link-hover: #DF922E;
  --button: #CAE6FE;
  --button-text: #0024FF;
  --button-pressed: #9ED1FB;
  --title-bar: #CAE6FE;
  --title-bar-text: #1C2433;
  --body-font: system-ui, -apple-system, "Segoe UI", Verdana, Arial, sans-serif;
  --title-font: var(--body-font);
  --title-glow: none;
  --page-text: #1C2433;
  --page-text-outline: none;

  /* The site bar uses the homepage's charcoal and red so every series feels like part of Platypus Comix. */
  --bar: #000000;
  --bar-line: #393939;
  --bar-text: #FFFFFF;
  --brand: #D70000;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.pc-modern {
  margin: 0;
  background: var(--page) var(--page-art);
  color: var(--page-text);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.5;
  text-shadow: var(--page-text-outline);
}

body.pc-modern a { color: var(--link); text-decoration: none; }
body.pc-modern a:hover, body.pc-modern a:focus-visible { color: var(--link-hover); text-decoration: underline; }
body.pc-modern img { max-width: 100%; height: auto; }

/* Site bar */
.pc-bar { background: var(--bar); border-bottom: 3px solid var(--brand); text-shadow: none; }
.pc-bar-inner { max-width: 1000px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pc-brand { color: var(--bar-text) !important; font: 800 18px/1.2 Helvetica, Arial, sans-serif; letter-spacing: .5px; text-decoration: none !important; }
.pc-brand span { color: var(--brand); }
/* Peter's logo (comicsScript/modern/logo.png; replace that file to change it). */
body.pc-modern .pc-brand img { display: block; height: 64px; width: auto; }
@media (max-width: 600px) { body.pc-modern .pc-brand img { height: 52px; } }
.pc-bar-series { color: #D9D9D9 !important; font: 600 15px/1.2 Helvetica, Arial, sans-serif; }
.pc-bar-series::before { content: "/"; color: #777; margin-right: 12px; }
.pc-bar-spacer { flex: 1; }
.pc-bar a.pc-bar-link { color: #D9D9D9 !important; font: 600 14px/1.2 Helvetica, Arial, sans-serif; }
/* A clear way back to the homepage, styled as a button so it reads as one. */
.pc-bar a.pc-home {
  display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px;
  border-radius: 999px; background: var(--brand); color: #FFFFFF !important;
  font: 700 14px/1 Helvetica, Arial, sans-serif; text-decoration: none !important;
}
.pc-bar a.pc-home:hover, .pc-bar a.pc-home:focus-visible { background: #F60000; }
@media (max-width: 600px) {
  .pc-bar-inner { gap: 8px 12px; }
  .pc-bar a.pc-home { order: -1; width: 100%; justify-content: center; }
}

.pc-wrap { max-width: 1000px; margin: 0 auto; padding: 20px 16px 40px; }

.pc-panel {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .12);
  padding: 20px;
  margin-bottom: 20px;
  text-shadow: none;
}

/* Titles */
.pc-kicker { margin: 0 0 4px; font: 700 13px/1.2 var(--body-font); letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.pc-title {
  margin: 0;
  font-family: var(--title-font);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.15;
  text-shadow: var(--title-glow);
}
.pc-subtitle { margin: 6px 0 0; color: var(--muted); font-weight: 600; }

/* Buttons */
.pc-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin: 16px 0; text-shadow: none; }
.pc-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 42px; padding: 8px 18px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--button); color: var(--button-text) !important;
  font: 700 15px/1 var(--body-font);
  text-decoration: none !important;
  transition: background-color .15s ease, transform .15s ease;
}
.pc-btn:hover, .pc-btn:focus-visible { background: var(--button-pressed); transform: translateY(-1px); }
.pc-btn.is-primary { background: var(--button-text); color: var(--panel) !important; border-color: var(--button-text); }
.pc-btn.is-primary:hover { background: var(--link-hover); border-color: var(--link-hover); }
.pc-btn.is-off { opacity: .35; pointer-events: none; }
.pc-counter { font-weight: 700; color: var(--muted); padding: 0 6px; }

/* The comic page */
.pc-comic { margin: 0; text-align: center; }
.pc-comic img { display: block; margin: 0 auto; border-radius: 6px; box-shadow: 0 4px 18px rgba(0, 0, 0, .25); }
.pc-comic a { display: inline-block; }
.pc-empty { padding: 40px 0; color: var(--muted); }
.pc-video { margin: 16px auto; max-width: 640px; }
.pc-video video { width: 100%; height: auto; border-radius: 8px; }
.pc-note { background: var(--panel-2); border-left: 4px solid var(--line); border-radius: 8px; padding: 12px 16px; margin: 0 0 16px; text-align: left; }
.pc-choices { display: grid; gap: 10px; max-width: 720px; margin: 16px auto; }
.pc-choices .pc-btn { justify-content: center; text-align: center; line-height: 1.3; white-space: normal; padding: 12px 18px; }
.pc-hint { text-align: center; color: var(--muted); font-size: 13px; margin: 4px 0 0; text-shadow: none; }

/* Thumbnail strip and grid */
.pc-strip-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.pc-strip-head h2 { margin: 0; font-size: 16px; }
.pc-thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.pc-thumbs a { flex: 0 0 auto; scroll-snap-align: start; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted) !important; text-decoration: none !important; }
.pc-thumbs img, .pc-grid img { display: block; width: 96px; height: auto; border-radius: 6px; border: 2px solid transparent; }
.pc-thumbs a.is-current img, .pc-grid a.is-current img { border-color: var(--link); }
.pc-thumbs a:hover img, .pc-grid a:hover img { border-color: var(--line); }
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 14px; }
.pc-grid a { text-align: center; font-size: 13px; font-weight: 700; color: var(--muted) !important; text-decoration: none !important; }
.pc-grid img { width: 100%; }
.pc-soon { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 4; border: 2px dashed var(--line-soft); border-radius: 6px; font-size: 12px; color: var(--muted); }

/* Series index */
.pc-intro { text-align: center; }
.pc-intro img { border-radius: 8px; }
.pc-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 28px 0 12px; text-shadow: var(--page-text-outline); }
.pc-section-head h2 { margin: 0; font-family: var(--title-font); font-size: 24px; color: var(--page-text); text-shadow: var(--title-glow); }
.pc-pager { display: flex; gap: 6px; flex-wrap: wrap; text-shadow: none; }
.pc-pager a, .pc-pager span { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--line); background: var(--button); color: var(--button-text) !important; font-weight: 700; text-decoration: none !important; }
.pc-pager span { background: var(--button-text); color: var(--panel) !important; border-color: var(--button-text); }
.pc-cards { display: grid; gap: 16px; }
.pc-card { display: grid; grid-template-columns: 130px 1fr; gap: 18px; align-items: start; margin: 0; }
.pc-card-cover img { width: 130px; border-radius: 8px; box-shadow: 0 3px 12px rgba(0, 0, 0, .2); }
.pc-card-title { margin: 0 0 6px; font-family: var(--title-font); font-size: 22px; line-height: 1.2; background: var(--title-bar); color: var(--title-bar-text); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; }
.pc-card-title a { color: inherit !important; }
.pc-card-meta { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.pc-card p { margin: 0 0 12px; }

.pc-foot { text-align: center; font-size: 13px; color: var(--page-text); opacity: .85; padding: 10px 16px 30px; }

@media (max-width: 600px) {
  .pc-wrap { padding: 14px 10px 30px; }
  .pc-panel { padding: 14px; border-radius: 12px; }
  .pc-card { grid-template-columns: 90px 1fr; gap: 12px; }
  .pc-card-cover img { width: 90px; }
  .pc-btn { min-height: 40px; padding: 8px 14px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) { .pc-btn { transition: none; } }

/* ===== Peter's series themes ===== */

/* Kristmas Klassics: the sky theme on the snow-flurry background. */
body.theme-kristmas { --page-art: url('/kristmas/LS_snow_flurry.jpg'); }

/* Princess Pi: the sky theme on its own purple background art. */
body.theme-princesspi { --page: #1B0836; --page-art: url('/princesspi/gactitlebg.jpg'); --page-text: #FFFFFF; }

/* Free Spirit: Futura with Peter's white outline, Journal for titles on a blue-to-white bar, its own art. */
body.theme-freespirit {
  --page: #1B0836;
  --page-art: url('/freespirit/fsback.jpg');
  --body-font: 'futura', system-ui, sans-serif;
  --title-font: 'journal', 'futura', sans-serif;
  --page-text: #1C2433;
  --page-text-outline: -1px 0 #FFFFFF, 0 1px #FFFFFF, 1px 0 #FFFFFF, 0 -1px #FFFFFF;
  --title-bar: linear-gradient(#CAE6FE, #FFFFFF);
  --link: blue;
  --link-hover: #DF922E;
}
/* Peter's white glow on hover, kept where text sits on the background art (white would vanish on the panels). */
body.theme-freespirit .pc-section-head a:hover, body.theme-freespirit .pc-foot a:hover { color: #FFFFFF !important; text-shadow: 0 0 15px rgb(119, 119, 119); transition: all .2s linear; }

/* Stranger Things parody: black, red and Peter's Bangle and Benguia fonts, like the show. */
body.theme-st {
  --page: #000000;
  --panel: #0A0A0A;
  --panel-2: #160000;
  --line: #FF0000;
  --line-soft: #5E0000;
  --text: #F2F2F2;
  --muted: #FFC9C9;
  --link: #C50000;
  --link-hover: #FF0000;
  --button: #000000;
  --button-text: #FF0000;
  --button-pressed: #5E0000;
  --title-bar: #FFC9C9;
  --title-bar-text: #000000;
  --body-font: 'Bangle', system-ui, sans-serif;
  --title-font: 'Benguia', Georgia, serif;
  --page-text: #F2F2F2;
  /* The one new touch: a faint red glow on titles, in the spirit of the show's logo. */
  --title-glow: 0 0 6px rgba(255, 0, 0, .55), 0 0 18px rgba(255, 0, 0, .35);
}
body.theme-st .pc-btn:hover { color: #FFFF00 !important; }
body.theme-st .pc-btn.is-primary { color: #000000 !important; }
body.theme-st .pc-title, body.theme-st .pc-section-head h2 { color: #FF0000; }
