/* =========================================================
   申论 65+ · 国考申论备考系统
   Editorial / ink-on-paper design system
   ========================================================= */

:root {
  --paper: #f4efe4;
  --paper-2: #ece4d4;
  --paper-3: #e3d9c6;
  --white: #fffdf8;
  --ink: #16201b;
  --ink-2: #34433b;
  --ink-3: #526158;
  --muted: #758078;
  --line: rgba(22, 32, 27, 0.14);
  --line-strong: rgba(22, 32, 27, 0.3);
  --red: #b6402a;
  --red-dark: #8c2d1c;
  --red-soft: rgba(182, 64, 42, 0.09);
  --gold: #a97a35;
  --sage: #5b6f5e;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
  --header-h: 76px;
  --shadow: 0 24px 60px rgba(31, 39, 33, 0.09);
  --shadow-soft: 0 12px 32px rgba(31, 39, 33, 0.06);
  --radius: 3px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% -4%, rgba(182, 64, 42, 0.07), transparent 34rem),
    radial-gradient(circle at 92% 18%, rgba(169, 122, 53, 0.06), transparent 28rem),
    linear-gradient(rgba(22, 32, 27, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 32, 27, 0.018) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, 30px 30px, 30px 30px, auto;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.17;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

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

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

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

p {
  margin-bottom: 1rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

strong {
  font-weight: 650;
}

em {
  font-style: normal;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-150%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(244, 239, 228, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff7e8;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1;
  border-radius: 2px;
  box-shadow: 3px 3px 0 rgba(140, 45, 28, 0.22);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.08em;
}

.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--ink-2);
  font-size: 13.5px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 2px;
  height: 1px;
  background: var(--red);
  transition: right 0.25s var(--ease);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  right: 0;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 17px;
  background: var(--ink);
  color: var(--paper) !important;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--red);
  transform: translateY(-1px);
}

.nav-cta::after {
  display: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 1080px) {
  .site-nav {
    gap: 18px;
  }
  .site-nav a {
    font-size: 13px;
  }
  .nav-cta {
    display: none;
  }
}

@media (max-width: 920px) {
  :root {
    --header-h: 66px;
  }
  .menu-toggle {
    display: grid;
  }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 10px 24px 22px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 36px rgba(22, 32, 27, 0.08);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: 0.22s var(--ease);
  }
  .site-nav.open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .site-nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }
  .site-nav a::after {
    display: none;
  }
  .site-nav a[aria-current="page"] {
    color: var(--red);
  }
}

