:root {
  color-scheme: light;
  --paper: #f4f0e6;
  --paper-deep: #e9e1d1;
  --card: #fffdf7;
  --ink: #171714;
  --muted: #625f57;
  --line: #bbb3a4;
  --line-soft: #d8d0c1;
  --blue: #1746a2;
  --blue-dark: #0f2d70;
  --orange: #e85d2a;
  --yellow: #f4d35e;
  --green: #2b7a4b;
  --red: #a43127;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  touch-action: manipulation;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(23, 70, 162, 0.38);
  outline-offset: 3px;
}

.paper-grid {
  position: absolute;
  inset: 0;
  min-height: 100%;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 70, 162, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 70, 162, 0.055) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, black 0, transparent 760px);
}

.skip-link {
  position: fixed;
  left: 14px;
  top: -100px;
  z-index: 100;
  border: 2px solid var(--ink);
  background: var(--card);
  padding: 10px 14px;
  font-weight: 900;
  text-decoration: none;
}

.skip-link:focus-visible {
  top: 14px;
}

.site-header,
.hero,
.step-rail,
.workspace,
.approved-record,
.method,
.tutorial-shelf,
.site-footer {
  width: min(1220px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--ink);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--blue);
  color: white;
  font-size: 0.78rem;
  font-weight: 950;
  transform: rotate(-2deg);
}

.brand > span:last-child {
  display: grid;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1;
}

.brand b {
  font-weight: 400;
}

.brand small {
  margin-top: 5px;
  color: var(--muted);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.site-header nav a,
.site-footer a {
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
}

.site-header nav a:hover,
.site-footer a:hover {
  color: var(--blue);
}

.local-badge {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.local-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 70px;
  align-items: center;
  padding: 72px 0 58px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.workspace-heading h2,
.approved-heading h2,
.method h2,
.tutorial-shelf h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.96;
  text-wrap: balance;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(3.7rem, 7vw, 7.5rem);
}

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

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

.hero-lede {
  max-width: 700px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.55;
}

.hero-actions,
.input-actions,
.record-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0 16px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.button.secondary {
  background: var(--card);
}

.button.approve {
  width: 100%;
  background: var(--ink);
  color: white;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  transform: none;
  box-shadow: none;
}

.text-button {
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  padding: 5px 0;
  font-weight: 850;
}

.text-button.danger {
  color: var(--red);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.trust-strip span::before {
  content: "✓";
  margin-right: 7px;
  color: var(--green);
}

.proof-preview {
  position: relative;
  border: 1px solid var(--ink);
  border-top: 7px solid var(--orange);
  background: var(--card);
  box-shadow: none;
}

.proof-preview::before {
  content: "CHECK THE SOURCE";
  position: absolute;
  right: -18px;
  top: -22px;
  background: var(--orange);
  color: white;
  padding: 8px 12px;
  font-size: 0.63rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  transform: none;
}

.proof-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proof-heading b {
  color: var(--orange);
}

.proof-preview article {
  padding: 20px 18px;
  border-bottom: 1px solid var(--line);
}

.proof-preview article small,
.review-card .item-type {
  color: var(--blue);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.proof-preview article strong {
  display: block;
  margin-top: 9px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1.25;
}

.proof-preview blockquote,
.evidence-quote {
  margin: 14px 0 0;
  border-left: 4px solid var(--yellow);
  color: var(--muted);
  padding-left: 12px;
  font-size: 0.84rem;
  line-height: 1.4;
}

.proof-preview .warning p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 900;
}

.proof-preview .warning p i {
  width: 7px;
  height: 7px;
  background: var(--red);
}

.proof-preview footer {
  padding: 14px 18px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.step-rail {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  border-block: 1px solid var(--ink);
  padding: 16px 0;
}

.step-rail span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 900;
}

.step-rail span b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: var(--ink);
  color: white;
  font-size: 0.7rem;
}

.step-rail i {
  color: var(--line);
  font-style: normal;
}

.workspace {
  padding: 82px 0 96px;
}

.workspace-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  gap: 38px;
  align-items: end;
  margin-bottom: 32px;
}

.workspace-heading h2,
.approved-heading h2,
.method h2,
.tutorial-shelf h2 {
  font-size: clamp(2.5rem, 5vw, 5rem);
}

.workspace-heading > p,
.method-copy > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 750px;
  border: 1px solid var(--ink);
  background: var(--card);
}

.notes-panel,
.review-panel {
  min-width: 0;
  padding: 24px;
}

.notes-panel {
  border-right: 1px solid var(--ink);
  background: rgba(255, 253, 247, 0.84);
}

.panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.panel-heading span {
  color: var(--blue);
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-heading h3 {
  margin: 5px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 500;
}

.notes-panel label,
.approval-panel > label:first-child,
.review-card label {
  display: block;
  margin: 16px 0 7px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.notes-panel input,
.notes-panel textarea,
.approval-panel input[type="text"],
.review-card input,
.review-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: white;
  color: var(--ink);
  padding: 11px 12px;
}

.notes-panel textarea {
  min-height: 380px;
  resize: vertical;
  line-height: 1.55;
}

.notes-panel input:focus-visible,
.notes-panel textarea:focus-visible,
.approval-panel input:focus-visible,
.review-card input:focus-visible,
.review-card textarea:focus-visible {
  border-color: var(--blue);
  outline: 2px solid rgba(23, 70, 162, 0.16);
}

.format-hint,
.input-message,
.approval-panel > p,
#exportMessage {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.format-hint code {
  background: var(--paper-deep);
  color: var(--blue-dark);
  padding: 2px 4px;
  font-weight: 850;
}

.input-message.error {
  color: var(--red);
  font-weight: 850;
}

.review-panel {
  display: grid;
  align-content: start;
  background:
    linear-gradient(90deg, transparent 0 38px, rgba(232, 93, 42, 0.1) 38px 39px, transparent 39px),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(23, 70, 162, 0.055) 31px 32px);
}

.review-empty {
  max-width: 460px;
  align-self: center;
  justify-self: center;
  padding: 34px;
  text-align: center;
}

.review-empty > span {
  display: inline-block;
  border-bottom: 8px solid var(--yellow);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.review-empty h3 {
  margin: 18px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  font-weight: 500;
}

.review-empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.review-content {
  min-width: 0;
}

.review-heading b {
  border: 1px solid var(--orange);
  color: var(--orange);
  padding: 7px 9px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
  border: 1px solid var(--line);
  background: white;
}

.review-summary div {
  padding: 10px;
  border-right: 1px solid var(--line);
}

.review-summary div:last-child {
  border-right: 0;
}

.review-summary b,
.review-summary span {
  display: block;
}

.review-summary b {
  font-size: 1.35rem;
}

.review-summary span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.review-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.review-filter button {
  min-height: 34px;
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 850;
}

.review-filter button.active,
.review-filter button:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.review-items {
  display: grid;
  gap: 12px;
}

.review-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  padding: 15px;
  box-shadow: 3px 3px 0 rgba(23, 70, 162, 0.1);
}

.review-card.hidden {
  display: none;
}

.review-card.rejected {
  opacity: 0.58;
}

.item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.item-keep {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  margin: 0 !important;
  color: var(--ink) !important;
  font-size: 0.7rem !important;
}

.item-text {
  min-height: 66px;
  resize: vertical;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.35;
}

.item-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.missing-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  color: var(--red);
  font-size: 0.69rem;
  font-weight: 900;
}

.missing-flag::before {
  content: "!";
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  background: var(--red);
  color: white;
  font-size: 0.64rem;
}

.approval-panel {
  margin-top: 18px;
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 16px;
}

.approval-check {
  display: flex !important;
  align-items: start;
  gap: 10px;
  margin: 15px 0 !important;
  color: var(--ink) !important;
  font-size: 0.78rem !important;
  line-height: 1.4;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.approval-check input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.approved-record {
  margin-bottom: 96px;
  border: 1px solid var(--ink);
  background: var(--card);
  box-shadow: 12px 12px 0 var(--green);
  padding: 30px;
}

.approved-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ink);
}

