* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background-image: url("/images/orig.png");
}

a {
  color: var(--deep-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.center-text {
  text-align: center;
}

/* TOP NAV */
.top-nav {
  background-image: url("/images/colorAni_1.webp");
  border-bottom: 1px solid #8ab1c7;
  padding: 10px 20px;
}

.top-nav nav {
  max-width: 1450px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 10px 18px;
}

.top-nav a {
  font-size: 15px;
  font-weight: bold;
  color: #2b3d4f;
}

.top-nav a.active,
.top-nav a[aria-current="page"] {
  color: #102f73;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* SIDEBARS */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.box {
  background: var(--panel-bg);
  border: 2px solid var(--panel-border);
  padding: 12px;
}

.box h2 {
  margin: 0 0 12px;
  color: var(--title-blue);
  font-size: 18px;
  text-align: center;
}

.box p {
  font-size: 14px;
  text-align: center;
}

.sidebar-image {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid #a5bfd3;
  margin-bottom: 12px;
}

/* MAIN PANEL */
.main-panel {
  background: var(--panel-bg);
  border: 2px solid var(--panel-border);
  padding: 18px 18px 22px;
}

.main-header {
  text-align: center;
  margin-bottom: 18px;
}

.main-header h1 {
  margin: 0 0 10px;
  color: var(--title-blue);
  font-size: 42px;
  letter-spacing: 1px;
}

.main-header p {
  margin: 5px 0;
  font-size: 15px;
  font-weight: bold;
}

.latest-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 760px;
  margin: 28px auto 0;
}

.latest-post-section>h2 {
  margin: 0 0 10px;
  color: var(--title-blue);
  font-size: 21px;
  text-align: center;
}

.latest-post-card {
  height: 100%;
  padding: 18px 20px 20px;
  border: 3px solid var(--deep-blue);
  background: var(--panel-bg);
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.9),
    inset 0 0 0 6px var(--panel-border);
}

.latest-post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: bold;
}

.latest-post-category {
  padding: 3px 7px;
  border: 1px solid var(--deep-blue);
  background: var(--panel-bg);
  color: var(--deep-blue);
}

.latest-post-card h3 {
  margin: 0 0 9px;
  font-size: 20px;
}

.latest-post-card p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
}

.latest-post-link {
  font-size: 13px;
  font-weight: bold;
  text-decoration: underline;
}

.latest-post-message {
  margin: 0;
  padding: 14px;
  border: 2px solid var(--panel-border);
  background: var(--panel-bg);
  text-align: center;
}

@media (max-width: 680px) {
  .latest-post-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
}

/* WINDOW BOX */
.window-box {
  border: 2px solid #4d73b2;
  background: #b7d3ea;
}

.window-titlebar {
  background: var(--window-blue);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 10px;
  font-weight: bold;
  font-size: 14px;
}

/* RIGHT SIDEBAR EXTRA */
.stamp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.mini-stamp {
  border: 1px solid #7f98ad;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: bold;
}

/* CHAT WINDOW */

.chat-window {
  text-align: left;
  color: var(--text);
  background: var(--panel-bg);
  border: 2px solid var(--panel-border);
}

.chat-window .window-titlebar {
  height: auto;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;

  background: rgba(255, 255, 255, 0.58);
  color: var(--title-blue);
  border-bottom: 1px solid var(--panel-border);
  font-size: 16px;
  font-weight: bold;
}

.chatango-wrapper {
  padding: 8px;
  background: rgba(255, 255, 255, 0.42);
}

.chatango-wrapper iframe {
  display: block;
  width: 100% !important;
  height: 350px !important;
  border: 1px solid var(--panel-border);
}

.chat-page-layout {
  display: block;
}

.chat-page {
  width: min(760px, 100%);
  margin-inline: auto;
}

.chat-page .chatango-wrapper iframe {
  height: 500px !important;
}

.music-player {
  color: var(--text);
  background: var(--panel-bg);
}

.music-player h2 {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--panel-border);
}

