/* ==========================================================================
   Disput — retro theme overrides
   Layers: tokens → base → shared patterns → layout → components → responsive
   ========================================================================== */

/* Fonts: self-hosted — see static/css/fonts.css (loaded from head before this file) */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --retro-bg: #ebe3d4;
  --retro-bg-radial-mid: #f7f2e6;
  --retro-bg-radial-edge: #d4c5a8;
  --retro-panel: #f1e9d8;
  --retro-surface-inset: #ece4d1;
  --retro-surface-highlight: #efe6d4;
  --retro-surface-toc: #f0e9d9;
  --retro-surface-code: #f0eadb;
  --retro-border-soft: #d6ccb7;

  /* Text & accents */
  --retro-ink: #1b1a17;
  --retro-muted: #5b5448;
  --retro-accent: #c36a2d;
  --retro-accent-hover: #9c4f1a;
  --retro-on-dark: #f4efe1;
  --retro-line: #26221b;
  --retro-line-soft: #2a251d;
  --retro-dash: #a39a87;
  --retro-rating-empty: #b7ae9a;
  --retro-widget-bar: #202020;

  /* Chips */
  --retro-chip-bg: #d8c49a;
  --retro-chip-border: #b0966e;

  /* Typography */
  /* --retro-serif: "Merriweather", "Noto Serif", Georgia, serif; */
  --retro-serif: "Noto Serif", Georgia, serif;
  --retro-sans: "Oswald", sans-serif;
  --retro-sidebar: 'Montserrat', sans-serif;
  /* --retro-sidebar: "Oswald", sans-serif; */

  /* Layout */
  --retro-max-width: 1320px;
  --retro-nav-max: 1440px;
  --retro-bp-md: 960px;
  --retro-gutter: 1rem;
  --retro-gutter-mobile: max(0.55rem, env(safe-area-inset-left, 0px));

  /* Overlays */
  --retro-backdrop: rgba(27, 26, 23, 0.55);
  --retro-shadow-menu: 0 10px 24px rgba(27, 26, 23, 0.12);
  --retro-shadow-cookie: 0 -6px 20px rgba(27, 26, 23, 0.12);
}

/* --------------------------------------------------------------------------
   2. Base & document
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--retro-ink);
  background-color: var(--retro-bg);
  background-image: radial-gradient(
    ellipse 135% 100% at 50% 16%,
    var(--retro-bg-radial-mid) 0%,
    var(--retro-bg) 46%,
    var(--retro-bg-radial-edge) 100%
  );
}

body {
  min-height: 100vh;
  font-family: var(--retro-sans);
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding-left: 1.1rem;
}

/* --------------------------------------------------------------------------
   3. Shared patterns (reused across components)
   -------------------------------------------------------------------------- */

/* Sans UI label (uppercase, tracked) */
.retro-latest-posts-heading,
.retro-widget-title,
.retro-single-toc h2,
.retro-cookie-consent__title {
  font-family: var(--retro-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--retro-ink);
}

/* Serif body copy */
.retro-summary,
.retro-summary p,
.retro-game-summary,
.retro-cookie-consent__intro {
  font-family: var(--retro-serif);
  color: var(--retro-ink);
  text-align: justify;
}

/* Accent text link */
.retro-single-body a:not(.button),
.retro-cookie-consent__policy {
  color: var(--retro-accent);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.retro-single-body a:not(.button):hover,
.retro-single-body a:not(.button):focus-visible,
.retro-cookie-consent__policy:hover,
.retro-cookie-consent__policy:focus-visible {
  color: var(--retro-accent-hover);
}

/* Inset framed image surface */
.post-img img,
.retro-game-thumb img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--retro-surface-inset);
  padding: 0.2rem;
}

/* Chip / tag pill */
.retro-chip,
.post_tag.button,
.post_tag.button.button_translucent {
  display: inline-block;
  border: 1px solid var(--retro-chip-border);
  border-radius: 0;
  background: var(--retro-chip-bg);
  color: var(--retro-ink);
  padding: 0.3rem 0.8rem;
  font-family: var(--retro-sidebar);
  font-size: 0.7rem;
  font-weight: 700;
  /* line-height: 1.1; */
  /* letter-spacing: 0.09em; */
  text-transform: uppercase;
  box-shadow: none;
}