.approved-heading > span {
  border: 2px solid var(--green);
  color: var(--green);
  padding: 9px 12px;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

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

.record-column {
  min-width: 0;
}

.record-column h3 {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.record-column article {
  margin-bottom: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.record-column strong,
.record-column small {
  display: block;
}

.record-column strong {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.3;
}

.record-column small {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.4;
}

.method {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  padding: 88px 0;
  border-top: 1px solid var(--ink);
}

.method-copy > p {
  margin-top: 22px;
}

.method-copy > a {
  display: inline-block;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 900;
}

.method-steps {
  margin: 0;
  padding: 0;
  border: 1px solid var(--ink);
  list-style: none;
}

.method-steps li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.method-steps li:last-child {
  border-bottom: 0;
}

.method-steps span {
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.method-steps strong {
  line-height: 1.4;
}

.tutorial-shelf {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 54px;
  align-items: start;
  padding: 88px 0;
  border-top: 1px solid var(--ink);
}

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

.tutorial-grid a {
  min-height: 260px;
  display: grid;
  align-content: start;
  gap: 16px;
  background: var(--card);
  padding: 20px;
  text-decoration: none;
  transition: background 180ms var(--ease), color 180ms var(--ease);
}

.tutorial-grid a:hover {
  background: var(--blue);
  color: white;
}

.tutorial-grid span {
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.tutorial-grid strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.2;
}

.tutorial-grid small {
  color: var(--muted);
  line-height: 1.45;
}

.tutorial-grid a:hover small,
.tutorial-grid a:hover span {
  color: rgba(255, 255, 255, 0.8);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-size: 0.8rem;
}

.site-footer > div {
  display: grid;
  gap: 4px;
}

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

.site-footer p {
  margin: 0;
}

.noscript-message {
  position: fixed;
  inset: auto 16px 16px;
  z-index: 100;
  border: 2px solid var(--ink);
  background: var(--yellow);
  padding: 16px;
  font-weight: 850;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *,
  .proof-preview {
    animation: rise 720ms var(--ease) both;
  }

  .hero-copy > *:nth-child(2) {
    animation-delay: 80ms;
  }

  .hero-copy > *:nth-child(3) {
    animation-delay: 150ms;
  }

  .hero-copy > *:nth-child(4) {
    animation-delay: 220ms;
  }

  .hero-copy > *:nth-child(5) {
    animation-delay: 290ms;
  }

  .proof-preview {
    animation-delay: 220ms;
  }
}

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

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .hero,
  .workspace-grid,
  .method,
  .tutorial-shelf {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 44px;
    padding-top: 56px;
  }

  .proof-preview {
    max-width: 620px;
  }

  .notes-panel {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .record-preview,
  .tutorial-grid {
    grid-template-columns: 1fr;
  }

  .tutorial-grid a {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .site-header,
  .hero,
  .step-rail,
  .workspace,
  .approved-record,
  .method,
  .tutorial-shelf,
  .site-footer {
    width: min(100% - 22px, 1220px);
  }

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

  .local-badge {
    font-size: 0.62rem;
  }

  .hero {
    min-height: auto;
    padding: 48px 0;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .proof-preview {
    margin-right: 8px;
    box-shadow: 8px 8px 0 var(--blue);
  }

  .step-rail {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .step-rail i {
    display: none;
  }

  .workspace {
    padding: 58px 0 70px;
  }

  .workspace-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .notes-panel,
  .review-panel {
    padding: 16px;
  }

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

  .review-summary div:nth-child(2) {
    border-right: 0;
  }

  .review-summary div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .item-meta {
    grid-template-columns: 1fr;
  }

  .approved-record {
    padding: 18px;
    box-shadow: 7px 7px 0 var(--green);
  }

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

  .method,
  .tutorial-shelf {
    gap: 32px;
    padding: 60px 0;
  }

  .method-steps li {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

@media print {
  .site-header,
  .hero,
  .step-rail,
  .workspace,
  .method,
  .tutorial-shelf,
  .site-footer,
  .record-actions {
    display: none !important;
  }

  body {
    background: white;
  }

  .approved-record {
    display: block !important;
    width: 100%;
    margin: 0;
    border: 0;
    box-shadow: none;
  }
}

.tutorial-shell {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
  padding: 74px 0 100px;
}

.tutorial-hero {
  max-width: 920px;
  padding-bottom: 64px;
}

.tutorial-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 6.3rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.98;
  text-wrap: balance;
}

.tutorial-hero > p:not(.eyebrow) {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

.tutorial-warning {
  max-width: 760px;
  margin-top: 28px;
  border: 1px solid var(--ink);
  border-left: 8px solid var(--orange);
  background: var(--card);
  padding: 18px;
}

.tutorial-warning strong {
  color: var(--orange);
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.tutorial-warning p {
  margin: 8px 0 0;
  line-height: 1.5;
}

.tutorial-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: 70px;
  align-items: start;
}

.tutorial-toc {
  position: sticky;
  top: 28px;
  display: grid;
  border-top: 1px solid var(--ink);
}

.tutorial-toc span,
.tutorial-toc a {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.tutorial-toc span {
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.tutorial-toc a {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

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

.tutorial-body > section {
  padding: 12px 0 62px;
  scroll-margin-top: 24px;
}

.tutorial-body > section + section {
  border-top: 1px solid var(--ink);
  padding-top: 46px;
}

.step-number {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--orange);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tutorial-body h2,
.tutorial-next h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.tutorial-body p,
.tutorial-body li {
  color: var(--muted);
  line-height: 1.65;
}

.tutorial-body ul,
.tutorial-body ol {
  padding-left: 24px;
}

.tutorial-body code {
  background: var(--paper-deep);
  color: var(--blue-dark);
  padding: 2px 4px;
  font-size: 0.9em;
}

.tutorial-body pre {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fffdf7;
  padding: 18px;
  line-height: 1.55;
}

.tutorial-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.source-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 24px;
  border: 1px solid var(--line);
  background: var(--line);
}

.source-links a {
  background: var(--card);
  color: var(--blue);
  padding: 12px;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.source-links a:hover {
  background: var(--blue);
  color: white;
}

.tutorial-checklist {
  display: grid;
  gap: 11px;
  border: 1px solid var(--ink) !important;
  background: var(--card);
  padding: 28px !important;
}

.tutorial-checklist h2 {
  margin-bottom: 12px;
}

.tutorial-checklist label {
  display: flex;
  align-items: start;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  font-weight: 750;
  line-height: 1.4;
}

.tutorial-checklist input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.tutorial-next {
  border-top: 8px solid var(--yellow);
  padding-top: 32px;
}

.tutorial-next > span {
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tutorial-next .button {
  margin-top: 22px;
}

@media (max-width: 820px) {
  .tutorial-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .tutorial-toc {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .tutorial-toc span {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .tutorial-shell {
    width: min(100% - 22px, 1120px);
    padding-top: 48px;
  }

  .tutorial-hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.4rem);
  }

  .tutorial-toc,
  .source-links {
    grid-template-columns: 1fr;
  }
}