.track-display {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.album-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 4px;
  background: rgba(255, 255, 255, 0.6);
  border: 2px solid var(--panel-border);
  overflow: hidden;
}

.album-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-info {
  width: 100%;
  padding: 9px 8px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;

  color: var(--text);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--panel-border);

  text-align: center;
  overflow-wrap: anywhere;
}

.track-info strong {
  color: var(--title-blue);
  font-size: 15px;
}

.track-info span {
  font-size: 12px;
}

.player-controls {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 8px;
}

.player-controls button,
.playlist button {
  color: var(--deep-blue);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--panel-border);
  border-radius: 0;
  font-family: inherit;
  font-weight: bold;
  cursor: pointer;
}

.player-controls button {
  min-width: 54px;
  padding: 6px 8px;
}

.player-controls button:hover,
.playlist button:hover {
  color: var(--white);
  background: var(--title-blue);
  border-color: var(--deep-blue);
}

.player-controls button:active,
.playlist button:active {
  transform: translateY(1px);
}

.player-controls button:focus-visible,
.playlist button:focus-visible {
  outline: 2px solid var(--deep-blue);
  outline-offset: 2px;
}

#track-progress {
  width: 100%;
  margin: 4px 0;
  accent-color: var(--title-blue);
}

.volume-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 34px;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 11px;
}

.volume-control label {
  font-weight: bold;
}

#volume-slider {
  width: 100%;
  min-width: 0;
  margin: 0;
  accent-color: var(--title-blue);
}

.volume-control output {
  text-align: right;
}

.time-display {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 11px;
}

.playlist {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 220px;
  overflow-y: auto;
}

.playlist button {
  width: 100%;
  padding: 7px 8px;
  text-align: left;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.playlist button.active {
  color: var(--white);
  background: var(--deep-blue);
  border-color: var(--deep-blue);
}

/* MUSIC PAGE */
.music-layout {
  display: block;
}

.music-page {
  width: 90%;
  margin-inline: auto;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 22px;
}

.album-card {
  min-width: 0;
}

.album-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid #93b6cf;
  background: rgba(255, 255, 255, 0.55);
}

.album-card h2 {
  margin: 9px 0 2px;
  font-size: 17px;
  line-height: 1.2;
}

.album-card h2 a {
  color: var(--deep-blue);
}

.album-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
}

@media (max-width: 850px) {
  .album-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
  }

  .album-card h2 {
    font-size: 15px;
  }
}

@media (max-width: 380px) {
  .album-grid {
    grid-template-columns: 1fr;
  }
}

/* GUESTBOOK PAGE */
.guestbook-layout {
  display: block;
}

.guestbook-page {
  width: 100%;
}

.guestbook-fallback {
  margin: -5px 0 12px;
  text-align: center;
  font-size: 13px;
}

.guestbook-fallback a {
  font-weight: bold;
  text-decoration: underline;
}

.guestbook-frame {
  display: block;
  width: 100%;
  height: 680px;
  border: 2px solid var(--panel-border);
  background: var(--white);
}

@media (max-width: 620px) {
  .guestbook-frame {
    height: 760px;
  }
}

/* BLOG PAGE */
.blog-layout {
  display: block;
}

.blog-page {
  width: min(760px, 100%);
  margin-inline: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.blog-page>.main-header h1,
.blog-page>.main-header p {
  color: var(--white);
  text-shadow: 0 1px 3px rgba(0, 45, 100, 0.9);
}

.blog-entries {
  display: grid;
  gap: 28px;
}

.blog-entry {
  scroll-margin-top: 16px;
  padding: 26px 30px 28px;
  border: 3px solid var(--deep-blue);
  background: var(--panel-bg);
  box-shadow:
    inset 0 0 0 5px rgba(255, 255, 255, 0.9),
    inset 0 0 0 7px var(--panel-border);
}

.blog-entry h2 {
  margin: 0 0 5px;
  font-size: 27px;
  line-height: 1.2;
  text-align: center;
}

.blog-entry h2 a {
  color: var(--title-blue);
}

.blog-entry time {
  display: block;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
}

.blog-entry img {
  display: block;
  width: min(100%, 620px);
  height: auto;
  margin: 0 auto 18px;
  border: 2px solid var(--panel-border);
}

.blog-entry p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.65;
}

