/* ============================================================
   Desk & Glow 1.0.0 — custom minimal high-end theme
   Palette: white #FFFFFF, cloud #EDF1F6, silver #C9D4E2,
   blue #3E7CC4, navy #0E1C33
   ============================================================ */

:root {
  --white: #FFFFFF;
  --cloud: #EDF1F6;
  --silver: #C9D4E2;
  --blue: #3E7CC4;
  --blue-dark: #2F66A8;
  --navy: #0E1C33;
  --ink: #22314A;
  --muted: #5B6B7F;
  --line: #E4EAF3;
  --peach: #FCEBDB;
  --sky: #DCE9FA;
  --pink: #FADCE5;
  --amber: #FBE7C6;
  --green: #DDF0E2;
  --newsletter-bg: #EAF2FE;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --script: 'Caveat', cursive;
  --radius: 22px;
  --shadow-soft: 0 10px 30px rgba(14, 28, 51, 0.07);
  --shadow-card: 0 4px 18px rgba(14, 28, 51, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.15; margin: 0 0 0.6em; font-weight: 600; }
p { margin: 0 0 1em; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 780px; }
.section { padding: 72px 0; }

.kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px;
}
.kicker-pill {
  display: inline-block; background: var(--cloud); color: var(--navy);
  padding: 7px 16px; border-radius: 999px;
}
.lede { color: var(--muted); font-size: 17px; max-width: 560px; }
.blue { color: var(--blue); }
.script-accent { font-family: var(--script); color: var(--muted); font-size: 30px; line-height: 1.1; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px; border-radius: 999px;
  padding: 14px 28px; border: 2px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(62, 124, 196, 0.35); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-sm { padding: 10px 22px; font-size: 14px; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 76px; max-width: 1400px; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--navy); white-space: nowrap; }
.logo span { color: var(--blue); }
.main-nav { margin-left: auto; }
.nav-list { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--ink); font-weight: 500; font-size: 13.5px; padding: 6px 2px; position: relative; white-space: nowrap; }
.nav-list a:hover { color: var(--blue); }
.nav-list .current-menu-item a, .nav-list .current_page_item a { color: var(--blue); }
.nav-list .current-menu-item a::after, .nav-list .current_page_item a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--blue); border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: 8px; }
.search-toggle { background: none; border: none; cursor: pointer; color: var(--ink); padding: 8px; display: flex; }
.search-toggle:hover { color: var(--blue); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: 0.2s; }

.search-bar { display: none; border-top: 1px solid var(--line); padding: 16px 0; background: #fff; }
.search-bar.open { display: block; }
.search-bar form { display: flex; gap: 12px; }
.search-bar input { flex: 1; border: 1px solid var(--silver); border-radius: 999px; padding: 12px 20px; font-size: 15px; font-family: var(--sans); }
.search-bar input:focus { outline: 2px solid var(--blue); border-color: var(--blue); }

.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; padding: 8px 24px 24px; }
.mobile-nav.open { display: block; }
.mobile-nav-list { list-style: none; margin: 0 0 16px; padding: 0; }
.mobile-nav-list a { display: block; padding: 12px 4px; color: var(--navy); font-weight: 600; font-size: 17px; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { width: 100%; justify-content: center; }

/* ---------------- Hero ---------------- */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(42px, 5.2vw, 68px); font-weight: 600; letter-spacing: -0.01em; }
.hero .lede { margin: 18px 0 28px; }
.hero-media { position: relative; }
.hero-media img {
  border-radius: 28px;
  border-bottom-right-radius: 130px 56px;
  box-shadow: var(--shadow-soft);
  width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover;
}
.hero-script { position: absolute; top: 6px; right: 18px; transform: rotate(4deg); text-align: right; }
.hero-stats { display: flex; gap: 0; margin-top: 36px; }
.hero-stats div { padding: 0 28px; border-left: 1px solid var(--line); }
.hero-stats div:first-child { padding-left: 0; border-left: none; }
.hero-stats strong { display: block; font-family: var(--serif); font-size: 24px; color: var(--navy); }
.hero-stats span { font-size: 13px; color: var(--muted); }

