@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --q-paper: #f3f0e8;
  --q-paper-light: #fbfaf6;
  --q-ink: #17161a;
  --q-ink-soft: #3f3b43;
  --q-muted: #625d66;
  --q-line: #cbc5ba;
  --q-line-dark: #8b857c;
  --q-accent: #6042c8;
  --q-accent-dark: #402596;
  --q-display: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --q-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; color-scheme: light; }

body.qreate-notes {
  margin: 0;
  min-width: 320px;
  background: var(--q-paper);
  color: var(--q-ink);
  font-family: var(--q-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible { outline: 3px solid var(--q-accent); outline-offset: 3px; }

img { display: block; max-width: 100%; height: auto; }
.site-shell { min-height: 100vh; overflow: clip; }

.shell-width,
.shell-width-narrow { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.shell-width-narrow { width: min(790px, calc(100% - 48px)); }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--q-ink);
  color: #fff;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid var(--q-ink);
  background: var(--q-paper);
}
.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand-link { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 12px; }
.brand-link img,
.footer-intro img { width: 126px; height: auto; filter: brightness(0.2) saturate(0); }
.brand-link span {
  padding-left: 12px;
  border-left: 1px solid var(--q-line-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.desktop-nav { display: flex; align-items: center; gap: 27px; font-size: 13px; font-weight: 650; }
.desktop-nav a,
.footer-links a,
.footer-bottom a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.desktop-nav a:hover,
.footer-links a:hover,
.footer-bottom a:hover { text-decoration-color: currentColor; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.search-link {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--q-ink);
  color: var(--q-ink);
}
.search-link:hover { background: var(--q-ink); color: #fff; }
.search-link svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.product-link,
.primary-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 17px;
  border: 1px solid var(--q-ink);
  background: var(--q-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
}
.product-link:hover,
.primary-link:hover { background: var(--q-accent-dark); border-color: var(--q-accent-dark); }

.mobile-menu { display: none; position: relative; }
.mobile-menu summary {
  display: grid;
  width: 42px;
  height: 42px;
  cursor: pointer;
  list-style: none;
  place-content: center;
  gap: 6px;
  border: 1px solid var(--q-ink);
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary span { display: block; width: 17px; height: 1px; background: var(--q-ink); }
.mobile-menu nav {
  position: absolute;
  top: 50px;
  right: 0;
  display: grid;
  width: min(280px, calc(100vw - 40px));
  border: 1px solid var(--q-ink);
  background: var(--q-paper-light);
}
.mobile-menu nav a { padding: 13px 17px; border-bottom: 1px solid var(--q-line); font-size: 14px; font-weight: 650; }
.mobile-menu nav a:last-child { border: 0; background: var(--q-ink); color: #fff; }

.site-content { min-height: 65vh; }
.hero-section { border-bottom: 1px solid var(--q-ink); }
.hero-grid {
  display: grid;
  min-height: 570px;
  align-items: end;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.45fr);
  gap: 80px;
  padding-block: 96px 70px;
}
.section-kicker {
  margin: 0 0 18px;
  color: var(--q-accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.hero-copy h1,
.archive-hero h1,
.article-header h1,
.not-found h1 {
  margin: 0;
  font-family: var(--q-display);
  font-optical-sizing: auto;
  font-size: clamp(3.2rem, 6.3vw, 5.9rem);
  font-weight: 780;
  letter-spacing: -0.065em;
  line-height: 0.94;
  text-wrap: balance;
}
.hero-copy h1 { max-width: 950px; }
.hero-lede {
  max-width: 720px;
  margin: 34px 0 0;
  color: var(--q-ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.52;
}
.hero-index { align-self: end; padding-top: 15px; border-top: 4px solid var(--q-ink); }
.hero-index > span {
  display: block;
  margin-bottom: 22px;
  color: var(--q-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-index ol { margin: 0; padding: 0; list-style: none; counter-reset: topic; }
.hero-index li {
  display: flex;
  justify-content: space-between;
  padding-block: 8px;
  border-bottom: 1px solid var(--q-line);
  font-family: var(--q-display);
  font-size: 18px;
  font-weight: 750;
  counter-increment: topic;
}
.hero-index li::after {
  color: var(--q-muted);
  font-family: var(--q-sans);
  font-size: 10px;
  content: "0" counter(topic);
}

.featured-section,
.category-section,
.latest-section,
.related-section,
.archive-content { padding-block: 86px; }
.featured-card {
  display: grid;
  border-top: 4px solid var(--q-ink);
  border-bottom: 1px solid var(--q-ink);
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
}
.featured-visual {
  position: relative;
  display: grid;
  min-height: 430px;
  overflow: hidden;
  place-items: center;
  background: var(--q-accent);
  color: #fff;
}
.featured-visual .wp-post-image { width: 100%; height: 100%; object-fit: cover; }
.featured-placeholder {
  padding: 24px;
  border-block: 1px solid rgba(255, 255, 255, 0.85);
  font-family: var(--q-display);
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  font-weight: 760;
  letter-spacing: -0.05em;
}
.featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 6vw, 74px);
  border-left: 1px solid var(--q-ink);
  background: var(--q-paper-light);
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--q-muted);
  font-size: 12px;
  font-weight: 650;
}
.post-meta a { color: var(--q-accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.featured-copy h2,
.section-heading-row h2,
.closing-cta h2,
.article-footer h2,
.related-section > h2 {
  margin: 14px 0 18px;
  font-family: var(--q-display);
  font-size: clamp(2.25rem, 4vw, 4rem);
  font-weight: 760;
  letter-spacing: -0.048em;
  line-height: 1.01;
  text-wrap: balance;
}
.featured-copy h2 a:hover,
.article-card h2 a:hover {
  color: var(--q-accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.featured-copy > p:not(.section-kicker) { margin: 0 0 28px; color: var(--q-ink-soft); font-size: 16px; }
.featured-copy .primary-link { align-self: flex-start; }

.category-section {
  border-top: 1px solid var(--q-ink);
  border-bottom: 1px solid var(--q-ink);
  background: var(--q-paper-light);
}
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.section-heading-row h2 { margin-bottom: 0; font-size: clamp(2.2rem, 4vw, 3.8rem); }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 4px solid var(--q-ink); }
.category-card {
  position: relative;
  min-height: 220px;
  padding: 28px 62px 28px 0;
  border-bottom: 1px solid var(--q-ink);
}
.category-card:nth-child(odd) { padding-right: 48px; border-right: 1px solid var(--q-ink); }
.category-card:nth-child(even) { padding-left: 48px; }
.category-card:hover h3 {
  color: var(--q-accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.category-signal { display: block; width: 18px; height: 4px; margin-bottom: 32px; background: var(--q-accent); }
.category-discord-changes .category-signal { background: #2457a6; }
.category-reliability-security .category-signal { background: #167154; }
.category-building-qreate .category-signal { background: #a45718; }
.category-card h3 { margin: 0 0 10px; font-family: var(--q-display); font-size: 25px; font-weight: 760; letter-spacing: -0.04em; }
.category-card p { max-width: 430px; margin: 0 0 32px; color: var(--q-ink-soft); font-size: 14px; line-height: 1.55; }
.category-count {
  position: absolute;
  bottom: 26px;
  color: var(--q-muted);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 4px solid var(--q-ink); }
.article-card {
  display: grid;
  min-height: 300px;
  border-bottom: 1px solid var(--q-ink);
  grid-template-columns: minmax(170px, 0.7fr) minmax(0, 1.3fr);
}
.article-card:nth-child(odd) { border-right: 1px solid var(--q-ink); }
.article-card-visual {
  position: relative;
  display: grid;
  min-height: 260px;
  overflow: hidden;
  place-items: center;
  border-right: 1px solid var(--q-ink);
  background: #ded8ca;
}
.article-card-visual .wp-post-image { width: 100%; height: 100%; object-fit: cover; }
.article-card-placeholder {
  padding: 18px;
  color: var(--q-ink-soft);
  font-family: var(--q-display);
  font-size: 22px;
  font-weight: 760;
  line-height: 1.05;
  text-align: center;
}
.article-card-body { display: flex; flex-direction: column; justify-content: center; padding: 28px; }
.article-card h2 {
  margin: 12px 0 10px;
  font-family: var(--q-display);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.08;
}
.article-card-body > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 20px;
  color: var(--q-ink-soft);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.text-link {
  margin-top: auto;
  color: var(--q-accent-dark);
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.search-form { display: flex; align-items: center; gap: 8px; }
.search-form input {
  width: min(250px, 48vw);
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--q-ink);
  border-radius: 0;
  background: var(--q-paper-light);
  color: var(--q-ink);
  font: inherit;
  font-size: 13px;
}
.search-form input::placeholder { color: var(--q-muted); }
.search-form button {
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--q-ink);
  border-radius: 0;
  background: var(--q-ink);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.closing-cta,
.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-block: 18px 100px;
  padding-block: 48px;
  border-top: 4px solid var(--q-ink);
  border-bottom: 1px solid var(--q-ink);
}
.closing-cta > div,
.article-footer > div { max-width: 720px; }
.closing-cta h2,
.article-footer h2 { margin-block: 8px 12px; font-size: clamp(2rem, 4vw, 3.2rem); }
.closing-cta p:not(.section-kicker),
.article-footer p:not(.section-kicker) { margin: 0; color: var(--q-ink-soft); }

.archive-hero { padding-block: 100px 48px; border-bottom: 1px solid var(--q-ink); }
.archive-hero h1 { font-size: clamp(3rem, 6vw, 5.2rem); }
.archive-hero > p:not(.section-kicker),
.archive-description { max-width: 650px; margin: 24px 0 0; color: var(--q-ink-soft); font-size: 18px; }
.archive-hero .search-form { margin-top: 30px; }
.archive-content { padding-top: 58px; }
.navigation.pagination { margin-top: 48px; }
.nav-links { display: flex; justify-content: center; gap: 8px; }
.nav-links .page-numbers {
  display: grid;
  min-width: 40px;
  height: 40px;
  place-items: center;
  padding-inline: 12px;
  border: 1px solid var(--q-ink);
  font-size: 13px;
}
.nav-links .current,
.nav-links a:hover { background: var(--q-ink); color: #fff; }

.article-header { padding-block: 110px 58px; border-bottom: 1px solid var(--q-ink); }
.article-header .post-meta { margin-bottom: 24px; }
.article-header h1 { font-size: clamp(3rem, 6vw, 5.2rem); }
.article-deck {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--q-ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.55;
}
.article-hero { overflow: hidden; margin-block: 54px 70px; border-block: 1px solid var(--q-ink); }
.article-hero img { width: 100%; max-height: 680px; object-fit: cover; }
.article-layout {
  display: grid;
  align-items: start;
  grid-template-columns: 170px minmax(0, 760px) 1fr;
  gap: 54px;
  padding-top: 70px;
}
.article-aside {
  position: sticky;
  top: 30px;
  display: grid;
  gap: 6px;
  padding-top: 10px;
  border-top: 4px solid var(--q-ink);
  color: var(--q-muted);
  font-size: 11px;
}
.article-aside strong { color: var(--q-ink); font-size: 12px; }
.article-aside a { margin-top: 14px; color: var(--q-accent-dark); font-weight: 750; text-decoration: underline; }
.article-body {
  min-width: 0;
  color: #262329;
  font-family: var(--q-sans);
  font-size: 19px;
  line-height: 1.76;
}
.article-body > *:first-child { margin-top: 0; }
.article-body h2,
.article-body h3,
.article-body h4 {
  color: var(--q-ink);
  font-family: var(--q-display);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.12;
  scroll-margin-top: 30px;
}
.article-body h2 { margin: 2.8em 0 0.75em; font-size: clamp(2rem, 4vw, 3.1rem); }
.article-body h3 { margin: 2.2em 0 0.65em; font-size: 1.72rem; }
.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote,
.article-body pre,
.article-body figure,
.article-body table { margin-block: 1.45em; }
.article-body a {
  color: var(--q-accent-dark);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.article-body strong { color: var(--q-ink); font-weight: 750; }
.article-body li + li { margin-top: 0.55em; }
.article-body blockquote {
  padding: 6px 0 6px 24px;
  border-left: 4px solid var(--q-accent);
  color: var(--q-ink-soft);
  font-family: var(--q-display);
  font-size: 1.18em;
}
.article-body code { padding: 0.14em 0.36em; border: 1px solid var(--q-line); background: #e8e3d8; color: var(--q-ink); font-size: 0.88em; }
.article-body pre { overflow-x: auto; padding: 22px; border: 1px solid var(--q-ink); background: #222025; color: #fff; }
.article-body pre code { padding: 0; border: 0; background: transparent; color: inherit; }
.article-body hr { margin-block: 3em; border: 0; border-top: 1px solid var(--q-ink); }
.article-body table { width: 100%; border-collapse: collapse; font-family: var(--q-sans); font-size: 14px; }
.article-body th,
.article-body td { padding: 12px; border: 1px solid var(--q-line-dark); text-align: left; }
.article-body th { background: #ded8ca; color: var(--q-ink); }
.article-body img { border: 1px solid var(--q-line-dark); }
.article-footer { margin-top: 100px; }

.empty-state {
  padding-block: 54px;
  border-block: 1px solid var(--q-ink);
  color: var(--q-ink-soft);
  font-family: var(--q-display);
  font-size: 28px;
}
.not-found { padding-block: 120px; }
.not-found h1 { font-size: clamp(3.2rem, 8vw, 6.4rem); }
.not-found > p:not(.section-kicker) { max-width: 600px; margin-block: 24px; color: var(--q-ink-soft); font-size: 18px; }
.not-found-actions { display: flex; align-items: center; gap: 16px; }

.site-footer { border-top: 1px solid var(--q-ink); background: var(--q-ink); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 60px; padding-block: 62px; }
.footer-intro img { filter: brightness(0) invert(1); }
.footer-intro p { max-width: 480px; margin: 20px 0 0; color: #fff; }
.footer-links { display: grid; min-width: 180px; gap: 8px; align-content: start; font-size: 14px; font-weight: 650; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  font-size: 12px;
}
.footer-bottom div { display: flex; gap: 22px; }

@media (max-width: 980px) {
  .desktop-nav,
  .product-link { display: none; }
  .mobile-menu { display: block; }
  .hero-grid { min-height: 0; grid-template-columns: 1fr; gap: 64px; padding-block: 82px 56px; }
  .hero-index { display: grid; align-items: start; grid-template-columns: 1fr 2fr; gap: 30px; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-copy { border-top: 1px solid var(--q-ink); border-left: 0; }
  .article-grid { grid-template-columns: 1fr; }
  .article-card:nth-child(odd) { border-right: 0; }
  .article-layout { grid-template-columns: minmax(0, 760px); justify-content: center; }
  .article-aside { position: static; grid-template-columns: auto auto 1fr; align-items: baseline; }
  .article-aside a { margin: 0; text-align: right; }
}

@media (max-width: 700px) {
  .shell-width,
  .shell-width-narrow { width: min(100% - 28px, 1180px); }
  .header-inner { min-height: 68px; }
  .brand-link img { width: 102px; }
  .brand-link span { display: none; }
  .hero-grid { gap: 48px; padding-block: 62px 42px; }
  .hero-copy h1 { font-size: clamp(2.8rem, 13vw, 4.2rem); }
  .hero-lede { margin-top: 26px; font-size: 17px; }
  .hero-index { display: block; }
  .featured-section,
  .category-section,
  .latest-section,
  .related-section,
  .archive-content { padding-block: 62px; }
  .featured-visual { min-height: 270px; }
  .featured-copy { padding: 30px 0; background: transparent; }
  .section-heading-row { display: block; }
  .section-heading-row .search-form { margin-top: 26px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card,
  .category-card:nth-child(odd),
  .category-card:nth-child(even) { min-height: 205px; padding: 24px 0; border-right: 0; }
  .article-card { grid-template-columns: 120px minmax(0, 1fr); }
  .article-card-visual { min-height: 240px; }
  .article-card-body { padding: 22px; }
  .article-card-body > p { display: none; }
  .closing-cta,
  .article-footer { display: block; margin-bottom: 70px; }
  .closing-cta .primary-link,
  .article-footer .primary-link { margin-top: 28px; }
  .archive-hero,
  .article-header { padding-block: 72px 40px; }
  .article-header h1,
  .archive-hero h1 { font-size: clamp(2.8rem, 12vw, 4.4rem); }
  .article-layout { padding-top: 52px; }
  .article-body { font-size: 18px; }
  .not-found-actions,
  .footer-bottom { align-items: stretch; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
}

@media (max-width: 440px) {
  .article-card { display: block; }
  .article-card-visual { min-height: 180px; border-right: 0; border-bottom: 1px solid var(--q-ink); }
  .search-form input { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