.blog-entry p:last-child {
  margin-bottom: 0;
}

.blog-content iframe,
.blog-content video {
  display: block;
  max-width: 100%;
  margin: 0 auto 18px;
}

.blog-original-link {
  margin: 20px 0 0 !important;
  padding-top: 12px;
  border-top: 1px solid var(--panel-border);
  font-size: 13px !important;
  text-align: right;
}

.blog-feed-message {
  margin: 0;
  padding: 18px;
  border: 2px solid var(--panel-border);
  background: var(--panel-bg);
  font-weight: bold;
  text-align: center;
}

.blog-entry p a {
  text-decoration: underline;
}

.blog-error {
  padding: 12px;
  border: 2px solid #a33;
  background: #fff;
  color: #700;
}

@media (max-width: 560px) {
  .blog-entry {
    padding: 22px 18px 24px;
  }

  .blog-entry h2 {
    font-size: 23px;
  }

  .blog-entry p {
    font-size: 15px;
  }
}

/* INDIE GAME PAGE */
.game-layout {
  display: block;
}

.game-page {
  width: min(840px, 100%);
  margin-inline: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.game-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 22px;
  margin-bottom: 38px;
  padding: 24px;
  border: 3px solid var(--deep-blue);
  background: var(--panel-bg);
  box-shadow:
    inset 0 0 0 5px rgba(255, 255, 255, 0.9),
    inset 0 0 0 7px var(--panel-border);
}

.game-summary h2 {
  margin: 0 0 12px;
  color: var(--title-blue);
}

.game-summary p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.6;
}

.game-summary p:last-child {
  margin-bottom: 0;
}

.game-facts {
  margin: 0;
  border: 2px solid var(--panel-border);
  background: var(--panel-bg);
}

.game-facts div {
  padding: 10px 12px;
}

.game-facts div+div {
  border-top: 1px solid var(--panel-border);
}

.game-facts dt {
  color: var(--title-blue);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.game-facts dd {
  margin: 3px 0 0;
  font-size: 14px;
}

.devlog-entries {
  display: grid;
  gap: 26px;
}

.devlog-entry {
  scroll-margin-top: 16px;
  padding: 24px 28px 26px;
  border: 3px solid var(--deep-blue);
  background: var(--panel-bg);
  box-shadow:
    inset 0 0 0 5px rgba(255, 255, 255, 0.9),
    inset 0 0 0 7px var(--panel-border);
}

.devlog-entry h3 {
  margin: 0 0 5px;
  color: var(--title-blue);
  font-size: 24px;
  text-align: center;
}

.devlog-entry time {
  display: block;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
}

.devlog-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 18px;
  border: 2px solid var(--panel-border);
}

.devlog-content p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.65;
}

.devlog-content p:last-child {
  margin-bottom: 0;
}

.devlog-content iframe,
.devlog-content video {
  display: block;
  max-width: 100%;
  margin: 0 auto 18px;
}

.devlog-content a,
.devlog-original-link a {
  text-decoration: underline;
}

.devlog-original-link {
  margin: 20px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--panel-border);
  font-size: 13px;
  text-align: right;
}

.devlog-message {
  margin: 0;
  padding: 18px;
  border: 2px solid var(--panel-border);
  background: var(--panel-bg);
  font-weight: bold;
  text-align: center;
}

.devlog-error {
  border-color: #a33;
  color: #700;
}

@media (max-width: 660px) {
  .game-summary {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }

  .devlog-entry {
    padding: 22px 18px 24px;
  }
}

/* PERSISTENT SIDEBAR SHELL */

html,
body.shell-page {
  min-height: 100%;
}

