/* ==========================================================================
   ao3webliulanrukou.com
   Warm editorial entry index — cream, tomato red, soft borders, quiet motion.
   ========================================================================== */

:root {
  --primary: #cb2e27;
  --primary-dark: #b52922;
  --primary-soft: #fbeceb;
  --bg: #fffbf6;
  --surface: #f5f5f5;
  --surface-warm: #f7efe7;
  --ink: #1b1512;
  --ink-soft: #3d332e;
  --muted: #6f625b;
  --border: #e5e3df;
  --border-accent: #eecece;
  --white: #ffffff;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-sm: 0 8px 24px rgba(79, 42, 28, 0.06);
  --shadow-lg: 0 24px 70px rgba(79, 42, 28, 0.12);
  --wrap: 1200px;
  --header-h: 76px;
  --font-body: "Yu Gothic", "YuGothic", "Hiragino Sans GB", "PingFang SC",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "SFMono-Regular", "Roboto Mono", Consolas, "Liberation Mono",
    monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgba(203, 46, 39, 0.45);
  outline-offset: 3px;
}

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

.nowrap {
  white-space: nowrap;
}

.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;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Shared type, buttons and labels
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.025em;
}

p {
  margin-bottom: 1em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  flex: 0 0 auto;
  background: var(--primary);
}

.eyebrow--plain::before {
  display: none;
}

.lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
  line-height: 1.7;
}

.accent {
  color: var(--primary);
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
}

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

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn--light {
  background: var(--white);
  color: var(--primary);
}

.btn--light:hover {
  background: var(--bg);
}

