/*
Theme Name: Twenty Twenty-Five/twentytwentyfive-wpvibe-backup
Theme URI: https://devwander.com/
Author: Anbhigya
Description: A modern personal magazine for travel, technology, machines, books and life.
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.0
Version: 0.3.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: devwander
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, accessibility-ready, blog, portfolio, news
*/

:root {
  --dw-bg: #f5f5f2;
  --dw-surface: #ffffff;
  --dw-surface-soft: #eceee9;
  --dw-text: #151714;
  --dw-muted: #5d625d;
  --dw-line: #d9ddd7;
  --dw-green: #175c4d;
  --dw-green-soft: #dcece6;
  --dw-accent: #d86645;
  --dw-accent-soft: #f3ded6;
  --dw-shadow: 0 20px 60px rgba(21,23,20,.08);
  --dw-radius: 20px;
}

html { scroll-behavior: smooth; }

.dw-single { padding: 0 20px 96px; }
.dw-single-hero {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 112px) 0 56px;
}
.dw-single-hero > .wp-block-post-terms {
  margin: 0 0 18px;
  color: var(--dw-accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dw-single-hero .wp-block-post-title {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: .96;
  letter-spacing: -.065em;
  font-weight: 750;
}
.dw-single-hero .wp-block-post-excerpt {
  max-width: 800px;
  margin: 28px 0 0;
  color: var(--dw-muted);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.65;
}
.dw-single-hero .wp-block-post-date {
  margin-top: 20px;
  color: var(--dw-muted);
  font-size: .78rem;
}
.dw-single-content {
  width: min(780px, 100%);
  margin: 0 auto;
}
.dw-single-content > .wp-block-post-content {
  font-size: 1.08rem;
  line-height: 1.9;
}
.dw-single-content .wp-block-post-content p,
.dw-single-content .wp-block-post-content li {
  line-height: 1.9;
}
.dw-single-content .wp-block-post-content h2 {
  margin-top: 64px;
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.dw-single-content .wp-block-post-content h3 {
  margin-top: 48px;
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.15;
  letter-spacing: -.03em;
}
.dw-single-content .wp-block-post-content blockquote {
  margin: 40px 0;
  padding: 28px 32px;
  border-left: 4px solid var(--dw-accent);
  background: var(--dw-surface-soft);
  border-radius: 0 var(--dw-radius) var(--dw-radius) 0;
  font-family: Georgia, "Noto Serif Devanagari", serif;
  font-size: 1.08em;
}
.dw-single-content .wp-block-post-content ul {
  padding-left: 1.4em;
}
@media (max-width:680px) {
  .dw-single { padding: 0 16px 72px; }
  .dw-single-hero { padding-top: 48px; padding-bottom: 40px; }
  .dw-single-hero .wp-block-post-title { font-size: clamp(2.7rem, 13vw, 5rem); }
  .dw-single-content .wp-block-post-content { font-size: 1rem; }
  .dw-single-content .wp-block-post-content blockquote { padding: 22px 20px; }
}

body {
  background:
    radial-gradient(circle at 86% 8%, color-mix(in srgb, var(--dw-green-soft) 52%, transparent), transparent 24rem),
    radial-gradient(circle at 12% 28%, color-mix(in srgb, var(--dw-accent-soft) 42%, transparent), transparent 22rem),
    var(--dw-bg);
  color: var(--dw-text);
  font-family: var(--wp--preset--font-family--manrope), system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: background-color .25s ease, color .25s ease;
}

a {
  color: inherit;
  text-underline-offset: .18em;
  text-decoration-thickness: 1px;
}

.dw-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--dw-line) 78%, transparent);
  background: color-mix(in srgb, var(--dw-bg) 86%, transparent);
  backdrop-filter: blur(18px);
}

.dw-header-inner {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.dw-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 11px;
}

.dw-brand-logo {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: var(--dw-text);
  flex: 0 0 34px;
}

.dw-brand-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.dw-brand-name {
  font-size: 1.15rem;
  font-weight: 850;
  letter-spacing: -.05em;
}

.dw-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .78rem;
  font-weight: 700;
}

.dw-nav a {
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--dw-muted);
  transition: background-color .2s ease, color .2s ease;
}

.dw-nav a:hover,
.dw-nav a:focus-visible {
  background: var(--dw-surface);
  color: var(--dw-text);
}

.dw-theme-toggle {
  appearance: none;
  border: 1px solid var(--dw-line);
  background: var(--dw-surface);
  color: var(--dw-text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(21,23,20,.05);
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.dw-theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--dw-green);
}

.dw-home { overflow: hidden; }

.dw-hero {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  min-height: clamp(500px, 68vh, 680px);
  padding: clamp(64px, 8vw, 110px) 0 clamp(64px, 8vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}

.dw-hero > div:first-child {
  position: relative;
}

.dw-hero > div:first-child::before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: 8%;
  top: 3%;
  border-radius: 50%;
  background: var(--dw-green-soft);
  filter: blur(1px);
  opacity: .75;
  z-index: -1;
}

