/* One Angry Gamer archive. Recreates the 2019-2020 look (white page, centred logo,
   blue menu bar, navy headlines, right sidebar) with original CSS. */
:root {
  --text: #404040;
  --muted: #6b6b6b;
  --link: #004478;
  --link-hover: #0060a9;
  --navy: #003964;
  --bar: #01579b;
  --bar-dark: #014a84;
  --accent: #0060a9;
  --rule: #e2e2e2;
  --bg: #ffffff;
  --panel: #f6f8fa;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --heading: "Arial Black", "Arial Bold", Gadget, Arial, sans-serif;
  --slab: "Crete Round", Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--serif); }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover, a:focus { color: var(--link-hover); text-decoration: underline; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Header */
.site-header { text-align: center; padding: 22px 16px 14px; }
.site-header .logo { display: inline-block; }
.site-header .logo img { width: 300px; height: 80px; display: block; }
.tagline { color: var(--accent); font-size: 20px; margin: 8px 0 0; }

/* Menu bar */
.menubar { background: var(--bar); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 4px rgba(0,0,0,.15); }
.menubar .wrap { display: flex; align-items: stretch; min-height: 56px; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; flex: 1; }
.menu > li { position: relative; }
.menu a { display: block; color: #fff; font: 700 14px/1 Arial, sans-serif; text-transform: uppercase;
  letter-spacing: .02em; padding: 21px 14px; text-decoration: none; }
.menu > li:hover > a, .menu > li:focus-within > a, .menu a[aria-current] { background: var(--bar-dark); }
.menu .has-sub > a::after { content: " ▾"; font-size: 11px; opacity: .8; }
.menu ul { list-style: none; margin: 0; padding: 6px 0; position: absolute; left: 0; top: 100%; min-width: 210px;
  background: var(--bar-dark); display: none; box-shadow: 0 6px 14px rgba(0,0,0,.2); }
.menu li:hover > ul, .menu li:focus-within > ul { display: block; }
.menu ul a { padding: 10px 16px; text-transform: none; font-weight: 400; font-size: 15px; }
.menu ul a:hover { background: var(--bar); }
.search-form { display: flex; align-items: center; margin-left: 8px; }
.search-form input { width: 170px; border: 0; border-radius: 3px; padding: 8px 10px; font: 14px var(--serif); }
.search-form button { margin-left: 4px; border: 0; background: var(--bar-dark); color: #fff; border-radius: 3px;
  padding: 8px 10px; font: 700 13px Arial, sans-serif; cursor: pointer; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; font: 700 15px Arial, sans-serif;
  padding: 0 12px; cursor: pointer; }

/* Layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; padding: 28px 16px 40px; }
main { min-width: 0; }

/* Breadcrumbs */
.breadcrumbs { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span[aria-hidden] { margin: 0 6px; }

/* Article */
.entry-title { font-family: var(--heading); color: var(--navy); font-size: 35px; line-height: 1.2; margin: 0 0 12px; font-weight: 900; }
.entry-meta { font-size: 15px; color: var(--muted); margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.entry-meta a { color: var(--link); }
.featured { margin: 0 0 22px; }
.featured img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--panel); display: block; }
.featured.from-placeholder img { aspect-ratio: 1200 / 630; }
.entry-content { font-size: 17px; line-height: 1.7; }
.entry-content p { margin: 0 0 1.2em; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--slab); color: var(--navy); font-weight: 400; line-height: 1.3; }
.entry-content img { display: block; margin: 1em auto; }
.entry-content iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; margin: 1em 0; }
.entry-content blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--accent); color: #555; font-style: italic; }
.entry-content table { border-collapse: collapse; display: block; overflow-x: auto; }
.entry-content td, .entry-content th { border: 1px solid var(--rule); padding: 6px 10px; }
.entry-footer { border-top: 1px solid var(--rule); margin-top: 26px; padding-top: 14px; font-size: 15px; }
.tags a { display: inline-block; background: var(--panel); border: 1px solid var(--rule); border-radius: 3px;
  padding: 2px 9px; margin: 0 6px 6px 0; font-size: 14px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; font-size: 15px; }
.post-nav a { display: block; border: 1px solid var(--rule); padding: 12px 14px; border-radius: 3px; }
.post-nav .next { text-align: right; }
.post-nav small { display: block; color: var(--muted); }
.archive-note { background: var(--panel); border: 1px solid var(--rule); border-radius: 3px; padding: 14px 16px; }

/* Related */
.related h2, .widget-title { font-family: var(--heading); color: #fff; background: var(--accent); font-size: 18px;
  font-weight: 900; padding: 9px 14px; margin: 0 0 12px; }
.related ul, .widget ul { list-style: none; margin: 0; padding: 0; }
.related li, .widget li { border-bottom: 1px solid var(--rule); padding: 9px 2px; line-height: 1.4; }
.related li:last-child, .widget li:last-child { border-bottom: 0; }
.related { margin-top: 30px; }

/* Lists */
.page-title { font-family: var(--heading); color: var(--navy); font-size: 30px; margin: 0 0 6px; font-weight: 900; }
.list-meta { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { border-bottom: 1px solid var(--rule); padding: 14px 0; }
.post-list h2, .post-list h3 { font-family: var(--slab); font-weight: 400; font-size: 21px; line-height: 1.3; margin: 0 0 4px; }
.post-list h2 a, .post-list h3 a { color: var(--navy); }
.post-list .meta { font-size: 14px; color: var(--muted); }
.pager { display: flex; justify-content: space-between; margin-top: 22px; font: 700 15px Arial, sans-serif; }
.year-list { columns: 2; }

/* Sidebar */
.sidebar .widget { margin-bottom: 30px; }
.sidebar .widget li a { color: var(--text); }
.sidebar .widget li a:hover { color: var(--link-hover); }
.sidebar .count { color: var(--muted); font-size: 13px; }

/* Footer */
.site-footer { background: var(--navy); color: #d9e3ee; font-size: 14px; padding: 26px 0; }
.site-footer a { color: #fff; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; }

/* Consent banner */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 640px; margin: 0 auto; background: #fff;
  border: 1px solid var(--rule); box-shadow: 0 6px 24px rgba(0,0,0,.18); border-radius: 6px; padding: 14px 16px;
  font-size: 14px; z-index: 200; display: none; }
.consent.show { display: block; }
.consent .actions { margin-top: 10px; display: flex; gap: 8px; justify-content: flex-end; }
.consent button { border: 1px solid var(--bar); background: #fff; color: var(--bar); border-radius: 3px; padding: 7px 14px;
  font: 700 13px Arial, sans-serif; cursor: pointer; }
.consent button.primary { background: var(--bar); color: #fff; }

/* Mobile */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 24px; }
  .menu-toggle { display: block; }
  .menubar .wrap { flex-wrap: wrap; }
  .menu { display: none; flex-basis: 100%; flex-direction: column; }
  .menubar.open .menu { display: flex; }
  .menu ul { position: static; display: block; box-shadow: none; padding-left: 12px; }
  .menu a { padding: 13px 10px; }
  .search-form { margin: 8px 0 8px auto; }
  .search-form input { width: 140px; }
  .entry-title { font-size: 27px; }
  .post-nav { grid-template-columns: 1fr; }
  .year-list { columns: 1; }
}
@media (max-width: 420px) {
  .site-header .logo img { width: 240px; height: 64px; }
  .tagline { font-size: 17px; }
}
