/*
Theme Name: Desync GeneratePress Child
Theme URI: https://desync-media.com/
Description: Child theme for Desync based on GeneratePress.
Author: Desync
Template: generatepress
Version: 1.0.0
Text Domain: desync-generatepress-child
*/

/* Desync custom template layout, based on index.html */

.desync-template * {
  box-sizing: border-box;
}

body.desync-template {
  margin: 0;
  background: var(--desync-bg);
  color: var(--desync-ink);
  font-family: "Segoe UI", "Yu Gothic UI", Meiryo, sans-serif;
  line-height: 1.7;
}

.desync-template a {
  color: inherit;
  text-decoration: none;
}

.desync-template a:hover,
.desync-template a:focus {
  color: var(--desync-red);
}

.desync-template .wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.desync-template .top-strip {
  background: #080c10;
  border-bottom: 1px solid #2a343e;
  color: #c9d1d8;
  font-size: 12px;
}

.desync-template .strip-inner,
.desync-template .brand-row,
.desync-template .nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.desync-template .strip-inner {
  min-height: 34px;
}

.desync-template .strip-links,
.desync-template .nav-links,
.desync-template .meta,
.desync-template .tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.desync-template .site-head {
  background: var(--desync-dark);
  border-bottom: 1px solid #2a343e;
  color: #ffffff;
}

.desync-template .brand-row {
  min-height: 66px;
  padding: 10px 0;
}

.desync-template .logo {
  display: inline-grid;
  gap: 3px;
  line-height: 1;
}

.desync-template .logo strong {
  font-size: clamp(30px, 4vw, 39px);
  font-weight: 900;
  letter-spacing: 0;
}

.desync-template .logo span {
  display: none;
}

.desync-template .head-brief {
  display: grid;
  gap: 8px;
  justify-items: end;
  max-width: 470px;
}

.desync-template .head-source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.desync-template .head-source-row span {
  border: 1px solid #2a343e;
  background: #0b1117;
  color: #c9d1d8;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 5px 7px;
}

.desync-template .head-note {
  margin: 0;
  color: #d7dee5;
  font-size: 13px;
  line-height: 1.65;
  text-align: right;
}

.desync-template .nav {
  background: var(--desync-surface);
  border-bottom: 1px solid var(--desync-line);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .04);
}

.desync-template .nav-row {
  min-height: 44px;
  overflow-x: auto;
}

.desync-template .nav-links {
  gap: 0;
  flex-wrap: nowrap;
}

.desync-template .nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border-left: 1px solid var(--desync-line);
  color: #20262b;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.desync-template .nav-links a:last-child {
  border-right: 1px solid var(--desync-line);
}

.desync-template .nav-links a.active {
  background: #fbf4f3;
  color: var(--desync-red);
}

.desync-template .search-pill {
  min-width: 170px;
  padding: 6px 10px;
  border: 1px solid var(--desync-line);
  background: #f8f9fa;
  color: var(--desync-muted);
  font-size: 12px;
  white-space: nowrap;
}

.desync-template .search-pill input {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  outline: 0;
  padding: 0;
}

.desync-template .desync-main {
  padding: 22px 0 52px;
}

.desync-template .lead-grid,
.desync-template .article-layout,
.desync-template .category-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 20px;
  align-items: start;
}

.desync-template .headline-card,
.desync-template .block,
.desync-template .side-block,
.desync-template .article-shell,
.desync-template .page-title {
  background: var(--desync-surface);
  border: 1px solid var(--desync-line);
}

.desync-template .headline-card {
  display: grid;
  grid-template-columns: minmax(310px, .88fr) minmax(0, 1fr);
  min-height: 310px;
}

.desync-template .thumb {
  min-height: 190px;
  background:
    linear-gradient(135deg, rgba(17, 24, 32, .88), rgba(43, 92, 145, .82)),
    radial-gradient(circle at 72% 28%, rgba(198, 59, 50, .58), transparent 26%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .16) 0 1px, transparent 1px 28px);
  position: relative;
  overflow: hidden;
}