body.shell-page {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

.persistent-shell {
  width: min(1400px, calc(100% - 32px));
  min-height: calc(100vh - 61px);
  margin: 18px auto 0;

  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: start;
}

.persistent-shell>.left-sidebar,
.persistent-shell>.right-sidebar {
  min-width: 0;
  overflow: visible;
  padding-bottom: 18px;
}

.site-frame {
  display: block;
  width: 100%;
  min-width: 0;
  height: 800px;
  border: 0;
  background: transparent;
  overflow: hidden;
}

/* Pages displayed inside the iframe */
body.frame-page {
  min-height: 0;
  background: transparent;
}

.frame-layout {
  width: min(1200px, calc(100% - 24px));
  margin: 0 auto;
  padding: 0 12px 24px;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 14px;
  align-items: start;
}

.frame-layout>.main-panel {
  min-width: 0;
}

.frame-layout>.right-sidebar {
  min-width: 0;
}

@media (max-width: 980px) {
  body.shell-page {
    height: auto;
    overflow: auto;
  }

  .persistent-shell {
    width: min(760px, calc(100% - 24px));
    height: auto;
    grid-template-columns: 1fr;
  }

  .persistent-shell>.left-sidebar {
    height: auto;
    overflow: visible;
    order: 2;
  }

  .persistent-shell>.site-frame {
    order: 1;
  }

  .persistent-shell>.right-sidebar {
    order: 3;
  }

  .frame-layout {
    grid-template-columns: 1fr;
    padding-right: 0;
  }
}

/* --------------------------------------------------------------------------
   RETRO DESKTOP / PERSONAL HOMEPAGE THEME
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Cloudy";
  src: url("/cloudy-font/Cloudy-0W244.ttf") format("truetype");
  font-style: normal;
  font-weight: normal;
  font-display: swap;
}

:root {
  --panel-bg: #f1f6ff;
  --panel-border: #7997bb;
  --deep-blue: #003e9d;
  --text: #111827;
  --title-blue: #007da5;
  --window-blue: #082a83;
  --white: #ffffff;
  --purple: #7c159c;
  --green: #128414;
  --silver: #d4d0c8;
}

body {
  color: var(--text);
  background: #42a9ed;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  background-image: url("/images/orig.png");
  background-size: 5%;
  background-repeat: repeat;
  animation: cloud-scroll 24s linear infinite;
}

a {
  color: #0053a5;
  text-decoration: underline;
}

a:hover {
  color: #d60000;
  background: #fff3a1;
}

button,
input,
textarea,
output {
  font-family: "MS Sans Serif", Tahoma, sans-serif;
}

.site-banner {
  width: min(800px, calc(100% - 32px));
  height: 116px;
  margin: 0 auto;
  padding: 7px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: white;
  /* background: #188ddf url("/images/clouds.jpg") center 38% / cover; */
  background: #188DDF;
background: linear-gradient(90deg,rgba(1, 104, 184, 1) 3%, rgba(84, 163, 215, 1) 100%, rgba(204, 227, 244, 1) 100%);
  border: 3px ridge #eef8ff;
  text-align: center;
  text-shadow: 2px 2px 0 #336caa;
}

.site-banner img {
  width: 105px;
  height: 105px;
  object-fit: contain;
  margin-right: 8px;
}

.site-banner p {
  margin: 0;
  font-family: "Cloudy", "Comic Sans MS", "Trebuchet MS", cursive;
  font-size: clamp(32px, 6vw, 48px);
  font-weight: normal;
  line-height: 1;
  letter-spacing: 1px;
}

.site-banner small {
  font-size: 13px;
  text-shadow: 1px 1px 0 #225891;
}

.top-nav {
  width: min(800px, calc(100% - 32px));
  margin: 0 auto;
  padding: 2px;
  background: var(--silver);
  border: 2px ridge #fff;
}

.top-nav nav {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
}

.top-nav a {
  min-width: 0;
  padding: 6px 3px;
  overflow: hidden;
  color: #006a90;
  background: #e8f1fb;
  border: 2px outset #fff;
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
}

.top-nav a:nth-child(1),
.top-nav a:nth-child(7) {
  color: #a06d00;
}

.top-nav a:nth-child(3) {
  color: var(--green);
}

