:root {
  --paper: #f4efe5;
  --paper-deep: #e7dccb;
  --ink: #151413;
  --ink-soft: #4d4943;
  --muted: #777064;
  --line: rgba(21, 20, 19, 0.15);
  --panel: rgba(255, 250, 240, 0.82);
  --night: #17191c;
  --night-2: #22262b;
  --cream: #fff7e8;
  --red: #e85d4f;
  --mint: #2dbf9f;
  --blue: #3267d6;
  --gold: #cf9b27;
  --violet: #7a5ed9;
  --shadow: 0 24px 70px rgba(35, 28, 20, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow-y: scroll;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei UI", "DengXian", "Noto Sans CJK SC", sans-serif;
  background:
    linear-gradient(90deg, rgba(21, 20, 19, 0.035) 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(rgba(21, 20, 19, 0.035) 1px, transparent 1px) 0 0 / 30px 30px,
    var(--paper);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(115deg, transparent 0 58%, rgba(45, 191, 159, 0.13) 58% 69%, transparent 69%),
    linear-gradient(22deg, rgba(232, 93, 79, 0.12) 0 14%, transparent 14%),
    linear-gradient(180deg, rgba(255, 247, 232, 0.72), transparent 42%);
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.read-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  height: 4px;
  background: rgba(21, 20, 19, 0.08);
}

.read-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--mint), var(--blue));
}

.hero,
.section,
.site-footer {
  width: 100%;
  margin-inline: 0;
  padding-right: clamp(30px, 4.5vw, 90px);
  padding-left: clamp(30px, 4.5vw, 90px);
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 24px;
  padding-bottom: clamp(36px, 5vh, 72px);
}

.snap-page {
  min-height: 100vh;
  min-height: 100svh;
  height: 100vh;
  height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 58px;
  margin-bottom: 54px;
  border-bottom: 1px solid var(--line);
}

.brand,
.nav-links,
.hero-actions,
.case-switcher {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
}

.brand-block {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--cream);
  background: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--mint);
}

.nav-links {
  gap: 6px;
}

.nav-links a {
  padding: 9px 12px;
  color: var(--ink-soft);
  font-size: 14px;
  border: 1px solid transparent;
}

.nav-links a:hover {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 250, 240, 0.64);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  gap: 42px;
  align-items: stretch;
  min-height: 0;
}

.hero-copy {
  display: flex;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
}

.kicker,
.section-label,
.case-eyebrow,
.stat-item p,
.prompt-note button,
.site-footer {
  font-family: "Cascadia Code", Consolas, monospace;
}

.kicker,
.section-label,
.case-eyebrow {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero .kicker {
  margin-bottom: 22px;
  font-size: clamp(18px, 1.18vw, 24px);
}

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

h1,
h2,
h3 {
  margin-bottom: 0;
  line-height: 1.05;
  font-family: "Bahnschrift", "Microsoft YaHei UI", sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  font-size: clamp(70px, 6.6vw, 128px);
}

h2 {
  font-size: clamp(46px, 4.5vw, 86px);
}

h3 {
  font-size: 26px;
}

.hero-lede {
  max-width: 880px;
  margin: 26px 0 32px;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.8;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.primary-link,
.ghost-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-weight: 800;
  border: 1px solid var(--ink);
}

.primary-link {
  color: var(--cream);
  background: var(--ink);
  box-shadow: 6px 6px 0 var(--red);
}

.ghost-link {
  background: rgba(255, 250, 240, 0.72);
}

.hero-visual {
  position: relative;
  min-height: 0;
  height: min(66vh, 620px);
  margin: 0;
  overflow: hidden;
  color: var(--cream);
  background: var(--night);
  border: 1px solid rgba(21, 20, 19, 0.28);
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.hero-visual::after {
  position: absolute;
  inset: 16px;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(255, 247, 232, 0.22);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  opacity: 0.74;
  filter: contrast(1.05) saturate(0.9);
}

.hero-visual figcaption {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  padding: 18px;
  background: rgba(23, 25, 28, 0.78);
  border: 1px solid rgba(255, 247, 232, 0.2);
  backdrop-filter: blur(14px);
}

.hero-visual figcaption span {
  display: block;
  margin-bottom: 8px;
  color: var(--mint);
  font-size: 13px;
  font-weight: 800;
}

.hero-visual figcaption strong {
  font-size: 22px;
  line-height: 1.45;
}

.chapter-rail {
  position: fixed;
  top: 50%;
  left: 22px;
  z-index: 20;
  display: grid;
  gap: 8px;
  transform: translateY(-50%);
}

.chapter-rail a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--muted);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  background: rgba(255, 250, 240, 0.72);
  border: 1px solid var(--line);
}

