:root {
  --bg: #fdfaf6;
  --surface: #ffffff;
  --text: #000000;
  --muted: #5f5a62;
  --primary: #64358c;
  --primary-soft: #f4edf9;
  --border: #e8dfee;
  --content-top-gap: 2rem;
  --shadow-soft: 0 10px 30px rgba(100, 53, 140, 0.07);
}

@font-face {
  font-family: "LUU Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://luukids.com/cdn/fonts/poppins/poppins_n4.0ba78fa5af9b0e1a374041b3ceaadf0a43b41362.woff2") format("woff2");
}

@font-face {
  font-family: "LUU Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("https://luukids.com/cdn/fonts/poppins/poppins_n6.aa29d4918bc243723d56b59572e18228ed0786f6.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--brand-font, Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

main.container {
  padding-top: var(--content-top-gap);
  padding-bottom: 3rem;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  color: #000;
  font-family: "LUU Poppins", Poppins, sans-serif;
}

.luu-header-inner {
  width: min(1600px, calc(100vw - 3rem));
  min-height: 118px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.5rem);
}

.brand {
  flex: 0 0 80px;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 80px;
  height: 88px;
  object-fit: contain;
}

.desktop-navigation {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 1.25vw, 1.6rem);
  white-space: nowrap;
}

.desktop-navigation--secondary {
  margin-left: auto;
}

.desktop-navigation a,
.mobile-navigation-panel a {
  color: #000;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.045em;
  text-decoration: none;
  text-transform: uppercase;
}

.desktop-navigation a {
  position: relative;
  padding: 0.65rem 0;
}

