:root {
  --paper: #f4efe3;
  --paper-deep: #e8e0d0;
  --paper-light: #fbf8f0;
  --ink: #24231f;
  --ink-soft: #5f5b52;
  --line: rgba(50, 47, 40, 0.16);
  --line-strong: rgba(50, 47, 40, 0.28);
  --red: #a84436;
  --red-dark: #783128;
  --olive: #526252;
  --olive-soft: #dfe3d7;
  --shadow: 0 24px 70px rgba(49, 43, 32, 0.14);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --hand: "Kaiti SC", "STKaiti", "KaiTi", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(77, 69, 54, 0.025) 0,
      rgba(77, 69, 54, 0.025) 1px,
      transparent 1px,
      transparent 4px
    ),
    #d9d0c0;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 255, 255, 0.48), transparent 32%),
    radial-gradient(circle at 80% 88%, rgba(110, 94, 69, 0.12), transparent 38%);
  content: "";
  pointer-events: none;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

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

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

::selection {
  color: var(--paper-light);
  background: var(--red-dark);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 9px 13px;
  color: #fff;
  background: var(--ink);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.page-shell {
  position: relative;
  width: min(1220px, calc(100% - 40px));
  min-height: calc(100vh - 40px);
  margin: 20px auto;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 73px, rgba(168, 68, 54, 0.28) 74px, transparent 75px),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 31px,
      rgba(57, 54, 47, 0.055) 32px
    ),
    var(--paper);
  border: 1px solid rgba(59, 54, 44, 0.2);
  box-shadow: var(--shadow);
}

.page-shell::after {
  position: absolute;
  inset: 0;
  z-index: 5;
  border: 10px solid rgba(255, 255, 255, 0.08);
  content: "";
  pointer-events: none;
}

.site-header,
.section-nav,
main,
.site-footer {
  position: relative;
  z-index: 6;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 116px;
  padding: 24px 46px 22px 98px;
  border-bottom: 1px solid var(--line-strong);
}

.identity {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.identity-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--red-dark);
  border: 2px solid var(--red);
  font-family: var(--hand);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  transform: rotate(-3deg);
  transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}

.identity:hover .identity-mark {
  color: var(--paper-light);
  background: var(--red);
  transform: rotate(0deg);
}

.identity-copy {
  display: grid;
  gap: 3px;
}

