:root {
  --ink: #17221f;
  --muted: #66716c;
  --paper: #f7f3e9;
  --paper-deep: #eee7d8;
  --white: #fffdf8;
  --green: #1f6b55;
  --green-dark: #154c3d;
  --mint: #cfe5d7;
  --yellow: #f3c95c;
  --orange: #e77c45;
  --blue: #6f9db2;
  --line: rgba(23, 34, 31, .17);
  --shadow: 0 20px 50px rgba(49, 55, 47, .12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(rgba(23, 34, 31, .025) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 32px;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .25;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
  z-index: 100;
}

.standalone-day .hero,
.standalone-day .stats,
.standalone-day .timeline-section,
.standalone-day .about-section,
.day-0701-page #day-0702,
.day-0702-page #day-0701,
.home-page .day-section {
  display: none;
}

.standalone-day .day-section {
  margin-top: 0;
  padding-top: 90px;
  border-top: 0;
}

.research-status {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 80px;
  border: 1px solid var(--ink);
}

.research-status > div {
  padding: 30px;
}

.research-status > div:first-child {
  border-right: 1px solid var(--ink);
}

.research-status strong,
.research-status p {
  display: block;
}

.research-status strong {
  margin: 18px 0 5px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 24px;
}

.research-status p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.problem-brief {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 60px;
  margin-bottom: 80px;
  padding: 45px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.problem-brief h3 {
  margin: 4px 0 0;
  font-family: Georgia, serif;
  font-size: 34px;
}

.problem-brief > div:last-child > p {
  margin-top: 0;
  color: var(--muted);
}

.research-transform em {
  color: var(--yellow);
  font-family: Georgia, serif;
  font-style: normal;
  font-weight: 700;
}

.research-transform .theorem-copy > p:last-child {
  color: rgba(255, 255, 255, .73);
}

.formula-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px;
  color: var(--ink);
  background: var(--paper);
  text-align: center;
}

.formula-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .1em;
}

.formula-card strong {
  font: 700 36px/1.25 Georgia, serif;
}

.formula-card i {
  margin: 5px 0;
  color: var(--orange);
  font: 26px Georgia, serif;
}

.formula-card small {
  margin: 24px 0 12px;
  color: var(--muted);
}

.formula-card b {
  padding: 13px;
  color: var(--green-dark);
  background: #fff1b8;
  border-left: 4px solid var(--yellow);
}

.research-page .algorithm-aside p {
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
}

.research-page .algorithm-aside code {
  color: var(--yellow);
  background: rgba(255, 255, 255, .1);
}

.research-checkpoint {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 85px 0;
  color: white;
  background: var(--green);
  border: 1px solid var(--green);
}

.research-checkpoint > div {
  padding: 42px;
  color: var(--ink);
  background: var(--white);
}

.research-checkpoint h3 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 30px;
}

.research-checkpoint ul {
  padding-left: 20px;
  margin: 25px 0 0;
}

.research-checkpoint li {
  padding: 8px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.day-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 70px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.day-pagination a {
  display: flex;
  flex-direction: column;
  min-height: 110px;
  padding: 25px;
  text-decoration: none;
}

.day-pagination a:first-child {
  border-right: 1px solid var(--ink);
}

.day-pagination span {
  color: var(--orange);
  font-size: 11px;
}

.day-pagination strong {
  margin-top: 8px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 19px;
}

a {
  color: inherit;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.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;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: white;
  padding: 10px 16px;
  z-index: 200;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px max(28px, calc((100vw - var(--max)) / 2));
  background: rgba(247, 243, 233, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  line-height: 1.2;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--paper);
  background: var(--green);
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 700;
  transform: rotate(-3deg);
}

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

.brand strong {
  font-size: 15px;
}

.brand small {
  margin-top: 5px;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: .08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

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

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  right: 0;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 24px;
  height: 2px;
  margin: 7px auto;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
  align-items: center;
  min-height: 720px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px 0 96px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
}

.hero h1,
.day-title h2,
.about-section h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.04em;
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(54px, 6vw, 86px);
}

.hero h1 em {
  position: relative;
  color: var(--green);
  font-style: normal;
  white-space: nowrap;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: 2%;
  right: -1%;
  bottom: 2px;
  height: 10px;
  background: var(--yellow);
  opacity: .65;
  transform: rotate(-1deg);
  z-index: -1;
}

