/* Pixpil rebuilt — visual style matched to the original Raft theme:
   - cream background, near-black text
   - illustrated brand assets (bird mascot, hand-drawn lang icons, pixel wordmark)
   - bold yellow footer (#ffd20a)
   - playful but understated body typography */

:root {
  --bg: #fffdfa;
  --fg: #1d1f25;
  --fg-muted: #555a66;
  --fg-soft: #8a909a;
  --accent: #ffd20a;
  --accent-ink: #1d1f25;
  --rule: #ebe7df;

  --container: 76rem;
  --container-narrow: 44rem;
  --gutter: clamp(1rem, 3.5vw, 2.5rem);

  --ff-body: "Readex Pro", system-ui, -apple-system, "Helvetica Neue",
    "Hiragino Sans", "Yu Gothic", "Noto Sans CJK JP", "Noto Sans CJK SC",
    "Microsoft YaHei", sans-serif;
  --ff-display: "Outfit", "Readex Pro", system-ui, sans-serif;

  --fs-body: 1rem;
  --fs-h1: clamp(2.25rem, 5vw, 3.5rem);
  --fs-h2: clamp(1.5rem, 2.6vw, 2rem);
  --fs-hero: clamp(3rem, 9vw, 6.5rem);
}

* { box-sizing: border-box; }

/* Overscroll handling. Browsers paint only the <html> solid background-color
   in the rubber-band region (background-image is ignored there). So we set
   the canvas to the footer colour — yellow shows during bottom overscroll
   matching the footer band. <body> covers the viewport above with cream
   (min-height: 100vh below) so users never see yellow during normal scroll.
   The top rubber-band still reveals yellow above the (cream-translucent)
   sticky header — yellow is the brand colour and reads as accent, not glitch. */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background-color: var(--accent);
  scrollbar-color: rgba(255, 210, 10, 0.55) transparent;
  scrollbar-width: thin;
}

/* Custom text selection */
::selection { background: var(--accent); color: var(--accent-ink); }

/* Custom scrollbar (WebKit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 210, 10, 0.55);
  border-radius: 999px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ───────── Keyframes ───────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(36px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes sheen {
  0%   { transform: translateX(-120%) skewX(-18deg); }
  100% { transform: translateX(260%)  skewX(-18deg); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0); }
  35%      { transform: translateY(-4px) rotate(-2deg); }
  70%      { transform: translateY(2px) rotate(1deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  min-height: 100vh;        /* cover the viewport so html-yellow only shows on overscroll */
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 210, 10, 0.045) 0 1.5px, transparent 2px),
    radial-gradient(circle at 88% 6%, rgba(41, 160, 255, 0.04) 0 1.5px, transparent 2px),
    radial-gradient(circle at 60% 35%, rgba(255, 105, 0, 0.035) 0 1.5px, transparent 2px);
  background-size: 24px 28px, 32px 30px, 28px 26px;
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
a:hover { text-decoration-color: var(--fg); }

img { max-width: 100%; height: auto; display: block; }

/* ───────── Header ───────── */

.site-header {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  position: sticky;
  top: 0;
  z-index: 20;
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.25);
}

.brand img { transition: transform 0.25s ease; }
.brand:hover img { animation: bob 0.9s ease both; }

.site-header__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0.85rem var(--gutter) 0.65rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px dotted #c9c3b6;
}

.brand {
  display: inline-flex;
  align-items: flex-start;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: clamp(54px, 6.5vw, 76px);
  display: block;
}

.site-header__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  padding-top: 0.1rem;
}

.lang-switch {
  display: flex;
  gap: 0.35rem;
}

.lang-switch a {
  display: inline-block;
  line-height: 0;
}

.lang-switch img {
  width: 20px;
  height: 20px;
  opacity: 0.32;
  transition: opacity 0.15s ease;
}

.lang-switch a[aria-current="true"] img,
.lang-switch a:hover img {
  opacity: 1;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.4rem;
  font-family: var(--ff-display);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  width: 100%;
  justify-content: flex-end;
}