.dw-kicker,
.dw-section-label {
  font-size: .72rem;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dw-green);
}

.dw-hero h1 {
  max-width: 880px;
  margin: 18px 0 28px;
  font-size: clamp(4rem, 8.2vw, 8.4rem);
  line-height: .9;
  letter-spacing: -.075em;
  font-weight: 750;
}

.dw-hero h1 em {
  color: var(--dw-accent);
  font-style: normal;
}

.dw-hero-intro {
  max-width: 680px;
  margin: 0;
  font-size: clamp(1.12rem, 1.6vw, 1.45rem);
  line-height: 1.55;
  color: var(--dw-muted);
}

.dw-hero-side {
  padding: 28px;
  border: 1px solid var(--dw-line);
  border-radius: var(--dw-radius);
  background: color-mix(in srgb, var(--dw-surface) 78%, transparent);
  box-shadow: var(--dw-shadow);
}

.dw-hero-side p {
  margin: 0;
  font-size: .94rem;
  line-height: 1.7;
  color: var(--dw-muted);
}

.dw-hero-side p + p { margin-top: 14px; }

.dw-scroll-note {
  margin-top: 28px !important;
  color: var(--dw-text) !important;
  font-size: .72rem !important;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.dw-rule {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  border: 0;
  border-top: 1px solid var(--dw-line);
}

.dw-section {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 120px) 0;
}

.dw-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 44px;
}

.dw-section-heading h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.8rem, 5.5vw, 5.6rem);
  line-height: .94;
  letter-spacing: -.065em;
  font-weight: 700;
}

.dw-section-heading-note {
  max-width: 390px;
  margin: 0 0 4px;
  color: var(--dw-muted);
  font-size: .92rem;
  line-height: 1.65;
}

.dw-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.dw-category {
  position: relative;
  min-height: 330px;
  padding: clamp(26px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  overflow: hidden;
  border: 1px solid var(--dw-line);
  border-radius: var(--dw-radius);
  background: var(--dw-surface);
  box-shadow: 0 2px 0 rgba(21,23,20,.02);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.dw-category::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -48px;
  bottom: -60px;
  border-radius: 50%;
  background: var(--dw-surface-soft);
  transition: transform .3s ease;
}

.dw-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--dw-shadow);
  border-color: color-mix(in srgb, var(--dw-green) 45%, var(--dw-line));
}

.dw-category:hover::after { transform: scale(1.25); }