.hero-lead {
  max-width: 580px;
  margin: 32px 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.button-primary {
  color: white;
  background: var(--green);
  box-shadow: 6px 6px 0 var(--yellow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.button-primary:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--yellow);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  text-underline-offset: 5px;
  font-size: 14px;
  font-weight: 700;
}

.text-link span {
  transition: transform .2s ease;
}

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

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

.paper-note {
  position: absolute;
  top: 25px;
  left: 9%;
  width: 390px;
  min-height: 420px;
  padding: 28px 30px 32px;
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent 31px, rgba(35, 78, 66, .11) 32px),
    var(--white);
  border: 1px solid rgba(23, 34, 31, .1);
  box-shadow: var(--shadow);
  transform: rotate(2.5deg);
}

.paper-note::before {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 2px solid rgba(231, 124, 69, .35);
  transform: translateX(44px);
  pointer-events: none;
}

.note-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: .14em;
}

.note-pin {
  width: 14px;
  height: 14px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, .14);
}

.note-title {
  margin: 28px 0 6px;
  font-family: "Kaiti SC", "STKaiti", serif;
  font-size: 28px;
  font-weight: 700;
}

.sign-pattern {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  align-items: stretch;
  gap: 6px;
  margin: 48px 0 62px 20px;
}

.sign-pattern span,
.sign-pattern strong {
  display: grid;
  place-items: center;
  min-height: 72px;
  padding: 8px;
  text-align: center;
  font-size: 12px;
}

.sign-pattern span {
  color: white;
  background: var(--orange);
}

.sign-pattern strong {
  color: white;
  background: var(--green);
}

.mini-graph {
  width: 100%;
  margin: 4px 0 0;
}

.graph-all line {
  stroke: #b8c0bc;
  stroke-width: 2;
}

.graph-tree line {
  stroke: var(--orange);
  stroke-width: 7;
  stroke-linecap: round;
}

.graph-nodes circle {
  fill: var(--green);
  stroke: var(--white);
  stroke-width: 5;
}

.note-words {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 20px;
}

.note-words span,
.keyword-list li {
  padding: 3px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, .7);
  font-size: 12px;
}

.pencil {
  position: absolute;
  right: 15px;
  bottom: 50px;
  width: 250px;
  height: 16px;
  background: var(--yellow);
  border: 1px solid rgba(23, 34, 31, .2);
  transform: rotate(-38deg);
  box-shadow: 8px 10px 20px rgba(23, 34, 31, .14);
}

.pencil::before {
  content: "";
  position: absolute;
  right: -28px;
  top: -1px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 28px solid #c99b70;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.6fr;
  max-width: var(--max);
  margin: 0 auto 120px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.stats > * {
  min-height: 126px;
  margin: 0;
  padding: 26px;
  border-right: 1px solid var(--line);
}

.stats > *:last-child {
  border-right: 0;
}

.stats div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.stats strong {
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 44px;
}

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

.stats p {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-family: "Kaiti SC", "STKaiti", serif;
  font-size: 18px;
  line-height: 1.5;
}

.timeline-section,
.day-section,
.about-section {
  max-width: var(--max);
  margin: 0 auto;
}

.timeline-section {
  padding: 30px 0 150px;
}

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

.section-heading h2,
.section-heading h3,
.pending-intro h3,
.resource-copy h3,
.photo-journal h3 {
  margin: 0;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.2;
}

.section-heading > p,
.section-heading > div + p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
}

.timeline {
  position: relative;
  margin-left: 42px;
  border-left: 1px solid var(--ink);
}

.timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 30px;
  padding: 0 0 74px 52px;
}

.timeline-entry:last-child {
  padding-bottom: 0;
}

.timeline-entry::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 29px;
  width: 13px;
  height: 13px;
  background: var(--paper);
  border: 2px solid var(--green);
  border-radius: 50%;
}

.timeline-entry.is-current::before {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 0 7px rgba(231, 124, 69, .14);
}

.timeline-date {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-top: 4px;
  font-family: Georgia, serif;
}

.timeline-date strong {
  font-size: 54px;
  line-height: 1;
}