.site-nav a {
  text-decoration: none;
  color: var(--fg);
  padding-block: 0.15rem;
  position: relative;
}

.site-nav a:hover {
  color: var(--fg-muted);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.7rem;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

@media (max-width: 640px) {
  .site-header__inner {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 0.8rem;
    gap: 0.5rem;
  }
  .site-header__right {
    align-items: stretch;
    width: 100%;
    min-width: 0;
  }
  .lang-switch { align-self: flex-end; }
  .site-nav {
    font-size: 0.9rem;
    gap: 0.2rem 1.1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.45rem;
    justify-content: flex-start;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; flex: none; }
}

/* ───────── Hero (homepage) — blue banner with character ───────── */

.hero {
  max-width: var(--container);
  margin: 0.85rem auto 0;
  padding-inline: var(--gutter);
}

.hero__inner {
  position: relative;
  background-color: #29a0ff;
  border-radius: 10px;
  color: #ffffff;
  min-height: clamp(220px, 24vw, 320px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: stretch;
  overflow: hidden;
  box-shadow: 0 12px 32px -12px rgba(41, 160, 255, 0.35);
  isolation: isolate;
}


.hero__text {
  padding: clamp(1.5rem, 3.5vw, 2.5rem) clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero__text h1 { animation: fadeUp 0.7s ease-out both; }
.hero__text p  { animation: fadeUp 0.7s 0.15s ease-out both; }

.hero__art {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  display: block;
  pointer-events: none;
  animation: slideInRight 0.8s 0.1s cubic-bezier(.2,.7,.2,1) both;
}

.hero h1 {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 60, 120, 0.18);
}

.hero p {
  margin: 0.9rem 0 0;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-family: var(--ff-display);
  letter-spacing: 0.02em;
  opacity: 0.96;
  text-shadow: 0 1px 6px rgba(0, 60, 120, 0.15);
}

/* Phone: stack text on top, character as a contained band below */
@media (max-width: 600px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }
  .hero__text {
    padding-bottom: 0.35rem;
    text-align: left;
  }
  .hero__art {
    height: auto;
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    object-position: 65% 50%;
  }
}

/* ───────── Home grid ───────── */

.iconrule {
  border: 0;
  border-top: 1px dashed #c8c2b4;
  max-width: var(--container);
  margin: 0 auto;
  margin-inline: auto;
  position: relative;
}

.iconrule::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 11px;
  height: 11px;
  background: var(--bg);
  border: 1px dashed #c8c2b4;
  border-radius: 50%;
}

.home-grid {
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(1.75rem, 3.5vw, 2.75rem) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.home-col { min-width: 0; }

@media (max-width: 720px) {
  .home-grid { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
}

.home-col__title {
  font-family: var(--ff-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg);
  margin: 0 0 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.home-col__title::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 210, 10, 0.18);
}

.news-thumb-list {
  list-style: none;
  padding: 0;
  margin: 0 -0.5rem;
  display: grid;
  gap: 0.5rem;
}

.news-thumb-list a {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
  align-items: center;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.news-thumb-list a:hover {
  background: rgba(255, 210, 10, 0.08);
}

.news-thumb-list__img {
  display: block;
  width: 76px;
  height: 76px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--rule);
}

.news-thumb-list__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-thumb-list a:hover .news-thumb-list__img img {
  transform: scale(1.05);
}

.news-thumb-list__img--blank { background: var(--rule); }

.news-thumb-list__body { display: flex; flex-direction: column; gap: 0.25rem; }

.news-thumb-list__title {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--fg);
  overflow-wrap: anywhere;
}

.news-thumb-list__date {
  font-size: 0.78rem;
  color: var(--fg-soft);
  font-family: var(--ff-display);
  letter-spacing: 0.04em;
}

.game-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.game-list a {
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  color: var(--fg);
}

.game-list a::before {
  content: "›";
  color: var(--fg-soft);
  font-weight: 700;
}

.game-list a:hover {
  color: #2a8fe0;
}

.home-rule-wrap {
  padding: clamp(1.5rem, 3vw, 2.25rem) var(--gutter) 0;
}