.top-nav a:nth-child(4) {
  color: var(--purple);
}

.top-nav a:nth-child(6) {
  color: #d12a19;
}

.top-nav a:hover,
.top-nav a.active,
.top-nav a[aria-current="page"] {
  color: #fff;
  background: #082a83;
  border-style: inset;
  text-decoration: none;
}

.persistent-shell {
  width: min(1280px, calc(100% - 28px));
  min-height: 0;
  margin-top: 14px;
  grid-template-columns: 185px minmax(0, 800px) 185px;
  justify-content: center;
  gap: 8px;
}

.sidebar {
  gap: 8px;
}

.box,
.main-panel,
.about-card,
.latest-post-card,
.game-summary,
.devlog-entry,
.blog-entry,
.latest-post-message,
.guestbook-frame {
  color: #111;
  background: rgba(241, 246, 255, .96);
  border: 3px double var(--panel-border);
  box-shadow: 1px 1px 0 rgba(255, 255, 255, .8);
}

.box {
  padding: 8px;
}

.box h2,
.box h3,
.latest-post-section>h2,
.about-card h2 {
  margin: -8px -8px 8px;
  padding: 5px 7px;
  color: var(--purple);
  background: linear-gradient(#fff, #e7eef9);
  border-bottom: 1px solid var(--panel-border);
  font-size: 13px;
  line-height: 1.15;
  text-align: center;
}

.box h2::before,
.latest-post-section>h2::before,
.about-card h2::before {
  content: "~ ";
}

.box h2::after,
.latest-post-section>h2::after,
.about-card h2::after {
  content: " ~";
}

.box p,
.box li {
  font-size: 11px;
  line-height: 1.45;
}

.sidebar-image {
  border: 2px inset #fff;
  margin-bottom: 8px;
}

.profile-box .sidebar-image {
  padding: 7px;
  background: white;
}

.profile-box h2 {
  color: #007da5;
}

.mini-stamp {
  padding: 4px 2px;
  border: 0;
  font-size: 10px;
}

.stamp-grid {
  gap: 2px;
}

.mini-stamp img {
  vertical-align: middle;
}

.link-box textarea {
  width: 100%;
  height: 62px;
  margin-top: 7px;
  resize: none;
  border: 2px inset #fff;
  font-size: 9px;
}

.link-box img {
  width: 88px;
  height: 31px;
  image-rendering: auto;
}

.music-player h2 {
  border-bottom: 1px solid var(--panel-border);
}

.album-placeholder {
  aspect-ratio: auto;
  height: 145px;
  padding: 3px;
  border: 2px inset #fff;
}

.track-info {
  padding: 5px;
}

.track-info strong {
  color: #003e9d;
  font-size: 12px;
}

.player-controls button,
.playlist button {
  color: #111;
  background: var(--silver);
  border: 2px outset #fff;
  font-size: 10px;
}

.player-controls button {
  min-width: 40px;
  padding: 4px;
}

.playlist {
  max-height: 260px;
}

.playlist button {
  padding: 4px;
}

.playlist button.active {
  color: white;
  background: #082a83;
  border-style: inset;
}

.site-frame {
  height: 780px;
}

body.frame-page {
  font-size: 13px;
}

.frame-layout {
  width: 100%;
  padding: 0 0 18px;
  display: block;
}

.frame-layout>.main-panel {
  width: 100%;
}

.main-panel {
  padding: 10px 12px 14px;
}

.main-header {
  margin: -6px -8px 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--panel-border);
}

.main-header h1 {
  margin: 0;
  color: #007da5;
  font-size: 20px;
  line-height: 1.2;
  text-transform: lowercase;
}

.main-header h1::before {
  content: "~ ";
}

.main-header h1::after {
  content: " ~";
}

.latest-post-grid {
  gap: 8px;
  margin-top: 14px;
  max-width: none;
}

.home-journal-section {
  margin: 0 auto 16px;
}

.home-journal-section .blog-entries {
  gap: 10px;
  max-height: 620px;
  padding-right: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-color: var(--panel-border) #e8f1fb;
}

