.guide-page {
  --guide-paper: var(--paper, #f8f2eb);
  --guide-ink: var(--ink, #211426);
  --guide-plum: #281830;
  --guide-muted: #625965;
  --guide-rule: #d9ced8;
  --guide-accent: #ff755f;
  color: var(--guide-ink);
  background: var(--guide-paper);
}

.guide-skip {
  position: fixed;
  z-index: 20;
  top: 1rem;
  left: 1rem;
  padding: .75rem 1rem;
  background: #fff;
  color: #211426;
  transform: translateY(-180%);
}

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

.guide-hero {
  overflow: hidden;
  background: var(--guide-plum);
  color: #fff6f0;
}

.guide-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(12rem, .7fr);
  align-items: center;
  gap: clamp(2.25rem, 6vw, 6rem);
  padding-block: clamp(3.4rem, 7.5vw, 7.5rem);
}

.guide-hero-copy {
  min-width: 0;
}

.guide-trail {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
  margin-block-end: 1.85rem;
  color: #f3c9da;
  font-size: .95rem;
  line-height: 1.4;
  font-weight: 600;
}

.guide-trail a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .2rem;
}

.guide-hero h1 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--display, Georgia, serif);
  font-size: clamp(3.2rem, 8.1vw, 7.7rem);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: .91;
  text-wrap: balance;
}

.guide-hero-copy > p {
  max-width: 36rem;
  margin: 1.65rem 0 0;
  color: #f2dce9;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.guide-hero-art {
  position: relative;
  display: grid;
  isolation: isolate;
  align-items: end;
  justify-items: center;
  width: min(100%, 22rem);
  min-width: 0;
  aspect-ratio: 1.03;
  margin-inline: auto;
  padding: 1rem;
  transform: rotate(7deg);
  font-family: var(--display, Georgia, serif);
  color: var(--guide-plum);
  background: var(--guide-accent);
  border-radius: 49% 49% 1rem 1rem;
}

.guide-hero-art::before {
  position: absolute;
  z-index: -1;
  content: "";
  inset: 8% 10% 12%;
  border-radius: 49% 49% .25rem .25rem;
  border: 1px solid currentColor;
  opacity: .52;
}

.guide-hero-art::after {
  position: absolute;
  top: 18%;
  left: calc(50% - .4rem);
  width: .8rem;
  height: .8rem;
  content: "";
  border-radius: 50%;
  background: var(--guide-plum);
}

.guide-hero-art span {
  display: block;
  margin-block-end: .6em;
  font-size: clamp(2rem, 4.3vw, 4.35rem);
  line-height: .84;
  font-weight: 600;
  letter-spacing: -.07em;
  text-align: center;
}

.guide-first .guide-hero-art {
  --guide-accent: #e8cee7;
  border-radius: 50%;
  transform: rotate(-9deg);
}

.guide-first .guide-hero-art::before {
  border-radius: 50%;
}

.guide-packing .guide-hero-art {
  --guide-accent: #e9b869;
  border-radius: .4rem;
  transform: rotate(8deg);
}