.retro-chip {
  font-size: 0.68rem;
}

.post_tag.button .button_tally,
.post_tag.button.button_translucent .button_tally {
  margin-left: 0.22rem;
  border-radius: 0;
  background: transparent;
  color: var(--retro-accent);
  padding: 0;
}

/* Keyboard focus ring */
.retro-thumbnail-link:focus-visible,
.retro-imgfloat-open:focus-visible {
  outline: 2px solid var(--retro-accent);
  outline-offset: 3px;
}

/* Article + section intro prose (tables, type) */
.retro-single-body,
.retro-section-intro {
  color: var(--retro-ink);
  font-family: var(--retro-serif);
  line-height: 1.7;
  font-size: 1.08rem;
}

.retro-single-body {
  text-align: justify;
}

.retro-section-intro {
  margin: 1rem 0 1.15rem;
}

.retro-section-intro > *:first-child {
  margin-top: 0;
}

.retro-section-intro > *:last-child {
  margin-bottom: 0;
}

.retro-single-body table,
.retro-section-intro table {
  width: max-content;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 1rem 0;
  font-family: var(--retro-sans);
  font-size: 0.92rem;
  line-height: 1.35;
}

.retro-single-body table th,
.retro-single-body table td,
.retro-section-intro table th,
.retro-section-intro table td {
  padding: 0.45rem 0.55rem;
  text-align: center;
  vertical-align: middle;
  overflow-wrap: break-word;
}

.retro-single-body table thead th,
.retro-single-body table thead td,
.retro-section-intro table thead th,
.retro-section-intro table thead td,
.retro-single-body table > tbody:first-child > tr:first-child > th,
.retro-single-body table > tbody:first-child > tr:first-child > td,
.retro-section-intro table > tbody:first-child > tr:first-child > th,
.retro-section-intro table > tbody:first-child > tr:first-child > td {
  border-bottom: 1px dashed var(--retro-dash);
}

.retro-single-body table th:first-child,
.retro-single-body table td:first-child,
.retro-section-intro table th:first-child,
.retro-section-intro table td:first-child {
  border-right: 1px dashed var(--retro-dash);
}

.retro-single-body p,
.retro-single-body li,
.retro-single-body blockquote {
  font-family: var(--retro-serif);
}

.retro-single-body h1,
.retro-single-body h2,
.retro-single-body h3,
.retro-single-body h4 {
  font-family: var(--retro-sans);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--retro-ink);
}

.retro-single-body h2 {
  font-size: 1.36rem;
}

.retro-single-body h3 {
  font-size: 1.18rem;
}

.retro-single-body h2,
.retro-single-body h3 {
  padding-top: 0.75rem;
}

.retro-single-body a.external-link::after {
  content: " ↗";
  font-size: 0.82em;
  letter-spacing: 0;
}

.retro-single-body blockquote {
  border-left: 4px solid var(--retro-accent);
  background: var(--retro-surface-highlight);
  padding: 0.55rem 0.8rem;
  margin: 1rem 0;
}

.retro-single-body code,
.retro-single-body pre {
  background: var(--retro-surface-code);
}

.retro-single-body pre {
  border: 1px solid var(--retro-border-soft);
  padding: 0.7rem;
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.wrap {
  max-width: var(--retro-max-width);
  margin-inline: auto;
  padding-inline: var(--retro-gutter);
}

.content {
  margin-block: 1.2rem;
}

.content.retro-archive {
  gap: 1.5rem;
}

.grid-inverse {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 1.5rem;
}

.sidebar {
  min-width: 0;
}

.sidebar_inner {
  position: sticky;
}

/* --------------------------------------------------------------------------
   5. Archive / list
   -------------------------------------------------------------------------- */
.posts {
  list-style: none;
  padding-left: 0;
  border-right: 1px dashed var(--retro-dash);
}

.post_item {
  list-style: none;
}

.excerpt_header,
.excerpt_footer {
  padding: 0 1rem 1rem;
}

.excerpt_footer {
  padding-top: 0;
}

.excerpt_footer.partition {
  display: grid;
  grid-template-columns: 2fr 7fr;
  gap: 1rem;
}

.excerpt_thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.retro-thumbnail-link {
  display: block;
  line-height: 0;
}

.retro-latest-posts-heading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.35rem 0 0;
  font-size: 0.95rem;
  line-height: 1.2;
}