.home-journal-section .blog-entries::-webkit-scrollbar {
  width: 16px;
}

.home-journal-section .blog-entries::-webkit-scrollbar-track {
  background: #e8f1fb;
  border: 2px inset #fff;
}

.home-journal-section .blog-entries::-webkit-scrollbar-thumb {
  background: var(--silver);
  border: 2px outset #fff;
}

.latest-devlog-grid {
  grid-template-columns: 1fr;
}

.latest-post-section>h2 {
  margin: 0;
  color: var(--green);
}

.latest-post-section:nth-child(2)>h2 {
  color: var(--purple);
}

.latest-post-card {
  padding: 10px;
  border-width: 1px;
  box-shadow: none;
}

.latest-post-card h3 {
  color: #0053a5;
  font-size: 14px;
}

.latest-post-card p {
  font-size: 14px;
  line-height: 1.45;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.about-card {
  padding: 10px;
}

.about-card h2 {
  margin: -10px -10px 8px;
  color: var(--purple);
}

.about-card p,
.about-card li {
  font-size: 12px;
  line-height: 1.5;
}

.about-card ul {
  margin: 0;
  padding-left: 19px;
}

.album-grid {
  gap: 14px 10px;
}

.album-card h2 {
  font-size: 13px;
}

.album-card p {
  font-size: 11px;
}

.album-card img {
  border: 2px inset #fff;
}

.blog-page,
.game-page {
  width: 100%;
}

.blog-page>.main-header h1,
.blog-page>.main-header p {
  color: #007da5;
  text-shadow: none;
}

.blog-entries,
.devlog-entries {
  gap: 10px;
}

.blog-entry,
.devlog-entry,
.game-summary {
  padding: 14px;
  border-width: 3px;
  box-shadow: none;
}

.blog-entry h2,
.devlog-entry h3 {
  font-size: 18px;
}

.blog-entry p,
.devlog-content p,
.game-summary p {
  font-size: 14px;
  line-height: 1.5;
}

.site-footer {
  width: min(800px, calc(100% - 32px));
  margin: 0 auto 18px;
  padding: 8px;
  color: #ffffff;
  /* background: rgba(220, 238, 255, .84); */
  background: rgba(5, 113, 189, .84);
  border: 2px ridge #fff;
  font-size: 11px;
  text-align: center;
}

.site-footer a {
  color: #ffffff;
}

.site-footer p {
  margin: 4px 0 8px;
}

.site-footer a:hover {
  color: #000000;
}

.site-footer img {
  width: auto;
  height: 31px;
  margin: 2px 4px;
  vertical-align: middle;
}

@media (max-width: 980px) {
  .persistent-shell {
    width: min(800px, calc(100% - 24px));
    grid-template-columns: 1fr;
  }

  .persistent-shell>.left-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    order: 2;
  }

  .persistent-shell>.right-sidebar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .album-placeholder {
    height: 220px;
  }
}

