/*
Theme Name: ToyStyle Knowledge
Theme URI: https://www.toystyle.icu/
Author: ToyStyle Editorial
Description: 为 toystyle.icu 潮玩知识百科设计的轻量、响应式 Wordpress 主题。
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: toystyle
*/

:root {
  --ink: #092b68;
  --ink-deep: #061d4b;
  --text: #263550;
  --muted: #6f7a8f;
  --paper: #fffdf8;
  --cream: #fff8e9;
  --cream-deep: #f6eddc;
  --line: rgba(9, 43, 104, 0.11);
  --coral: #ff8767;
  --coral-soft: #fff0ea;
  --mint: #64cdb9;
  --mint-soft: #eaf9f4;
  --blue: #55b9ef;
  --blue-soft: #edf7fe;
  --yellow: #f5c74d;
  --navy-soft: #e8edf6;
  --white: #ffffff;
  --shadow-sm: 0 8px 24px rgba(23, 49, 88, 0.07);
  --shadow-md: 0 20px 55px rgba(23, 49, 88, 0.11);
  --radius-sm: 16px;
  --radius: 24px;
  --radius-lg: 34px;
  --container: 1200px;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-round: "Nunito", "Arial Rounded MT Bold", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 232, 198, 0.52), transparent 24rem),
    var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--coral);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  color: var(--white);
  background: var(--coral);
}

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

.skip-link:focus {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 16px;
  color: var(--white);
  background: var(--ink);
  border-radius: 10px;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 92px 0;
}

.section-sm {
  padding: 64px 0;
}

.section-tint {
  background: linear-gradient(180deg, rgba(255, 248, 233, 0.5), rgba(255, 248, 233, 0.92));
}

.section-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 13px;
  color: var(--coral);
  font-family: var(--font-round);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-kicker::before,
.eyebrow::before {
  width: 24px;
  height: 3px;
  content: "";
  background: currentColor;
  border-radius: 99px;
}

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

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.22;
  letter-spacing: -0.045em;
}