.timeline-date span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .12em;
}

.timeline-content {
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.entry-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
}

.status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 9px;
  border: 1px solid currentColor;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

.status-learning {
  color: var(--orange);
}

.status-done {
  color: var(--green);
}

.status-pending {
  color: #8a6b24;
  background: #fff6d7;
  border-color: #d5b969;
}

.timeline-content h3 {
  margin: 16px 0 12px;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 30px;
}

.timeline-content > p {
  max-width: 720px;
  color: var(--muted);
}

.keyword-list {
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 20px 0 24px;
  list-style: none;
}

.day-section {
  padding: 120px 0;
  border-top: 2px solid var(--ink);
}

.day-header {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 70px;
  align-items: start;
  margin-bottom: 90px;
}

.day-number {
  display: flex;
  flex-direction: column;
  padding-top: 8px;
  font-family: Georgia, serif;
}

.day-number span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .12em;
}

.day-number strong {
  margin: 4px 0 -8px;
  color: var(--green);
  font-size: 114px;
  line-height: 1;
}

.day-number small {
  font-size: 13px;
}

.day-title {
  max-width: 820px;
}

.day-title h2 {
  font-size: clamp(48px, 6vw, 74px);
}

.day-title > p:last-child {
  max-width: 660px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.learning-route {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 90px;
  border: 1px solid var(--ink);
}

.learning-route article {
  position: relative;
  min-height: 235px;
  padding: 30px;
  border-right: 1px solid var(--ink);
}

.learning-route article:last-child {
  border-right: 0;
}

.route-index {
  position: absolute;
  right: 18px;
  top: 12px;
  color: rgba(31, 107, 85, .14);
  font-family: Georgia, serif;
  font-size: 64px;
  font-weight: 700;
}

.route-state {
  margin: 0 0 25px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.learning-route h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 28px;
}

.learning-route article > p:last-child {
  max-width: 260px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.knowledge-block {
  margin: 0 0 90px;
  padding: 54px;
  background: var(--white);
  border-top: 5px solid var(--yellow);
  box-shadow: 0 14px 35px rgba(49, 55, 47, .07);
}

.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.knowledge-grid article {
  min-height: 235px;
  padding: 26px 22px;
  border-right: 1px solid var(--line);
}

.knowledge-grid article:last-child {
  border-right: 0;
}

.knowledge-grid article > span {
  color: var(--orange);
  font: 700 12px Georgia, serif;
}

.knowledge-grid h4 {
  margin: 32px 0 9px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 22px;
}

.knowledge-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

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

.knowledge-grid em {
  color: var(--green);
  font-family: Georgia, serif;
  font-style: normal;
  font-weight: 700;
}

.theorem-section {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 50px;
  margin: 0 0 90px;
  padding: 62px 55px;
  color: white;
  background: var(--green-dark);
}

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

.theorem-copy h3,
.proof-workshop h3,
.diagnosis-section h3,
.mistake-section h3 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 38px;
  line-height: 1.3;
}

.term-list {
  margin: 38px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .28);
}

.term-list div {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.term-list dt {
  color: var(--yellow);
  font-weight: 700;
}

.term-list dd {
  margin: 0;
  color: rgba(255, 255, 255, .73);
  font-size: 13px;
}

.proof-card {
  padding: 36px;
  color: var(--ink);
  background: var(--paper);
}

.proof-label {
  margin: 0 0 25px;
  color: var(--orange);
  font: 700 12px Georgia, serif;
  letter-spacing: .12em;
}

.proof-card ol,
.proof-workshop ol,
.algorithm-steps {
  padding: 0;
  margin: 0;
  list-style: none;
}

.proof-card li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.proof-card li span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  color: white;
  background: var(--green);
  border-radius: 50%;
  font: 700 11px Georgia, serif;
}

.proof-card li p {
  margin: 0;
}

.proof-card em {
  color: var(--green);
  font-family: Georgia, serif;
  font-style: normal;
  font-weight: 700;
}

.proof-result {
  margin: 24px 0 10px;
  padding: 14px 16px;
  background: #fff1b8;
  border-left: 4px solid var(--yellow);
  font-weight: 700;
}