.retro-latest-posts-heading__rule {
  flex: 0 0 1.25rem;
  height: 0;
  border-top: 2px solid var(--retro-line);
}

.retro-latest-posts-heading__rule--grow {
  flex: 1 1 auto;
  min-width: 0.75rem;
}

.retro-latest-posts-heading__text {
  flex: 0 1 auto;
}

.retro-latest-posts-heading__ellipsis {
  flex: 0 0 auto;
  font-weight: 900;
  font-size: 1.8rem;
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1;
  transform: translateY(-0.05em);
}

.retro-post-item {
  margin-bottom: 1.2rem;
  margin-right: 1.2rem;
  border-bottom: 1px dashed var(--retro-dash);
}

.retro-excerpt-header {
  padding-bottom: 0.8rem;
}

.retro-post-title {
  margin-bottom: 0;
}

.retro-post-title a {
  font-family: var(--retro-sans);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
  color: var(--retro-ink);
  line-height: 1.22;
}

.retro-kicker {
  color: var(--retro-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 0;
}

.retro-summary {
  line-height: 1.62;
}

.retro-meta {
  color: var(--retro-muted);
  margin-top: 1rem;
}

.retro-meta .post_meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post_meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.tags_nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.26rem;
}

.post_tags_toggle.button {
  border-radius: 0;
  border: 1px dashed var(--retro-dash);
  background: transparent;
  color: var(--retro-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.66rem;
  padding: 0.2rem 0.45rem;
}

.retro-readmore-row {
  margin-top: 0.75rem;
  margin-bottom: 0;
}

a.excerpt_more.button.retro-readmore,
a.button.retro-readmore {
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--retro-accent);
  font-family: var(--retro-sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0;
}

a.excerpt_more.button.retro-readmore:hover,
a.button.retro-readmore:hover,
a.excerpt_more.button.retro-readmore:focus,
a.button.retro-readmore:focus {
  color: var(--retro-accent-hover);
  background: transparent;
  border: none;
}

.retro-pagination .pagination {
  justify-content: flex-start;
}

/* --------------------------------------------------------------------------
   6. Sidebar widgets
   -------------------------------------------------------------------------- */
.retro-sidebar .retro-widget {
  border: 2px solid var(--retro-line);
  background: var(--retro-panel);
  margin-bottom: 1rem;
}

.retro-widget-title {
  margin: 0;
  padding: 0.5rem 0.9rem;
  font-size: 0.95rem;
  background: var(--retro-widget-bar);
  color: var(--retro-on-dark);
}

.retro-widget-body {
  padding: 0.85rem 0.9rem 1rem;
  border-top: 1px dashed var(--retro-dash);
}

.retro-widget-body li {
  margin-bottom: 0.45rem;
}

.retro-game-thumb {
  margin-bottom: 0.75rem;
  border: 1px solid var(--retro-line);
  padding: 0.25rem;
  background: var(--retro-surface-inset);
}

.retro-game-title {
  margin: 0 0 0.2rem;
  font-family: var(--retro-sans);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}

.retro-game-meta {
  margin: 0;
  color: var(--retro-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.retro-game-summary {
  margin: 0.6rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.retro-mechanics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.6rem;
}

.retro-rating {
  margin: 0.7rem 0 0;
  font-size: 1rem;
  letter-spacing: 0.15rem;
  color: var(--retro-rating-empty);
}

.retro-rating .is-filled {
  color: var(--retro-accent);
}

.retro-sidebar .nav-link {
  color: var(--retro-ink);
}

.retro-sidebar .nav-link:hover {
  color: var(--retro-accent);
}

/* --------------------------------------------------------------------------
   7. Header & navigation
   -------------------------------------------------------------------------- */
.retro-header {
  position: relative;
  font-family: var(--retro-sidebar);
  font-weight: 700;
}

.retro-header-divider {
  height: 2px;
  background: var(--retro-line);
}

.retro-nav {
  max-width: var(--retro-nav-max);
  margin-inline: auto;
  gap: 0;
  align-items: stretch;
  display: flex;
  flex-wrap: nowrap;
}

.retro-nav-toggle {
  display: none;
  border: 1px solid var(--retro-line);
  background: transparent;
  width: 42px;
  height: 38px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.retro-nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--retro-line);
  display: block;
}

.retro-brand {
  padding: 0.75rem 1rem 0.8rem;
  min-width: 360px;
  display: flex;
  align-items: center;
}

.retro-brand-lockup {
  display: flex;
  flex-direction: row;
  align-items: center;
  line-height: 1.1;
  gap: 0.8rem;
}

.retro-brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.retro-brand-mark-img {
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}

.retro-brand-title {
  color: var(--retro-ink);
  text-transform: uppercase;
  font-size: 3rem;
  line-height: 0.96;
  display: block;
  max-width: 250px;
}

.retro-brand-tagline {
  color: var(--retro-accent);
  text-transform: uppercase;
  font-size: 0.8rem;
  display: block;
  margin-top: 0.4rem;
}

.retro-brand-text .logo {
  max-height: 46px;
  width: auto;
  height: auto;
  display: block;
}

.retro-nav-body {
  padding: 0;
  margin-left: auto;
  align-items: stretch;
  display: flex;
  position: relative;
}

.retro-nav-parent {
  border-left: none;
  min-width: 112px;
  display: flex;
  position: relative;
}

.retro-nav-parent::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--retro-line-soft);
}

