
/* RetroGinger static - custom retro theme */
:root {
  --bg: #0e1110;
  --bg-alt: #121615;
  --panel: #171c1a;
  --panel-2: #1c2320;
  --line: #2b342f;
  --text: #dde5db;
  --muted: #94a094;
  --amber: #ffb454;
  --amber-dim: #c98a3a;
  --green: #8ee58f;
  --mono: "Cascadia Mono", "Consolas", ui-monospace, "Courier New", monospace;
  --sans: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 8px;
  --wrap: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: #ffd9a3; text-decoration: underline; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 17, 16, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 54px; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.site-nav a {
  font-family: var(--mono); font-size: 13.5px; letter-spacing: 0.02em;
  color: var(--text); padding: 4px 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--amber); text-decoration: none; border-bottom-color: var(--amber); }

/* ---------- layout ---------- */
.main { padding: 36px 20px 72px; min-height: 60vh; }
.section { margin: 56px 0; }
.section-head { margin-bottom: 24px; }
.section h2 {
  font-family: var(--mono); font-size: 24px; margin: 0 0 6px;
  letter-spacing: 0.01em;
}
.section-sub { color: var(--muted); margin: 0; }
.page-head { margin-bottom: 30px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.page-head h1 {
  font-family: var(--mono); font-size: 32px; margin: 0;
  color: var(--amber);
}

/* ---------- hero ---------- */
.hero {
  padding: 56px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(1000px 300px at 20% -50px, rgba(255, 180, 84, 0.10), transparent),
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(142, 229, 143, 0.04) 27px 28px),
    var(--bg-alt);
}
.hero .eyebrow {
  font-family: var(--mono); color: var(--green); text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 13px; margin: 0 0 12px;
}
.hero h1 {
  font-family: var(--mono); font-size: clamp(26px, 4vw, 40px);
  line-height: 1.25; margin: 0 0 16px; max-width: 21ch;
  text-shadow: 0 0 22px rgba(255, 180, 84, 0.25);
}
.hero-text { max-width: 62ch; color: var(--muted); margin: 0 0 26px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--amber); color: #16120a; padding: 9px 18px;
  border: 1px solid var(--amber); border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover {
  background: #ffd08a; color: #16120a; text-decoration: none;
}
.btn-lg { font-size: 14px; padding: 12px 26px; }

/* ---------- cards ---------- */
.card-grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--amber-dim); transform: translateY(-2px); }
.card-media { display: block; background: #0a0d0c; border-bottom: 1px solid var(--line); }
.card-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-date {
  font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin: 0;
}
.card-title { font-family: var(--mono); font-size: 17px; line-height: 1.35; margin: 0; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--amber); }
.card-excerpt { color: var(--muted); font-size: 14.5px; margin: 0; flex: 1; }
.more { font-family: var(--mono); font-size: 13px; }
.card .btn { align-self: flex-start; }