.proof-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.lesson-grid {
  display: grid;
  grid-template-columns: 1.13fr .87fr;
  gap: 28px;
}

.concept-panel {
  padding: 38px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 14px 35px rgba(49, 55, 47, .07);
}

.panel-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.chapter-no {
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 30px;
}

.panel-heading .eyebrow {
  margin-bottom: 2px;
}

.panel-heading h3 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 28px;
}

.concept-lead {
  margin: 28px 0;
  font-size: 17px;
}

.cut-demo {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  min-height: 240px;
  overflow: hidden;
  background: #edf3ed;
  border: 1px solid rgba(31, 107, 85, .16);
}

.cut-side {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: space-around;
  padding: 16px;
  z-index: 2;
}

.village {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: white;
  background: var(--green);
  border: 4px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(23, 34, 31, .15);
  font-family: Georgia, serif;
  font-weight: 700;
}

.cut-side small {
  padding: 2px 7px;
  background: rgba(255, 253, 248, .8);
  font-size: 10px;
}

.cut-line {
  display: flex;
  justify-content: center;
  border-left: 2px dashed var(--orange);
  transform: translateX(30px);
  z-index: 3;
}

.cut-line span {
  align-self: start;
  margin-top: 8px;
  padding: 1px 5px;
  color: var(--orange);
  background: var(--white);
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: .1em;
  transform: translateX(-30px);
}

.cut-demo svg {
  position: absolute;
  inset: 18px 0 0;
  width: 100%;
  height: 210px;
  z-index: 1;
}

.road {
  stroke: #aab2ae;
  stroke-width: 4;
  stroke-dasharray: 7 6;
}

.road-safe {
  stroke: var(--orange);
  stroke-width: 8;
  stroke-dasharray: none;
}

.cut-demo text {
  fill: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.concept-panel blockquote {
  margin: 24px 0 0;
  padding: 20px 22px;
  color: var(--green-dark);
  background: #fff4c9;
  border-left: 4px solid var(--yellow);
  font-family: "Kaiti SC", "STKaiti", serif;
  font-size: 18px;
}

.compare-table {
  margin: 28px 0;
  border-top: 1px solid var(--ink);
}

.compare-row {
  display: grid;
  grid-template-columns: .7fr 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.compare-row span {
  padding: 14px 10px;
  border-right: 1px solid var(--line);
  font-size: 13px;
}

.compare-row span:last-child {
  border-right: 0;
}

.compare-row span:first-child {
  color: var(--muted);
}

.compare-head {
  color: white;
  background: var(--green);
}

.compare-head span:first-child {
  color: white;
}

.code-note {
  margin-top: 34px;
}

.code-note p {
  font-size: 14px;
}

pre {
  overflow-x: auto;
  margin: 14px 0 0;
  padding: 22px;
  color: #f4f0e7;
  background: #1d2a27;
  font: 13px/1.8 "SFMono-Regular", Consolas, monospace;
}

pre span {
  color: #9eb5aa;
}

.algorithm-section {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 28px;
  margin-top: 28px;
}

.algorithm-main,
.algorithm-aside {
  padding: 38px;
  background: var(--white);
  border: 1px solid var(--line);
}

.algorithm-steps {
  margin-top: 24px;
}

.algorithm-steps li {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.algorithm-steps li > span {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.algorithm-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

code {
  padding: 1px 4px;
  color: var(--green-dark);
  background: #e9f0eb;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: .92em;
}

pre code {
  padding: 0;
  color: inherit;
  background: transparent;
}

.algorithm-aside {
  color: white;
  background: var(--ink);
}

.algorithm-aside h4 {
  margin: 0 0 14px;
  color: var(--yellow);
  font-family: "Songti SC", "STSong", serif;
  font-size: 20px;
}

.algorithm-aside h4:not(:first-child) {
  margin-top: 36px;
}

.algorithm-aside dl {
  margin: 0;
}

.algorithm-aside dl div {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.algorithm-aside dt {
  font-size: 13px;
  font-weight: 700;
}

.algorithm-aside dd {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, .65);
  font-size: 12px;
}

.boruvka-section {
  margin-top: 85px;
  padding: 58px;
  background: #eaf1ec;
  border: 1px solid rgba(31, 107, 85, .3);
}

.boruvka-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 50px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--green);
}

.boruvka-header h3 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 46px;
  line-height: 1.25;
}

.learning-badge {
  min-width: 250px;
  padding: 22px;
  color: white;
  background: var(--green);
}

.learning-badge span,
.learning-badge strong,
.learning-badge small {
  display: block;
}

.learning-badge span {
  color: var(--yellow);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
}

.learning-badge strong {
  margin: 8px 0 2px;
  font-size: 17px;
}

.learning-badge small {
  color: rgba(255, 255, 255, .65);
}

.boruvka-sentence {
  max-width: 900px;
  margin: 36px 0;
  font-size: 18px;
}

.boruvka-sentence strong {
  color: var(--green);
}

.boruvka-rounds {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.boruvka-rounds article {
  min-height: 210px;
  padding: 24px 20px;
  border-right: 1px solid var(--line);
}

.boruvka-rounds article:last-child {
  border-right: 0;
}

.boruvka-rounds span {
  color: var(--orange);
  font: 700 11px Georgia, serif;
}

.boruvka-rounds h4 {
  margin: 28px 0 8px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 20px;
}

.boruvka-rounds p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.boruvka-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 32px;
  background: var(--green);
  border: 1px solid var(--green);
}

.boruvka-proof,
.boruvka-code {
  padding: 32px;
  background: var(--white);
}

.boruvka-bottom h4 {
  margin: 0 0 10px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 23px;
}

.boruvka-bottom p:last-child,
.boruvka-code li {
  color: var(--muted);
  font-size: 13px;
}

.boruvka-code ul {
  padding-left: 18px;
  margin: 0;
}

.boruvka-code li {
  margin: 7px 0;
}

.boruvka-order {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding: 18px 22px;
  color: white;
  background: var(--ink);
  font-size: 12px;
}

.boruvka-order strong {
  color: var(--yellow);
}

.boruvka-order span {
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, .25);
}

