.notebook {
  padding-block: clamp(48px, 8vw, 104px) clamp(64px, 9vw, 120px);
}

.notebook-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, .7fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  padding-bottom: clamp(30px, 5vw, 56px);
  border-bottom: 1px solid var(--line, #d9ddcf);
}

.notebook-kicker {
  margin: 0 0 14px;
  color: var(--clay, #a04b34);
  font-size: .9rem;
  font-weight: 750;
}

.notebook-intro h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.55rem, 8vw, 7.4rem);
  line-height: .86;
}

.notebook-intro > p {
  max-width: 31ch;
  margin: 0;
  color: var(--tone, #3d5b4d);
  font-size: 1.125rem;
  line-height: 1.55;
}

.notebook-layout {
  display: grid;
  grid-template-columns: minmax(240px, .65fr) minmax(0, 1.35fr);
  gap: clamp(22px, 6vw, 84px);
  margin-top: clamp(28px, 5vw, 58px);
}

.notebook h2 {
  margin: 0 0 23px;
  font-size: clamp(1.85rem, 4vw, 3.2rem);
  line-height: 1;
}

.notebook-aside {
  align-self: start;
  padding: clamp(20px, 3.4vw, 37px);
  background: var(--leaf, #c8d5a7);
  color: var(--ink, #172e27);
  border-radius: 2px;
}

.notebook-aside label, .notebook-steps label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
}

.notebook-aside label span {
  font-weight: 400;
}

.notebook input, .notebook select, .notebook textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 11px 12px;
  background: var(--white, #fffcf3);
  border: 1px solid #89998b;
  border-radius: 2px;
  color: var(--ink, #172e27);
  font: inherit;
}

.notebook input {
  margin: 0 0 17px;
}

.notebook input:last-child {
  margin-bottom: 0;
}

.notebook textarea {
  display: block;
  min-height: 70px;
  resize: vertical;
  line-height: 1.45;
}

.notebook textarea::placeholder, .notebook input::placeholder {
  color: #536359;
  opacity: 1;
}

.notebook input:focus-visible, .notebook select:focus-visible,
.notebook textarea:focus-visible, .notebook-print-button:focus-visible {
  outline: 2px solid var(--ink, #172e27);
  outline-offset: 2px;
}

.notebook-field-note, .notebook-storage {
  margin: 7px 0 17px;
  font-size: .88rem;
  line-height: 1.4;
}

.notebook-field-note:empty {
  min-height: .35em;
}

.notebook-storage {
  margin: 8px 0 0;
  color: var(--tone, #3d5b4d);
}

.notebook-finish {
  margin-top: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--line, #d9ddcf);
}

.notebook-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 18px;
}

.notebook-actions .button, .notebook-print-button {
  box-sizing: border-box;
  min-height: 44px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.notebook-print-button {
  padding: 6px 4px;
  border: 0;
  background: transparent;
  color: var(--ink, #172e27);
  text-align: left;
  text-decoration: underline;
  text-underline-offset: .22em;
}

.notebook-finish #plan-status {
  margin: 7px 0 0;
  min-height: 1.4em;
  font-weight: 700;
}

.notebook-finish #plan-status:empty {
  margin: 0;
  min-height: 0;
}

.notebook-sheet {
  min-width: 0;
}

.notebook-steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notebook-steps li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: clamp(9px, 2vw, 22px);
  padding-block: 17px;
  border-top: 1px solid var(--line, #d9ddcf);
}

.notebook-duration {
  padding-top: 2px;
  color: var(--clay, #a04b34);
  font-weight: 750;
  white-space: nowrap;
}

.notebook-example {
  padding: 8px 0 2px;
  border: 0;
  background: none;
  color: var(--tone, #3d5b4d);
  font: inherit;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}

.notebook-print-sheet {
  display: none;
}

.notebook-notice {
  margin-block: 16px;
  color: var(--clay, #a04b34);
}

@media (max-width: 720px) {
  .notebook-intro, .notebook-layout { grid-template-columns: 1fr; }
  .notebook-intro h1 { max-width: none; line-height: .94; }
  .notebook-intro > p { max-width: 41ch; }
  .notebook-steps li { grid-template-columns: 51px minmax(0, 1fr); }
  .notebook-nav nav { flex-wrap: wrap; justify-content: flex-end; }
  .notebook-actions .button { width: 100%; }
}

@media print {
  @page { size: letter portrait; margin: 15mm; }
  .notebook-page { color: #111; background: white; }
  .notebook-page > :not(.notebook), .notebook > :not(.notebook-print-sheet) { display: none !important; }
  .notebook { width: auto; max-width: none; margin: 0; padding: 0; }
  .notebook-print-sheet { display: block; }
  .notebook-print-kicker { margin: 0 0 5mm; font-size: 11pt; font-weight: 700; }
  .notebook-print-sheet h1 { margin: 0 0 3mm; font-size: 26pt; line-height: 1.05; }
  #print-details { margin: 0 0 6mm; font-size: 11pt; }
  .notebook-print-steps { list-style: none; padding: 0; margin: 0; }
  .notebook-print-steps li { break-inside: avoid; border-top: 1px solid #888; padding: 4mm 0 5mm; }
  .notebook-print-steps h2 { margin: 0 0 3mm; font-size: 14pt; }
  .notebook-print-steps li div { min-height: 24mm; font-size: 11pt; white-space: pre-wrap; overflow-wrap: anywhere; }
  .notebook-print-steps li div:empty { border-bottom: 1px solid #bbb; }
}