.dw-category:nth-child(1) {
  min-height: 390px;
  background: linear-gradient(145deg, var(--dw-green) 0%, #236d5b 100%);
  color: #f8fbf9;
  border-color: transparent;
}

.dw-category:nth-child(2) {
  min-height: 390px;
  background: linear-gradient(145deg, #202420 0%, #303730 100%);
  color: #f5f6f2;
  border-color: transparent;
}

.dw-category:nth-child(3) {
  background: linear-gradient(145deg, var(--dw-accent) 0%, #bd5639 100%);
  color: #fff9f6;
  border-color: transparent;
}

.dw-category:nth-child(4) {
  background: var(--dw-surface-soft);
}

.dw-category-number {
  position: relative;
  z-index: 1;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  opacity: .72;
}

.dw-category h3 {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 700;
}

.dw-category p {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0;
  font-size: .92rem;
  line-height: 1.65;
  opacity: .82;
}

.dw-category-arrow {
  position: absolute;
  z-index: 2;
  right: 26px;
  bottom: 22px;
  font-size: 1.3rem;
  transition: transform .2s ease;
}

.dw-category:hover .dw-category-arrow { transform: translate(3px, -3px); }

.dw-note {
  border: 1px solid var(--dw-line);
  border-radius: var(--dw-radius);
  background: var(--dw-text);
  color: #f5f6f2;
  padding: clamp(34px, 5vw, 64px);
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 50px;
  align-items: end;
  box-shadow: var(--dw-shadow);
}

.dw-note .dw-section-label { color: #a9d4c7; }

.dw-note h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: .95;
  letter-spacing: -.06em;
  font-weight: 700;
}

.dw-note p {
  max-width: 650px;
  margin: 0;
  color: #c9cdc7;
  font-size: 1rem;
  line-height: 1.8;
}

.dw-footer {
  border-top: 1px solid var(--dw-line);
  padding: 28px 0 38px;
}

.dw-footer-inner {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--dw-muted);
  font-size: .78rem;
}

.dw-footer a { text-decoration: none; }

.dw-theme-dark {
  --dw-bg: #0f1210;
  --dw-surface: #171b18;
  --dw-surface-soft: #202620;
  --dw-text: #f0f2ed;
  --dw-muted: #c1c7c0;
  --dw-line: #3b433d;
  --dw-green: #83c4b1;
  --dw-green-soft: #193b32;
  --dw-accent: #ee8a68;
  --dw-accent-soft: #4a2b22;
  --dw-shadow: 0 20px 60px rgba(0,0,0,.28);
}

.dw-theme-dark .dw-site-header { background: rgba(15,18,16,.86); }
.dw-theme-dark .dw-category:nth-child(1) { background: linear-gradient(145deg,#1f5a4c,#27715f); }
.dw-theme-dark .dw-category:nth-child(2) { background: linear-gradient(145deg,#1b201c,#29312a); }
.dw-theme-dark .dw-category:nth-child(3) { background: linear-gradient(145deg,#9e4e38,#c06045); }
.dw-theme-dark .dw-category:nth-child(4) { background: #202620; }

@media (prefers-color-scheme: dark) {
  html:not(.dw-theme-light) {
    --dw-bg: #0f1210;
    --dw-surface: #171b18;
    --dw-surface-soft: #202620;
    --dw-text: #f0f2ed;
    --dw-muted: #c1c7c0;
    --dw-line: #3b433d;
    --dw-green: #83c4b1;
    --dw-green-soft: #193b32;
    --dw-accent: #ee8a68;
    --dw-shadow: 0 20px 60px rgba(0,0,0,.28);
  }
  html:not(.dw-theme-light) .dw-site-header { background: rgba(15,18,16,.86); }
  html:not(.dw-theme-light) .dw-category:nth-child(1) { background: linear-gradient(145deg,#1f5a4c,#27715f); }
  html:not(.dw-theme-light) .dw-category:nth-child(2) { background: linear-gradient(145deg,#1b201c,#29312a); }
  html:not(.dw-theme-light) .dw-category:nth-child(3) { background: linear-gradient(145deg,#9e4e38,#c06045); }
  html:not(.dw-theme-light) .dw-category:nth-child(4) { background: #202620; }
}

.dw-archive {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px, 8vw, 104px) 0 100px;
}
.dw-archive-intro {
  max-width: 900px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--dw-line);
}
.dw-archive-kicker {
  margin: 0 0 16px;
  color: var(--dw-green);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dw-archive h1 {
  margin: 0;
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: .92;
  letter-spacing: -.07em;
  font-weight: 750;
}
.dw-archive-description {
  max-width: 760px;
  margin-top: 24px;
  color: var(--dw-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}
.dw-archive-description strong {
  color: var(--dw-text);
  display: inline-block;
  margin-right: 8px;
}
.dw-archive-description a {
  color: var(--dw-green);
  font-weight: 750;
  text-decoration-thickness: 1px;
}
.dw-archive-description a:hover { color: var(--dw-accent); }
.dw-archive-posts {
  margin-top: 48px;
}
.dw-archive-posts .wp-block-post-template {
  gap: 16px;
}
.dw-archive-card {
  height: 100%;
  box-sizing: border-box;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--dw-line);
  border-radius: var(--dw-radius);
  background: var(--dw-surface);
  box-shadow: 0 2px 0 rgba(21,23,20,.02);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.dw-archive-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--dw-shadow);
  border-color: color-mix(in srgb, var(--dw-green) 45%, var(--dw-line));
}
.dw-archive-card .wp-block-post-terms {
  margin-bottom: 16px;
  color: var(--dw-accent);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dw-archive-card .wp-block-post-title {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  line-height: 1;
  letter-spacing: -.045em;
}
.dw-archive-card .wp-block-post-title a {
  text-decoration: none;
}
.dw-archive-card .wp-block-post-excerpt {
  margin-top: 16px;
  color: var(--dw-muted);
  line-height: 1.65;
}
.dw-archive-card .wp-block-post-date {
  display: block;
  margin-top: 24px;
  color: var(--dw-muted);
  font-size: .78rem;
}
@media (max-width: 900px) {
  .dw-archive, .dw-header-inner, .dw-footer-inner { width: min(100% - 32px, 1240px); }
}
@media (max-width: 680px) {
  .dw-archive { padding-top: 52px; padding-bottom: 72px; }
  .dw-archive h1 { font-size: clamp(3.2rem, 17vw, 5.5rem); }
  .dw-archive-description { font-size: .98rem; }
}

@media (max-width: 900px) {
  .dw-header-inner, .dw-hero, .dw-section, .dw-footer-inner, .dw-rule { width: min(100% - 32px, 1240px); }
  .dw-nav { gap: 0; }
  .dw-nav a { padding: 8px 9px; }
  .dw-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 64px;
  }
  .dw-hero-side { max-width: 620px; }
  .dw-section-heading { align-items: start; flex-direction: column; gap: 18px; }
  .dw-category-grid { grid-template-columns: 1fr; }
  .dw-category, .dw-category:nth-child(1), .dw-category:nth-child(2) { min-height: 300px; }
  .dw-note { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .dw-header-inner { min-height: 64px; }
  .dw-nav { display: none; }
  .dw-theme-toggle { margin-left: auto; }
  .dw-hero, .dw-section { padding-top: 56px; padding-bottom: 72px; }
  .dw-hero h1 { font-size: clamp(3.5rem, 16vw, 6rem); }
  .dw-hero > div:first-child::before { width: 130px; height: 130px; right: 0; }
  .dw-category { padding: 24px; }
  .dw-footer-inner { flex-direction: column; }
}
