/* yellowyolkblue.com — layout on top of snes.css (which only styles components).
   Theme: deep "blue" night sky + "yellow yolk" sunshine accents. */

:root {
  --yyb-blue: #1a1c3a;
  --yyb-blue-deep: #0e1029;
  --yyb-yolk: #f2c019;
  --yyb-ocean: #4eb6d9;
  --yyb-ink: #e8e8f0;
  --yyb-muted: #9aa0c8;
}

/* snes.css already applies a border-box reset to html + every element */
html {
  background: var(--yyb-blue-deep);
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 2.5rem 1rem 4rem;
  /* subtle scanline + starfield feel */
  background:
    radial-gradient(circle at 20% 10%, rgba(242, 192, 25, 0.08), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(78, 182, 217, 0.10), transparent 45%),
    var(--yyb-blue);
  color: var(--yyb-ink);
  /* readable body font — Press Start 2P (from snes.css) is reserved for headings */
  font-family: "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 16px;
  line-height: 1.7;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
}

/* site masthead */
.masthead {
  text-align: center;
  margin-bottom: 2.5rem;
}
.masthead .logo {
  font-family: "Press Start 2P", system-ui, monospace;
  font-size: 26px;
  line-height: 1.4;
  margin: 0 0 0.75rem;
}
.masthead .logo .yellow { color: var(--yyb-yolk); }
.masthead .logo .blue { color: var(--yyb-ocean); }
.masthead .tagline {
  color: var(--yyb-muted);
  font-size: 13px;
  margin: 0;
}

/* containers get breathing room and a touch of dark fill for contrast.
   .wrap prefix beats snes.css's own .snes-container specificity — no !important needed */
.wrap .snes-container {
  background-color: rgba(14, 16, 41, 0.55);
  margin-bottom: 2rem;
}
.snes-container-title {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--yyb-ink);
}

/* post list */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.post-list li {
  padding: 0.9rem 0;
  border-bottom: 2px dotted rgba(154, 160, 200, 0.3);
}
.post-list li:last-child { border-bottom: none; }
.post-list .meta {
  display: block;
  color: var(--yyb-muted);
  font-size: 12px;
  margin-top: 0.25rem;
}

/* single post */
.post header h1 {
  font-family: "Press Start 2P", system-ui, monospace;
  font-size: 18px;
  line-height: 1.5;
  color: var(--yyb-yolk);
  margin: 0 0 0.75rem;
}
.post .post-meta {
  color: var(--yyb-muted);
  font-size: 12px;
  margin-bottom: 1.75rem;
}
.post p { margin: 0 0 1.15rem; }
.post h2 {
  font-family: "Press Start 2P", system-ui, monospace;
  font-size: 14px;
  color: var(--yyb-ocean);
  margin: 2rem 0 1rem;
}
.post code {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(154, 160, 200, 0.3);
  padding: 0.1em 0.35em;
  color: var(--yyb-yolk);
}
.post pre {
  background: rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(154, 160, 200, 0.25);
  padding: 1rem;
  overflow-x: auto;
}
.post pre code { background: none; border: none; padding: 0; color: var(--yyb-ink); }

/* ---- images / assets ---------------------------------------------------- */

/* white-backed logos read as intentional retro "stickers" on the dark theme */
.sticker {
  background: #fdfdf6;
  border: 3px solid var(--yyb-blue-deep);
  border-radius: 12px;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.3), 0 0 18px rgba(78, 182, 217, 0.18);
}

/* masthead wordmark logo */
.masthead .logo { line-height: 0; }
.masthead .logo-img {
  display: inline-block;
  height: 150px;
  width: auto;
  max-width: 100%;
  background: #fdfdf6;
  padding: 6px 16px;
  border: 3px solid var(--yyb-blue-deep);
  border-radius: 14px;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35), 0 0 22px rgba(78, 182, 217, 0.22);
}

/* About-section mascot egg, floated beside the bio */
.brand-egg {
  float: right;
  width: 132px;
  height: auto;
  margin: 0 0 0.75rem 1.25rem;
  padding: 6px;
  shape-outside: margin-box;
}

/* in-post illustrations (transparent line-art on a faint plate for contrast) */
.post-figure {
  margin: 0 0 1.85rem;
  text-align: center;
}
.post-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 0.6rem;
  padding: 0.75rem;
  background: rgba(232, 232, 240, 0.07);
  border: 1px solid rgba(154, 160, 200, 0.22);
  border-radius: 8px;
}
.post-figure figcaption {
  color: var(--yyb-muted);
  font-size: 12px;
  font-style: italic;
}

@media (max-width: 480px) {
  .masthead .logo-img { height: 110px; }
  .brand-egg { float: none; display: block; margin: 0 auto 1rem; }
}

/* footer / back link */
.site-footer {
  text-align: center;
  color: var(--yyb-muted);
  font-size: 12px;
  margin-top: 2.5rem;
}
.back-link { margin-bottom: 1.5rem; }