.boruvka-order i {
  color: var(--orange);
  font-style: normal;
}

.mistake-section {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 60px;
  margin-top: 85px;
  padding: 50px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.mistake-section ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.mistake-section li {
  padding: 13px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.mistake-section li:first-child {
  padding-top: 0;
}

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

.self-check {
  margin: 100px 0;
  padding: 54px;
  color: white;
  background: var(--green-dark);
}

.section-heading.compact {
  margin-bottom: 34px;
}

.section-heading.compact h3 {
  font-size: 36px;
}

.self-check .eyebrow {
  color: var(--yellow);
}

.self-check .section-heading > p {
  color: rgba(255, 255, 255, .7);
}

.question-list {
  border-top: 1px solid rgba(255, 255, 255, .3);
}

.question-list details {
  border-bottom: 1px solid rgba(255, 255, 255, .3);
}

.question-list summary {
  position: relative;
  padding: 20px 50px 20px 0;
  cursor: pointer;
  font-family: "Songti SC", "STSong", serif;
  font-size: 18px;
  font-weight: 700;
  list-style: none;
}

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

.question-list summary::after {
  content: "+";
  position: absolute;
  right: 10px;
  top: 14px;
  color: var(--yellow);
  font: 28px Georgia, serif;
}

.question-list details[open] summary::after {
  content: "−";
}

.question-list details p {
  max-width: 850px;
  margin: -5px 0 22px;
  color: rgba(255, 255, 255, .76);
}

.pending-section {
  display: grid;
  grid-template-columns: .68fr 1.32fr;
  gap: 55px;
  padding: 75px 0 10px;
}

.pending-intro h3 {
  font-size: 42px;
}

.pending-intro > p:last-child {
  color: var(--muted);
}

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

.problem-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--yellow);
}

.photo-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: #ddd;
  border: 0;
  cursor: zoom-in;
}

.problem-card .photo-button {
  height: 260px;
}

.photo-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.photo-button:hover img {
  transform: scale(1.03);
}

.photo-button > span:not(.sr-only) {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 9px;
  color: white;
  background: rgba(23, 34, 31, .78);
  font-size: 11px;
}

.problem-info {
  min-height: 310px;
  padding: 34px;
}

.problem-no {
  margin: 20px 0 2px;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: .12em;
}