/* ---------------------------------------------------------
   Shared type & layout
   --------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--red);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.eyebrow.light {
  color: #d9a58d;
}

.display {
  margin: 0;
  font-size: clamp(2.9rem, 5.2vw, 4.9rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.display .mark {
  position: relative;
  color: var(--red);
  white-space: nowrap;
}

.display .mark::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.02em;
  height: 0.09em;
  background: currentColor;
  opacity: 0.34;
  transform: rotate(-1.2deg);
  transform-origin: left;
}

.page-title {
  margin: 0 0 22px;
  font-size: clamp(2.6rem, 5.2vw, 4.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.section-title {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 3.15rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.section-title.small {
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
}

.lede {
  max-width: 38em;
  margin: 26px 0 0;
  color: var(--ink-2);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.9;
}

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

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

.section {
  position: relative;
  padding: 96px 0;
}

.section.tight {
  padding: 70px 0;
}

.section.dark {
  color: var(--paper);
  background:
    radial-gradient(circle at 80% 0%, rgba(182, 64, 42, 0.18), transparent 32rem),
    radial-gradient(circle at 10% 100%, rgba(169, 122, 53, 0.12), transparent 26rem),
    var(--ink);
}

.section.dark .section-title,
.section.dark h3 {
  color: var(--paper);
}

.section.dark p {
  color: rgba(244, 239, 228, 0.73);
}

.section.dark .muted {
  color: rgba(244, 239, 228, 0.56);
}

.section.dark .eyebrow {
  color: #d9a58d;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.7fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 48px;
}

.section-head p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.9;
}

.section.dark .section-head p {
  color: rgba(244, 239, 228, 0.7);
}

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

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

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--line);
}

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

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

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

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

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

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

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

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

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

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

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

.btn-small {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 12.5px;
}

.btn .arrow {
  transition: transform 0.2s;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.link-arrow .arrow {
  transition: transform 0.2s;
}

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

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

.hero {
  position: relative;
  padding: 72px 0 40px;
  overflow: hidden;
}

.hero::after {
  content: "申";
  position: absolute;
  top: 10px;
  right: -2vw;
  z-index: -1;
  color: rgba(22, 32, 27, 0.035);
  font-family: var(--serif);
  font-size: clamp(300px, 38vw, 560px);
  line-height: 1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: 64px;
  align-items: center;
}

.hero-copy {
  padding-bottom: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero-meta div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.hero-meta strong {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}

.hero-meta span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.score-card {
  position: relative;
  padding: 28px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.score-card::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  top: -75px;
  right: -75px;
  border: 1px solid rgba(244, 239, 228, 0.18);
  border-radius: 50%;
}

.score-card::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  top: -110px;
  right: -110px;
  border: 1px solid rgba(244, 239, 228, 0.09);
  border-radius: 50%;
}

.score-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(244, 239, 228, 0.62);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid rgba(244, 239, 228, 0.22);
  border-radius: 999px;
  color: rgba(244, 239, 228, 0.7);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.score-ring {
  --p: 65;
  position: relative;
  width: 184px;
  height: 184px;
  margin: 26px auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--red) calc(var(--p) * 1%), rgba(244, 239, 228, 0.14) 0);
}

.score-ring::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--ink);
}

.score-ring > div {
  position: relative;
  text-align: center;
  line-height: 1;
}

.score-ring strong {
  display: block;
  font-family: var(--serif);
  font-size: 58px;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.score-ring span {
  display: block;
  margin-top: 8px;
  color: rgba(244, 239, 228, 0.48);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.score-rows {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(244, 239, 228, 0.14);
}

.score-rows > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(244, 239, 228, 0.14);
}

.score-rows span {
  color: rgba(244, 239, 228, 0.62);
  font-size: 12px;
}

.score-rows strong {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
}

.score-rows small {
  margin-left: 3px;
  color: rgba(244, 239, 228, 0.4);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
}

.score-note {
  margin: 16px 0 0;
  color: rgba(244, 239, 228, 0.4) !important;
  font-size: 10.5px;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .score-card {
    max-width: 420px;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(var(--max), calc(100% - 32px));
  }
  .hero {
    padding-top: 48px;
  }
  .display {
    text-wrap: pretty;
  }
  .display {
    font-size: clamp(2.15rem, 9.6vw, 3.4rem);
  }
  .hero-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
  }
  .hero-meta strong {
    font-size: 24px;
  }
  .section {
    padding: 68px 0;
  }
  .section-head {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 32px;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------
   Cards
   --------------------------------------------------------- */