/* ───────── Games index (split banners) ───────── */

.page--wide { max-width: 64rem; }

.game-banners {
  display: grid;
  gap: 1.1rem;
}

.game-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: clamp(180px, 22vw, 240px);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  isolation: isolate;
}

/* Diagonal light sheen sweeping across on hover */
.game-banner::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 30%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
  transform: translateX(-120%) skewX(-18deg);
  pointer-events: none;
  z-index: 3;
}
a.game-banner:hover::after { animation: sheen 0.95s cubic-bezier(.2,.7,.2,1) forwards; }

a.game-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.game-banner__media img { transition: transform 0.6s ease; }
a.game-banner:hover .game-banner__media img { transform: scale(1.04); }

/* media on the right → panel first in DOM, image second visually */
.game-banner--media-right .game-banner__media { order: 2; }
.game-banner--media-right .game-banner__panel { order: 1; }
.game-banner--media-left .game-banner__media { order: 1; }
.game-banner--media-left .game-banner__panel { order: 2; }

.game-banner__media {
  overflow: hidden;
  background: #11131a;
}
.game-banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.game-banner__media.is-blurred img {
  filter: blur(7px);
  transform: scale(1.08);
}

.game-banner__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  gap: 0.35rem;
}

.game-banner__title {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

.game-banner__subtitle {
  font-family: var(--ff-display);
  font-size: 0.95rem;
  margin: 0;
  opacity: 0.9;
}

.game-banner__platforms {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
}
.game-banner__platforms img {
  width: 24px;
  height: 24px;
  display: block;
  opacity: 0.95;
}

.game-banner__meta {
  font-size: 0.8rem;
  line-height: 1.5;
  opacity: 0.85;
  margin: 0.5rem 0 0;
}

.game-banner__cta {
  align-self: flex-start;
  margin-top: 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
}

@media (max-width: 640px) {
  .game-banner { grid-template-columns: 1fr; }
  .game-banner__media { order: 1 !important; min-height: 160px; }
  .game-banner__panel { order: 2 !important; }
}

/* ───────── About index ───────── */

.about-intro {
  max-width: var(--container-narrow);
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 0.85rem;
}

.about-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1rem 1.15rem;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.about-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--accent) 6%, var(--bg-alt));
}

.about-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.about-card__title {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.005em;
}