.problem-info h4 {
  min-height: 62px;
  margin: 0 0 9px;
  font-family: Georgia, serif;
  font-size: 25px;
  line-height: 1.35;
}

.problem-info > p:not(.problem-no) {
  min-height: 54px;
  color: var(--muted);
  font-size: 13px;
}

.day-yesterday {
  margin-top: 100px;
}

.day-yesterday .day-number strong {
  color: var(--orange);
}

.proof-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  margin-bottom: 80px;
  padding: 34px;
  background: #fff2c5;
  border: 1px solid #dbc06c;
}

.proof-strip > div {
  display: flex;
  align-items: center;
  gap: 15px;
}

.proof-strip span {
  display: grid;
  flex: 0 0 40px;
  place-items: center;
  width: 40px;
  height: 40px;
  color: white;
  background: var(--green);
  border-radius: 50%;
  font: 700 16px Georgia, serif;
}

.proof-strip p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.proof-strip i {
  padding: 0 12px;
  color: var(--orange);
  font-size: 24px;
  font-style: normal;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 100px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.case-grid article {
  min-height: 460px;
  padding: 34px 30px;
  border-right: 1px solid var(--ink);
}

.case-grid article:last-child {
  border-right: 0;
}

.case-grid span {
  color: var(--orange);
  font: 700 11px Georgia, serif;
  letter-spacing: .14em;
}

.case-grid h3 {
  margin: 35px 0 10px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 28px;
}

.case-grid p {
  min-height: 58px;
  color: var(--muted);
  font-size: 14px;
}

.case-grid strong {
  display: inline-block;
  margin-top: 22px;
  color: var(--green);
  font-size: 13px;
}

.case-grid ul {
  padding: 18px 0 0 18px;
  margin: 20px 0 0;
  border-top: 1px solid var(--line);
}

.case-grid li {
  margin: 8px 0;
  color: var(--muted);
  font-size: 12px;
}

.proof-workshop {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: 60px;
  margin-bottom: 90px;
  padding: 55px;
  background: #fff2c5;
  border: 1px solid #dbc06c;
}

.proof-workshop ol {
  counter-reset: workshop;
}

.proof-workshop li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(138, 107, 36, .25);
}

.proof-workshop li span {
  color: var(--green);
  font-weight: 700;
}

.proof-workshop li p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.proof-workshop em {
  color: var(--green);
  font-family: Georgia, serif;
  font-style: normal;
  font-weight: 700;
}

.diagnosis-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-bottom: 90px;
  background: var(--ink);
  border: 1px solid var(--ink);
}

.diagnosis-column {
  padding: 42px;
  background: var(--white);
}

.diagnosis-column ul,
.diagnosis-column ol {
  padding-left: 20px;
  margin: 28px 0 0;
}

.diagnosis-column li {
  padding: 8px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.resource-section {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 70px;
  margin-bottom: 110px;
  padding: 55px;
  color: white;
  background: var(--green);
}

.resource-copy h3 {
  font-size: 40px;
}

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

.resource-copy > p:last-child {
  color: rgba(255, 255, 255, .72);
}

.resource-links {
  border-top: 1px solid rgba(255, 255, 255, .35);
}

.resource-links a {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .35);
  text-decoration: none;
}

.resource-index {
  font-family: Georgia, serif;
  opacity: .55;
}

.resource-links strong,
.resource-links small {
  display: block;
}

.resource-links small {
  margin-top: 3px;
  color: rgba(255, 255, 255, .62);
}

.resource-links b {
  color: var(--yellow);
  font-size: 20px;
  transition: transform .2s ease;
}

.resource-links a:hover b {
  transform: translateX(5px);
}

.photo-journal {
  padding-bottom: 30px;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr .9fr;
  grid-template-rows: 230px 180px;
  gap: 14px;
}

.photo-grid .photo-button {
  height: 100%;
}

.photo-tall {
  grid-row: 1 / span 2;
}

.photo-stack {
  position: relative;
  background:
    linear-gradient(rgba(23, 34, 31, .72), rgba(23, 34, 31, .72)),
    url("assets/photos/2026-07-01/04-study.jpg") center/cover;
}