.card {
  position: relative;
  padding: 28px;
  background: rgba(255, 253, 248, 0.62);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

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

.card p {
  margin: 0;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.85;
}

.card .num {
  display: block;
  margin-bottom: 26px;
  color: var(--red);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.pain-card {
  padding-top: 30px;
  border-top: 2px solid var(--ink);
}

.pain-card .num {
  color: var(--muted);
}

.pain-card h3 {
  font-size: 22px;
}

.pain-card .fix {
  display: block;
  margin-top: 18px;
  color: var(--red);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

/* Type map cards */
.type-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.type-tile {
  position: relative;
  min-height: 290px;
  padding: 24px 20px;
  background: var(--paper);
  transition: background 0.25s, color 0.25s;
  display: flex;
  flex-direction: column;
}

.type-tile:hover {
  background: var(--ink);
  color: var(--paper);
}

.type-tile .tile-no {
  color: var(--red);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.type-tile h3 {
  margin: 46px 0 10px;
  font-size: 23px;
}

.type-tile p {
  margin: 0;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.8;
}

.type-tile .tile-foot {
  margin-top: auto;
  padding-top: 22px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.type-tile:hover p,
.type-tile:hover .tile-foot {
  color: rgba(244, 239, 228, 0.64);
}

.type-tile:hover .tile-no {
  color: #d9a58d;
}

.type-tile .tile-arrow {
  position: absolute;
  top: 22px;
  right: 20px;
  color: var(--red);
  transition: transform 0.2s;
}

.type-tile:hover .tile-arrow {
  transform: translate(3px, -3px);
  color: var(--paper);
}

@media (max-width: 980px) {
  .type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .type-tile:last-child {
    grid-column: span 2;
    min-height: 220px;
  }
}

@media (max-width: 560px) {
  .type-grid {
    grid-template-columns: 1fr;
  }
  .type-tile:last-child {
    grid-column: auto;
  }
}

/* ---------------------------------------------------------
   Score model / bars
   --------------------------------------------------------- */

.score-model {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: 70px;
  align-items: center;
}

.score-model .section-title {
  max-width: 12em;
}

.bar-list {
  display: grid;
  gap: 28px;
}

.bar-item .bar-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.bar-label span {
  color: rgba(244, 239, 228, 0.68);
  font-size: 12.5px;
}

.bar-label strong {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
}

.bar-track {
  height: 5px;
  background: rgba(244, 239, 228, 0.14);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: var(--w);
  background: var(--red);
  animation: growBar 1.1s var(--ease) both;
}

.bar-item:nth-child(2) .bar-fill {
  background: var(--gold);
}

.bar-item:nth-child(3) .bar-fill {
  background: #7d917f;
}

@keyframes growBar {
  from {
    width: 0;
  }
}

@media (max-width: 860px) {
  .score-model {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ---------------------------------------------------------
   Method steps
   --------------------------------------------------------- */

.method-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 12px;
  border-top: 1px solid var(--line-strong);
}

.method-step {
  position: relative;
  padding: 26px 24px 0 0;
  border-right: 1px solid var(--line);
}

.method-step:last-child {
  border-right: 0;
  padding-right: 0;
}

.method-step::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
}

.method-step .step-no {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.method-step h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

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

.method-step .step-time {
  display: inline-block;
  margin-top: 14px;
  color: var(--red);
  font-size: 11px;
  letter-spacing: 0.06em;
}

/* Five-step variant */
.method-line.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .method-line.five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .method-line.five .method-step:nth-child(3) {
    border-right: 0;
  }
  .method-line.five .method-step:nth-child(n + 4) {
    margin-top: 26px;
  }
}

@media (max-width: 780px) {
  .method-line {
    grid-template-columns: 1fr 1fr;
  }
  .method-step:nth-child(2) {
    border-right: 0;
  }
  .method-step:nth-child(3),
  .method-step:nth-child(4) {
    margin-top: 26px;
  }
  .method-line.five {
    grid-template-columns: 1fr 1fr;
  }
  .method-line.five .method-step:nth-child(2n) {
    border-right: 0;
  }
  .method-line.five .method-step:nth-child(3) {
    border-right: 1px solid var(--line);
  }
  .method-line.five .method-step:nth-child(n + 3) {
    margin-top: 26px;
  }
}

@media (max-width: 520px) {
  .method-line.five .method-step:nth-child(n) {
    margin-top: 0;
    border-right: 0;
  }
}

@media (max-width: 520px) {
  .method-line {
    grid-template-columns: 1fr;
  }
  .method-step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 22px 0;
  }
  .method-step::before {
    top: -4px;
  }
  .method-step:last-child {
    border-bottom: 0;
  }
  .method-step:nth-child(3),
  .method-step:nth-child(4) {
    margin-top: 0;
  }
}

/* ---------------------------------------------------------
   Timeline (exam / plan)
   --------------------------------------------------------- */

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  margin-top: 40px;
}

.timeline-item {
  position: relative;
  padding: 24px 20px 0 0;
  border-right: 1px solid var(--line);
}

.timeline-item:last-child {
  border-right: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}

.timeline-item:nth-child(2)::before,
.timeline-item:nth-child(4)::before {
  background: var(--red);
}

.timeline-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
}

.timeline-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.timeline-item p {
  margin: 12px 0 0;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.75;
}

@media (max-width: 800px) {
  .timeline {
    grid-template-columns: 1fr;
    border-top: 0;
    border-left: 1px solid var(--line-strong);
    margin-left: 8px;
  }
  .timeline-item {
    padding: 0 0 24px 24px;
    border-right: 0;
  }
  .timeline-item::before {
    top: 8px;
    left: -4px;
  }
  .timeline-item strong {
    font-size: 24px;
  }
}

/* ---------------------------------------------------------
   Format library
   --------------------------------------------------------- */

.page-hero {
  position: relative;
  padding: 64px 0 54px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero::after {
  content: attr(data-char);
  position: absolute;
  right: 4vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: -1;
  color: rgba(22, 32, 27, 0.04);
  font-family: var(--serif);
  font-size: clamp(180px, 25vw, 360px);
  line-height: 1;
  pointer-events: none;
}

.page-hero .lede {
  max-width: 50em;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

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

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

.anchor-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(244, 239, 228, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.anchor-nav .wrap {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}

.anchor-nav .wrap::-webkit-scrollbar {
  display: none;
}

.anchor-nav a {
  flex: 0 0 auto;
  padding: 15px 0;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.anchor-nav a:hover,
.anchor-nav a.active {
  color: var(--ink);
  border-color: var(--red);
}

.format-controls {
  display: grid;
  gap: 18px;
  margin: 32px 0 30px;
}

.search-box {
  position: relative;
}

.search-box input {
  width: 100%;
  height: 54px;
  padding: 0 52px 0 20px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.search-box input:focus {
  border-color: var(--red);
  background: var(--white);
}

.search-box input::placeholder {
  color: var(--muted);
}

.search-box .search-icon {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 7px 13px;
  color: var(--ink-3);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  transition: 0.2s;
}

.filter-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-btn.active {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.result-count {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

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

.format-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 196px;
  padding: 22px;
  text-align: left;
  background: rgba(255, 253, 248, 0.58);
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  transition: 0.22s var(--ease);
}

.format-card:hover {
  background: var(--white);
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.format-card .fc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.09em;
}

.fc-badge {
  display: inline-flex;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9.5px;
  letter-spacing: 0.06em;
}

.fc-badge.hot {
  color: var(--red);
  border-color: rgba(182, 64, 42, 0.28);
  background: var(--red-soft);
}

.format-card h3 {
  margin: 24px 0 8px;
  font-size: 24px;
}

.format-card p {
  margin: 0;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.format-card .fc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--red);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.format-card .fc-foot .arrow {
  transition: transform 0.2s;
}

.format-card:hover .fc-foot .arrow {
  transform: translateX(3px);
}

.empty-state {
  display: none;
  padding: 70px 20px;
  text-align: center;
  border: 1px dashed var(--line-strong);
}

.empty-state.show {
  display: block;
}

.empty-state h3 {
  margin-bottom: 8px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .format-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .format-grid {
    grid-template-columns: 1fr;
  }
  .format-card {
    min-height: 170px;
  }
}

/* Modal */
.format-dialog {
  width: min(780px, calc(100% - 28px));
  max-height: min(86vh, 900px);
  margin: auto;
  padding: 0;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-radius: 3px;
  box-shadow: 0 40px 100px rgba(10, 16, 12, 0.34);
  overflow: hidden;
}

.format-dialog::backdrop {
  background: rgba(11, 18, 14, 0.62);
  backdrop-filter: blur(3px);
}

.dialog-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.dialog-head .eyebrow {
  margin-bottom: 8px;
}

.dialog-head h2 {
  margin: 0;
  font-size: 32px;
}

.dialog-close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s;
}

.dialog-close:hover {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.dialog-body {
  max-height: calc(86vh - 100px);
  padding: 26px 28px 36px;
  overflow-y: auto;
}

.dialog-body h3 {
  margin: 26px 0 10px;
  font-size: 18px;
}

.dialog-body h3:first-child {
  margin-top: 0;
}

.dialog-body p {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.85;
}

.skeleton-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: sk;
}

.skeleton-list li {
  position: relative;
  padding: 9px 12px 9px 38px;
  color: var(--ink-2);
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.7;
  counter-increment: sk;
}

.skeleton-list li::before {
  content: counter(sk, decimal-leading-zero);
  position: absolute;
  top: 9px;
  left: 12px;
  color: var(--red);
  font-family: var(--serif);
  font-size: 11px;
}

.template-block {
  margin: 10px 0 0;
  padding: 20px;
  color: #efe7d8;
  background: #1b2620;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.95;
  white-space: pre-wrap;
  overflow-x: auto;
}

.dialog-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 10px;
}

.note-box {
  padding: 16px;
  background: var(--paper);
  border-left: 2px solid var(--sage);
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-2);
}

.note-box.warn {
  border-left-color: var(--red);
  background: var(--red-soft);
}

.note-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.06em;
}

@media (max-width: 620px) {
  .dialog-head {
    padding: 20px;
  }
  .dialog-head h2 {
    font-size: 26px;
  }
  .dialog-body {
    padding: 20px 20px 30px;
  }
  .dialog-cols {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------
   Content patterns
   --------------------------------------------------------- */

.prose {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.95;
}

.prose > p:last-child,
.prose > ul:last-child,
.prose > ol:last-child {
  margin-bottom: 0;
}

.prose h3 {
  margin: 34px 0 12px;
  color: var(--ink);
  font-size: 23px;
}

.prose h4 {
  margin: 26px 0 8px;
  color: var(--ink);
  font-size: 17px;
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
}

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

.prose li::marker {
  color: var(--red);
}

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

.prose a {
  color: var(--red);
  border-bottom: 1px solid rgba(182, 64, 42, 0.3);
}

.callout {
  margin: 24px 0;
  padding: 18px 22px;
  background: var(--red-soft);
  border-left: 3px solid var(--red);
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-2);
}

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

.callout.sage {
  background: rgba(91, 111, 94, 0.08);
  border-left-color: var(--sage);
}

.callout.gold {
  background: rgba(169, 122, 53, 0.08);
  border-left-color: var(--gold);
}

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

.quote {
  margin: 32px 0;
  padding: 26px 28px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--serif);
  font-size: clamp(20px, 2.3vw, 28px);
  line-height: 1.65;
  letter-spacing: -0.01em;
}

.quote small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.5);
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.7;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--ink);
  background: rgba(22, 32, 27, 0.04);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

td {
  color: var(--ink-2);
}

tr:last-child td {
  border-bottom: 0;
}

td strong {
  color: var(--ink);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  padding: 6px 10px;
  color: var(--ink-3);
  background: rgba(255, 253, 248, 0.55);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.03em;
}

.tag.red {
  color: var(--red);
  border-color: rgba(182, 64, 42, 0.28);
  background: var(--red-soft);
}

/* ---------------------------------------------------------
   Type detail
   --------------------------------------------------------- */

.type-section {
  padding: 84px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 120px;
}

.type-section:first-of-type {
  border-top: 0;
}

.type-head {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  margin-bottom: 36px;
}

.type-no {
  color: var(--red);
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.type-head h2 {
  max-width: 18em;
  margin: 0;
  font-size: clamp(1.8rem, 3.1vw, 2.7rem);
  line-height: 1.28;
}

.type-head .eyebrow {
  margin-bottom: 10px;
}

.type-facts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding-top: 4px;
}

.type-facts span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.type-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.38fr);
  gap: 54px;
  align-items: start;
}