.retro-nav-item {
  color: var(--retro-ink);
  text-transform: uppercase;
  font-size: 0.8rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 100%;
  width: 100%;
  padding: 0.85rem 0.7rem;
}

.retro-nav-item:hover,
.retro-nav-parent.nav_active > .retro-nav-item {
  color: var(--retro-accent);
}

.retro-nav-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  border: 1.8px solid currentColor;
}

.retro-nav-icon-games {
  border: none;
  background: currentColor;
  clip-path: polygon(50% 0, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
}

.retro-nav-icon-matches {
  border: none;
  background-image: radial-gradient(circle, currentColor 50%, transparent 55%);
  background-size: 50% 50%;
  background-repeat: repeat;
}

.retro-nav-icon-about {
  border-radius: 50%;
  position: relative;
  border-width: 1.6px;
  background: linear-gradient(90deg, currentColor 0 48%, transparent 48% 100%);
}

.retro-nav-sub {
  border: 2px solid var(--retro-line);
  background: var(--retro-panel);
}

/* --------------------------------------------------------------------------
   8. Single post / article
   -------------------------------------------------------------------------- */
.retro-single-layout {
  gap: 1.5rem;
}

.retro-single {
  padding: 1rem 0 1.5rem;
}

.retro-single-header {
  border-bottom: 1px dashed var(--retro-dash);
  padding-bottom: 0.8rem;
  margin-bottom: 1rem;
}

.retro-single-title {
  font-family: var(--retro-sans);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--retro-ink);
  margin-top: 0;
  margin-bottom: 0.45rem;
}

.retro-single-kicker {
  margin-top: 0;
  margin-bottom: 0.65rem;
}

.retro-single-featured {
  margin: 1rem 0 1.3rem;
  background: var(--retro-surface-inset);
}

.post_featured img {
  width: 100%;
  height: auto;
  display: block;
}

.retro-single-toc {
  border: 1px dashed var(--retro-dash);
  background: var(--retro-surface-toc);
  padding: 0.9rem 1rem;
  margin-bottom: 1.1rem;
}

.retro-single-toc h2 {
  margin-top: 0;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
}

.retro-related {
  border-top: 1px dashed var(--retro-dash);
  margin-top: 1.1rem;
  padding-top: 1rem;
}

/* Telegram discuss links */
.retro-discuss-row--top {
  display: flex;
  justify-content: flex-start;
  margin: -0.35rem 0 0.85rem;
}