.desync-template .thumb::after {
  content: attr(data-label);
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 5px 8px;
  background: rgba(0, 0, 0, .62);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

.desync-template .thumb.steam {
  background:
    linear-gradient(135deg, #12202b, #24496e),
    radial-gradient(circle at 68% 28%, rgba(198, 59, 50, .5), transparent 26%);
}

.desync-template .thumb.github {
  background:
    linear-gradient(135deg, #202225, #334039),
    radial-gradient(circle at 70% 26%, rgba(13, 117, 104, .5), transparent 28%);
}

.desync-template .thumb.indie {
  background:
    linear-gradient(135deg, #4c2f4f, #1f5a70),
    radial-gradient(circle at 74% 24%, rgba(165, 100, 20, .52), transparent 30%);
}

.desync-template .thumb.reddit {
  background:
    linear-gradient(135deg, #231b18, #653328),
    radial-gradient(circle at 72% 26%, rgba(255, 173, 99, .46), transparent 30%);
}

.desync-template .headline-body {
  padding: 20px;
  display: grid;
  align-content: center;
  gap: 12px;
}

.desync-template .kicker {
  color: var(--desync-red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.desync-template h1,
.desync-template h2,
.desync-template h3 {
  letter-spacing: 0;
}

.desync-template h1 {
  margin: 0;
  font-size: clamp(27px, 4vw, 40px);
  line-height: 1.18;
}

.desync-template .headline-body p,
.desync-template .article-item p,
.desync-template .side-item p,
.desync-template .page-title p,
.desync-template .article-shell .lead {
  margin: 0;
  color: var(--desync-muted);
  font-size: 14px;
}

.desync-template .meta {
  color: var(--desync-muted);
  font-size: 12px;
}

.desync-template .tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  background: #eef1f3;
  border-left: 3px solid var(--desync-blue);
  color: #2c3842;
  font-size: 12px;
  font-weight: 800;
}

.desync-template .tag.red {
  border-left-color: var(--desync-red);
}

.desync-template .tag.green {
  border-left-color: #0d7568;
}

.desync-template .tag.amber {
  border-left-color: #a56414;
}

.desync-template .block {
  margin-top: 20px;
}

.desync-template .block-head,
.desync-template .side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--desync-line);
  background: #f8f9fa;
}

.desync-template .block-head h2,
.desync-template .side-head h2 {
  margin: 0;
  font-size: 16px;
}

.desync-template .tabs span {
  padding: 3px 8px;
  background: #eef1f3;
  color: #4e5861;
  font-size: 12px;
  font-weight: 800;
}

.desync-template .article-list {
  display: grid;
}

.desync-template .article-item {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid var(--desync-line);
}

.desync-template .article-item:last-child {
  border-bottom: 0;
}

.desync-template .article-item .thumb {
  min-height: 104px;
}

.desync-template .article-copy {
  display: grid;
  gap: 6px;
  align-content: start;
}

.desync-template .article-copy h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.42;
}

.desync-template .side {
  display: grid;
  gap: 16px;
}

.desync-template .side-block {
  overflow: hidden;
}

.desync-template .ranking {
  display: grid;
  counter-reset: rank;
}

.desync-template .side-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--desync-line);
  counter-increment: rank;
}

.desync-template .side-item:last-child {
  border-bottom: 0;
}

.desync-template .side-item::before {
  content: counter(rank);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: var(--desync-dark);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.desync-template .side-item h3 {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.45;
}

.desync-template .watch-list {
  display: grid;
  padding: 10px 12px 12px;
  gap: 8px;
}

.desync-template .watch-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dotted var(--desync-line);
  font-size: 13px;
}

.desync-template .watch-row:last-child {
  border-bottom: 0;
}

.desync-template .watch-row strong {
  color: #25313b;
}

.desync-template .watch-row span {
  color: var(--desync-muted);
  text-align: right;
}

.desync-template .page-title {
  padding: 18px;
  margin-bottom: 20px;
}

.desync-template .page-title h1 {
  font-size: clamp(28px, 4vw, 42px);
}

.desync-template .page-title p {
  max-width: 760px;
  margin: 10px 0 0;
}

.desync-template .article-shell {
  padding: 26px;
}

.desync-template .article-shell header {
  border-bottom: 1px solid var(--desync-line);
  padding-bottom: 18px;
  margin-bottom: 20px;
}

.desync-template .article-shell .lead {
  max-width: 820px;
  font-size: 17px;
}

.desync-template .article-body {
  max-width: 820px;
}

.desync-template .footer-note {
  margin-top: 20px;
  color: var(--desync-muted);
  font-size: 12px;
}

.desync-site-footer {
  background: #ffffff;
  border-top: 1px solid var(--desync-line);
}

.desync-footer-row {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.desync-footer-row p {
  margin: 0;
  font-size: 13px;
}

.desync-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
}

.desync-footer-nav a {
  color: #174f8a;
}

@media (max-width: 980px) {
  .desync-template .lead-grid,
  .desync-template .headline-card,
  .desync-template .article-layout,
  .desync-template .category-layout {
    grid-template-columns: 1fr;
  }

  .desync-template .head-note,
  .desync-template .head-brief,
  .desync-template .search-pill {
    display: none;
  }
}

@media (max-width: 640px) {
  .desync-template .wrap {
    width: min(100% - 20px, 1180px);
  }

  .desync-template .brand-row {
    min-height: 66px;
  }

  .desync-template .article-item {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .desync-template .article-item .thumb {
    min-height: 82px;
  }

  .desync-template .article-copy h3 {
    font-size: 15px;
  }

  .desync-template .headline-body,
  .desync-template .article-shell {
    padding: 16px;
  }

  .desync-template .strip-links {
    display: none;
  }

  .desync-footer-row {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }
}

/* Desync GeneratePress layout port */

:root {
  --desync-bg: #f1f2f3;
  --desync-surface: #ffffff;
  --desync-surface-2: #f8f9fa;
  --desync-ink: #161616;
  --desync-muted: #6b7075;
  --desync-line: #d8dce0;
  --desync-dark: #111820;
  --desync-dark-2: #1d2630;
  --desync-red: #c63b32;
  --desync-blue: #2b5c91;
}

body {
  background: var(--desync-bg);
  color: var(--desync-ink);
  font-family: "Segoe UI", "Yu Gothic UI", Meiryo, sans-serif;
  line-height: 1.75;
}

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

a:hover,
a:focus {
  color: var(--desync-red);
}

.grid-container {
  max-width: 1180px;
}

.site-header {
  background: var(--desync-dark);
  border-top: 3px solid #080c10;
  border-bottom: 1px solid #2a343e;
  color: #ffffff;
}

.site-header .inside-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 82px;
  padding: 14px 20px;
}

.site-branding {
  flex: 0 0 auto;
}

.main-title {
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: none;
}

.main-title a,
.main-title a:hover,
.main-title a:visited {
  color: #ffffff;
}

.site-description {
  color: #aeb8c2;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  margin-top: 6px;
  text-transform: uppercase;
}

.main-navigation,
.main-navigation ul ul {
  background: var(--desync-surface);
  border-bottom: 1px solid var(--desync-line);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .04);
}