.identity-copy strong {
  font-size: clamp(21px, 2.3vw, 30px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.eyebrow,
.section-index {
  margin: 0;
  color: var(--red-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.today-label {
  display: grid;
  min-width: 150px;
  gap: 2px;
  text-align: right;
}

.today-label span {
  color: var(--ink-soft);
  font-family: var(--hand);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.today-label time {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.section-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 46px 0 98px;
  background: rgba(244, 239, 227, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.section-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.section-links a {
  position: relative;
  padding: 15px 0 13px;
  color: var(--ink-soft);
  font-size: 13px;
  text-decoration: none;
  letter-spacing: 0.06em;
}

.section-links a::after {
  position: absolute;
  right: 0;
  bottom: 9px;
  left: 0;
  height: 1px;
  background: var(--red);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.section-links a:hover {
  color: var(--ink);
}

.section-links a:hover::after,
.section-links a.is-active::after {
  transform: scaleX(1);
}

.section-links a.is-active {
  color: var(--ink);
}

.print-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 0;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 12px;
}

.print-button span {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.print-button:hover span {
  color: var(--red);
  border-color: var(--red);
  transform: translate(2px, -2px);
}

main {
  padding: 0 46px 0 98px;
}

.opening {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(44px, 7vw, 100px);
  align-items: end;
  min-height: 440px;
  padding: 84px 0 68px;
}

.opening-copy {
  max-width: 710px;
}

.opening h1 {
  max-width: 690px;
  margin: 19px 0 26px;
  font-size: clamp(46px, 7.2vw, 91px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.opening-lead {
  max-width: 630px;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--hand);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.95;
}

.week-note {
  position: relative;
  padding: 26px 0 4px 28px;
  border-left: 1px solid var(--line-strong);
}

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

.week-note p {
  margin: 0 0 12px;
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.week-note strong {
  display: block;
  font-family: var(--hand);
  font-size: 20px;
  line-height: 1.7;
}

.week-meter {
  height: 3px;
  margin: 28px 0 9px;
  overflow: hidden;
  background: var(--paper-deep);
}

.week-meter span {
  display: block;
  width: var(--progress);
  height: 100%;
  background: var(--red);
}

.week-note small {
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.handwritten-divider {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--ink-soft);
  font-family: var(--hand);
  font-size: 14px;
  transform: rotate(-0.4deg);
}

.handwritten-divider::before,
.handwritten-divider::after {
  height: 1px;
  flex: 1;
  background: var(--line-strong);
  content: "";
}

.day-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.8fr);
  gap: 24px;
  padding: 54px 0 82px;
}

.journal-sheet,
.todo-sheet {
  position: relative;
  background: rgba(251, 248, 240, 0.72);
  border: 1px solid var(--line-strong);
}

.journal-sheet {
  padding: clamp(28px, 4vw, 48px);
}

.journal-sheet::before {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 112px;
  height: 22px;
  background: rgba(213, 202, 177, 0.72);
  content: "";
  transform: translateX(-50%) rotate(-1deg);
  box-shadow: 0 1px 2px rgba(47, 41, 31, 0.08);
}

.section-heading,
.notes-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2,
.notes-heading h2,
.closing-note h2 {
  margin: 8px 0 0;
  font-size: clamp(29px, 3.5vw, 42px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.ink-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  color: var(--olive);
  border: 1px solid rgba(82, 98, 82, 0.38);
  font-size: 11px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.ink-badge::before {
  width: 6px;
  height: 6px;
  background: var(--olive);
  border-radius: 50%;
  content: "";
}

.timeline {
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 22px;
  padding: 0 0 34px;
}

.timeline li:last-child {
  padding-bottom: 14px;
}

.timeline time {
  position: relative;
  padding-top: 4px;
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.timeline time::after {
  position: absolute;
  top: 8px;
  right: -16px;
  width: 7px;
  height: 7px;
  background: var(--paper-light);
  border: 2px solid var(--red);
  border-radius: 50%;
  content: "";
}

.timeline li > div {
  position: relative;
  padding: 0 0 30px 18px;
  border-left: 1px solid var(--line-strong);
}

.timeline li:last-child > div {
  padding-bottom: 4px;
  border-left-color: transparent;
}

.timeline h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.timeline p {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--hand);
  line-height: 1.85;
}

.entry-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 2px 8px;
  color: var(--red-dark);
  background: rgba(168, 68, 54, 0.07);
  font-size: 10px;
  letter-spacing: 0.12em;
}

blockquote {
  margin: 30px 0 0;
  padding: 23px 24px 22px;
  color: var(--ink);
  background: rgba(223, 227, 215, 0.52);
  border-left: 3px solid var(--olive);
  font-family: var(--hand);
  font-size: 17px;
  line-height: 1.8;
}

.todo-sheet {
  align-self: start;
  padding: 34px 28px 28px;
  background: #efe9db;
  box-shadow: 5px 6px 0 rgba(66, 58, 44, 0.08);
  transform: rotate(0.35deg);
}

.section-heading.compact {
  align-items: center;
}

.section-heading.compact h2 {
  font-size: 31px;
}

.todo-count {
  display: grid;
  min-width: 46px;
  height: 46px;
  place-items: center;
  color: var(--paper-light);
  background: var(--ink);
  border-radius: 50%;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.todo-progress {
  height: 2px;
  margin: 27px 0 18px;
  overflow: hidden;
  background: var(--line-strong);
}

.todo-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--red);
  transition: width 260ms ease;
}

.todo-filters {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.todo-filters button {
  padding: 5px 9px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 11px;
}

.todo-filters button:hover,
.todo-filters button.is-active {
  color: var(--ink);
  border-color: var(--line-strong);
}

.todo-list {
  min-height: 196px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.todo-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 24px;
  gap: 9px;
  align-items: start;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line-strong);
}

.todo-item input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.todo-check {
  display: grid;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  place-items: center;
  border: 1px solid var(--ink-soft);
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.todo-check::after {
  color: var(--paper-light);
  content: "✓";
  font-family: var(--hand);
  font-size: 14px;
  opacity: 0;
  transform: translateY(-1px) rotate(-8deg);
}

.todo-item input:focus-visible + .todo-check {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.todo-item input:checked + .todo-check {
  background: var(--red);
  border-color: var(--red);
  transform: rotate(-3deg);
}

.todo-item input:checked + .todo-check::after {
  opacity: 1;
}

.todo-text {
  color: var(--ink);
  font-family: var(--hand);
  line-height: 1.55;
  cursor: pointer;
}

.todo-item.is-done .todo-text {
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-color: rgba(168, 68, 54, 0.55);
  text-decoration-thickness: 1px;
}

.todo-delete {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  color: transparent;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0;
}

.todo-delete::before,
.todo-delete::after {
  position: absolute;
  width: 13px;
  height: 1px;
  margin: 11px 0 0 5px;
  background: var(--ink-soft);
  content: "";
  opacity: 0;
  transform: rotate(45deg);
  transition: opacity 150ms ease, background 150ms ease;
}

.todo-delete::after {
  transform: rotate(-45deg);
}

.todo-item:hover .todo-delete::before,
.todo-item:hover .todo-delete::after,
.todo-delete:focus-visible::before,
.todo-delete:focus-visible::after {
  opacity: 0.75;
}

.todo-delete:hover::before,
.todo-delete:hover::after {
  background: var(--red);
  opacity: 1;
}

.todo-empty {
  padding: 42px 8px;
  color: var(--ink-soft);
  font-family: var(--hand);
  text-align: center;
}

.todo-form {
  margin-top: 24px;
}

.todo-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.todo-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border-bottom: 1px solid var(--ink);
}

.todo-form input {
  min-width: 0;
  padding: 9px 3px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-family: var(--hand);
}

.todo-form input::placeholder {
  color: rgba(95, 91, 82, 0.66);
}

.todo-form button {
  padding: 8px 4px 8px 14px;
  color: var(--red-dark);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.local-note,
.noscript-note {
  margin: 9px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.notes-section {
  padding: 72px 0 88px;
  border-top: 1px solid var(--line-strong);
}

.notes-heading {
  align-items: end;
  margin-bottom: 34px;
}

.note-search {
  display: grid;
  width: min(260px, 100%);
  gap: 5px;
}

.note-search span {
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.note-search input {
  width: 100%;
  padding: 8px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  outline: 0;
  font-family: var(--hand);
}

.note-search input:focus {
  border-bottom-color: var(--red);
}

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

.note-card {
  min-height: 310px;
  padding: 26px 25px 24px;
  background: rgba(251, 248, 240, 0.74);
  border-top: 3px solid var(--ink);
  box-shadow: 0 8px 22px rgba(58, 50, 38, 0.06);
  transition: transform 190ms ease, box-shadow 190ms ease;
}

.note-card:nth-child(2) {
  transform: translateY(14px);
}

.note-card:nth-child(3) {
  transform: translateY(-7px) rotate(0.35deg);
}

.note-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(58, 50, 38, 0.11);
}

.note-card-featured {
  border-top-color: var(--red);
}

.note-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.note-card time {
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.note-card h3 {
  margin: 38px 0 15px;
  font-size: 22px;
  line-height: 1.45;
}

.note-card > p,
.note-card details p {
  color: var(--ink-soft);
  font-family: var(--hand);
  line-height: 1.82;
}

.note-card > p {
  margin: 0;
}

.note-card details {
  margin-top: 20px;
  border-top: 1px dashed var(--line-strong);
}

.note-card summary {
  padding-top: 12px;
  color: var(--red-dark);
  cursor: pointer;
  font-size: 11px;
  list-style: none;
}

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

.note-card summary::after {
  margin-left: 7px;
  content: "+";
}

.note-card details[open] summary::after {
  content: "−";
}

.note-card details p {
  margin: 12px 0 0;
  font-size: 14px;
}

.note-card[hidden] {
  display: none;
}

.search-empty {
  margin: 28px 0 0;
  padding: 24px;
  color: var(--ink-soft);
  border: 1px dashed var(--line-strong);
  font-family: var(--hand);
  text-align: center;
}

.closing-note {
  display: grid;
  grid-template-columns: 140px minmax(260px, 0.8fr) minmax(260px, 1fr);
  gap: 30px;
  align-items: start;
  padding: 68px 0 72px;
  border-top: 1px solid var(--line-strong);
}

.closing-note h2 {
  margin-top: -8px;
}

.closing-note > p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--hand);
  font-size: 17px;
  line-height: 1.9;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
  padding: 22px 46px 22px 98px;
  color: var(--ink-soft);
  background: rgba(232, 224, 208, 0.62);
  border-top: 1px solid var(--line-strong);
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  position: relative;
  padding: 8px 0;
  text-decoration: none;
  white-space: nowrap;
}

.site-footer a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: var(--ink-soft);
  content: "";
  transform: scaleX(0.3);
  transform-origin: right;
  transition: transform 180ms ease, background 180ms ease;
}

.site-footer a:hover {
  color: var(--red-dark);
}

.site-footer a:hover::after {
  background: var(--red);
  transform: scaleX(1);
}

@media (prefers-reduced-motion: no-preference) {
  .identity,
  .today-label,
  .opening-copy,
  .week-note,
  .journal-sheet,
  .todo-sheet,
  .notes-section {
    opacity: 0;
    animation: paper-rise 540ms ease forwards;
  }

  .today-label {
    animation-delay: 70ms;
  }

  .opening-copy {
    animation-delay: 110ms;
  }

  .week-note {
    animation-delay: 180ms;
  }

  .journal-sheet {
    animation-delay: 230ms;
  }

  .todo-sheet {
    animation-delay: 290ms;
  }

  .notes-section {
    animation-delay: 340ms;
  }

  @keyframes paper-rise {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 940px) {
  .page-shell {
    width: min(100% - 24px, 760px);
    margin: 12px auto;
    background:
      linear-gradient(90deg, transparent 49px, rgba(168, 68, 54, 0.24) 50px, transparent 51px),
      repeating-linear-gradient(0deg, transparent 0, transparent 31px, rgba(57, 54, 47, 0.05) 32px),
      var(--paper);
  }

  .site-header,
  .section-nav,
  main,
  .site-footer {
    padding-right: 28px;
    padding-left: 72px;
  }

  .opening {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .week-note {
    max-width: 420px;
  }

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

  .todo-sheet {
    width: min(100%, 520px);
    justify-self: end;
  }

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

  .note-card:nth-child(3) {
    grid-column: 1 / -1;
    width: calc(50% - 9px);
    transform: translateX(calc(100% + 18px)) translateY(-7px) rotate(0.35deg);
  }

  .note-card:nth-child(3):hover {
    transform: translateX(calc(100% + 18px)) translateY(-11px);
  }

  .closing-note {
    grid-template-columns: 110px 1fr;
  }

  .closing-note > p:last-child {
    grid-column: 2;
  }
}

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

  .page-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border: 0;
    box-shadow: none;
    background:
      linear-gradient(90deg, transparent 27px, rgba(168, 68, 54, 0.2) 28px, transparent 29px),
      repeating-linear-gradient(0deg, transparent 0, transparent 31px, rgba(57, 54, 47, 0.045) 32px),
      var(--paper);
  }

  .page-shell::after {
    display: none;
  }

  .site-header,
  .section-nav,
  main,
  .site-footer {
    padding-right: 18px;
    padding-left: 45px;
  }

  .site-header {
    min-height: 98px;
  }

  .identity {
    gap: 11px;
  }

  .identity-mark {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  .identity-copy .eyebrow {
    display: none;
  }

  .identity-copy strong {
    font-size: 20px;
  }

  .today-label {
    min-width: 0;
  }

  .today-label time {
    font-size: 13px;
  }

  .today-label span {
    font-size: 11px;
  }

  .section-nav {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .section-nav::-webkit-scrollbar {
    display: none;
  }

  .section-links {
    gap: 22px;
  }

  .section-links a {
    white-space: nowrap;
  }

  .print-button {
    display: none;
  }

  .opening {
    min-height: 0;
    padding: 64px 0 55px;
  }

  .opening h1 {
    margin-top: 15px;
    font-size: clamp(43px, 13vw, 64px);
  }

  .opening-lead {
    font-size: 17px;
  }

  .handwritten-divider {
    gap: 12px;
    font-size: 12px;
  }

  .day-layout {
    padding: 46px 0 64px;
  }

  .journal-sheet {
    padding: 31px 22px 26px;
  }

  .section-heading {
    gap: 14px;
  }

  .section-heading h2,
  .notes-heading h2,
  .closing-note h2 {
    font-size: 30px;
  }

  .ink-badge {
    padding: 5px 7px;
    font-size: 9px;
  }

  .timeline li {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
  }

  .timeline time::after {
    right: -12px;
  }

  .timeline li > div {
    padding-left: 15px;
  }

  .todo-sheet {
    width: 100%;
    padding: 30px 22px 25px;
    transform: rotate(0);
  }

  .notes-section {
    padding: 58px 0 70px;
  }

  .notes-heading {
    display: grid;
  }

  .note-search {
    width: 100%;
  }

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

  .note-card,
  .note-card:nth-child(2),
  .note-card:nth-child(3),
  .note-card:nth-child(3):hover {
    grid-column: auto;
    width: 100%;
    min-height: 0;
    transform: none;
  }

  .note-card h3 {
    margin-top: 26px;
  }

  .closing-note {
    grid-template-columns: 1fr;
    gap: 19px;
    padding: 54px 0 58px;
  }

  .closing-note > p:last-child {
    grid-column: auto;
  }

  .site-footer {
    display: grid;
    justify-items: start;
    min-height: 116px;
    padding-top: 24px;
    padding-bottom: 24px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .page-shell {
    width: 100%;
    margin: 0;
    border: 0;
    box-shadow: none;
  }

  .section-nav,
  .todo-form,
  .todo-filters,
  .note-search,
  .local-note {
    display: none;
  }

  .opening {
    min-height: 320px;
  }

  .note-card,
  .todo-sheet {
    break-inside: avoid;
  }
}