/* ---------------- Categories ---------------- */
.cats { padding-top: 24px; }
.cat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cat-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 28px 14px 24px; border-radius: var(--radius);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); background: #fff; }
.cat-chip {
  width: 74px; height: 74px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  color: var(--navy);
}
.chip-peach { background: var(--peach); } .chip-blue { background: var(--sky); }
.chip-pink { background: var(--pink); } .chip-amber { background: var(--amber); }
.chip-green { background: var(--green); }
.cat-card strong { color: var(--navy); font-size: 15.5px; font-family: var(--sans); font-weight: 600; margin-bottom: 6px; }
.cat-desc { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 14px; }
.cat-arrow {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--silver);
  display: flex; align-items: center; justify-content: center; color: var(--navy);
  transition: 0.15s;
}
.cat-arrow svg { width: 16px; height: 16px; }
.cat-card:hover .cat-arrow { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------------- Featured ---------------- */
.featured { background: linear-gradient(180deg, #fff 0%, var(--cloud) 100%); }
.featured-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.featured h2 { font-size: clamp(30px, 3.4vw, 44px); }
.featured-media { position: relative; }
.featured-media img { border-radius: 26px; box-shadow: var(--shadow-soft); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.featured-script { position: absolute; top: 14px; right: 22px; transform: rotate(3deg); text-align: right; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.35); }

/* ---------------- Latest ---------------- */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head h2 { margin: 0; font-size: clamp(28px, 3vw, 38px); }
.view-all { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.view-all svg { width: 18px; height: 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.pill {
  border: 1px solid var(--line); background: var(--cloud); color: var(--ink);
  border-radius: 999px; padding: 10px 20px; font-size: 14px; font-weight: 500;
  cursor: pointer; font-family: var(--sans); transition: 0.15s;
}
.pill:hover { border-color: var(--blue); color: var(--blue); }
.pill.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.post-card.hidden { display: none; }
.post-card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cloud); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.img-fallback { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--cloud), var(--silver)); }
.post-card-body { padding: 20px 20px 64px; flex: 1; }
.post-card-cat { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue); margin: 0 0 8px; }
.post-card h3 { font-size: 19px; margin: 0 0 10px; }
.post-card h3 a { color: var(--navy); }
.post-card h3 a:hover { color: var(--blue); }
.post-card-meta { font-size: 13px; color: var(--muted); margin: 0; }
.post-card-arrow {
  position: absolute; bottom: 18px; right: 18px;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--silver);
  display: flex; align-items: center; justify-content: center; color: var(--navy);
}
.post-card-arrow svg { width: 16px; height: 16px; }
.post-card-arrow:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.empty-note { text-align: center; color: var(--muted); padding: 40px 0; font-size: 17px; }