.desktop-navigation a::after {
  position: absolute;
  right: 0;
  bottom: 0.35rem;
  left: 0;
  height: 1px;
  background: #64358c;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.desktop-navigation a:hover::after,
.desktop-navigation a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.header-icon-button {
  width: 2.15rem;
  height: 2.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #000;
}

.header-icon-button:hover,
.header-icon-button:focus-visible {
  background: rgba(100, 53, 140, 0.08);
}

.header-icon-button svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.mobile-navigation {
  display: none;
}

.language-select-wrap {
  position: relative;
}

.language-select {
  min-width: 4.5rem;
  padding: 0.4rem 1.35rem 0.4rem 0.55rem;
  border: 0;
  color: #000;
  background-color: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.language-select:hover,
.language-select:focus-visible {
  border-color: var(--primary);
  outline: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

nav a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.eyebrow {
  margin: 0 0 0.4rem;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-intro,
.filters,
.post-full,
.related-posts,
.error-page,
.empty-state {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
}

.page-intro {
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.page-intro h1,
.related-posts h2,
.post-full h1,
.empty-state h2,
.error-page h1 {
  margin: 0;
}

.page-intro p:last-child,
.empty-state p:last-child,
.error-page p:last-child {
  margin-bottom: 0;
}

.filters {
  margin: 0 0 1.4rem;
  padding: 1rem 1.1rem;
}

button,
.button {
  border: 0;
  border-radius: 0.6rem;
  background: var(--primary);
  color: var(--on-primary);
  padding: 0.65rem 1rem;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.posts-section {
  margin-bottom: 1.5rem;
}

.posts-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: stretch;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.post-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 24px var(--primary-shadow);
  transform: translateY(-2px);
}

.post-card-media-link {
  display: block;
  text-decoration: none;
}

.post-card h2,
.post-card h3 {
  margin: 0;
}

.post-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
}

.post-title-link {
  color: var(--text);
  text-decoration: none;
}

.post-title-link:hover {
  color: var(--primary);
}

.post-cover,
.post-cover-large {
  width: 100%;
  display: block;
  object-fit: cover;
}

.post-cover {
  height: 180px;
}

.post-cover-large {
  max-height: 420px;
}

.post-date,
.post-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.post-excerpt {
  margin: 0;
  color: var(--muted);
}

.post-card-content .tags {
  margin-top: auto;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
}

.post-article {
  overflow: hidden;
}

.post-article-body {
  padding: 1.5rem;
}

.post-full h1 {
  margin: 0.75rem 0 0.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
}

.post-meta-inline {
  margin-top: 0.4rem;
}

.post-content {
  margin-top: 1.25rem;
  font-size: 1.03rem;
}

.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  margin: 1.75em 0 0.65em;
  line-height: 1.25;
}

.post-content h2 {
  font-size: 1.65rem;
}

.post-content h3 {
  font-size: 1.35rem;
}

.post-content p,
.post-content ul,
.post-content ol,
.post-content table,
.post-content figure {
  margin: 0 0 1.15rem;
}

.post-content ul,
.post-content ol {
  padding-left: 1.6rem;
}

.post-content li {
  padding-left: 0.2rem;
}

.post-content li + li {
  margin-top: 0.4rem;
}

.post-content li > ul,
.post-content li > ol {
  margin: 0.4rem 0 0;
}

.post-content a {
  color: var(--primary);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.post-content hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.post-content > *:first-child {
  margin-top: 0;
}

.post-content > *:last-child {
  margin-bottom: 0;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.9rem;
}

.post-content iframe,
.post-content table,
.post-content pre {
  max-width: 100%;
}

.post-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  border-spacing: 0;
  border-collapse: separate;
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

.post-content th,
.post-content td {
  min-width: 8rem;
  padding: 0.7rem 0.85rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.post-content th {
  background: var(--primary-soft);
  color: var(--text);
  font-weight: 700;
}

.post-content tr > :last-child {
  border-right: 0;
}

.post-content tbody tr:last-child > td {
  border-bottom: 0;
}

.post-content tbody tr:nth-child(even) td {
  background: var(--primary-soft);
  background: color-mix(in srgb, var(--primary-soft) 35%, var(--surface));
}

.post-content code {
  padding: 0.12em 0.35em;
  border-radius: 0.35rem;
  background: var(--code-bg);
  color: var(--code-text);
  font-size: 0.9em;
}

.post-content pre {
  overflow-x: auto;
  padding: 1rem;
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: 0.9rem;
}

.post-content pre code {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.post-content blockquote {
  margin: 1.25rem 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 4px solid var(--primary);
  color: var(--muted);
}

.post-content blockquote > :last-child {
  margin-bottom: 0;
}

.post-content figure {
  max-width: 100%;
}

.post-content figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.related-posts {
  margin-top: 1.5rem;
  padding: 1.25rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tags--compact {
  gap: 0.5rem;
}

.tag {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  text-decoration: none;
  font-size: 0.85rem;
  border: 1px solid transparent;
}

a.tag:hover {
  border-color: var(--primary-border);
}

.tag.active,
.page-link.active {
  background: var(--primary);
  color: var(--on-primary);
}

.empty-state {
  padding: 1.5rem;
}

.empty-state--compact {
  padding: 1rem 1.2rem;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin: 1.5rem 0 2rem;
}

.page-link {
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  min-width: 2rem;
  text-align: center;
  border-radius: 0.5rem;
  padding: 0.3rem 0.6rem;
}

.luu-benefits {
  border-top: 1px solid #fff;
  background: #fdfaf6;
  color: #000;
  font-family: "LUU Poppins", Poppins, sans-serif;
}

.luu-benefits-inner {
  width: min(1200px, calc(100vw - 3rem));
  margin: 0 auto;
  padding: 3rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.luu-benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
}

.luu-benefit img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.luu-benefit h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.site-footer {
  margin-top: auto;
  background: #64358c;
  color: #fff;
  font-family: "LUU Poppins", Poppins, sans-serif;
}

.luu-footer-inner {
  width: min(1200px, calc(100vw - 3rem));
  margin: 0 auto;
  padding: 3.75rem 0 3rem;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}

.site-footer h2 {
  margin: 0 0 1.25rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.86rem;
  line-height: 1.7;
}

.footer-about p {
  margin: 0 0 1rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.footer-column a,
.luu-footer-bottom a {
  text-decoration: none;
}

.footer-column a:hover,
.footer-column a:focus-visible,
.luu-footer-bottom a:hover,
.luu-footer-bottom a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.luu-footer-bottom {
  width: min(1200px, calc(100vw - 3rem));
  margin: 0 auto;
  padding: 1.25rem 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.luu-footer-bottom p {
  margin: 0;
}

.footer-socials {
  display: flex;
  gap: 0.8rem;
}

.footer-socials a {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-socials svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.footer-socials .icon-fill {
  fill: currentColor;
  stroke: none;
}

@media (max-width: 1180px) {
  .desktop-navigation--secondary {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
  }
}

@media (max-width: 860px) {
  .luu-header-inner {
    width: calc(100vw - 2rem);
    min-height: 76px;
    justify-content: space-between;
  }

  .desktop-navigation {
    display: none;
  }

  .brand {
    position: absolute;
    left: 50%;
    flex-basis: 46px;
    transform: translateX(-50%);
  }

  .brand img {
    width: 46px;
    height: 52px;
  }

  .mobile-navigation {
    display: block;
  }

  .mobile-navigation summary {
    list-style: none;
    cursor: pointer;
  }

  .mobile-navigation summary::-webkit-details-marker {
    display: none;
  }

  .mobile-navigation-panel {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 1rem 1.5rem 1.5rem;
    display: grid;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.1);
  }

  .mobile-navigation-panel a {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .mobile-navigation-panel a:last-child {
    border-bottom: 0;
  }

  .language-select-wrap {
    display: none;
  }

  .nav-actions {
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(1100px, calc(100vw - 2rem));
  }

  main.container {
    padding-top: 1.25rem;
    padding-bottom: 2rem;
  }

  .page-intro,
  .filters,
  .related-posts,
  .error-page,
  .empty-state,
  .post-article-body {
    padding: 1rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .post-cover {
    height: 210px;
  }

  .post-full h1 {
    font-size: 2rem;
  }

  .luu-benefits-inner {
    width: calc(100vw - 2rem);
    padding: 2rem 0;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .luu-benefit img {
    width: 42px;
    height: 42px;
  }

  .luu-benefit h2 {
    font-size: 0.72rem;
  }

  .luu-footer-inner {
    width: calc(100vw - 2rem);
    padding: 2.5rem 0 2rem;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .luu-footer-bottom {
    width: calc(100vw - 2rem);
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }
}
