:root {
  --bg-color: #f8f7f3;
  --surface: #fdfcf9;
  --text-main: #0f0e0d;
  --text-light: #6a6763;
  --accent: #bfa58f;
  --lines: #dfdbce;
  --bg-hover: #ede8df;
  --font-display: "Instrument Serif", serif;
  --font-sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --pad-x: max(5vw, 40px);
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0;
}

a {
  color: inherit;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(248, 247, 243, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--lines);
  color: var(--text-main);
}

.logo {
  display: block;
  text-decoration: none;
}

.logo img {
  height: 52px;
  width: auto;
}

.menu-btn {
  background: none;
  border: none;
  color: inherit;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
}

.site-menu {
  position: fixed;
  top: 86px;
  right: var(--pad-x);
  min-width: 250px;
  display: grid;
  gap: 0.25rem;
  padding: 0.65rem;
  background: rgba(248, 247, 243, 0.98);
  border: 1px solid var(--lines);
  z-index: 110;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-menu a {
  display: block;
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.7rem 0.85rem;
  transition: background 0.3s ease;
}

.site-menu a:hover {
  background: var(--bg-hover);
}

.submenu-group {
  display: grid;
  gap: 0.2rem;
}

.submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  padding: 0.7rem 0.85rem;
  cursor: pointer;
  text-align: left;
}

.submenu-arrow {
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.submenu-group.is-open .submenu-arrow {
  transform: rotate(180deg);
}

.site-submenu {
  display: none;
  gap: 0.15rem;
  padding-bottom: 0.2rem;
}

.submenu-group.is-open .site-submenu {
  display: grid;
}

.site-submenu a {
  padding-left: 1.25rem;
  font-size: 0.69rem;
  letter-spacing: 0.1em;
}

.site-menu[hidden] {
  display: none !important;
}

.site-menu a.is-active {
  background: var(--bg-hover);
  color: var(--text-main);
  font-weight: 500;
}

.submenu-toggle.is-active-parent {
  background: var(--bg-hover);
  font-weight: 500;
}

.submenu-toggle.is-active-parent .submenu-arrow {
  transform: rotate(180deg);
}

.logo,
.menu-btn {
  opacity: 0;
}

.blog-hero {
  padding: 160px var(--pad-x) 70px;
  border-bottom: 1px solid var(--lines);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
}

.caption {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-light);
  display: block;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 8.4rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
}

.hero-copy {
  color: var(--text-light);
  font-size: 1.02rem;
  line-height: 1.75;
  margin: 0;
}

.blog-shell {
  padding: 9vh var(--pad-x) 10vh;
  max-width: 1250px;
  margin: 0 auto;
}

.blog-taxonomy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border: 1px solid var(--lines);
  border-radius: 999px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.64rem;
  background: transparent;
  transition: all 0.25s ease;
}

.chip:hover,
.chip.is-active {
  border-color: var(--text-main);
  background: var(--bg-hover);
}

.post-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.post-card {
  grid-column: span 6;
  border: 1px solid var(--lines);
  background: var(--surface);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.post-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--lines);
}

.post-card__body {
  padding: 1.25rem 1.2rem 1.4rem;
  display: grid;
  gap: 0.65rem;
}

.post-meta {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-light);
}

.post-title {
  font-size: clamp(1.5rem, 2.9vw, 2.2rem);
  line-height: 1.05;
}

.post-excerpt {
  margin: 0;
  color: var(--text-light);
  font-size: 0.97rem;
  line-height: 1.72;
}

.read-more {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.pagination-wrap {
  margin-top: 3rem;
}

.page-numbers {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.page-numbers a,
.page-numbers span {
  min-width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--lines);
  text-decoration: none;
  font-size: 0.76rem;
}

.page-numbers .current {
  border-color: var(--text-main);
  background: var(--bg-hover);
}

.single-shell {
  padding: 9vh var(--pad-x) 10vh;
  max-width: 1240px;
  margin: 0 auto;
}

.single-media {
  margin-bottom: 2rem;
  border: 1px solid var(--lines);
  background: var(--surface);
}

.single-media img {
  width: 100%;
  max-height: 72vh;
  object-fit: cover;
}

.single-layout {
  display: block;
}

.single-content {
  color: #24211f;
  max-width: 980px;
  margin: 0 auto;
}

.single-content h2,
.single-content h3,
.single-content h4 {
  margin-top: 1.8rem;
  margin-bottom: 0.55rem;
  line-height: 1.1;
}

.single-content p,
.single-content li,
.single-content blockquote {
  font-size: 1.05rem;
  line-height: 1.82;
  color: #2a2623;
}

.single-content a {
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.single-content blockquote {
  border-left: 2px solid var(--lines);
  padding-left: 1.1rem;
  margin-left: 0;
}

.single-content figure {
  margin: 1.4rem 0;
}

.single-content figcaption {
  margin-top: 0.5rem;
  color: var(--text-light);
  font-size: 0.85rem;
}

.single-content .wp-block-image img {
  border: 1px solid var(--lines);
}

.single-aside {
  border-left: 1px solid var(--lines);
  padding-left: 1.3rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

.single-aside h3 {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.68rem;
  margin-bottom: 0.6rem;
  color: var(--text-main);
}

.aside-group + .aside-group {
  margin-top: 1.5rem;
}

.single-nav {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.single-nav a {
  border: 1px solid var(--lines);
  text-decoration: none;
  padding: 0.9rem 1rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  min-height: 100%;
  display: flex;
  align-items: center;
}

.single-nav a:hover {
  background: var(--bg-hover);
}

.archive-empty {
  padding: 2.5rem 0;
  color: var(--text-light);
  font-size: 1.05rem;
}

.reveal-up {
  opacity: 0;
  transform: translateY(34px);
}

footer {
  padding: 4rem var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--lines);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-wrap: wrap;
  gap: 2rem;
}

footer a {
  text-decoration: none;
  color: inherit;
  margin-left: 1.5rem;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

footer a:hover {
  opacity: 1;
}

@media (max-width: 980px) {
  .hero-layout,
  .single-layout {
    grid-template-columns: 1fr;
  }

  .single-aside {
    border-left: 0;
    border-top: 1px solid var(--lines);
    padding-left: 0;
    padding-top: 1.1rem;
  }
}

@media (max-width: 860px) {
  .post-card {
    grid-column: span 12;
  }

  .hero-title {
    font-size: clamp(2.4rem, 12vw, 4.6rem);
  }

  .single-nav {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  footer a {
    margin: 0 0.5rem;
  }
}