@media (max-width: 640px) {
  .site-banner {
    height: 92px;
    padding: 4px 10px;
  }

  .site-banner img {
    width: 72px;
    height: 72px;
  }

  .site-banner p {
    font-size: 31px;
  }

  .site-banner small {
    font-size: 10px;
  }

  .top-nav nav {
    grid-template-columns: repeat(4, 1fr);
  }

  .persistent-shell>.left-sidebar,
  .persistent-shell>.right-sidebar {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .latest-post-grid {
    grid-template-columns: 1fr;
  }

  .album-placeholder {
    height: auto;
    aspect-ratio: 1;
  }
}

@media (max-width: 420px) {
  .site-banner img {
    display: none;
  }

  .site-banner p {
    font-size: 28px;
  }

  .top-nav nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* INTRO / SPLASH PAGE */

body.intro-page {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: clamp(12px, 4vw, 48px) clamp(10px, 3vw, 20px);
  display: grid;
  place-items: center;
  color: #0066B8ff;
  background-color: #84c8f3;
  background-image: url("/images/orig.png");
  background-size: 5%;
  background-repeat: repeat;
  animation: cloud-scroll 24s linear infinite;
}

@keyframes cloud-scroll {
  from { background-position: 0 0; }
  to { background-position: 288px 0; }
}

@media (prefers-reduced-motion: reduce) {
  body.intro-page { animation: none; }
}

.intro-card {
  position: relative;
  width: min(790px, 100%);
  padding: clamp(24px, 5vw, 46px) clamp(18px, 5vw, 42px) clamp(18px, 3vw, 24px);
  background: rgba(244, 249, 255, .94);
  border: 4px double var(--panel-border);
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, .8),
    3px 3px 0 rgba(34, 92, 177, .3);
}

.intro-welcome {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.intro-portrait {
  width: 225px;
  height: 285px;
  margin: 0;
  padding: 7px;
  align-self: start;
  overflow: hidden;
  background: #dceeff;
  border: 3px double #6897e8;
  box-shadow: 2px 2px 0 #b2c8e8;
}

.intro-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.intro-copy { text-align: center; }

.intro-copy h1 {
  margin: 0 0 18px;
  color: #0066B8ff;
  font-family: "Cloudy", "Comic Sans MS", cursive;
  font-size: clamp(24px, 8vw, 24px);
  font-weight: normal;
  line-height: .78;
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 #fff;
}

.intro-message {
  padding: 14px 0 8px;
  border-top: 2px dashed #7ba5ec;
  text-align: left;
}

.intro-message p {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.25;
}

.intro-message p span {
  color: #fff;
  font-size: 22px;
  line-height: 14px;
  -webkit-text-stroke: 1px #3976dd;
}

.intro-enter {
  width: min(260px, 100%);
  margin: 4px auto 3px;
  padding: 9px 18px 7px;
  display: inline-flex;
  align-items: center;
  justify-content: space-around;
  gap: 16px;
  color: #0066B8ff;
  background: #e8f1fb;
  border: 4px outset #fff;
  border-radius: 0;
  box-shadow: 2px 2px 0 #7997bb;
  font-family: "Cloudy", "Arial Black", sans-serif;
  font-size: 33px;
  line-height: 1;
  text-decoration: none;
  text-shadow: 2px 2px 0 #fff;
}

.intro-enter:hover,
.intro-enter:focus-visible {
  color: #fff;
  background: #082a83;
  outline: 3px dotted #174cba;
  outline-offset: 4px;
  text-decoration: none;
  text-shadow: 2px 2px 0 #174cba;
}

.intro-enter:active {
  translate: 0 3px;
  box-shadow: 0 1px 0 #9ab6e7;
}

.intro-footer {
  margin-top: 18px;
  padding-top: 17px;
  display: flex;
  justify-content: space-around;
  gap: 14px;
  border-top: 2px dashed #7ba5ec;
  font-size: 11px;
  font-weight: bold;
  text-align: center;
}

@media (max-width: 700px) {
  body.intro-page {
    align-items: start;
    padding: 14px 10px;
  }

  .intro-card {
    margin-block: auto;
    padding: 22px clamp(12px, 5vw, 24px) 16px;
  }

  .intro-welcome {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .intro-portrait {
    width: min(170px, 52vw);
    height: auto;
    aspect-ratio: 119 / 120;
    margin-inline: auto;
  }

  .intro-copy h1 {
    margin-bottom: 14px;
    font-size: clamp(24px, 9vw, 32px);
    line-height: 1;
  }

  .intro-message {
    padding-top: 12px;
  }

  .intro-message p {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 6px;
    margin-bottom: 10px;
    overflow-wrap: anywhere;
  }

  .intro-enter {
    font-size: clamp(25px, 9vw, 30px);
  }

  .intro-footer {
    margin-top: 14px;
    padding-top: 12px;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 390px) {
  .intro-card {
    padding-inline: 12px;
  }

  .intro-message p {
    font-size: 12px;
  }

  .intro-enter {
    gap: 8px;
    padding-inline: 10px;
  }
}