.chapter-rail a.is-active {
  color: var(--cream);
  background: var(--ink);
  border-color: var(--ink);
}

.section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(42px, 6vh, 70px);
  padding-bottom: clamp(42px, 6vh, 70px);
}

.thesis-grid,
.demo-layout,
.direction-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.76fr);
  gap: 28px;
  align-items: stretch;
}

.reaction-title {
  max-width: 980px;
  margin-bottom: 24px;
  color: var(--red);
  font-family: "Cascadia Code", Consolas, "Microsoft YaHei UI", monospace;
  font-size: clamp(20px, 1.35vw, 26px);
  font-weight: 800;
  line-height: 1.45;
}

.thesis-grid p,
.split-heading p,
.demo-layout p,
.direction-header p,
.ending-card p {
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.8;
}

.reaction-copy {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding-block: 10px;
}

.reaction-copy p {
  max-width: 940px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(30px, 2.7vw, 52px);
  font-weight: 900;
  line-height: 1.28;
}

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

.thesis-grid blockquote,
.ending-card blockquote {
  margin: 0;
  padding: 30px;
  color: var(--cream);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.55;
  background: var(--night);
  border-left: 10px solid var(--mint);
}

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

.thesis-points article,
.anxiety-stack article,
.limits-grid article,
.meme-card,
.meme-stage,
.direction-grid article,
.timeline article,
.prompt-note,
.ending-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 18px 46px rgba(35, 28, 20, 0.08);
}

.thesis-points article {
  min-height: 140px;
  padding: 22px;
}