.retro-discuss-row--bottom {
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--retro-dash);
}

.retro-discuss-link {
  text-decoration: none;
  color: inherit;
}

.retro-discuss-link--cta,
.retro-discuss-link--header {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--retro-sans);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--retro-ink);
}

.retro-discuss-link--cta:hover,
.retro-discuss-link--cta:focus-visible,
.retro-discuss-link--header:hover,
.retro-discuss-link--header:focus-visible {
  color: var(--retro-accent);
}

.retro-discuss-link--cta:hover .retro-telegram-mark__plane,
.retro-discuss-link--cta:focus-visible .retro-telegram-mark__plane,
.retro-discuss-link--header:hover .retro-telegram-mark__plane,
.retro-discuss-link--header:focus-visible .retro-telegram-mark__plane {
  fill: var(--retro-accent-hover);
}

.retro-discuss-link__cta {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.retro-telegram-mark {
  display: inline-flex;
  flex-shrink: 0;
}

.retro-telegram-mark__svg {
  display: block;
  width: 2rem;
  height: 2rem;
}

.retro-discuss-link--cta .retro-telegram-mark__svg,
.retro-discuss-link--header .retro-telegram-mark__svg {
  width: 2.25rem;
  height: 2.25rem;
}

/* --------------------------------------------------------------------------
   9. Figures (imgfloat shortcode)
   -------------------------------------------------------------------------- */
.post-img {
  margin: 0.2rem 0 0.8rem;
}

.post-img-caption {
  margin: 0.35rem 0 0;
  color: var(--retro-muted);
  font-family: var(--retro-serif);
  font-size: 0.86rem;
  line-height: 1.35;
  font-style: italic;
}

.post-img-block {
  float: none;
  clear: both;
  width: 100%;
  max-width: 100%;
  margin: 0.65rem 0 1rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.retro-single-body .post-img-block {
  margin-inline: 0;
}

.post-img-block .post-img-caption {
  margin: 0;
  text-align: center;
  text-wrap: balance;
  max-width: 100%;
}

.retro-imgfloat-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  font: inherit;
  line-height: 0;
  color: inherit;
}

.post-img-block .retro-imgfloat-open {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

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

/* Spoiler: same look as .retro-single-body blockquote */
.retro-spoiler {
  margin: 1rem 0;
  border-left: 4px solid var(--retro-accent);
  background: var(--retro-surface-highlight);
  font-family: var(--retro-serif);
}

.retro-spoiler__summary {
  padding: 0.55rem 0.8rem;
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  font-style: italic;
  text-transform: none;
  letter-spacing: normal;
  color: var(--retro-muted);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.retro-spoiler__summary::-webkit-details-marker {
  display: none;
}

.retro-spoiler__summary::before {
  content: "▸ ";
  font-style: normal;
  color: var(--retro-accent);
}

.retro-spoiler[open] > .retro-spoiler__summary::before {
  content: "▾ ";
}

.retro-spoiler__summary:hover,
.retro-spoiler__summary:focus-visible {
  color: var(--retro-ink);
}

.retro-spoiler[open] > .retro-spoiler__summary {
  padding-bottom: 0.25rem;
}

.retro-spoiler__content {
  padding: 0 0.8rem 0.55rem;
}

.retro-spoiler__content > *:first-child {
  margin-top: 0;
}

.retro-spoiler__content > *:last-child {
  margin-bottom: 0;
}

.retro-imgfloat-dialog {
  max-width: min(96vw, 1200px);
  max-height: min(92vh, 1200px);
  padding: 0;
  border: 2px solid var(--retro-line);
  background: var(--retro-panel);
  color: var(--retro-ink);
}

.retro-imgfloat-dialog::backdrop {
  background: var(--retro-backdrop);
}

.retro-imgfloat-dialog__close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--retro-line);
  background: var(--retro-panel);
  color: var(--retro-ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.retro-imgfloat-dialog__close:hover,
.retro-imgfloat-dialog__close:focus-visible {
  background: var(--retro-surface-highlight);
  color: var(--retro-accent);
}

.retro-imgfloat-dialog__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem 1rem;
  box-sizing: border-box;
  max-height: min(92vh, 1200px);
}

.retro-imgfloat-dialog__img {
  display: block;
  max-width: 100%;
  max-height: min(85vh, 1100px);
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   10. Footer & chrome
   -------------------------------------------------------------------------- */
.retro-footer {
  margin-top: 1.8rem;
}

.retro-footer-divider {
  height: 2px;
  background: var(--retro-line);
}

.retro-footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding-block: 1rem;
}

.retro-footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.retro-footer-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  text-align: center;
}

.retro-footer-logo {
  width: 34px;
  height: 34px;
  border: 1px solid var(--retro-line);
  border-radius: 50%;
  background: var(--retro-surface-inset);
  object-fit: contain;
}

.retro-footer-copy {
  margin: 0;
  color: var(--retro-ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  line-height: 1.5;
}

.retro-footer-legal {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.55rem;
}

.retro-footer-legal-sep {
  color: var(--retro-muted);
  user-select: none;
}

.retro-footer-legal-link {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--retro-muted);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.retro-footer-legal-link:hover,
.retro-footer-legal-link:focus {
  color: var(--retro-accent);
}

.retro-footer-motif {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.retro-footer-motif-right {
  flex-direction: row-reverse;
}

.retro-footer-motif span {
  width: 10px;
  height: 10px;
  display: inline-block;
  border: 1px solid var(--retro-line);
  background: transparent;
  transform: rotate(45deg);
}

.retro-footer-motif span:nth-child(2) {
  background: var(--retro-accent);
}

.retro-footer-motif span:nth-child(3) {
  background: var(--retro-line);
}
/* .retro-footer-motif span:nth-child(3) {
  width: 14px;
  height: 14px;
  background: var(--retro-line);
  transform: none;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
 */
.retro-footer-motif span:nth-child(4) {
  width: 16px;
  height: 6px;
  transform: none;
  border-width: 1px 0;
}

.hex::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: #c36a2d; /* fill */
  clip-path: inherit;
}
.retro-footer .to_top {
  background: var(--retro-line);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.to_top[hidden] {
  display: none !important;
}

.to_top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--retro-line);
  text-decoration: none;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--retro-on-dark);
  z-index: 30;
  padding-bottom: 0.2em;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(calc(100% + 0.75rem));
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    visibility 0.28s;
}

