/*
Theme Name: Kinderbuchwelt
Theme URI: https://kinderbuchwelt-blog.kathrin-stellmach.chatgpt.site
Author: Klara Steinwald
Description: Warmes, responsives Blog-Theme für Kinderbücher, Leseförderung und Naturwissen.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: kinderbuchwelt
Tags: blog, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --cream: #f8f1e5;
  --paper: #fffaf1;
  --brown: #3f3028;
  --brown-soft: #765d4d;
  --terracotta: #b96545;
  --terracotta-dark: #914a32;
  --forest: #586b51;
  --forest-dark: #303b32;
  --honey: #d6a34a;
  --rose: #c98472;
  --line: rgba(63, 48, 40, 0.14);
  --shadow: 0 20px 60px rgba(67, 45, 30, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--brown);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; }
.site-main { min-height: 60vh; }
.custom-logo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.desktop-nav ul, .mobile-nav ul, .footer-menu { padding: 0; margin: 0; list-style: none; }
.desktop-nav ul { display: flex; gap: clamp(.75rem, 1.7vw, 1.7rem); }
.menu-toggle { display: none; }
.featured-visual img { position: absolute; z-index: 2; width: 100%; height: 100%; object-fit: cover; }
.footer-menu { display: flex; flex-direction: column; gap: .7rem; }
.footer-heading { margin: 0 0 .8rem; color: #fff; font-family: Georgia, serif; font-size: 1rem; }

.content-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(2rem, 5vw, 5rem);
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 5rem 0;
}
.content-shell.no-sidebar { display: block; max-width: 860px; }
.archive-header { margin-bottom: 2.5rem; }
.archive-description { max-width: 720px; color: var(--brown-soft); line-height: 1.75; }
.archive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.archive-grid .post-card { display: flex; flex-direction: column; }
.archive-grid .post-card-copy { display: flex; flex: 1; flex-direction: column; }
.archive-grid .post-card-copy > p { flex: 1; }
.post-thumbnail, .single-thumbnail { display: block; overflow: hidden; background: #ead8bc; }
.post-thumbnail { aspect-ratio: 16 / 9; }
.post-thumbnail img, .single-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.single-article, .page-article { overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--paper); box-shadow: var(--shadow); }
.single-thumbnail { max-height: 560px; }
.entry-header, .entry-content, .entry-footer, .comments-area { padding-right: clamp(1.4rem, 5vw, 4rem); padding-left: clamp(1.4rem, 5vw, 4rem); }
.entry-header { padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: 1rem; }
.entry-title { overflow-wrap: anywhere; font-size: clamp(2.2rem, 5vw, 4.2rem); }
.entry-meta { color: #967d6e; font-size: .85rem; }
.entry-content { padding-bottom: 3rem; color: var(--brown-soft); font-size: 1.03rem; line-height: 1.85; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 2.2rem; color: var(--brown); }
.entry-content a { color: var(--terracotta-dark); text-decoration: underline; }
.entry-content blockquote { padding: 1rem 1.5rem; margin: 2rem 0; border-left: 5px solid var(--honey); background: #fff7e8; color: var(--forest-dark); font-family: Georgia, serif; font-size: 1.25rem; }
.entry-footer { padding-top: 1.3rem; padding-bottom: 2rem; border-top: 1px solid var(--line); color: var(--brown-soft); font-size: .85rem; }
.post-navigation { margin-top: 2rem; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-navigation a { display: block; padding: 1.2rem; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); color: var(--terracotta-dark); font-weight: 700; }
.nav-next { text-align: right; }
.sidebar { align-self: start; }
.widget { padding: 1.4rem; margin-bottom: 1.2rem; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.widget-title { font-size: 1.35rem; }
.widget li { margin-bottom: .5rem; }
.search-form { display: flex; gap: .5rem; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 44px; padding: .65rem .9rem; border: 1px solid #d7c1a4; border-radius: 999px; background: #fff; }
.search-submit { min-height: 44px; padding: .65rem 1rem; border: 0; border-radius: 999px; background: var(--terracotta); color: #fff; cursor: pointer; font-weight: 700; }
.pagination { margin-top: 2rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.page-numbers { display: grid; min-width: 40px; min-height: 40px; place-items: center; padding: .4rem .75rem; border-radius: 999px; background: var(--paper); }
.page-numbers.current { background: var(--terracotta); color: #fff; }
.comments-area { padding-top: 2rem; padding-bottom: 3rem; border-top: 1px solid var(--line); }
.comment-list { padding: 0; list-style: none; }
.comment-list .children { list-style: none; }
.comment-body { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.comment-form input:not([type="submit"]), .comment-form textarea { width: 100%; padding: .8rem; border: 1px solid #d7c1a4; border-radius: 12px; background: #fff; }
.comment-form .submit { padding: .85rem 1.3rem; border: 0; border-radius: 999px; background: var(--terracotta); color: #fff; cursor: pointer; font-weight: 800; }
.not-found { padding: 4rem; border-radius: 28px; background: var(--paper); text-align: center; }
.sticky { outline: 2px solid rgba(214, 163, 74, .45); }
.bypostauthor { background: rgba(214, 163, 74, .08); }

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

button,
input {
  font: inherit;
}

.topline {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.6rem 1rem;
  background: #efe3d1;
  color: var(--brown-soft);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-align: center;
}

.topline span {
  color: var(--terracotta);
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 0.85rem clamp(1.25rem, 5vw, 5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50% 48% 54% 46%;
  background: var(--terracotta);
  color: white;
  font-family: Georgia, serif;
  font-size: 1.05rem;
  box-shadow: 0 5px 0 #8f4c36;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
}

.brand small {
  margin-top: 0.16rem;
  color: var(--brown-soft);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.7vw, 1.7rem);
  font-size: 0.9rem;
  font-weight: 700;
}

.desktop-nav a {
  position: relative;
  padding: 0.6rem 0;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0.15rem;
  left: 0;
  height: 2px;
  background: var(--terracotta);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  transform: scaleX(1);
}

.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #4f3829;
}

.hero-picture,
.hero-picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-picture img {
  object-fit: cover;
  object-position: center;
  transform: translateX(-2.5%) scale(1.055);
  transform-origin: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(34, 22, 15, 0.08) 35%, rgba(28, 19, 13, 0.66) 100%),
    linear-gradient(0deg, rgba(28, 19, 13, 0.2), transparent 55%);
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(48%, 780px);
  min-height: 560px;
  margin-left: auto;
  padding: 4rem clamp(2rem, 3.2vw, 4rem) 4rem 1.25rem;
  color: white;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--terracotta);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f2c879;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.08;
}

h1 {
  margin-bottom: 1.2rem;
  font-size: clamp(2.7rem, 3.8vw, 4.55rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.1rem, 3.3vw, 3.55rem);
}

h3 {
  font-size: 1.45rem;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 570px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 0.6rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--terracotta);
  color: white;
  box-shadow: 0 8px 22px rgba(126, 61, 40, 0.24);
}

.button-primary:hover {
  background: var(--terracotta-dark);
}

.button-light {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 250, 241, 0.94);
  color: var(--brown);
}

.button-outline {
  border-color: var(--terracotta);
  color: var(--terracotta-dark);
}

.section {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 6.5rem 0;
}

.section-heading {
  margin-bottom: 2.4rem;
}

.section-heading.centered {
  max-width: 700px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading.centered > p:last-child {
  color: var(--brown-soft);
  line-height: 1.75;
}

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.topics {
  position: relative;
}

.topics::before {
  position: absolute;
  top: 8.5rem;
  left: 50%;
  z-index: -1;
  width: min(92vw, 1280px);
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(214, 163, 74, 0.09),
    transparent 67%
  );
  content: "";
  transform: translateX(-50%);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.topic-card {
  --accent-rgb: 185, 101, 69;
  position: relative;
  display: flex;
  min-height: 410px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 12px 36px rgba(63, 48, 40, 0.08);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.topic-card:hover {
  border-color: rgba(var(--accent-rgb), 0.36);
  box-shadow: 0 25px 60px rgba(var(--accent-rgb), 0.19);
  transform: translateY(-7px);
}

.topic-card.terracotta {
  --accent: var(--terracotta);
  --accent-rgb: 185, 101, 69;
}

.topic-card.forest {
  --accent: var(--forest);
  --accent-rgb: 88, 107, 81;
}

.topic-card.honey {
  --accent: var(--honey);
  --accent-rgb: 214, 163, 74;
}

.topic-card.rose {
  --accent: var(--rose);
  --accent-rgb: 201, 132, 114;
}

.topic-art {
  position: relative;
  display: grid;
  min-height: 156px;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 48%,
      rgba(255, 255, 255, 0.74) 0 22%,
      transparent 23%
    ),
    linear-gradient(
      145deg,
      rgba(var(--accent-rgb), 0.3),
      rgba(var(--accent-rgb), 0.08)
    );
}

.topic-art::before,
.topic-art::after {
  position: absolute;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(var(--accent-rgb), 0.26);
  border-radius: 46% 54% 42% 58%;
  content: "";
  transform: rotate(28deg);
}

.topic-art::before {
  top: -36px;
  left: -18px;
}

.topic-art::after {
  right: -25px;
  bottom: -34px;
  width: 102px;
  height: 102px;
}

.topic-number {
  position: absolute;
  top: 1rem;
  left: 1.15rem;
  color: rgba(var(--accent-rgb), 0.63);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.topic-icon {
  z-index: 1;
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: rgba(255, 250, 241, 0.88);
  box-shadow: 0 12px 30px rgba(var(--accent-rgb), 0.2);
  font-size: 2rem;
  transition: transform 180ms ease;
}

.topic-card:hover .topic-icon {
  transform: rotate(-5deg) scale(1.06);
}

.topic-orbit {
  position: absolute;
  width: 115px;
  height: 48px;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.topic-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.55rem 1.6rem 1.7rem;
}

.topic-label {
  margin-bottom: 0.65rem;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topic-card h3 {
  min-height: 50px;
  margin-bottom: 0.65rem;
  font-size: 1.52rem;
}

.topic-card p {
  flex: 1;
  min-height: 76px;
  margin: 0 0 1.2rem;
  color: var(--brown-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}

.topic-card .card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(var(--accent-rgb), 0.2);
  color: var(--accent);
  font-size: 0.83rem;
  font-weight: 800;
}

.topic-card .card-link span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.12);
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.topic-card:hover .card-link span {
  background: rgba(var(--accent-rgb), 0.2);
  transform: translateX(3px);
}

.swipe-hint {
  display: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--terracotta-dark);
  font-weight: 800;
}

.welcome {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr;
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
  padding-top: 2rem;
}

.welcome-note {
  position: relative;
  padding: 3.4rem 2rem;
  border: 1px solid #e6d4b8;
  background: #fff7e8;
  box-shadow: 9px 12px 0 #ead8bc;
  color: var(--forest-dark);
  font-family: "Segoe Print", "Bradley Hand", cursive;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.45;
  text-align: center;
  transform: rotate(-2deg);
}

.welcome-note span {
  position: absolute;
  top: -0.55rem;
  left: 1.1rem;
  color: var(--honey);
  font-family: Georgia, serif;
  font-size: 5rem;
}

.welcome-copy > p:not(.eyebrow) {
  max-width: 650px;
  color: var(--brown-soft);
  font-size: 1.03rem;
  line-height: 1.85;
}

.blog-section {
  width: min(1240px, calc(100% - 2.5rem));
}

.featured-post {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 440px;
  overflow: hidden;
  border-radius: 32px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.featured-visual {
  position: relative;
  display: grid;
  min-height: 400px;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 25%, rgba(255, 228, 159, 0.8), transparent 20%),
    linear-gradient(145deg, rgba(47, 58, 45, 0.95), rgba(111, 79, 50, 0.92));
}

.featured-visual::before {
  position: absolute;
  width: 310px;
  height: 210px;
  border: 13px solid #8b6544;
  background: #f6e8cd;
  box-shadow: 0 24px 50px rgba(18, 14, 10, 0.35);
  content: "";
  transform: rotate(-7deg);
}

.paper-note {
  z-index: 1;
  padding: 2.2rem 2.6rem;
  color: var(--brown);
  font-family: "Segoe Print", cursive;
  font-size: 1.55rem;
  transform: rotate(-7deg);
}

.paw {
  position: absolute;
  right: 13%;
  bottom: 10%;
  font-size: 5rem;
  filter: sepia(1);
  transform: rotate(18deg);
}

.featured-copy {
  align-self: center;
  padding: clamp(2rem, 5vw, 4rem);
}

.category {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--terracotta-dark);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.featured-copy h3 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.featured-copy > p:not(.post-date) {
  color: var(--brown-soft);
  line-height: 1.8;
}

.post-date {
  color: #9a8172;
  font-size: 0.8rem;
}

.featured-copy .button {
  margin-top: 1rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  margin-top: 2rem;
}

.post-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.post-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.post-image {
  display: grid;
  height: 210px;
  place-items: center;
  font-size: 4.3rem;
}

.post-odin {
  background: linear-gradient(150deg, #d9a279, #734d36);
}

.post-reading {
  background: linear-gradient(150deg, #efdca9, #c6785e);
}

.post-forest {
  background: linear-gradient(150deg, #a5b292, #405c47);
}

.post-card-copy {
  padding: 1.5rem;
}

.post-card-copy h3 {
  min-height: 55px;
  margin-bottom: 0.8rem;
}

.post-card-copy > p {
  min-height: 75px;
  color: var(--brown-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: #967d6e;
}

.post-meta a {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #f0e2d0;
  color: var(--terracotta-dark);
}

.worlds {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.world {
  min-height: 500px;
  padding: clamp(3rem, 7vw, 7rem);
  color: white;
}

.world > p:not(.eyebrow) {
  max-width: 600px;
  font-size: 1rem;
  line-height: 1.8;
}

.attackel-world {
  background:
    radial-gradient(circle at 85% 20%, rgba(247, 207, 157, 0.27), transparent 27%),
    var(--terracotta-dark);
}

.mouse-world {
  background:
    radial-gradient(circle at 85% 20%, rgba(247, 236, 189, 0.18), transparent 27%),
    var(--forest-dark);
}

.world .eyebrow {
  color: #f7d990;
}

.reading-world {
  max-width: 920px;
  text-align: center;
}

.reading-world > p:not(.eyebrow) {
  max-width: 690px;
  margin: 2rem auto;
  color: var(--brown-soft);
  line-height: 1.8;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 3rem 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.step span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: white;
  font-family: Georgia, serif;
  font-size: 1.4rem;
  box-shadow: 0 8px 0 #3d5139;
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4.5rem clamp(1.25rem, 9vw, 9rem);
  background: #efe2ce;
}

.newsletter p:not(.eyebrow) {
  color: var(--brown-soft);
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
}

.newsletter-form label {
  flex: 1;
}

.newsletter-form input {
  width: 100%;
  height: 50px;
  padding: 0 1.2rem;
  border: 1px solid #d7c1a4;
  border-radius: 999px;
  outline: none;
  background: var(--paper);
}

.newsletter-form input:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(185, 101, 69, 0.16);
}

footer {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem clamp(1.25rem, 8vw, 8rem);
  background: var(--forest-dark);
  color: rgba(255, 255, 255, 0.82);
}

footer strong {
  color: white;
  font-family: Georgia, serif;
  font-size: 1.45rem;
}

footer nav {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

footer a:hover {
  color: white;
}

.mobile-only {
  display: none;
}

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

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    position: relative;
    display: block;
  }

  .menu-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    border-radius: 50%;
    background: #f1e1ca;
    cursor: pointer;
    border: 0;
  }

  .menu-toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--brown);
  }

  .mobile-nav .mobile-menu {
    position: absolute;
    top: 54px;
    right: 0;
    display: flex;
    width: min(300px, calc(100vw - 2.5rem));
    flex-direction: column;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .mobile-nav .mobile-menu[hidden] { display: none; }

  .mobile-nav nav a {
    padding: 0.75rem;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
  }

  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-post {
    grid-template-columns: 1fr;
  }

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

  .post-card:last-child {
    display: none;
  }

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

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

  .content-shell { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

@media (max-width: 700px) {
  .topline {
    display: none;
  }

  .site-header {
    min-height: 72px;
    padding: 0.65rem 1rem;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand small {
    max-width: 190px;
    font-size: 0.58rem;
  }

  .hero {
    display: flex;
    min-height: auto;
    flex-direction: column;
    background: var(--cream);
  }

  .hero-picture {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #5a402d;
  }

  .hero-picture img {
    object-position: center;
    transform: none;
  }

  .hero-shade {
    display: none;
  }

  .hero-copy {
    width: auto;
    min-height: auto;
    margin: 0;
    padding: 2.2rem 1.25rem 3rem;
    color: var(--brown);
    text-align: center;
  }

  .hero .eyebrow {
    color: var(--terracotta);
  }

  h1 {
    font-size: clamp(2.5rem, 12vw, 3.6rem);
  }

  .hero-copy > p:not(.eyebrow) {
    color: var(--brown-soft);
    font-size: 1rem;
    line-height: 1.7;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero .button-light {
    border-color: var(--terracotta);
  }

  .section {
    width: min(100% - 2rem, 1180px);
    padding: 4.5rem 0;
  }

  .topic-grid {
    display: flex;
    gap: 0.9rem;
    margin-right: -1rem;
    padding-right: 1rem;
    padding-bottom: 1rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .topic-grid::-webkit-scrollbar {
    display: none;
  }

  .topic-card {
    min-width: min(82%, 330px);
    scroll-snap-align: start;
  }

  .swipe-hint {
    display: block;
    margin: 0.55rem 0 0;
    color: var(--brown-soft);
    font-size: 0.76rem;
    text-align: center;
  }

  .welcome {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .welcome-note {
    max-width: 360px;
    margin: 0 auto;
  }

  .section-heading.split {
    display: block;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: inline-flex;
    margin-top: 1.7rem;
  }

  .featured-post {
    border-radius: 24px;
  }

  .featured-visual {
    min-height: 300px;
  }

  .featured-copy {
    padding: 2rem 1.4rem;
  }

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

  .post-card:last-child {
    display: block;
  }

  .post-card-copy h3,
  .post-card-copy > p {
    min-height: auto;
  }

  .world {
    min-height: 450px;
    padding: 4rem 1.5rem;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
  }

  .newsletter {
    padding: 4rem 1.25rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1.25rem;
  }

  .archive-grid, .sidebar, .post-navigation .nav-links { grid-template-columns: 1fr; }
  .nav-next { text-align: left; }
  body.admin-bar .site-header { top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