.photo-stack::before,
.photo-stack::after {
  content: "";
  position: absolute;
  inset: 10px -7px -7px 10px;
  border: 1px solid rgba(23, 34, 31, .35);
  z-index: -1;
}

.photo-stack::after {
  inset: 18px -14px -14px 18px;
}

.photo-stack > span {
  position: static !important;
  display: grid;
  place-items: center;
  height: 100%;
  background: transparent !important;
}

.photo-stack strong,
.photo-stack small {
  display: block;
  text-align: center;
}

.photo-stack strong {
  font: 48px Georgia, serif;
}

.photo-stack small {
  margin-top: -65px;
  font-size: 12px;
}

.about-section {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 90px;
  margin-top: 80px;
  padding: 110px 0;
  border-top: 1px solid var(--ink);
}

.about-section h2 {
  font-size: clamp(42px, 5vw, 64px);
}

.about-section > div:last-child {
  padding-top: 34px;
  color: var(--muted);
  font-size: 17px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 30px;
  margin-top: 20px;
  padding: 38px max(28px, calc((100vw - var(--max)) / 2));
  color: white;
  background: var(--ink);
}

.site-footer .brand-mark {
  color: var(--ink);
  background: var(--yellow);
}

.site-footer .brand small,
.site-footer p {
  color: rgba(255, 255, 255, .6);
}

.site-footer p {
  text-align: center;
  font-family: "Kaiti SC", "STKaiti", serif;
}

.back-top {
  font-size: 13px;
}

.lightbox {
  width: min(94vw, 1100px);
  height: min(92vh, 900px);
  padding: 52px 70px;
  color: white;
  background: rgba(20, 27, 25, .97);
  border: 0;
}

.lightbox::backdrop {
  background: rgba(12, 17, 15, .75);
  backdrop-filter: blur(5px);
}

.lightbox figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100% - 45px);
  object-fit: contain;
}

.lightbox figcaption {
  margin-top: 14px;
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  display: grid;
  place-items: center;
  color: white;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .3);
  cursor: pointer;
}

.lightbox-close {
  right: 18px;
  top: 18px;
  width: 42px;
  height: 42px;
  font-size: 25px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  width: 42px;
  height: 54px;
  transform: translateY(-50%);
}

.lightbox button[hidden] {
  display: none;
}

.lightbox-prev {
  left: 14px;
}

.lightbox-next {
  right: 14px;
}