.section-heading p {
  max-width: 520px;
  margin: 10px 0 0;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.text-link::after {
  content: "→";
  transition: transform 180ms ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  color: var(--white);
  background: var(--ink);
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(9, 43, 104, 0.16);
  font-weight: 750;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  color: var(--white);
  background: #103d86;
  box-shadow: 0 16px 30px rgba(9, 43, 104, 0.21);
  transform: translateY(-2px);
}

.button-outline {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(9, 43, 104, 0.14);
  box-shadow: none;
}

.button-outline:hover {
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.button-coral {
  color: var(--white);
  background: var(--coral);
  box-shadow: 0 12px 24px rgba(255, 135, 103, 0.24);
}

.button-coral:hover {
  background: #f27858;
}

/* Header */
.site-header {
  position: relative;
  z-index: 50;
  padding: 18px 0;
  background: rgba(255, 253, 248, 0.84);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  position: sticky;
  top: 0;
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(21, 44, 80, 0.05);
}

.admin-bar .site-header.is-scrolled {
  top: 32px;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-icon {
  width: 45px;
  height: 45px;
  overflow: hidden;
  border: 2px solid rgba(9, 43, 104, 0.1);
  border-radius: 13px;
  box-shadow: 0 7px 16px rgba(9, 43, 104, 0.1);
  transform: rotate(-3deg);
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-round);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.brand-name span {
  color: var(--coral);
}

.brand-tagline {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

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

.primary-nav > ul,
.footer-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-nav > ul > li {
  position: relative;
}

.primary-nav > ul > li > a {
  display: block;
  padding: 9px 11px;
  color: #44506a;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav > ul > li > a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
  color: var(--ink);
  background: var(--cream-deep);
}

.primary-nav .menu-item-has-children > a::after {
  display: inline-block;
  margin-left: 5px;
  content: "⌄";
  font-size: 11px;
  transform: translateY(-1px);
}

.primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: none;
  min-width: 166px;
  padding: 8px;
  margin: 0;
  visibility: hidden;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.primary-nav .sub-menu::before {
  position: absolute;
  top: -8px;
  left: 20px;
  width: 12px;
  height: 12px;
  content: "";
  background: var(--white);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  transform: rotate(45deg);
}

.primary-nav .menu-item-has-children:hover .sub-menu,
.primary-nav .menu-item-has-children:focus-within .sub-menu {
  display: block;
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.primary-nav .sub-menu a {
  display: block;
  padding: 9px 12px;
  color: #536078;
  border-radius: 9px;
  font-size: 13px;
}

.primary-nav .sub-menu a:hover {
  color: var(--ink);
  background: var(--cream);
}

.primary-nav .nav-community {
  color: var(--coral);
}

.header-search {
  position: relative;
  flex: 0 0 178px;
}

.header-search input {
  width: 100%;
  height: 42px;
  padding: 0 42px 0 16px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  font-size: 13px;
}

.header-search input:focus {
  border-color: rgba(255, 135, 103, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 135, 103, 0.09);
}

.header-search button {
  position: absolute;
  top: 3px;
  right: 4px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 50%;
}

.header-search button:hover {
  background: var(--cream);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 99px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-panel {
  position: fixed;
  z-index: 40;
  inset: 80px 0 auto;
  max-height: calc(100vh - 80px);
  padding: 24px 20px 34px;
  overflow: auto;
  visibility: hidden;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
}

.menu-open .mobile-panel {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.mobile-panel form {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.mobile-panel input {
  min-width: 0;
  flex: 1;
  height: 48px;
  padding: 0 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.mobile-panel .button {
  min-height: 48px;
  padding-inline: 20px;
}

.mobile-panel ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.mobile-panel a {
  display: block;
  padding: 12px 15px;
  color: var(--ink);
  background: var(--cream);
  border-radius: 13px;
  font-weight: 700;
  text-decoration: none;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 68px 0 76px;
}

.hero::before {
  position: absolute;
  top: -240px;
  right: -140px;
  width: 720px;
  height: 720px;
  content: "";
  background: radial-gradient(circle, rgba(100, 205, 185, 0.17), rgba(255, 255, 255, 0) 69%);
}

.hero::after {
  position: absolute;
  bottom: -260px;
  left: -200px;
  width: 650px;
  height: 650px;
  content: "";
  background: radial-gradient(circle, rgba(255, 135, 103, 0.13), rgba(255, 255, 255, 0) 70%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  align-items: center;
  gap: 54px;
}

.hero-copy {
  padding: 22px 0 26px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px 7px 8px;
  color: #76501f;
  background: #fff4cb;
  border: 1px solid rgba(245, 199, 77, 0.2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-badge .dot {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: var(--white);
  background: var(--yellow);
  border-radius: 50%;
  font-size: 13px;
}

.hero h1 {
  max-width: 680px;
  margin: 22px 0 20px;
  color: var(--ink);
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.065em;
}

.hero h1 .accent {
  position: relative;
  color: var(--coral);
  white-space: nowrap;
}

.hero h1 .accent::after {
  position: absolute;
  z-index: -1;
  right: -3px;
  bottom: 5px;
  left: -3px;
  height: 15px;
  content: "";
  background: #ffe2a3;
  border-radius: 99px;
  transform: rotate(-1deg);
}

.hero-intro {
  max-width: 590px;
  margin: 0;
  color: #59667b;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.9;
}

.hero-search {
  display: flex;
  max-width: 620px;
  margin-top: 30px;
  padding: 7px;
  background: var(--white);
  border: 1px solid rgba(9, 43, 104, 0.1);
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(29, 49, 80, 0.11);
}

.hero-search label {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 11px;
  padding-left: 12px;
}

.hero-search svg {
  flex: 0 0 auto;
  color: var(--muted);
}

.hero-search input {
  width: 100%;
  height: 48px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 15px;
}

.hero-search .button {
  flex: 0 0 auto;
  min-height: 48px;
  padding-inline: 25px;
  border-radius: 16px;
}

.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 13px;
}

.search-suggestions a {
  padding: 3px 10px;
  color: #58647a;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 99px;
  text-decoration: none;
}

.search-suggestions a:hover {
  color: var(--ink);
  background: var(--white);
}

.hero-visual {
  position: relative;
  min-height: 545px;
}

.hero-art-frame {
  position: absolute;
  inset: 15px 5px 0 45px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(9, 43, 104, 0.08);
  border-radius: 42% 58% 53% 47% / 44% 44% 56% 56%;
  box-shadow: 0 35px 80px rgba(28, 54, 92, 0.14);
  transform: rotate(2deg);
}

.hero-art-frame::after {
  position: absolute;
  inset: 13%;
  content: "";
  border: 1.5px dashed rgba(9, 43, 104, 0.16);
  border-radius: 48% 52% 43% 57% / 50% 45% 55% 50%;
}

.hero-art-frame img {
  position: absolute;
  z-index: 1;
  top: 8%;
  left: 7%;
  width: 86%;
  height: 84%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.hero-float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(9, 43, 104, 0.08);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 750;
}

.hero-float strong {
  color: var(--coral);
  font-family: var(--font-round);
  font-size: 20px;
  line-height: 1;
}

.hero-float-one {
  top: 42px;
  right: -8px;
  transform: rotate(3deg);
}

.hero-float-two {
  right: 8px;
  bottom: 44px;
  transform: rotate(-2deg);
}

.hero-float-three {
  bottom: 100px;
  left: -18px;
  transform: rotate(3deg);
}

.floating-shape {
  position: absolute;
  z-index: 2;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  transform: rotate(22deg);
}

.shape-one {
  top: 12%;
  left: 16%;
  background: var(--yellow);
}

.shape-two {
  right: 15%;
  bottom: 6%;
  width: 18px;
  height: 18px;
  background: var(--mint);
  border-radius: 50%;
}

/* Category directory */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.category-card {
  position: relative;
  display: flex;
  min-height: 208px;
  flex-direction: column;
  align-items: flex-start;
  padding: 25px 23px 22px;
  overflow: hidden;
  background: var(--tone, var(--cream));
  border: 1px solid rgba(9, 43, 104, 0.07);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-card::after {
  position: absolute;
  right: -35px;
  bottom: -54px;
  width: 145px;
  height: 145px;
  content: "";
  border: 18px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
}

.category-card:hover {
  color: inherit;
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.category-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 23px;
  place-items: center;
  color: var(--accent, var(--coral));
  background: rgba(255, 255, 255, 0.82);
  border-radius: 15px;
  box-shadow: 0 8px 18px rgba(28, 54, 92, 0.08);
}

.category-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.3;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 7px 0 0;
  color: #6c7482;
  font-size: 13px;
  line-height: 1.7;
}

.category-arrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 15px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

/* Post cards */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.post-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.post-card-cover {
  position: relative;
  display: block;
  min-height: 206px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.7) 0 8%, transparent 8.5%),
    linear-gradient(135deg, var(--cover-a, #ffe3d8), var(--cover-b, #fff4e7));
  text-decoration: none;
}

.post-card-cover::before,
.post-card-cover::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.post-card-cover::before {
  right: -40px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border: 22px solid rgba(255, 255, 255, 0.45);
}

.post-card-cover::after {
  top: 28px;
  right: 27px;
  width: 12px;
  height: 12px;
  background: var(--accent, var(--coral));
  box-shadow: 28px 22px 0 rgba(255, 255, 255, 0.9), -28px 14px 0 rgba(255, 255, 255, 0.7);
}

.cover-word {
  position: absolute;
  z-index: 1;
  top: 22px;
  left: 24px;
  color: rgba(9, 43, 104, 0.1);
  font-family: var(--font-round);
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.09em;
  text-transform: uppercase;
}

.cover-category {
  position: absolute;
  z-index: 2;
  bottom: 21px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.87);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(6px);
}

.cover-category::before {
  width: 7px;
  height: 7px;
  content: "";
  background: var(--accent, var(--coral));
  border-radius: 50%;
}

.post-card-cover.has-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 23px 24px 24px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.post-meta span + span::before {
  padding-right: 10px;
  content: "·";
}

.post-card h3 {
  margin: 12px 0 9px;
  font-size: 21px;
  line-height: 1.5;
  letter-spacing: -0.025em;
}

.post-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.post-card h3 a:hover {
  color: var(--coral);
}

.post-card-excerpt {
  display: -webkit-box;
  margin: 0 0 20px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.post-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.read-more {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.read-more::after {
  padding-left: 7px;
  content: "→";
}

.reading-time {
  color: #8b93a2;
  font-size: 12px;
}

/* Editorial route */
.route-band {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.route-band::before {
  position: absolute;
  top: -280px;
  right: -220px;
  width: 700px;
  height: 700px;
  content: "";
  border: 80px solid rgba(100, 205, 185, 0.12);
  border-radius: 50%;
}

.route-band::after {
  position: absolute;
  bottom: -240px;
  left: -140px;
  width: 520px;
  height: 520px;
  content: "";
  border: 70px solid rgba(255, 135, 103, 0.12);
  border-radius: 50%;
}

.route-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: center;
}

.route-copy .eyebrow {
  color: var(--yellow);
}

.route-copy h2 {
  margin: 0 0 17px;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.05em;
}

.route-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  line-height: 1.9;
}

.route-copy .button {
  margin-top: 28px;
  color: var(--ink);
  background: var(--white);
  box-shadow: none;
}

.route-copy .button:hover {
  color: var(--ink);
  background: var(--cream);
}

.route-steps {
  display: grid;
  gap: 12px;
}

.route-step {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px 21px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  transition: background 180ms ease, transform 180ms ease;
}

.route-step:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(4px);
}

.route-number {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--ink);
  background: var(--step-color, var(--coral));
  border-radius: 15px;
  font-family: var(--font-round);
  font-size: 18px;
  font-weight: 900;
}

.route-step h3 {
  margin: 0 0 3px;
  font-size: 18px;
}

.route-step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.route-step a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  text-decoration: none;
}

.route-step a:hover {
  color: var(--ink);
  background: var(--white);
}

/* Featured reads */
.featured-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(330px, 0.84fr);
  gap: 22px;
}

.lead-story {
  position: relative;
  display: flex;
  min-height: 510px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 42px;
  overflow: hidden;
  background: linear-gradient(145deg, #ffd4c5, #fff4df 70%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.lead-story::before {
  position: absolute;
  top: -120px;
  right: -110px;
  width: 430px;
  height: 430px;
  content: "";
  border: 54px solid rgba(255, 255, 255, 0.43);
  border-radius: 50%;
}

.lead-story::after {
  position: absolute;
  top: 45px;
  left: 45px;
  width: 150px;
  height: 150px;
  content: "";
  background:
    linear-gradient(90deg, var(--yellow) 0 28%, transparent 28%),
    linear-gradient(var(--coral) 0 28%, transparent 28%);
  background-size: 36px 36px;
  border-radius: 18px;
  opacity: 0.86;
  transform: rotate(-7deg);
}

.lead-story-content {
  position: relative;
  z-index: 1;
  max-width: 660px;
}

.lead-story .post-meta {
  color: #725e55;
}

.lead-story h3 {
  margin: 13px 0 13px;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.045em;
}

.lead-story h3 a {
  color: inherit;
  text-decoration: none;
}

.lead-story p {
  max-width: 590px;
  margin: 0;
  color: #665d5b;
}

.lead-story .read-more {
  display: inline-flex;
  margin-top: 24px;
  padding: 11px 18px;
  color: var(--white);
  background: var(--ink);
  border-radius: 999px;
}

.compact-stories {
  display: grid;
  gap: 14px;
}

.compact-story {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 19px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.compact-story-index {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  color: var(--ink);
  background: var(--story-tone, var(--cream));
  border-radius: 16px;
  font-family: var(--font-round);
  font-size: 35px;
  font-weight: 900;
}

.compact-story h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.52;
}

.compact-story h3 a {
  color: var(--ink);
  text-decoration: none;
}

.compact-story .post-meta {
  font-size: 11px;
}

/* Terms */
.term-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.term-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  color: var(--ink);
  background: var(--chip-tone, var(--cream));
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.term-chip:hover {
  color: var(--ink);
  border-color: rgba(9, 43, 104, 0.12);
  transform: translateY(-2px);
}

.term-chip small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

/* Checklist */
.checklist-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 28px;
  align-items: start;
}

.checklist-aside {
  padding: 36px;
  background: var(--ink);
  border-radius: var(--radius-lg);
  color: var(--white);
}

.checklist-aside .eyebrow {
  color: var(--mint);
}

.checklist-aside h2 {
  margin: 0 0 15px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.22;
  letter-spacing: -0.045em;
}

.checklist-aside p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
}

.checklist-aside .notice {
  margin-top: 26px;
  padding: 15px 17px;
  color: #fff3c5;
  background: rgba(245, 199, 77, 0.11);
  border: 1px solid rgba(245, 199, 77, 0.18);
  border-radius: 14px;
  font-size: 13px;
}

.checklist {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: check;
}

.checklist li {
  position: relative;
  padding: 19px 22px 19px 68px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 6px 18px rgba(28, 54, 92, 0.045);
  counter-increment: check;
}

.checklist li::before {
  position: absolute;
  top: 17px;
  left: 18px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  content: counter(check, decimal-leading-zero);
  color: var(--ink);
  background: var(--mint-soft);
  border-radius: 10px;
  font-family: var(--font-round);
  font-size: 12px;
  font-weight: 900;
}

.checklist strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
}

.checklist span {
  color: var(--muted);
  font-size: 13px;
}

/* FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 56px;
  align-items: start;
}

.faq-intro h2 {
  margin: 0 0 15px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.faq-intro p {
  margin: 0;
  color: var(--muted);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  padding: 22px 48px 22px 0;
  color: var(--ink);
  list-style: none;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  top: 21px;
  right: 0;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  content: "+";
  color: var(--ink);
  background: var(--cream);
  border-radius: 50%;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--white);
  background: var(--coral);
}

.faq-answer {
  padding: 0 45px 22px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

/* CTA */
.cta-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding: 46px;
  overflow: hidden;
  background: linear-gradient(120deg, #fff0e7, #eaf9f4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.cta-panel::after {
  position: absolute;
  top: -90px;
  right: 12%;
  width: 230px;
  height: 230px;
  content: "";
  border: 30px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}

.cta-copy {
  position: relative;
  z-index: 1;
}

.cta-copy h2 {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.cta-copy p {
  margin: 0;
  color: var(--muted);
}

.cta-panel .button {
  position: relative;
  z-index: 1;
}

.cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cta-actions .button {
  white-space: nowrap;
}

/* Footer */
.site-footer {
  padding: 68px 0 28px;
  color: #b7c2d5;
  background: var(--ink-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1.2fr;
  gap: 45px;
}

.footer-brand .brand {
  color: var(--white);
}

.footer-brand .brand:hover {
  color: var(--white);
}

.footer-brand .brand-tagline {
  color: rgba(255, 255, 255, 0.45);
}

.footer-description {
  max-width: 340px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  line-height: 1.9;
}

.footer-heading {
  margin: 5px 0 18px;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
}

.footer-links {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.57);
  font-size: 13px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-note {
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.8;
}

.footer-note strong {
  color: var(--mint);
}

.footer-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 16px;
  font-size: 12px;
}

.footer-partners a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
}

.footer-partners a:hover {
  color: var(--white);
}

.faq-help-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 23px;
}

.faq-help-cta .button {
  min-height: 46px;
  padding: 9px 18px;
  font-size: 13px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.37);
  font-size: 12px;
}

.footer-bottom p {
  margin: 0;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

/* Archive and search */
.page-hero {
  position: relative;
  padding: 72px 0 62px;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 30%, rgba(100, 205, 185, 0.15), transparent 22rem),
    var(--cream);
}

.page-hero::after {
  position: absolute;
  right: 8%;
  bottom: -90px;
  width: 210px;
  height: 210px;
  content: "";
  border: 28px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 840px;
}

.page-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.page-hero p {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 23px;
}

.page-hero-meta span {
  padding: 7px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
}

.archive-content {
  padding: 62px 0 90px;
}

.archive-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.archive-toolbar p {
  margin: 0;
  color: var(--muted);
}

.archive-toolbar strong {
  color: var(--ink);
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.category-filter a {
  padding: 7px 12px;
  color: #667186;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.category-filter a:hover,
.category-filter .is-active {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.pagination {
  margin-top: 42px;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pagination a,
.pagination span {
  display: grid;
  min-width: 42px;
  height: 42px;
  padding: 0 13px;
  place-items: center;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
  text-decoration: none;
}

.pagination .current {
  color: var(--white);
  background: var(--ink);
}

/* Single article */
.reading-progress {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--coral), var(--yellow), var(--mint));
}

.article-hero {
  padding: 62px 0 52px;
  background:
    radial-gradient(circle at 80% 0%, var(--article-glow, rgba(255, 135, 103, 0.13)), transparent 32rem),
    var(--cream);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 12px;
}

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

.breadcrumbs span[aria-hidden] {
  opacity: 0.45;
}

.article-header {
  max-width: 920px;
}

.article-category {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.article-category::before {
  width: 7px;
  height: 7px;
  content: "";
  background: var(--article-accent, var(--coral));
  border-radius: 50%;
}

.article-header h1 {
  margin: 20px 0 17px;
  color: var(--ink);
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.16;
  letter-spacing: -0.055em;
}

.article-deck {
  max-width: 800px;
  margin: 0;
  color: #667083;
  font-size: 18px;
  line-height: 1.85;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  margin-top: 27px;
  color: var(--muted);
  font-size: 13px;
}

.author-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
  font-family: var(--font-round);
  font-size: 13px;
  font-weight: 900;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 50px;
  align-items: start;
  padding: 58px 0 90px;
}

.article-main {
  min-width: 0;
}

.article-featured {
  margin: 0 0 40px;
  overflow: hidden;
  border-radius: var(--radius);
}

.article-featured img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.prose {
  color: #334056;
  font-size: 17px;
  line-height: 1.98;
}

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

.prose h2,
.prose h3,
.prose h4 {
  color: var(--ink);
  line-height: 1.35;
  letter-spacing: -0.025em;
  scroll-margin-top: 110px;
}

.prose h2 {
  position: relative;
  margin: 52px 0 18px;
  padding-top: 13px;
  font-size: 30px;
}

.prose h2::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 38px;
  height: 4px;
  content: "";
  background: var(--coral);
  border-radius: 99px;
}

.prose h3 {
  margin: 34px 0 12px;
  font-size: 22px;
}

.prose p {
  margin: 0 0 22px;
}

.prose a {
  color: #1653a2;
  text-decoration-color: rgba(22, 83, 162, 0.28);
}

.prose strong {
  color: var(--ink);
}

.prose ul,
.prose ol {
  padding-left: 1.35em;
  margin: 0 0 24px;
}

.prose li {
  margin-bottom: 8px;
}

.prose blockquote {
  padding: 24px 28px;
  margin: 30px 0;
  color: #4f5d72;
  background: var(--cream);
  border: 0;
  border-left: 4px solid var(--coral);
  border-radius: 0 16px 16px 0;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose figure {
  margin: 34px 0;
}

.prose figcaption {
  margin-top: 8px;
  color: #8a93a2;
  font-size: 12px;
  text-align: center;
}

.prose table {
  width: 100%;
  margin: 30px 0;
  border-collapse: collapse;
  font-size: 15px;
}

.prose th,
.prose td {
  padding: 13px 14px;
  border: 1px solid var(--line);
  text-align: left;
}

.prose th {
  color: var(--ink);
  background: var(--cream);
}

.prose .callout {
  padding: 20px 22px;
  margin: 28px 0;
  background: var(--mint-soft);
  border: 1px solid rgba(100, 205, 185, 0.22);
  border-radius: 16px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 30px;
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.article-tags a {
  padding: 7px 12px;
  color: var(--muted);
  background: var(--cream);
  border-radius: 999px;
  font-size: 12px;
  text-decoration: none;
}

.article-tags a:hover {
  color: var(--ink);
}

.article-sidebar {
  position: sticky;
  top: 112px;
}

.toc-box {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.toc-title {
  margin: 0 0 13px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.toc-list {
  display: grid;
  gap: 3px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.toc-list a {
  display: block;
  padding: 7px 9px;
  color: #6d7789;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  font-size: 12px;
  line-height: 1.55;
  text-decoration: none;
}

.toc-list a:hover,
.toc-list a.is-active {
  color: var(--ink);
  background: var(--cream);
  border-left-color: var(--coral);
}

.sidebar-note {
  padding: 20px;
  margin-top: 14px;
  color: #5d6779;
  background: var(--cream);
  border-radius: 18px;
  font-size: 12px;
  line-height: 1.8;
}

.sidebar-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 13px;
}

.related-section {
  padding: 72px 0 90px;
  background: var(--cream);
}

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 50px;
}

.post-nav a {
  padding: 20px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  text-decoration: none;
}

.post-nav span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.post-nav strong {
  display: block;
  font-size: 14px;
  line-height: 1.55;
}

.post-nav .next {
  text-align: right;
}

/* Page */
.page-section {
  padding: 62px 0 90px;
}

.page-card {
  max-width: 900px;
  padding: clamp(26px, 5vw, 64px);
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.empty-state {
  padding: 70px 25px;
  text-align: center;
  background: var(--white);
  border: 1px dashed rgba(9, 43, 104, 0.18);
  border-radius: var(--radius);
}

.empty-state h2 {
  margin: 0 0 10px;
  color: var(--ink);
}

.empty-state p {
  margin: 0 auto 24px;
  color: var(--muted);
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 1120px) {
  .primary-nav > ul > li > a {
    padding-inline: 8px;
    font-size: 13px;
  }

  .header-search {
    flex-basis: 150px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.82fr);
    gap: 30px;
  }

  .hero-visual {
    min-height: 500px;
  }

  .category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .site-header {
    padding: 13px 0;
  }

  .primary-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding-top: 42px;
  }

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

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-visual {
    width: min(620px, 100%);
    min-height: 520px;
    margin: 5px auto 0;
  }

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

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

  .route-grid,
  .featured-layout,
  .checklist-grid,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .route-copy {
    max-width: 650px;
  }

  .featured-layout {
    gap: 16px;
  }

  .lead-story {
    min-height: 460px;
  }

  .compact-stories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-story {
    grid-template-columns: 1fr;
  }

  .compact-story-index {
    width: 100%;
    height: 105px;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    order: -1;
  }

  .toc-box {
    display: none;
  }

  .sidebar-note {
    margin-top: 0;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-note-wrap {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 66px 0;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
  }

  .brand-icon {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 19px;
  }

  .brand-tagline {
    font-size: 9px;
  }

  .hero {
    padding: 34px 0 50px;
  }

  .hero h1 {
    margin-top: 18px;
    font-size: clamp(38px, 12vw, 56px);
    letter-spacing: -0.06em;
  }

  .hero-intro {
    font-size: 15px;
  }

  .hero-search {
    padding: 5px;
    border-radius: 18px;
  }

  .hero-search label {
    padding-left: 9px;
  }

  .hero-search .button {
    min-height: 45px;
    padding-inline: 17px;
    font-size: 13px;
  }

  .search-suggestions {
    line-height: 2;
  }

  .hero-visual {
    min-height: 390px;
  }

  .hero-art-frame {
    inset: 8px 6px 0 14px;
  }

  .hero-float {
    font-size: 11px;
  }

  .hero-float-one {
    right: 0;
  }

  .hero-float-three {
    left: 0;
    bottom: 64px;
  }

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

  .category-card {
    min-height: 180px;
  }

  .route-grid {
    gap: 32px;
  }

  .route-step {
    grid-template-columns: 46px 1fr;
    padding: 17px;
  }

  .route-number {
    width: 46px;
    height: 46px;
  }

  .route-step a {
    display: none;
  }

  .lead-story {
    min-height: 430px;
    padding: 27px;
  }

  .lead-story::after {
    top: 28px;
    left: 27px;
    width: 100px;
    height: 100px;
  }

  .compact-stories {
    grid-template-columns: 1fr;
  }

  .compact-story {
    grid-template-columns: 82px minmax(0, 1fr);
    padding: 14px;
  }

  .compact-story-index {
    width: 82px;
    height: 82px;
    font-size: 27px;
  }

  .term-cloud {
    padding: 18px;
  }

  .checklist-aside,
  .cta-panel {
    padding: 28px 23px;
  }

  .cta-panel {
    grid-template-columns: 1fr;
  }

  .cta-panel .button {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 22px;
  }

  .footer-brand,
  .footer-note-wrap {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hero {
    padding: 50px 0 46px;
  }

  .archive-content {
    padding: 42px 0 65px;
  }

  .archive-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-filter {
    flex-wrap: nowrap;
    width: calc(100vw - 28px);
    padding-bottom: 4px;
    overflow-x: auto;
  }

  .category-filter a {
    flex: 0 0 auto;
  }

  .article-hero {
    padding: 42px 0 38px;
  }

  .article-header h1 {
    font-size: clamp(34px, 11vw, 50px);
  }

  .article-deck {
    font-size: 16px;
  }

  .article-layout {
    padding-top: 38px;
    gap: 34px;
  }

  .article-sidebar {
    display: none;
  }

  .prose {
    font-size: 16px;
  }

  .prose h2 {
    margin-top: 40px;
    font-size: 25px;
  }

  .prose h3 {
    font-size: 20px;
  }

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

  .post-nav .next {
    text-align: left;
  }

  .page-card {
    border-radius: 22px;
  }
}

@media (max-width: 420px) {
  .mobile-panel ul {
    grid-template-columns: 1fr;
  }

  .hero-search {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search label {
    min-height: 45px;
  }

  .hero-search .button {
    width: 100%;
  }

  .hero-float {
    padding: 8px 10px;
  }

  .hero-float strong {
    font-size: 17px;
  }

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

  .footer-brand,
  .footer-note-wrap {
    grid-column: auto;
  }
}