.thesis-points span,
.case-columns span,
.direction-grid span,
.timeline span,
.prompt-note span {
  display: block;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.thesis-points strong {
  font-size: 21px;
  line-height: 1.45;
}

.dark-section {
  width: 100%;
  max-width: none;
  color: var(--cream);
  background:
    linear-gradient(90deg, rgba(255, 247, 232, 0.06) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(rgba(255, 247, 232, 0.045) 1px, transparent 1px) 0 0 / 26px 26px,
    var(--night);
}

.dark-section .section-label {
  color: var(--mint);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 28px;
  align-items: end;
  margin-bottom: 26px;
}

.focus-heading {
  width: 100%;
  max-width: none;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: clamp(24px, 3.2vh, 36px);
}

.focus-heading h2 {
  width: 100%;
  max-width: none;
}

.dark-section .split-heading p {
  color: rgba(255, 247, 232, 0.72);
}

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

.stat-item {
  min-height: 178px;
  padding: 18px;
  background: rgba(255, 247, 232, 0.06);
  border: 1px solid rgba(255, 247, 232, 0.16);
}

.stat-item span {
  display: block;
  margin-bottom: 22px;
  font-family: "Bahnschrift", "Microsoft YaHei UI", sans-serif;
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
}

.stat-item p {
  margin-bottom: 0;
  color: rgba(255, 247, 232, 0.82);
  font-size: 14px;
  line-height: 1.65;
}

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

.accent-gold span {
  color: var(--gold);
}

.accent-mint span {
  color: var(--mint);
}

.accent-blue span {
  color: #7fa5ff;
}

.big-line {
  max-width: 980px;
  margin: 28px 0 0;
  color: var(--cream);
  font-size: clamp(30px, 3vw, 56px);
  font-weight: 900;
  line-height: 1.18;
}

.section-aside {
  max-width: 980px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.7;
}

.dark-section .section-aside {
  color: rgba(255, 247, 232, 0.72);
}

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

.meme-lab {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: stretch;
}

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

.meme-card {
  min-height: 108px;
  padding: 16px;
  text-align: left;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.meme-card:hover,
.meme-card.is-active {
  border-color: var(--ink);
  box-shadow: 8px 8px 0 rgba(21, 20, 19, 0.12);
}

.meme-card.is-active {
  color: var(--cream);
  background: var(--night);
}

.meme-card span,
.meme-card strong {
  display: block;
}

.meme-card span {
  margin-bottom: 14px;
  color: var(--red);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 13px;
  font-weight: 900;
}

.meme-card.is-active span {
  color: var(--mint);
}

.meme-card strong {
  font-size: 20px;
  line-height: 1.32;
}

.meme-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-content: center;
  height: 396px;
  min-height: 396px;
  padding: 26px;
  color: var(--cream);
  background:
    linear-gradient(135deg, rgba(232, 93, 79, 0.18), transparent 36%),
    linear-gradient(315deg, rgba(45, 191, 159, 0.18), transparent 42%),
    var(--night);
  border: 1px solid rgba(255, 247, 232, 0.16);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.meme-stage-head {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.meme-visual {
  position: static;
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  color: var(--night);
  font-family: "Bahnschrift", "Microsoft YaHei UI", sans-serif;
  font-size: 64px;
  font-weight: 900;
  background:
    linear-gradient(135deg, rgba(255, 247, 232, 0.95), rgba(45, 191, 159, 0.82)),
    var(--cream);
  border: 2px solid rgba(255, 247, 232, 0.72);
  box-shadow: 8px 8px 0 rgba(232, 93, 79, 0.75);
}

.meme-stage h3 {
  margin: 0;
  padding-top: 0;
  font-size: clamp(34px, 3.4vw, 58px);
}

.meme-stage-copy {
  display: grid;
  margin-left: 0;
}

.meme-stage p:not(.case-eyebrow) {
  color: rgba(255, 247, 232, 0.82);
  font-size: 19px;
  line-height: 1.75;
  min-height: 40px;
  margin: 12px 0 0;
}

.meme-stage blockquote {
  margin: 4px 0 0;
  padding: 16px 18px;
  color: var(--cream);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.5;
  background: rgba(255, 247, 232, 0.08);
  border-left: 8px solid var(--mint);
  min-height: 92px;
  display: flex;
  align-items: center;
}

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

.limits-grid article {
  min-height: 272px;
  padding: 26px;
  background:
    linear-gradient(145deg, rgba(45, 191, 159, 0.14), transparent 42%),
    var(--panel);
}

.limits-grid span {
  display: block;
  margin-bottom: 34px;
  color: var(--red);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.limits-grid article:nth-child(2) span {
  color: var(--blue);
}

.limits-grid article:nth-child(3) span {
  color: var(--gold);
}

.limits-grid h3 {
  margin-bottom: 18px;
  font-size: 30px;
}

.limits-grid p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.65;
}

.anxiety-stack article {
  position: relative;
  min-height: 270px;
  padding: 22px;
  overflow: hidden;
}

.anxiety-stack article::before {
  position: absolute;
  right: -25px;
  bottom: -38px;
  color: rgba(21, 20, 19, 0.06);
  content: attr(data-label);
  font-family: "Bahnschrift", "Microsoft YaHei UI", sans-serif;
  font-size: 110px;
  font-weight: 900;
}

.stack-number {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 28px;
  color: var(--cream);
  font-weight: 900;
  background: var(--red);
  box-shadow: 6px 6px 0 var(--gold);
}

.anxiety-stack article:nth-child(2) .stack-number {
  background: var(--blue);
  box-shadow-color: var(--mint);
}

.anxiety-stack article:nth-child(3) .stack-number {
  background: var(--night);
  box-shadow-color: var(--violet);
}

.anxiety-stack article:nth-child(4) .stack-number {
  background: var(--gold);
  box-shadow-color: var(--red);
}

.anxiety-stack p,
.direction-grid p,
.timeline p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.demo-layout {
  align-items: center;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  font-size: 19px;
  font-weight: 800;
  background: rgba(255, 250, 240, 0.72);
  border: 1px solid var(--line);
}

.check-list li::before {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  content: "";
  background: var(--mint);
  border: 2px solid var(--ink);
}

.image-panel {
  margin: 0;
  padding: 14px;
  background: var(--night);
  border: 1px solid rgba(21, 20, 19, 0.28);
  box-shadow: var(--shadow);
}

.image-panel img {
  width: 100%;
  height: min(46vh, 410px);
  min-height: 0;
  object-fit: cover;
}

.case-switcher {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.case-tab {
  min-height: 46px;
  padding: 0 16px;
  color: var(--ink-soft);
  background: rgba(255, 250, 240, 0.68);
  border: 1px solid var(--line);
}

.case-tab.is-active {
  color: var(--cream);
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: inset 0 -5px 0 var(--mint);
}

.case-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 20px;
  min-height: min(40vh, 330px);
  padding: 28px;
  color: var(--cream);
  background:
    linear-gradient(135deg, rgba(45, 191, 159, 0.22), transparent 34%),
    linear-gradient(320deg, rgba(232, 93, 79, 0.18), transparent 40%),
    var(--night);
  border: 1px solid rgba(255, 247, 232, 0.18);
}

.case-detail h3 {
  margin-bottom: 20px;
  font-size: clamp(32px, 3vw, 48px);
}

.case-detail p {
  color: rgba(255, 247, 232, 0.82);
  font-size: 17px;
  line-height: 1.7;
}

.case-columns {
  display: grid;
  gap: 14px;
}

.case-columns div {
  padding: 20px;
  background: rgba(255, 247, 232, 0.07);
  border: 1px solid rgba(255, 247, 232, 0.14);
}

.case-columns span {
  color: var(--mint);
}

.case-columns p {
  margin-bottom: 0;
}

.direction-header {
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 22px;
  align-items: start;
}

.direction-header img {
  width: 100%;
  height: min(24vh, 220px);
  min-height: 0;
  object-fit: cover;
  background: var(--night);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

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

.direction-grid article {
  min-height: 230px;
  padding: 24px 28px;
}

.direction-grid article:nth-child(1) span {
  color: var(--red);
}

.direction-grid article:nth-child(2) span {
  color: var(--blue);
}

.direction-grid article:nth-child(3) span {
  color: var(--gold);
}

.direction-grid article:nth-child(4) span {
  color: var(--mint);
}

.direction-grid article:nth-child(5) span {
  color: var(--violet);
}

.direction-grid span {
  margin-bottom: 10px;
}

.direction-grid h3 {
  display: flex;
  min-height: 78px;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: clamp(28px, 2.4vw, 42px);
  line-height: 1.12;
}

.direction-grid p {
  font-size: 21px;
  line-height: 1.58;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  counter-reset: week;
}

.timeline article {
  position: relative;
  min-height: 186px;
  padding: 22px;
}

.timeline article::after {
  position: absolute;
  right: 18px;
  bottom: 12px;
  color: rgba(21, 20, 19, 0.08);
  counter-increment: week;
  content: "W" counter(week);
  font-family: "Bahnschrift", "Microsoft YaHei UI", sans-serif;
  font-size: 58px;
  font-weight: 900;
}

.timeline h3 {
  margin-bottom: 14px;
  font-size: 22px;
}

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

.prompt-note {
  overflow: hidden;
}

.prompt-note > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.prompt-note span {
  margin-bottom: 0;
}

.prompt-note button {
  min-height: 34px;
  padding: 0 12px;
  color: var(--cream);
  background: var(--blue);
  border: 0;
}

.prompt-note pre {
  min-height: 120px;
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  color: var(--cream);
  background: var(--night);
}

.prompt-note code {
  font-family: "Cascadia Code", Consolas, "Microsoft YaHei UI", monospace;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.copy-feedback {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--blue);
  font-weight: 800;
}

.ending-card {
  padding: clamp(30px, 4vw, 58px);
  background:
    linear-gradient(90deg, rgba(207, 155, 39, 0.16), transparent 30%),
    var(--panel);
}

.ending-card p {
  max-width: 980px;
  margin: 24px 0 30px;
  font-size: clamp(28px, 3vw, 54px);
  font-weight: 900;
  line-height: 1.35;
}

.ending-card blockquote {
  border-left-color: var(--red);
}

.site-footer {
  display: none;
  justify-content: space-between;
  gap: 14px;
  padding: 30px 0 44px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
}

@media (max-width: 1280px) {
  .chapter-rail {
    display: none;
  }
}

@media (max-width: 980px) {
  html {
    scroll-snap-type: y proximity;
  }

  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 38px;
  }

  .hero-layout,
  .thesis-grid,
  .demo-layout,
  .direction-header,
  .split-heading,
  .meme-lab,
  .case-detail {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-visual,
  .hero-visual img {
    min-height: auto;
  }

  .hero-visual img {
    height: 38vh;
  }

  .thesis-points,
  .anxiety-stack,
  .stat-grid,
  .limits-grid,
  .meme-card-list,
  .direction-grid,
  .timeline,
  .prompt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-height: 760px) and (min-width: 681px) {
  .prompt-note > div {
    min-height: 48px;
  }

  .prompt-note pre {
    min-height: 126px;
    padding: 14px;
  }

  .prompt-note code {
    font-size: 13px;
    line-height: 1.5;
  }

  .copy-feedback {
    margin-top: 8px;
  }
}

@media (max-width: 680px) {
  .hero,
  .section,
  .site-footer {
    width: 100%;
    padding-right: 18px;
    padding-left: 18px;
  }

  .snap-page {
    height: auto;
    min-height: 100svh;
    overflow: visible;
    scroll-snap-align: start;
  }

  .hero {
    padding-bottom: 36px;
  }

  .topbar,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
  }

  .nav-links a {
    flex: 1 1 130px;
    text-align: center;
    border-color: var(--line);
  }

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 32px;
  }

  .hero-lede,
  .thesis-grid p,
  .split-heading p,
  .demo-layout p,
  .direction-header p,
  .ending-card p,
  .case-detail p {
    font-size: 16px;
  }

  .section {
    padding: 48px 0;
  }

  .hero-visual {
    transform: none;
  }

  .hero-visual img {
    height: 300px;
  }

  .thesis-points,
  .anxiety-stack,
  .stat-grid,
  .limits-grid,
  .meme-card-list,
  .direction-grid,
  .timeline,
  .prompt-grid {
    grid-template-columns: 1fr;
  }

  .stat-item {
    min-height: 180px;
  }

  .stat-item span {
    font-size: 46px;
  }

  .big-line {
    font-size: 23px;
  }

  .case-detail {
    padding: 22px;
  }

  .meme-stage {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
    padding: 22px;
    overflow: visible;
  }

  .meme-visual {
    width: 86px;
    height: 86px;
    max-width: none;
    font-size: 38px;
  }

  .meme-stage-head {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 18px;
  }

  .meme-stage-copy {
    margin-left: 0;
  }

  .case-detail h3 {
    font-size: 30px;
  }
}