/* ---------- post / page content ---------- */
.post-title {
  font-family: var(--mono); font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.25; margin: 8px 0 28px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  text-shadow: 0 0 18px rgba(255, 180, 84, 0.18);
}
.post-content { max-width: 760px; }
.post-content > * + * { margin-top: 1.1em; }
.post-content p { margin: 0; }
.post-content h2, .post-content h3, .post-content h4 {
  font-family: var(--mono); letter-spacing: 0.01em; line-height: 1.3;
  margin: 1.6em 0 0.5em;
}
.post-content h2 { font-size: 22px; color: var(--amber); }
.post-content h3 { font-size: 19px; color: #ffd9a3; }
.post-content h4 { font-size: 16.5px; }
.post-content img {
  display: block; border: 1px solid var(--line); border-radius: 6px;
  background: #0a0d0c; margin: 0;
}
.post-content figure { margin: 1.4em 0; }
.post-content figcaption {
  color: var(--muted); font-size: 13.5px; margin-top: 8px;
  font-family: var(--mono);
}
.post-content a { text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(255, 180, 84, 0.45); }
.post-content ul, .post-content ol { padding-left: 1.4em; }
.post-content li + li { margin-top: 0.3em; }
.post-content blockquote {
  margin: 1.4em 0; padding: 12px 18px;
  border-left: 3px solid var(--amber);
  background: var(--panel); color: var(--muted);
  border-radius: 0 6px 6px 0;
}
.post-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.post-content code {
  font-family: var(--mono); font-size: 0.92em;
  background: #0a0d0c; border: 1px solid var(--line);
  border-radius: 4px; padding: 1px 6px; color: var(--green);
}
.post-content pre {
  background: #0a0d0c; border: 1px solid var(--line); border-radius: 6px;
  padding: 16px 18px; overflow: auto; line-height: 1.5;
}
.post-content pre code { background: none; border: 0; padding: 0; color: #b9e8b4; }
.post-content table {
  border-collapse: collapse; width: 100%; display: block; overflow-x: auto;
}
.post-content th, .post-content td {
  border: 1px solid var(--line); padding: 8px 12px; text-align: left;
}
.post-content th { background: var(--panel-2); font-family: var(--mono); }
.post-content iframe, .post-content embed, .post-content object,
.post-content video { max-width: 100%; border: 0; }
.post-content .wp-block-embed__wrapper iframe { max-width: 100%; }
.post-content audio { max-width: 100%; }

/* WordPress core block compatibility */
.wp-block-columns { display: flex; gap: 2em; flex-wrap: wrap; }
.wp-block-columns > .wp-block-column { flex: 1 1 240px; min-width: 0; }
.wp-block-group { display: flow-root; }
.wp-block-gallery { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 1.4em 0; }
.wp-block-gallery > li { flex: 1 1 220px; margin: 0; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.2em 0; }
.wp-block-button__link {
  display: inline-block; background: var(--amber); color: #16120a;
  font-family: var(--mono); font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.05em; padding: 9px 18px; border-radius: 4px;
}
.wp-block-button__link:hover { background: #ffd08a; color: #16120a; text-decoration: none; }
.wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 2em auto; }
.wp-block-separator.is-style-wide { max-width: 100%; }
.wp-block-file { margin: 1.2em 0; }
.wp-block-media-text { display: flex; gap: 0; margin: 1.4em 0; background: var(--panel); border-radius: 6px; overflow: hidden; }
.wp-block-media-text__media { flex: 0 0 40%; }
.wp-block-media-text__media img { height: 100%; object-fit: cover; display: block; }
.wp-block-media-text__content { flex: 1; padding: 16px 20px; min-width: 0; }
.wp-block-cover { position: relative; display: grid; place-items: center; min-height: 320px; color: #fff; margin: 1.4em 0; border-radius: 6px; overflow: hidden; }
.wp-block-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wp-block-cover__inner-background { position: absolute; inset: 0; }
.wp-block-cover__inner-container { position: relative; z-index: 1; padding: 32px; max-width: 720px; }
.alignwide { margin-left: calc(50% - min(50vw - 40px, calc(var(--wrap) / 2 + 100px))); margin-right: calc(50% - min(50vw - 40px, calc(var(--wrap) / 2 + 100px))); max-width: none; width: auto; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: none; width: auto; }
.alignleft { float: left; margin: 0.3em 1.4em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-block-image figcaption, .wp-block-audio figcaption, .wp-block-video figcaption {
  color: var(--muted); font-family: var(--mono); font-size: 13px; margin-top: 8px;
}
.wp-block-embed { margin: 1.4em 0; }
.wp-block-embed__iframe { max-width: 100%; }
.is-style-outline .wp-block-button__link {
  background: transparent; color: var(--amber); border: 1px solid var(--amber);
}

/* ---------- social + footer ---------- */
.social { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.social-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 6px;
  color: var(--muted); background: var(--panel);
}
.social-ico:hover { color: var(--amber); border-color: var(--amber-dim); text-decoration: none; }
.social-ico svg { width: 20px; height: 20px; fill: currentColor; }
.social-big .social-ico { width: 48px; height: 48px; }
.social-big .social-ico svg { width: 24px; height: 24px; }
.contact .section-sub { max-width: 60ch; }

.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 28px;
}
.site-footer p { color: var(--muted); font-size: 14px; margin: 0; }
.site-footer a { color: var(--muted); text-decoration: underline; }
.site-footer a:hover { color: var(--amber); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 36px 22px; }
  .header-inner { justify-content: center; }
  .wp-block-columns { flex-direction: column; }
}