@media (max-width: 1220px) {
  .hero,
  .stats,
  .timeline-section,
  .day-section,
  .about-section {
    margin-left: 28px;
    margin-right: 28px;
  }

  .paper-note {
    left: 2%;
    width: 360px;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 14px 22px;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 73px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 22px 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
  }

  .site-nav a::after {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 68px 0 50px;
  }

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

  .paper-note {
    left: 50%;
    transform: translateX(-50%) rotate(2.5deg);
  }

  .pencil {
    right: 8%;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats p {
    grid-column: 1 / -1;
    min-height: 90px;
    border-top: 1px solid var(--line);
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  .lesson-grid,
  .pending-section,
  .resource-section,
  .about-section,
  .theorem-section,
  .algorithm-section,
  .mistake-section,
  .proof-workshop,
  .boruvka-header,
  .boruvka-bottom {
    grid-template-columns: 1fr;
  }

  .pending-section,
  .resource-section,
  .about-section,
  .theorem-section,
  .mistake-section,
  .proof-workshop {
    gap: 38px;
  }

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

  .knowledge-grid article:nth-child(2) {
    border-right: 0;
  }

  .knowledge-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .diagnosis-section {
    grid-template-columns: 1fr;
  }

  .problem-brief {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .boruvka-rounds article:nth-child(2) {
    border-right: 0;
  }

  .boruvka-rounds article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .boruvka-order {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .day-header {
    grid-template-columns: 140px 1fr;
    gap: 35px;
  }

  .day-number strong {
    font-size: 90px;
  }

  .proof-strip {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .proof-strip i {
    transform: rotate(90deg);
    text-align: center;
  }

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

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

  .site-footer p {
    display: none;
  }
}

@media (max-width: 620px) {
  .brand small {
    display: none;
  }

  .hero,
  .stats,
  .timeline-section,
  .day-section,
  .about-section {
    margin-left: 18px;
    margin-right: 18px;
  }

  .hero {
    padding-top: 50px;
  }

  .hero h1 {
    font-size: 45px;
  }

  .hero h1 em {
    white-space: normal;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .hero-visual {
    min-height: 410px;
    overflow: hidden;
  }

  .paper-note {
    width: calc(100% - 20px);
    min-height: 360px;
    padding: 22px;
  }

  .mini-graph {
    max-height: 170px;
  }

  .pencil {
    right: 30px;
    bottom: 25px;
    width: 190px;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 80px;
  }

  .stats > * {
    min-height: 92px;
    padding: 16px 9px;
  }

  .stats div {
    align-items: center;
    flex-direction: column;
    gap: 0;
  }

  .stats strong {
    font-size: 32px;
  }

  .stats span {
    font-size: 10px;
  }

  .stats p {
    padding: 18px;
    font-size: 16px;
  }

  .timeline-section {
    padding-bottom: 100px;
  }

  .timeline {
    margin-left: 9px;
  }

  .timeline-entry {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 30px;
  }

  .timeline-date strong {
    font-size: 40px;
  }

  .day-section {
    padding: 80px 0;
  }

  .day-header {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 60px;
  }

  .day-number {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
    border-bottom: 1px solid var(--line);
  }

  .day-number strong {
    order: -1;
    font-size: 62px;
  }

  .day-title h2 {
    font-size: 43px;
  }

  .learning-route {
    grid-template-columns: 1fr;
  }

  .learning-route article {
    min-height: 180px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .learning-route article:last-child {
    border-bottom: 0;
  }

  .concept-panel,
  .self-check,
  .knowledge-block,
  .theorem-section,
  .proof-workshop,
  .boruvka-section {
    padding: 25px 20px;
  }

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

  .knowledge-grid article,
  .knowledge-grid article:nth-child(2) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .knowledge-grid article:last-child {
    border-bottom: 0;
  }

  .theorem-copy h3,
  .proof-workshop h3,
  .diagnosis-section h3,
  .mistake-section h3 {
    font-size: 30px;
  }

  .term-list div {
    grid-template-columns: 80px 1fr;
  }

  .proof-card,
  .algorithm-main,
  .algorithm-aside,
  .diagnosis-column {
    padding: 25px 20px;
  }

  .algorithm-steps li,
  .proof-workshop li {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .mistake-section {
    gap: 30px;
  }

  .boruvka-header {
    gap: 25px;
  }

  .boruvka-header h3 {
    font-size: 34px;
  }

  .learning-badge {
    min-width: 0;
  }

  .boruvka-rounds {
    grid-template-columns: 1fr;
  }

  .boruvka-rounds article,
  .boruvka-rounds article:nth-child(2) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .boruvka-rounds article:last-child {
    border-bottom: 0;
  }

  .boruvka-proof,
  .boruvka-code {
    padding: 24px 20px;
  }

  .boruvka-order {
    align-items: stretch;
    flex-direction: column;
  }

  .boruvka-order i {
    align-self: center;
    transform: rotate(90deg);
  }

  .cut-demo {
    grid-template-columns: 1fr 30px 1fr;
    min-height: 220px;
  }

  .cut-line {
    transform: translateX(15px);
  }

  .cut-line span {
    transform: translateX(-15px);
  }

  .compare-row {
    grid-template-columns: .75fr 1fr 1fr;
  }

  .compare-row span {
    padding: 11px 5px;
    font-size: 11px;
  }

  .problem-grid,
  .case-grid,
  .research-status,
  .research-checkpoint,
  .day-pagination {
    grid-template-columns: 1fr;
  }

  .research-status > div:first-child,
  .day-pagination a:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .case-grid article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .case-grid article:last-child {
    border-bottom: 0;
  }

  .case-grid p,
  .problem-info h4,
  .problem-info > p:not(.problem-no) {
    min-height: 0;
  }

  .resource-section {
    padding: 32px 22px;
  }

  .photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(2, 180px);
  }

  .photo-tall {
    grid-row: auto;
  }

  .photo-stack::before,
  .photo-stack::after {
    right: 0;
  }

  .about-section {
    margin-top: 30px;
    padding: 80px 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .lightbox {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    padding: 58px 45px 30px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