.guide-packing .guide-hero-art::before {
  border-radius: .15rem;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(11rem, .45fr) minmax(0, 1.55fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  padding-block: clamp(2.5rem, 6vw, 6rem);
}

.guide-sidebar {
  position: sticky;
  top: 2rem;
  align-self: start;
  max-width: 16.5rem;
}

.guide-sidebar ul {
  display: grid;
  gap: .65rem;
  margin: .9rem 0 1.75rem;
  padding: 0;
  list-style: none;
}

.guide-sidebar a,
.guide-content a:not(.button) {
  color: #482952;
  text-decoration: underline;
  text-underline-offset: .17em;
  text-decoration-thickness: .08em;
}

.guide-sidebar a:hover,
.guide-content a:not(.button):hover {
  color: #86416e;
}

.guide-label {
  margin: 0;
  color: #703f63;
  font-size: .87rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.guide-checked {
  padding-block-start: .9rem;
  border-block-start: 1px solid var(--guide-rule);
  color: var(--guide-muted);
  font-size: .9rem;
  line-height: 1.5;
}

.guide-content {
  width: 100%;
  max-width: 47rem;
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.65;
}

.guide-content > section {
  margin-block-start: clamp(2.4rem, 6vw, 4.3rem);
  scroll-margin-top: 6rem;
}

.guide-content h2 {
  margin: 0 0 .9rem;
  font-family: var(--display, Georgia, serif);
  font-size: clamp(1.9rem, 3.8vw, 3.45rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.guide-content p {
  margin-block: 0 .9em;
  text-wrap: pretty;
}

.guide-content > .guide-lead {
  margin: 0;
  padding-block-end: 1.35rem;
  border-block-end: 1px solid var(--guide-rule);
  font-size: clamp(1.16rem, 2.1vw, 1.43rem);
  line-height: 1.5;
}

.guide-inspection,
.guide-example-steps {
  display: grid;
  margin: 1.65rem 0 0;
}

.guide-inspection > div,
.guide-example-steps > div {
  display: grid;
  grid-template-columns: minmax(7.5rem, .6fr) minmax(0, 1.4fr);
  gap: .65rem 1.8rem;
  padding: .9rem 0;
  border-block-start: 1px solid var(--guide-rule);
}

.guide-inspection dt,
.guide-example-steps dt {
  font-weight: 750;
}

.guide-inspection dd,
.guide-example-steps dd {
  margin: 0;
}

.guide-content .guide-example {
  padding: clamp(1.2rem, 4vw, 2.5rem);
  border-radius: .7rem;
  background: #eee1ed;
}

.guide-example .guide-label {
  margin-block-end: 1.05rem;
}

.guide-example > p:last-child {
  margin-block-end: 0;
}

.guide-table-wrap {
  margin: 1.35rem 0;
  overflow-wrap: anywhere;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: max(.94rem, .91em);
  line-height: 1.48;
}

.guide-table caption {
  margin-block-end: .5rem;
  color: var(--guide-muted);
  text-align: left;
  font-size: .93rem;
}

.guide-table thead {
  color: #fff7f2;
  background: var(--guide-plum);
}

.guide-table th,
.guide-table td {
  padding: .7rem .65rem;
  vertical-align: top;
}

.guide-table tbody tr {
  border-block-end: 1px solid var(--guide-rule);
}

.guide-table tbody th {
  padding-inline-start: .2rem;
}

.guide-next {
  padding-block: 1.45rem;
  border-block: 1px solid var(--guide-rule);
}

.guide-next ul {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.2rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.guide-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem 1.5rem;
  padding-block: 1.5rem;
}

.guide-footer .wordmark {
  margin-inline-end: auto;
}

.guide-footer > a:not(.wordmark) {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .17em;
}

@media (max-width: 53rem) {
  .guide-hero-inner {
    grid-template-columns: minmax(0, 1.8fr) minmax(8rem, .65fr);
  }

  .guide-layout {
    gap: 2rem;
  }
}

@media (max-width: 40rem) {
  .guide-hero-inner,
  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-hero-inner {
    padding-block: 2.6rem 2.75rem;
  }

  .guide-hero-art {
    display: none;
  }

  .guide-hero h1 {
    max-width: 13ch;
  }

  .guide-sidebar {
    position: static;
    max-width: none;
    padding-block-end: .85rem;
    border-block-end: 1px solid var(--guide-rule);
  }

  .guide-sidebar ul {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    margin-block-end: .65rem;
  }

  .guide-checked {
    margin-block: 0;
    padding-block-start: 0;
    border: 0;
  }
}

@media (max-width: 27rem) {
  .guide-inspection > div,
  .guide-example-steps > div {
    grid-template-columns: 1fr;
    gap: .22rem;
  }
}

@media print {
  .guide-page {
    color: #000;
    background: #fff;
  }

  .guide-page .site-header,
  .guide-page .site-footer,
  .guide-sidebar nav,
  .guide-hero-art,
  .guide-trail,
  .guide-next {
    display: none !important;
  }

  .guide-hero,
  .guide-hero-copy > p {
    color: #000;
    background: #fff;
  }

  .guide-hero-inner,
  .guide-layout {
    display: block;
    padding-block: .5rem;
  }

  .guide-hero h1 {
    max-width: none;
    font-size: 30pt;
  }

  .guide-content > section {
    margin-block-start: 1rem;
  }

  .guide-sidebar {
    position: static;
  }

  .guide-table thead {
    color: #000;
    background: #fff;
  }

  .guide-table tr,
  .guide-inspection > div,
  .guide-example-steps > div {
    break-inside: avoid;
  }
}