/* ---------------- Gaming banner ---------------- */
.gaming-banner { background: #FBFCFE; }
.gaming-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.gaming-media { position: relative; }
.gaming-media img { border-radius: 26px; box-shadow: var(--shadow-soft); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gaming-copy h2 { font-size: clamp(30px, 3.4vw, 44px); }

/* ---------------- Tips ---------------- */
.tips-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.tips-grid h2 { font-size: clamp(30px, 3.4vw, 44px); }
.tips-collage { position: relative; min-height: 380px; }
.tips-collage img {
  position: absolute; width: 62%; border-radius: 18px; box-shadow: var(--shadow-soft);
  border: 6px solid #fff; aspect-ratio: 4 / 3; object-fit: cover;
}
.tips-collage .tilt-1 { top: 0; left: 0; transform: rotate(-5deg); }
.tips-collage .tilt-2 { top: 90px; right: 0; transform: rotate(4deg); }
.tips-script { position: absolute; bottom: 0; right: 12%; transform: rotate(-4deg); text-align: center; }

/* ---------------- Creator ---------------- */
.creator { background: linear-gradient(180deg, var(--cloud) 0%, #fff 100%); }
.creator-grid { display: grid; grid-template-columns: 0.9fr 1.1fr 1fr; gap: 48px; align-items: center; }
.creator-photo img {
  border-radius: 170px 170px 26px 26px; box-shadow: var(--shadow-soft);
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
}
.creator-copy h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 4px; }
.creator-role { font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.creator-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.creator-points li { display: flex; gap: 14px; align-items: flex-start; }
.point-icon {
  flex: none; width: 40px; height: 40px; border-radius: 50%; background: #fff;
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--blue);
}
.point-icon svg { width: 18px; height: 18px; }
.creator-points strong { display: block; color: var(--navy); font-size: 15px; }
.creator-points span span, .creator-points li div span { font-size: 13.5px; color: var(--muted); }

/* ---------------- Newsletter ---------------- */
.newsletter-panel {
  background: var(--newsletter-bg); border-radius: 28px;
  padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.newsletter-copy { display: flex; gap: 18px; align-items: flex-start; }
.newsletter-icon {
  flex: none; width: 56px; height: 56px; border-radius: 16px; background: #fff;
  display: flex; align-items: center; justify-content: center; color: var(--blue);
  box-shadow: var(--shadow-card);
}
.newsletter-icon svg { width: 28px; height: 28px; }
.newsletter-panel h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 0; }
.newsletter-form { display: flex; gap: 10px; margin-top: 18px; }
.newsletter-form input {
  flex: 1; border: 1px solid var(--silver); border-radius: 999px;
  padding: 14px 22px; font-size: 15px; font-family: var(--sans); background: #fff; min-width: 0;
}
.newsletter-form input:focus { outline: 2px solid var(--blue); border-color: var(--blue); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy); color: #C7D3E4; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 24px 48px; }
.logo-light { color: #fff; }
.footer-brand p { font-size: 14px; color: #9AA9C2; max-width: 280px; }
.social-icons { display: flex; gap: 12px; margin-top: 18px; }
.social-icons a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; color: #C7D3E4;
}
.social-icons a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.footer-col h4 { color: #fff; font-family: var(--sans); font-size: 15px; font-weight: 600; margin-bottom: 18px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: #9AA9C2; font-size: 14.5px; }
.footer-links a:hover { color: #fff; }
.footer-col p { font-size: 14px; color: #9AA9C2; }
.footer-newsletter { display: grid; gap: 10px; margin-top: 14px; }
.footer-newsletter input {
  border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.08);
  border-radius: 10px; padding: 12px 16px; color: #fff; font-size: 14px; font-family: var(--sans); width: 100%;
}
.footer-newsletter input::placeholder { color: #7E8DA8; }
.footer-newsletter input:focus { outline: 2px solid var(--blue); }
.footer-newsletter .btn { justify-content: center; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); }
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 20px; padding-bottom: 20px; font-size: 13.5px; color: #7E8DA8; flex-wrap: wrap;
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { color: #7E8DA8; }
.footer-legal a:hover { color: #fff; }
.back-to-top { background: none; border: none; color: #7E8DA8; cursor: pointer; font-size: 13.5px; font-family: var(--sans); }
.back-to-top:hover { color: #fff; }

/* ---------------- Page hero / article / archive ---------------- */
.page-hero { padding: 64px 0 8px; text-align: left; }
.page-hero h1 { font-size: clamp(34px, 4vw, 52px); }
.page-article { padding: 40px 0 72px; }
.page-article h1 { font-size: clamp(34px, 4vw, 52px); margin-bottom: 24px; }
.single-article { padding: 48px 0 72px; }
.single-article h1 { font-size: clamp(32px, 4vw, 50px); }
.single-meta { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.single-hero { margin: 0 0 36px; }
.single-hero img { border-radius: 24px; width: 100%; }
.entry-content { font-size: 17.5px; }
.entry-content h2 { font-size: 30px; margin: 2em 0 0.6em; }
.entry-content h3 { font-size: 23px; margin: 1.8em 0 0.5em; }
.entry-content img { border-radius: 18px; }
.entry-content figure { margin: 2em 0; }
.entry-content figcaption { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.entry-content blockquote { border-left: 4px solid var(--blue); background: var(--cloud); border-radius: 0 12px 12px 0; padding: 18px 24px; margin: 2em 0; }
.entry-content ul, .entry-content ol { padding-left: 24px; }
.entry-content li { margin-bottom: 0.5em; }
.author-box {
  display: flex; gap: 20px; align-items: center; background: var(--cloud);
  border-radius: var(--radius); padding: 28px; margin: 48px 0 32px;
}
.author-box img { border-radius: 50%; flex: none; }
.author-box strong { font-family: var(--serif); font-size: 20px; color: var(--navy); }
.author-box p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 28px; }
.post-nav a { font-weight: 600; }
.pagination { text-align: center; margin-top: 44px; }
.pagination .nav-links { display: inline-flex; gap: 8px; }
.pagination .page-numbers { border: 1px solid var(--line); border-radius: 10px; padding: 8px 16px; color: var(--ink); font-size: 14px; }
.pagination .page-numbers.current { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1320px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .header-actions .btn { display: none; }
}
@media (max-width: 1024px) {
  .hero-grid, .featured-grid, .gaming-grid, .tips-grid { gap: 36px; }
  .cat-row { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .creator-grid { grid-template-columns: 1fr 1fr; }
  .creator-points { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .newsletter-panel { grid-template-columns: 1fr; padding: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .header-actions .btn { display: none; }
  .hero-grid, .featured-grid, .gaming-grid, .tips-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .hero-script { font-size: 24px; }
  .tips-collage { min-height: 320px; }
  .creator-grid { grid-template-columns: 1fr; }
  .creator-photo img { max-width: 420px; margin: 0 auto; }
  .creator-points { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}
@media (max-width: 600px) {
  .cat-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-card { padding: 20px 8px; }
  .cards-grid { grid-template-columns: 1fr; }
  .hero-stats div { padding: 0 16px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding: 48px 24px 36px; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .author-box { flex-direction: column; text-align: center; }
  .post-nav { flex-direction: column; }
}