.type-aside {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 110px;
}

.aside-box {
  padding: 18px;
  background: rgba(255, 253, 248, 0.58);
  border: 1px solid var(--line);
}

.aside-box h4 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.1em;
  color: var(--red);
}

.aside-box p,
.aside-box ul {
  margin: 0;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.8;
}

.aside-box ul {
  padding-left: 1.1rem;
}

.aside-box li {
  margin-bottom: 5px;
}

.step-list {
  counter-reset: step;
  display: grid;
  gap: 0;
  margin: 20px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.step-list li {
  position: relative;
  padding: 16px 0 16px 46px;
  border-bottom: 1px solid var(--line);
  counter-increment: step;
}

.step-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 16px;
  color: var(--red);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.step-list strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 14px;
}

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

.answer-box {
  margin: 26px 0;
  padding: 22px;
  background: rgba(255, 253, 248, 0.7);
  border: 1px solid var(--line);
}

.answer-box .answer-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--red);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.1em;
}

.answer-box p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.95;
}

.answer-box p + p {
  margin-top: 8px;
}

details.example {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

details.example summary {
  position: relative;
  padding: 15px 28px 15px 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

details.example summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 13px;
  color: var(--red);
  font-size: 18px;
  font-weight: 400;
}

details.example[open] summary::after {
  content: "−";
}

details.example .example-inner {
  padding: 0 0 22px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.9;
}

details.example .example-inner p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .type-head {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 18px;
  }
  .type-no {
    font-size: 38px;
  }
  .type-facts {
    grid-column: 2;
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    padding-top: 0;
  }
  .type-body {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .type-aside {
    position: static;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .type-section {
    padding: 58px 0;
  }
  .type-head {
    grid-template-columns: 1fr;
  }
  .type-no {
    margin-bottom: -6px;
  }
  .type-facts {
    grid-column: auto;
  }
  .type-aside {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------
   Checklist / calculator
   --------------------------------------------------------- */

.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
  gap: 32px;
  align-items: start;
}

.checklist {
  background: rgba(255, 253, 248, 0.58);
  border: 1px solid var(--line);
  padding: 8px 24px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.check-item:last-child {
  border-bottom: 0;
}

.check-item input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 4px;
  accent-color: var(--red);
  cursor: pointer;
}

.check-item span {
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.7;
}

.check-item input:checked + span {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(182, 64, 42, 0.4);
}

.progress-panel {
  padding: 24px;
  background: var(--ink);
  color: var(--paper);
}

.progress-panel .pp-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: rgba(244, 239, 228, 0.62);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.progress-panel .pp-num {
  margin: 18px 0 12px;
  font-family: var(--serif);
  font-size: 54px;
  line-height: 1;
  font-weight: 500;
}

.progress-panel .pp-num small {
  color: rgba(244, 239, 228, 0.4);
  font-family: var(--sans);
  font-size: 12px;
}

.progress-track {
  height: 4px;
  margin: 16px 0;
  background: rgba(244, 239, 228, 0.15);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: var(--red);
  transition: width 0.35s var(--ease);
}

.progress-panel p {
  margin: 0;
  color: rgba(244, 239, 228, 0.56);
  font-size: 12px;
  line-height: 1.8;
}

.progress-panel .btn {
  width: 100%;
  margin-top: 18px;
}

.calculator {
  background: rgba(255, 253, 248, 0.62);
  border: 1px solid var(--line);
  padding: 28px;
}

.calc-row {
  margin-bottom: 24px;
}

.calc-row label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: var(--ink-2);
  font-size: 13px;
}

.calc-row output {
  color: var(--red);
  font-family: var(--serif);
  font-size: 22px;
}

.calc-row input[type="range"] {
  width: 100%;
  height: 4px;
  accent-color: var(--red);
  cursor: pointer;
}

.calc-hint {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.calc-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.calc-result span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.calc-result strong {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
}

.calc-result small {
  color: var(--muted);
  font-size: 12px;
}

.calc-status {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-2);
}

@media (max-width: 860px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------
   Plan
   --------------------------------------------------------- */

.week-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.week-grid.two {
  grid-template-columns: 1fr 1fr;
}

.week-card {
  padding: 26px 22px;
  background: var(--paper);
}

.week-card .week-tag {
  display: inline-flex;
  padding: 3px 8px;
  margin-bottom: 18px;
  color: var(--red);
  border: 1px solid rgba(182, 64, 42, 0.26);
  border-radius: 999px;
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

.week-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.week-card p {
  margin: 0 0 16px;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.8;
}

.week-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.week-card li {
  position: relative;
  padding: 8px 0 8px 15px;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
}

.week-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 4px;
  height: 4px;
  background: var(--red);
  border-radius: 50%;
}

@media (max-width: 900px) {
  .week-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .week-grid,
  .week-grid.two {
    grid-template-columns: 1fr;
  }
}

.day-table td:first-child {
  color: var(--red);
  font-family: var(--serif);
  font-size: 16px;
  white-space: nowrap;
}

.tracker {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 20px;
}

.day-check {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: rgba(255, 253, 248, 0.58);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: 0.18s;
}

.day-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.day-check span {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
}

.day-check:has(input:checked) {
  background: var(--red);
  border-color: var(--red);
}

.day-check:has(input:checked) span {
  color: var(--white);
}

.day-check:hover {
  border-color: var(--line-strong);
}

.tracker-legend {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.05em;
}

/* ---------------------------------------------------------
   Essay page
   --------------------------------------------------------- */

.split-block {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
  gap: 54px;
  align-items: start;
}

.split-block.reverse .split-aside {
  order: -1;
}

.sticky-aside {
  position: sticky;
  top: 110px;
}

.big-quote {
  padding: 34px;
  background: var(--ink);
  color: var(--paper);
}

.big-quote .mark {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-family: var(--serif);
  font-size: 52px;
  line-height: 0.8;
}

.big-quote p {
  margin: 0;
  color: rgba(244, 239, 228, 0.82);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.75;
}

.big-quote small {
  display: block;
  margin-top: 16px;
  color: rgba(244, 239, 228, 0.45);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 13px;
}

.formula span {
  padding: 5px 9px;
  background: var(--white);
  border: 1px solid var(--line);
}

.formula b {
  color: var(--red);
  font-weight: 400;
}

.annotated {
  padding: 24px;
  background: rgba(255, 253, 248, 0.62);
  border: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 2;
  color: var(--ink-2);
}

.annotated mark {
  background: rgba(182, 64, 42, 0.12);
  color: var(--ink);
  padding: 1px 3px;
}

.annotated .anno {
  display: block;
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
  color: var(--red);
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.topic-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.topic-item {
  padding: 20px;
  background: var(--paper);
}

.topic-item strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 18px;
}

.topic-item span {
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 880px) {
  .split-block {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .split-block.reverse .split-aside {
    order: 0;
  }
  .sticky-aside {
    position: static;
  }
  .topic-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .topic-list {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------
   CTA band
   --------------------------------------------------------- */

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

.cta-band::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -8%;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.cta-band::after {
  content: "";
  position: absolute;
  top: -90%;
  right: -1%;
  width: 700px;
  height: 700px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}

.cta-band .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.cta-band h2 {
  max-width: 18em;
  margin: 0;
  color: var(--white);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
}

.cta-band p {
  max-width: 40em;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.cta-band .btn {
  background: var(--white);
  color: var(--red-dark);
}

.cta-band .btn:hover {
  background: var(--ink);
  color: var(--paper);
}

@media (max-width: 760px) {
  .cta-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

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

.site-footer {
  padding: 56px 0 32px;
  background: #111915;
  color: rgba(244, 239, 228, 0.66);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
}

.site-footer .brand-text strong {
  color: var(--paper);
}

.site-footer .brand-text small {
  color: rgba(244, 239, 228, 0.38);
}

.footer-about {
  max-width: 27em;
  margin: 18px 0 0;
  color: rgba(244, 239, 228, 0.46);
  font-size: 12px;
  line-height: 1.9;
}

.footer-col h4 {
  margin: 2px 0 14px;
  color: rgba(244, 239, 228, 0.8);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.14em;
}

.footer-col a {
  display: block;
  padding: 4px 0;
  color: rgba(244, 239, 228, 0.5);
  font-size: 12px;
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin-top: 46px;
  padding-top: 20px;
  border-top: 1px solid rgba(244, 239, 228, 0.12);
  color: rgba(244, 239, 228, 0.32);
  font-size: 10.5px;
  line-height: 1.8;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-about {
    grid-column: span 2;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-about {
    grid-column: auto;
  }
  .footer-bottom {
    display: block;
  }
  .footer-bottom p + p {
    margin-top: 8px;
  }
}

/* ---------------------------------------------------------
   404
   --------------------------------------------------------- */

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

.error-code {
  color: var(--red);
  font-family: var(--serif);
  font-size: clamp(90px, 18vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.error-page h1 {
  margin: 10px 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.error-page p {
  color: var(--ink-3);
}

/* ---------------------------------------------------------
   Motion / print / utilities
   --------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

@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;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

.print-only {
  display: none;
}

@media print {
  .site-header,
  .site-footer,
  .anchor-nav,
  .cta-band,
  .no-print {
    display: none !important;
  }
  body {
    background: #fff;
    font-size: 12px;
  }
  .section,
  .page-hero {
    padding: 24px 0;
  }
  .print-only {
    display: block;
  }
  .js .reveal,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .card,
  .format-card,
  .checklist,
  .calculator {
    break-inside: avoid;
  }
  a {
    text-decoration: none;
    color: inherit;
  }
}

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

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-3 { margin-top: 24px !important; }

/* ---------------------------------------------------------
   High-visibility Plain-Language Formula & Mother-Problem Cards
   --------------------------------------------------------- */

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

@media (max-width: 820px) {
  .formula-showcase {
    grid-template-columns: 1fr;
  }
}

.f-box {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 3px;
  padding: 24px 26px;
  box-shadow: 5px 5px 0 rgba(22, 32, 27, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.f-box.red-border {
  border-color: var(--red);
  box-shadow: 5px 5px 0 rgba(182, 64, 42, 0.14);
}

.f-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.f-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.f-badge {
  display: inline-flex;
  padding: 4px 10px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 2px;
  white-space: nowrap;
}

.f-badge.sage {
  background: var(--sage);
}

.f-badge.ink {
  background: var(--ink);
}

.f-math {
  padding: 14px 18px;
  background: #1b2620;
  color: #fff7e8;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.65;
  border-radius: 2px;
  letter-spacing: 0.02em;
}

.f-math em {
  color: #f3a88f;
  font-weight: 700;
}

.f-plain {
  padding: 12px 15px;
  background: var(--red-soft);
  border-left: 4px solid var(--red);
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink);
}

.f-plain strong {
  color: var(--red-dark);
}

.f-example {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-2);
  padding-top: 8px;
  border-top: 1px dashed var(--line-strong);
}

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

/* Mother Problem Cards (必挑 vs 必跳) */
.mother-list {
  display: grid;
  gap: 20px;
  margin: 26px 0;
}

.mother-item {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 4px 4px 0 rgba(22, 32, 27, 0.07);
}

.mother-item.skip-item {
  border-color: var(--red);
}

.mother-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: var(--ink);
  color: var(--paper);
}

.mother-item.skip-item .mother-bar {
  background: var(--red);
  color: var(--white);
}

.mother-bar h3 {
  margin: 0;
  font-size: 20px;
  color: inherit;
  font-family: var(--serif);
}

.mother-bar span {
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0.9;
  white-space: nowrap;
}

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

@media (max-width: 860px) {
  .mother-body {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.mother-col {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
}

.mother-col + .mother-col {
  border-left: 1px dashed var(--line-strong);
  padding-left: 20px;
}

@media (max-width: 860px) {
  .mother-col + .mother-col {
    border-left: 0;
    padding-left: 0;
    border-top: 1px dashed var(--line-strong);
    padding-top: 12px;
  }
}

.mother-label {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  border-radius: 2px;
}

.mother-label.red {
  background: var(--red-soft);
  color: var(--red-dark);
}