.to_top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

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

.i18n-list {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
}

.i18n-list a {
  border: 1px solid var(--retro-line);
  padding: 0.2rem 0.5rem;
}

/* --------------------------------------------------------------------------
   11. Cookie consent
   -------------------------------------------------------------------------- */
html.retro-cookie-open,
html.retro-cookie-open body {
  overflow: hidden;
}

.retro-cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top, 0)) max(1rem, env(safe-area-inset-right, 0))
    max(1rem, env(safe-area-inset-bottom, 0)) max(1rem, env(safe-area-inset-left, 0));
}

.retro-cookie-consent[hidden] {
  display: none;
}

.retro-cookie-consent__backdrop {
  position: absolute;
  inset: 0;
  background: var(--retro-backdrop);
}

.retro-cookie-consent__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  max-height: min(90vh, 32rem);
  overflow: auto;
  background: var(--retro-panel);
  border: 2px solid var(--retro-line);
  box-shadow: var(--retro-shadow-menu);
}

.retro-cookie-consent__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
  padding: 1.35rem 1.25rem 1.25rem;
}

.retro-cookie-consent__text {
  min-width: 0;
}

.retro-cookie-consent__title {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}

.retro-cookie-consent__intro {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.retro-cookie-consent__actions {
  display: flex;
  direction: row;
  /* flex-wrap: wrap; */
  justify-content: center;
  gap: 0.65rem;
}

.retro-cookie-consent__btn {
  font-family: var(--retro-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.55rem 1rem;
  min-width: 7.5rem;
  cursor: pointer;
  border: 2px solid var(--retro-line);
  border-radius: 0;
}

.retro-cookie-consent__btn--reject {
  background: transparent;
  color: var(--retro-ink);
}

.retro-cookie-consent__btn--reject:hover,
.retro-cookie-consent__btn--reject:focus {
  background: var(--retro-surface-highlight);
}

.retro-cookie-consent__btn--accept {
  background: var(--retro-line);
  color: var(--retro-on-dark);
}

.retro-cookie-consent__btn--accept:hover,
.retro-cookie-consent__btn--accept:focus {
  background: #3a3428;
}

/* --------------------------------------------------------------------------
   12. Responsive — max-width: 960px
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .wrap {
    padding-left: var(--retro-gutter-mobile);
    padding-right: max(0.55rem, env(safe-area-inset-right, 0px));
  }

  .excerpt_header,
  .excerpt_footer {
    padding-inline: 0;
  }

  .posts {
    border-right: none;
  }

  .retro-post-item {
    margin-bottom: 1.2rem;
    margin-right: 0;
  }

  .retro-nav {
    position: relative;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
  }

  .retro-nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .retro-nav-body {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    background: var(--retro-panel);
    border-top: 1px dashed var(--retro-dash);
    border-bottom: 1px solid var(--retro-line);
    box-shadow: var(--retro-shadow-menu);
    z-index: 30;
  }

  .retro-header.is-menu-open .retro-nav-body {
    display: flex;
  }

  .grid-inverse {
    grid-template-columns: 1fr;
  }

  .excerpt_footer.partition {
    grid-template-columns: 1fr;
  }

  .sidebar_inner {
    position: static;
  }

  .retro-brand {
    min-width: 0;
    flex: 0 1 auto;
    padding-left: 0.2rem
  }

  .retro-nav-parent {
    border-left: none;
    border-top: 1px dashed var(--retro-dash);
    width: 100%;
  }

  .retro-nav-parent::before,
  .retro-nav-body::after {
    display: none;
  }

  .retro-nav-item {
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
  }

  .retro-brand-mark-img {
    width: 64px;
    height: 64px;
  }

  .retro-brand-title {
    font-size: 1.6rem;
    max-width: none;
  }

  .retro-footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .retro-footer-motif {
    display: none;
  }

  .retro-footer-content {
    flex-direction: column;
  }

  .post-img-left,
  .post-img-right {
    float: none;
    width: 100%;
    margin: 0.4rem 0 0.9rem;
  }
}

/* --------------------------------------------------------------------------
   13. Responsive — min-width: 961px
   -------------------------------------------------------------------------- */
@media (min-width: 961px) {
  .retro-single {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .post-img-left,
  .post-img-right {
    width: min(42%, 340px);
  }

  .post-img-left {
    float: left;
    margin: 0.2rem 1rem 0.8rem 0;
  }

  .post-img-right {
    float: right;
    margin: 0.2rem 0 0.8rem 1rem;
  }
}

/* --------------------------------------------------------------------------
   14. Print
   -------------------------------------------------------------------------- */
@page {
  margin: 15mm;
}

@media print {
  .retro-cookie-consent,
  .sidebar,
  .retro-sidebar,
  .retro-nav-toggle,
  .to_top,
  .retro-footer-legal {
    display: none !important;
  }

  .retro-single-layout.grid-inverse {
    display: block;
  }

  .retro-single {
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  html,
  body {
    background-color: #fff !important;
    background-image: none !important;
  }

  .wrap {
    max-width: none;
    padding-inline: 0;
  }

  .retro-single-body .post-img-left,
  .retro-single-body .post-img-right {
    width: min(42%, 340px) !important;
    max-width: 340px;
  }

  .retro-single-body .post-img-left {
    float: left !important;
    margin: 0.2rem 1rem 0.8rem 0 !important;
  }

  .retro-single-body .post-img-right {
    float: right !important;
    margin: 0.2rem 0 0.8rem 1rem !important;
  }

  .retro-single-body .post-img,
  .retro-single-featured img {
    max-width: min(100%, 860px);
  }

  .retro-single-featured img {
    width: auto;
    height: auto;
    margin-inline: auto;
  }

  .post_content.retro-single img {
    max-width: min(100%, 860px);
    height: auto;
  }
}