.main-navigation .inside-navigation {
  max-width: 1180px;
}

.site-header .main-navigation {
  border-bottom: 0;
  box-shadow: none;
  margin-left: auto;
}

.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle,
.main-navigation .menu-bar-items {
  color: #20262b;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 44px;
}

.main-navigation .main-nav ul li a {
  border-left: 1px solid var(--desync-line);
  padding-left: 13px;
  padding-right: 13px;
}

.main-navigation .main-nav ul li:last-child > a {
  border-right: 1px solid var(--desync-line);
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a,
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li:focus-within > a {
  background: #fbf4f3;
  color: var(--desync-red);
}

.separate-containers .site-main {
  margin: 22px 0;
}

.separate-containers .inside-article,
.sidebar .widget,
.comments-area,
.page-header {
  background: var(--desync-surface);
  border: 1px solid var(--desync-line);
}

.separate-containers .inside-article {
  padding: 40px;
}

.entry-title {
  color: #101820;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.25;
}

.entry-title a {
  color: inherit;
}

.entry-meta {
  color: var(--desync-muted);
  font-size: 12px;
}

.entry-meta a {
  color: var(--desync-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.entry-summary,
.entry-content {
  color: var(--desync-ink);
}

.blog .site-main,
.archive .site-main,
.search-results .site-main {
  display: grid;
  gap: 0;
}

.blog .inside-article,
.archive .inside-article,
.search-results .inside-article {
  border-bottom-width: 0;
  padding: 18px;
}

.blog .post:first-of-type .inside-article {
  border-top: 3px solid var(--desync-dark);
  padding: 26px;
}

.blog article + article .inside-article,
.archive article + article .inside-article,
.search-results article + article .inside-article {
  border-top: 0;
}

.blog .entry-title,
.archive .entry-title,
.search-results .entry-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.42;
}

.blog .post:first-of-type .entry-title {
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.35;
}

.blog .entry-summary,
.archive .entry-summary,
.search-results .entry-summary {
  color: var(--desync-muted);
  font-size: 14px;
  margin-top: 8px;
}

.blog .post:first-of-type .entry-summary {
  border-top: 1px solid var(--desync-line);
  margin-top: 14px;
  padding-top: 14px;
}

.page-header {
  padding: 18px;
}

.page-header h1 {
  font-size: clamp(26px, 4vw, 38px);
  margin: 0;
}

.sidebar .widget {
  margin-bottom: 16px;
  padding: 0;
}

.sidebar .widget-title,
.sidebar .wp-block-heading,
.sidebar .widget h2 {
  background: var(--desync-surface-2);
  border-bottom: 1px solid var(--desync-line);
  color: #101820;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.4;
  margin: 0;
  padding: 12px 14px;
}

.sidebar .widget > :not(.widget-title):not(.wp-block-heading):not(h2) {
  margin: 14px;
}

.sidebar .widget_block > .wp-block-heading + * {
  margin: 14px;
}

.sidebar .widget ul,
.sidebar .widget ol,
.wp-block-latest-posts {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.sidebar .widget li,
.wp-block-latest-posts li {
  border-bottom: 1px solid var(--desync-line);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  padding: 11px 0;
}

.sidebar .widget li:last-child,
.wp-block-latest-posts li:last-child {
  border-bottom: 0;
}

.widget_search .search-form,
.wp-block-search__inside-wrapper {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 80px;
}

.wp-block-search__label {
  color: #101820;
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 10px;
}

.widget_search .search-field,
.wp-block-search__input {
  background: #f3f4f5;
  border: 1px solid #e3e5e8;
  min-height: 44px;
}

.widget_search .search-submit,
.wp-block-search__button {
  background: var(--desync-dark-2);
  border: 0;
  color: #ffffff;
  font-weight: 800;
  min-height: 44px;
  padding: 0 14px;
}

.widget_recent_comments,
.sidebar .widget_block:has(.wp-block-latest-comments),
.sidebar .widget_block:has(.wp-block-latest-comments__comment),
.sidebar .widget:has(.wp-block-latest-comments),
.wp-block-latest-comments {
  display: none !important;
}

/* Desync article blocks */

.desync-article {
  color: #171717;
  font-size: 16px;
  line-height: 2;
}

.desync-article p {
  margin: 0 0 1.55em;
}

.desync-lead {
  border-top: 3px solid #111;
  border-bottom: 1px solid #d8d8d8;
  margin: 0 0 34px;
  padding: 20px 0 24px;
  font-size: 18px;
  line-height: 1.9;
  color: #222;
}

.desync-article h2 {
  border-left: 4px solid #111;
  margin: 48px 0 20px;
  padding-left: 14px;
  font-size: 24px;
  line-height: 1.45;
  letter-spacing: 0;
}

.desync-article ul,
.desync-article ol {
  margin: 0 0 1.6em 1.4em;
  padding: 0;
}

.desync-article li {
  margin: 0 0 0.7em;
}

.desync-source-box,
.desync-note,
.desync-focus-box {
  border: 1px solid #d9d9d9;
  background: #f7f7f5;
  margin: 34px 0;
  padding: 20px 22px;
}

.desync-source-box h2,
.desync-note h2,
.desync-focus-box h2 {
  border: 0;
  margin: 0 0 12px;
  padding: 0;
  font-size: 16px;
  line-height: 1.5;
}

.desync-source-box ul,
.desync-focus-box ul {
  margin-bottom: 0;
}

.desync-source-box a {
  color: #0f4c81;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.desync-source-box span {
  display: block;
  color: #5b5b5b;
  font-size: 13px;
  line-height: 1.5;
}

.desync-note {
  border-left: 4px solid #777;
}

.desync-note p:last-child,
.desync-source-box p:last-child,
.desync-focus-box p:last-child {
  margin-bottom: 0;
}

.desync-takeaway {
  border-top: 1px solid #111;
  border-bottom: 1px solid #d8d8d8;
  margin: 44px 0 34px;
  padding: 24px 0;
}

.desync-takeaway h2 {
  border: 0;
  margin-top: 0;
  padding: 0;
}

/* Desync site-level tweaks */

.site-info {
  border-top: 1px solid var(--desync-line);
  font-size: 13px;
  color: #222;
}

.site-info a {
  color: #174f8a;
  text-decoration: none;
}

.site-info a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bar .menu {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

.footer-bar .menu a {
  color: #174f8a;
  text-decoration: none;
}

.footer-bar .menu a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 768px) {
  .site-header .inside-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    min-height: 68px;
    padding: 12px 16px;
  }

  .site-header .main-navigation {
    margin-left: 0;
    width: 100%;
  }

  .main-navigation .main-nav ul li a {
    border-left: 0;
  }

  .main-navigation .main-nav ul li:last-child > a {
    border-right: 0;
  }

  .inside-site-info {
    align-items: center;
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-bar .menu {
    justify-content: center;
    gap: 10px 16px;
  }
}

@media (max-width: 700px) {
  .separate-containers .inside-article {
    padding: 22px 18px;
  }

  .blog .post:first-of-type .inside-article {
    padding: 20px 18px;
  }

  .entry-title {
    font-size: 28px;
  }

  .desync-article {
    font-size: 15.5px;
    line-height: 1.9;
  }

  .desync-lead {
    font-size: 16.5px;
  }

  .desync-article h2 {
    font-size: 21px;
  }

  .desync-source-box,
  .desync-note,
  .desync-focus-box {
    padding: 16px;
  }
}