.about-card__blurb {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--fg-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.about-card__arrow {
  font-family: var(--ff-display);
  color: var(--fg-soft);
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.18s ease, color 0.18s ease;
}

.about-card:hover .about-card__arrow {
  color: var(--accent-ink);
  transform: translateX(3px);
}

/* ───────── Contact ───────── */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 760px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: 0 6px 22px -12px rgba(0, 0, 0, 0.08);
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form__label {
  font-family: var(--ff-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  text-transform: uppercase;
}

.contact-form__req {
  color: #cf2e2e;
  margin-left: 0.2rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 210, 10, 0.25);
}

.contact-form textarea { resize: vertical; min-height: 7rem; }

.contact-form__notice {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

.contact-form__notice a { color: #2a8fe0; }

.contact-form__submit {
  align-self: flex-start;
  margin-top: 0.5rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.7rem 1.6rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.contact-form__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

.contact-info {
  font-size: 0.95rem;
}

.contact-info h2 {
  font-size: 1.05rem !important;
  margin-top: 1.4em !important;
}
.contact-info h2:first-child { margin-top: 0 !important; }

.contact-info ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.contact-info ul li::before { content: ""; }
.contact-info ul a {
  text-decoration: none;
  font-family: var(--ff-display);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
}

.contact-info img {
  max-width: 180px;
  border-radius: 8px;
}

/* ───────── Page / article (content pages) ───────── */

.section {
  padding-block: clamp(2rem, 4vw, 3rem);
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--container-narrow); }

.page {
  max-width: 60rem;            /* ~960px — wide, like the original */
  margin: 0 auto;
  padding: clamp(1rem, 2.5vw, 1.75rem) var(--gutter) clamp(2rem, 4.5vw, 3.25rem);
}

.page-head { text-align: center; margin-bottom: clamp(1.25rem, 3vw, 2rem); }

.breadcrumb {
  font-size: 0.8rem;
  color: var(--fg-soft);
  margin-bottom: 1rem;
  font-family: var(--ff-display);
}
.breadcrumb a { color: var(--fg-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--fg-muted); }
.breadcrumb__sep { margin: 0 0.4rem; opacity: 0.6; }

.page-date {
  font-family: var(--ff-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--fg-soft);
  margin: 0 0 0.4rem;
}

.page-title {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.2;
  position: relative;
  display: inline-block;
}

.page-title::after {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0.6rem auto 0;
}

.page-foot {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--rule);
}
.back-link { font-family: var(--ff-display); text-decoration: none; font-size: 0.95rem; }
.back-link:hover { color: var(--fg-muted); }

/* Body prose — wide, generous images */
.prose { font-size: 1rem; }

.prose h2,
.prose h3,
.prose h4,
.prose h5 {
  font-family: var(--ff-display);
  line-height: 1.3;
  margin: 1.6em 0 0.55em;
  font-weight: 600;
}

.prose h2 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed var(--rule);
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.prose h2::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  align-self: center;
  box-shadow: 0 0 0 2px rgba(255, 210, 10, 0.16);
}

.prose h3 { font-size: 1.18rem; }
.prose h4, .prose h5 { font-size: 1rem; }

.prose p,
.prose ul,
.prose ol,
.prose blockquote {
  margin-block: 0.9em;
}

.prose img { border-radius: 6px; }

.prose .content-figure,
.prose figure.content-figure {
  margin: 1.25em 0;
  text-align: center;
}
.prose .content-figure img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.prose figcaption {
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-align: center;
  margin-top: 0.5em;
}

.prose blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.1rem;
  color: var(--fg-muted);
  font-style: italic;
}

.prose hr {
  border: 0;
  border-top: 1px dashed var(--rule);
  margin-block: 2.5em;
}

.prose a { color: #2a8fe0; }

/* Button row (recovered from Gutenberg buttons block) */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.75em 0;
}

.prose a.button,
a.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.prose a.button:hover,
a.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

/* Responsive video embeds */
.prose iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 8px;
  margin: 1.5em 0;
}

/* ───────── News list ───────── */

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}

.post-list li {
  border-bottom: 1px dashed var(--rule);
}

.post-list li:last-child { border-bottom: 0; }

.post-list a {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.25rem;
  padding-block: 1.25rem;
  text-decoration: none;
  align-items: baseline;
}

.post-list a:hover .post-list__title { color: var(--fg-muted); }

.post-list__date {
  font-family: var(--ff-display);
  font-size: 0.85rem;
  color: var(--fg-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-list__title {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
  color: var(--fg);
}

@media (max-width: 540px) {
  .post-list a { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* ───────── Footer (yellow) ───────── */

.site-footer {
  margin-top: 3.5rem;
  background: var(--accent);
  color: var(--accent-ink);
  position: relative;
}

/* Scalloped/zigzag top edge — playful transition into the yellow band */
.site-footer::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 18px;
  background-color: var(--accent);
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='18' viewBox='0 0 40 18' preserveAspectRatio='none'><path d='M0 18 L0 8 L10 0 L20 8 L30 0 L40 8 L40 18 Z' fill='black'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='18' viewBox='0 0 40 18' preserveAspectRatio='none'><path d='M0 18 L0 8 L10 0 L20 8 L30 0 L40 8 L40 18 Z' fill='black'/></svg>");
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-size: 40px 18px;
  mask-size: 40px 18px;
}

.site-footer__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 2rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-footer__brand img {
  width: clamp(120px, 14vw, 160px);
  height: auto;
}

.site-footer__copy {
  font-size: 0.85rem;
  line-height: 1.5;
}

.social {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.social a {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--accent-ink);
  text-decoration: none;
  transition: transform 0.15s ease;
}

.social a:hover { transform: translateY(-2px); }
.social svg { display: block; }

/* ───────── Utility ───────── */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