.btn--on-red {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--on-red:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn--sm {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 13px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}

.text-link:hover {
  border-color: currentColor;
}

.no-copy {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 246, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 0.2s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(58, 35, 26, 0.08);
}

.header__inner {
  display: flex;
  min-height: var(--header-h);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  flex: 0 1 auto;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  background: var(--primary);
  color: var(--white);
  border-radius: 11px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.04em;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.brand-name {
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand:hover .brand-mark {
  background: var(--primary-dark);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.desktop-nav a {
  padding: 9px 13px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 400;
  border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.desktop-nav a:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.desktop-nav .nav-cta {
  margin-left: 8px;
  padding: 10px 18px;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
}

.desktop-nav .nav-cta:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
}

.menu-icon {
  display: grid;
  width: 20px;
  margin: 0 auto;
  gap: 4px;
}

.menu-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 14px 20px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 24px 40px rgba(58, 35, 26, 0.12);
}

.mobile-panel__label {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.mobile-panel a {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.mobile-panel a::after {
  content: "→";
  color: var(--primary);
}

.mobile-panel .mobile-panel__cta {
  margin-top: 14px;
  padding: 0 16px;
  background: var(--primary);
  color: var(--white);
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.mobile-panel .mobile-panel__cta::after {
  color: var(--white);
}

.mobile-panel__note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 0;
  background:
    radial-gradient(circle at 82% 20%, rgba(203, 46, 39, 0.09), transparent 28%),
    radial-gradient(circle at 8% 88%, rgba(203, 46, 39, 0.045), transparent 25%),
    var(--bg);
}

.hero__grid {
  padding-bottom: 64px;
}

.hero__copy {
  max-width: 880px;
  margin-inline: auto;
}

.hero h1 {
  max-width: 11.5em;
  margin-bottom: 22px;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.hero__block {
  display: block;
}

.hero__lead {
  max-width: 640px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero__micro {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.hero__micro::before {
  content: "※";
  color: var(--primary);
  font-weight: 700;
}

.hero-wave {
  height: 52px;
  margin-top: 8px;
}

.hero-wave svg {
  width: 100%;
  height: 100%;
}

/* --------------------------------------------------------------------------
   Generic sections
   -------------------------------------------------------------------------- */

.section {
  padding: 80px 0;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.section--entries {
  background: var(--surface);
}

.section--steps,
.section--safety,
.section--fit,
.section--faq {
  background: var(--bg);
}

.section--about,
.section--editorial {
  background: var(--bg);
}

.section--domain,
.section--compare {
  background: var(--surface);
}

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

.section-head h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 3.4vw, 40px);
}

.section-head > p {
  max-width: 430px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.section-head--center {
  display: block;
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section-head--center > p {
  margin: 14px auto 0;
}

/* Entry directory */

.entry-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.entry-note::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--primary);
}

.entry-note a {
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.mirror-card {
  position: relative;
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.mirror-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.mirror-card--primary {
  background: linear-gradient(180deg, #fff7f3 0%, var(--bg) 58%);
  border-color: var(--border-accent);
}

.mirror-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.mirror-index {
  color: rgba(203, 46, 39, 0.32);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
}

.mirror-name {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.045em;
}

.mirror-url {
  margin: 0 0 12px;
  padding: 7px 9px;
  overflow-wrap: anywhere;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
}

.mirror-card--primary .mirror-url {
  background: #fff3ef;
  border-color: var(--border-accent);
}

.mirror-desc {
  flex: 1 1 auto;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.mirror-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.mirror-meta li {
  padding: 2px 7px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.mirror-card .btn {
  width: 100%;
}

.entry-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.entry-foot p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.entry-foot a {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* Three steps */

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-card {
  position: relative;
  padding: 30px 28px 28px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  width: 42px;
  height: 3px;
  background: var(--primary);
}

.step-card__num {
  display: block;
  margin-bottom: 26px;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.step-card h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

/* Split layouts */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: start;
  gap: 64px;
}

.split h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 3.4vw, 40px);
  text-wrap: balance;
}

.split p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
}

.fact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.fact {
  padding-top: 13px;
  border-top: 2px solid var(--primary);
}

.fact strong {
  display: block;
  margin-bottom: 3px;
  color: var(--primary);
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.fact span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.note-card {
  position: relative;
  padding: 32px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.note-card::before {
  content: "“";
  position: absolute;
  top: -18px;
  right: 22px;
  color: var(--primary);
  font-family: Georgia, serif;
  font-size: 110px;
  line-height: 1;
  opacity: 0.12;
}

.note-card__label {
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.note-card__quote {
  margin-bottom: 24px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -0.02em;
}

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

.note-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.note-list li::before {
  content: "—";
  flex: 0 0 auto;
  color: var(--primary);
  font-weight: 700;
}

/* Domain laboratory */

.domain-lab {
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.domain-visual {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 6px;
  padding: 26px;
  overflow-x: auto;
  background: var(--ink);
  border-radius: var(--radius-lg);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: clamp(16px, 2.8vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.domain-part {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px 8px 6px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.domain-part small {
  color: #c9b9ae;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.08em;
}

.domain-part--protocol,
.domain-part--tld {
  background: rgba(203, 46, 39, 0.55);
}

.domain-part--sub {
  background: rgba(255, 255, 255, 0.1);
}

.domain-part--name {
  background: rgba(255, 255, 255, 0.18);
}

.domain-part--path {
  color: #c9b9ae;
}

.domain-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 26px;
}

.domain-points article {
  padding-top: 14px;
  border-top: 2px solid var(--border);
}

.domain-points h3 {
  margin-bottom: 7px;
  font-size: 16px;
}

.domain-points p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.callout {
  margin-top: 26px;
  padding: 16px 18px;
  background: #fff6f2;
  border: 1px dashed var(--border-accent);
  border-radius: var(--radius-md);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.callout strong {
  color: var(--primary);
}

/* Safety checklist */

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: checks;
}

.checklist li {
  display: flex;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
}

.checklist li:first-child {
  border-top: 1px solid var(--border);
}

.checklist__num {
  flex: 0 0 auto;
  padding-top: 2px;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.checklist strong {
  display: block;
  margin-bottom: 2px;
  font-size: 15px;
}

.checklist p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* Comparison table */

.table-wrap {
  overflow-x: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  -webkit-overflow-scrolling: touch;
}

.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  text-align: left;
}

.compare-table caption {
  padding: 18px 20px 0;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}

.compare-table th {
  padding: 15px 20px;
  background: #fbf1ea;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.compare-table td {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  vertical-align: top;
}

.compare-table td:first-child {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.compare-table tr:nth-child(even) td {
  background: rgba(255, 251, 246, 0.55);
}

.table-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

/* Fit for / not for */

.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.fit-card {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.fit-card--no {
  background: var(--surface-warm);
}

.fit-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 21px;
}

.fit-card h3 span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 14px;
}

.fit-card--no h3 span {
  background: var(--muted);
}

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

.fit-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.fit-list li::before {
  content: "·";
  flex: 0 0 auto;
  color: var(--primary);
  font-weight: 700;
}

/* FAQ accordion */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 64px;
}

.faq-intro h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 3.4vw, 40px);
  text-wrap: balance;
}

.faq-intro p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.faq-intro .btn {
  margin-top: 14px;
}

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

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

.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 0;
  list-style: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
}

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

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.2;
  transition: transform 0.2s var(--ease);
}

.faq-item[open] summary {
  color: var(--primary);
}

.faq-item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 0 20px;
}

.faq-answer p {
  max-width: 68ch;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Editorial */

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

.editorial-card {
  padding: 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.editorial-card span {
  display: block;
  margin-bottom: 14px;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.editorial-card h3 {
  margin-bottom: 7px;
  font-size: 16px;
}

.editorial-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

/* Red call to action band */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 64px 0;
  background: var(--primary);
  color: var(--white);
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.cta-band::before {
  top: -120px;
  right: -70px;
  width: 360px;
  height: 360px;
  background: rgba(255, 255, 255, 0.08);
}

.cta-band::after {
  bottom: -150px;
  left: -90px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-band h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 3.5vw, 42px);
}

.cta-band p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.8;
}

.cta-band__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--surface-warm);
  border-top: 1px solid var(--border);
  padding: 60px 0 22px;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr) minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 40px;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-brand .brand-name {
  white-space: normal;
}

.footer-desc {
  max-width: 330px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.footer-col h3 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-official {
  color: var(--primary) !important;
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: var(--primary);
}

.ad-slot {
  margin-top: 32px;
  padding: 12px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

/* Floating back-to-top control */

.back-to-top {
  position: fixed;
  z-index: 45;
  right: 24px;
  bottom: 24px;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(203, 46, 39, 0.28);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

.back-to-top:active {
  transform: translateY(-1px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   Inner pages
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 52px 0 44px;
  background:
    radial-gradient(circle at 88% 20%, rgba(203, 46, 39, 0.08), transparent 25%),
    var(--surface);
  border-bottom: 1px solid var(--border);
}

.page-hero__inner {
  max-width: 900px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 11px;
}

.breadcrumb a {
  color: var(--primary);
}

.breadcrumb span[aria-hidden] {
  color: var(--border-accent);
}

.page-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.12;
  text-wrap: balance;
}

.page-hero .lead {
  max-width: 720px;
  margin: 0;
  font-size: 16px;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 11px;
}

.page-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-meta span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
}

/* Guide */

.guide-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: 64px;
  padding: 64px 0 80px;
}

.toc {
  position: sticky;
  top: 100px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.toc h2 {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.toc nav {
  display: grid;
}

.toc a {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.toc a:last-child {
  border-bottom: 0;
}

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

.article {
  min-width: 0;
}

.article-section {
  margin-bottom: 52px;
  scroll-margin-top: 100px;
}

.article-section:last-child {
  margin-bottom: 0;
}

.article h2 {
  margin-bottom: 14px;
  font-size: clamp(25px, 2.8vw, 32px);
}

.article h3 {
  margin: 28px 0 8px;
  font-size: 18px;
}

.article p,
.article li {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
}

.article ul,
.article ol {
  padding-left: 1.3em;
}

.article li {
  margin-bottom: 7px;
}

.article a {
  color: var(--primary);
  border-bottom: 1px solid var(--border-accent);
}

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

.article blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--primary);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.article blockquote p {
  margin: 0;
  color: inherit;
  font-size: inherit;
}

.article .callout {
  margin: 22px 0;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.mini-card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.mini-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.number-list {
  margin: 22px 0;
  padding: 0;
  list-style: none;
  counter-reset: article-steps;
}

.number-list li {
  position: relative;
  margin: 0;
  padding: 16px 0 16px 44px;
  border-bottom: 1px solid var(--border);
  counter-increment: article-steps;
}

.number-list li:first-child {
  border-top: 1px solid var(--border);
}

.number-list li::before {
  content: counter(article-steps, decimal-leading-zero);
  position: absolute;
  top: 17px;
  left: 0;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.number-list strong {
  display: block;
  margin-bottom: 2px;
  font-size: 15px;
}

.number-list p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.article-end {
  margin-top: 32px;
  padding: 20px;
  background: var(--surface-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

/* FAQ page */

.faq-page {
  max-width: 880px;
  margin-inline: auto;
  padding: 60px 0 80px;
}

.faq-group {
  margin-bottom: 48px;
}

.faq-group:last-child {
  margin-bottom: 0;
}

.faq-group > h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 25px;
}

.faq-group > h2 span {
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.faq-group__intro {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

/* About page */

.about-page {
  max-width: 900px;
  margin-inline: auto;
  padding: 60px 0 80px;
}

.about-section {
  margin-bottom: 52px;
  scroll-margin-top: 100px;
}

.about-section:last-child {
  margin-bottom: 0;
}

.about-section h2 {
  margin-bottom: 14px;
  font-size: clamp(25px, 2.8vw, 32px);
}

.about-section h3 {
  margin: 26px 0 8px;
  font-size: 18px;
}

.about-section p,
.about-section li {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
}

.about-section ul {
  padding-left: 1.2em;
}

.about-section li {
  margin-bottom: 8px;
}

.about-section a {
  color: var(--primary);
  border-bottom: 1px solid var(--border-accent);
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.principle {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.principle strong {
  display: block;
  margin-bottom: 5px;
  color: var(--primary);
  font-size: 14px;
}

.principle p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.info-box {
  margin: 20px 0;
  padding: 20px;
  background: #fff6f2;
  border: 1px dashed var(--border-accent);
  border-radius: var(--radius-md);
}

.info-box p:last-child {
  margin-bottom: 0;
}

/* Jump / intermediate page */

.jump-main {
  min-height: 62vh;
  padding: 56px 0 80px;
  background:
    radial-gradient(circle at 82% 10%, rgba(203, 46, 39, 0.08), transparent 26%),
    var(--bg);
}

.jump-shell {
  max-width: 760px;
  margin-inline: auto;
  padding: 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.jump-shell h1 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4.2vw, 42px);
}

.target-card {
  margin-bottom: 24px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.target-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.target-label span:last-child {
  color: var(--primary);
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.target-name {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: clamp(20px, 3.6vw, 28px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.05em;
}

.target-url {
  margin: 0 0 14px;
  padding: 9px 11px;
  overflow-wrap: anywhere;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  -webkit-user-select: text;
  user-select: text;
}

.jump-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.jump-error {
  max-width: 760px;
  margin-inline: auto;
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  text-align: center;
}

.jump-error strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.jump-error p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.jump-error .btn-row {
  justify-content: center;
  margin-top: 18px;
}

.noscript-box {
  max-width: 760px;
  margin: 20px auto 0;
  padding: 16px;
  border: 1px dashed var(--border-accent);
  border-radius: var(--radius-md);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

/* 404 */

.error-page {
  display: grid;
  min-height: 60vh;
  place-items: center;
  padding: 72px 0;
  text-align: center;
}

.error-page__code {
  margin: 0 0 12px;
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: clamp(64px, 14vw, 130px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.09em;
}

.error-page h1 {
  margin-bottom: 12px;
  font-size: clamp(26px, 4vw, 38px);
}

.error-page p:not(.error-page__code) {
  max-width: 560px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Toast */

.toast {
  position: fixed;
  z-index: 80;
  bottom: 24px;
  left: 50%;
  max-width: calc(100vw - 32px);
  padding: 11px 18px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  transform: translate(-50%, 14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease),
    visibility 0.2s var(--ease);
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .hero h1 {
    font-size: clamp(36px, 5vw, 52px);
  }

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

  .split,
  .faq-layout {
    gap: 40px;
  }

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

  .footer-col:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 32px;
  }

  .footer-col:last-child h3 {
    grid-column: 1 / -1;
  }

  .footer-col:last-child ul {
    display: contents;
  }
}

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

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

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

  .hero {
    padding-top: 52px;
  }

  .section-head {
    display: block;
  }

  .section-head > p {
    margin-top: 14px;
  }

  .split,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-intro {
    max-width: 620px;
  }

  .guide-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 40px;
  }

  .toc {
    position: static;
  }

  .toc nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
  }

  .cta-band__inner {
    display: block;
  }

  .cta-band__actions {
    margin-top: 24px;
  }

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

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

  .footer-col:last-child {
    display: block;
  }

  .footer-col:last-child ul {
    display: grid;
  }
}

@media (max-width: 767px) {
  :root {
    --header-h: 64px;
  }

  .wrap {
    width: calc(100% - 40px);
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    font-size: 13px;
  }

  .brand {
    gap: 8px;
  }

  .brand-name {
    font-size: 12.5px;
    letter-spacing: -0.03em;
  }

  .hero {
    padding-top: 42px;
  }

  .hero__grid {
    padding-bottom: 34px;
  }

  .hero h1 {
    font-size: clamp(34px, 10vw, 46px);
    letter-spacing: -0.055em;
  }

  .hero__lead {
    font-size: 15px;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .hero-wave {
    height: 34px;
  }

  .section {
    padding: 48px 0;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .section-head h2 {
    font-size: 29px;
  }

  .entry-grid,
  .step-grid,
  .fact-row,
  .domain-points,
  .fit-grid,
  .editorial-grid,
  .mini-grid,
  .principle-grid {
    grid-template-columns: 1fr;
  }

  .mirror-card {
    min-height: 0;
    padding: 20px;
  }

  .entry-foot {
    display: block;
  }

  .entry-foot a {
    display: inline-block;
    margin-top: 10px;
  }

  .split {
    gap: 30px;
  }

  .split h2,
  .faq-intro h2 {
    font-size: 29px;
  }

  .note-card,
  .domain-lab {
    padding: 22px;
  }

  .domain-visual {
    padding: 20px 16px;
    font-size: 17px;
  }

  .domain-part {
    padding: 3px 5px 5px;
  }

  .domain-part small {
    font-size: 8px;
  }

  .callout {
    font-size: 12px;
  }

  .cta-band {
    padding: 48px 0;
  }

  .cta-band__actions .btn {
    flex: 1 1 auto;
  }

  .site-footer {
    padding-top: 44px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

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

  .footer-bottom {
    display: block;
    margin-top: 32px;
  }

  .footer-bottom p + p {
    margin-top: 6px;
  }

  .page-hero {
    padding: 38px 0 32px;
  }

  .page-hero h1 {
    font-size: 31px;
  }

  .page-hero .lead {
    font-size: 14px;
  }

  .guide-layout,
  .faq-page,
  .about-page {
    padding: 40px 0 56px;
  }

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

  .article-section,
  .about-section {
    margin-bottom: 40px;
  }

  .article h2,
  .about-section h2,
  .faq-group > h2 {
    font-size: 24px;
  }

  .jump-main {
    padding: 36px 0 56px;
  }

  .jump-shell {
    padding: 24px 20px;
  }

  .target-card {
    padding: 18px;
  }

  .jump-actions .btn {
    flex: 1 1 100%;
  }

  .error-page {
    padding: 56px 0;
  }
}

@media (max-width: 360px) {
  .nowrap--wide {
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .brand-name {
    font-size: 11.5px;
  }

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

  .entry-note {
    align-items: flex-start;
  }

  .domain-visual {
    font-size: 15px;
  }

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

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

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

@media print {
  .site-header,
  .mobile-panel,
  .cta-band,
  .site-footer {
    display: none !important;
  }

  .wrap {
    width: 100%;
  }

  body {
    background: #fff;
    color: #000;
  }
}
