@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/Literata.woff2") format("woff2");
}

:root {
  --c-paper: #F8F3E6;
  --c-ink: #302D24;
  --c-muted: #69614E;
  --c-accent: #785B18;
  --c-rule: #D8CEB6;
  --c-tint: #F0E8D4;
  --f-heading: "Literata", serif;
  --f-body: "Literata", serif;
  --f-body-size: 1.0625rem;
  --f-title: clamp(2.25rem, 4.6vw, 3.875rem);
  --f-section: clamp(1.7rem, 2.3vw, 2.125rem);
  --f-deck: 1.125rem;
  --f-subheading: 1.4rem;
  --f-source: 0.8125rem;
  --f-note-title: 0.9375rem;
  --f-list-marker: 0.875rem;
  --f-table: 0.875rem;
  --f-fee-caption: 0.8125rem;
  --f-faq-question: 0.9375rem;
  --f-faq-marker: 1.25rem;
  --f-graphic-title: 0.75rem;
  --f-graphic-label: 0.75rem;
  --f-graphic-number: 1.5rem;
  --f-graphic-note: 0.9375rem;
  --f-graphic-caveat: 0.8125rem;
  --f-graphic-step: 1.25rem;
  --f-graphic-link: 0.8125rem;
  --f-graphic-fact: 1rem;
  --f-graphic-receipt-word: 1.0625rem;
  --f-graphic-receipt-amount: 1.75rem;
  --f-graphic-paid: 0.8125rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 2rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font: var(--f-body-size)/1.7 var(--f-body);
}

a {
  color: var(--c-accent);
  text-decoration-thickness: 0.0625rem;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 0.125rem;
}

:focus-visible {
  outline: 0.1875rem solid var(--c-accent);
  outline-offset: 0.25rem;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--f-heading);
  font-weight: 500;
  text-wrap: pretty;
}

h1 {
  font-size: var(--f-title);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: var(--f-section);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: var(--f-subheading);
  line-height: 1.35;
  margin: 1.75rem 0 0.75rem;
}

p {
  margin-bottom: 1.25rem;
}

.guide__skip {
  position: absolute;
  left: 1rem;
  top: -8rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--c-paper);
}

.guide__skip:focus {
  top: 1rem;
}

.guide__shell {
  width: min(100% - 2.5rem, 72rem);
  margin-inline: auto;
}

.guide__masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  padding-block: 1.25rem;
  border-bottom: 0.1875rem double var(--c-rule);
  font-family: var(--f-heading);
  font-size: 0.875rem;
}

.guide__brand {
  display: block;
  width: 11.8393rem;
  max-width: 100%;
  color: var(--c-ink);
  font-weight: 500;
  text-decoration: none;
  line-height: 0;
}

.guide__brand svg {
  display: block;
  width: 100%;
  height: auto;
}

.guide__masthead-note {
  color: var(--c-muted);
  font-size: 0.75rem;
  font-style: italic;
}

@media (max-width: 47.99rem) {
  .guide__masthead {
    justify-items: center;
    text-align: center;
  }
}

.guide__hero {
  padding-block: 2.75rem 2rem;
  margin-bottom: 2.75rem;
  border-bottom: 0.1875rem double var(--c-rule);
  text-align: center;
}

.guide__hero-body {
  max-width: 52rem;
  margin-inline: auto;
}

.guide__eyebrow,
.guide__chapter {
  font-size: 0.6875rem;
  line-height: 1.5;
}

.guide__eyebrow {
  margin-bottom: 1.25rem;
  color: var(--c-accent);
  letter-spacing: 0.1em;
}

.guide__deck {
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: 1.75rem;
  font-size: var(--f-deck);
  line-height: 1.5;
}

.guide__metadata {
  display: block;
  color: var(--c-muted);
  font-size: 0.75rem;
}

.guide__metadata p {
  margin: 0;
}

.guide__metadata p + p {
  margin-top: 0.5rem;
}

.guide__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.guide__toc {
  font-size: 0.8125rem;
}

.guide__toc--mobile {
  margin-bottom: 2.75rem;
  border-block: 0.0625rem solid var(--c-rule);
}

.guide__toc--mobile > summary {
  padding-block: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.guide__toc--desktop {
  display: none;
}

.guide__toc-title {
  margin-bottom: 1rem;
  color: var(--c-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.guide__toc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.guide__toc-list a {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: 0.25rem;
  padding-block: 0.625rem;
  color: var(--c-ink);
  font-size: 0.8125rem;
  line-height: 1.45;
  text-decoration: none;
}

.guide__toc-list a:hover {
  color: var(--c-accent);
  text-decoration: underline;
}

.guide__toc-number {
  padding-top: 0.125rem;
  color: var(--c-muted);
  font-size: 0.6875rem;
}

.guide__toc-note {
  max-width: 23ch;
  padding-top: 1rem;
  border-top: 0.0625rem solid var(--c-rule);
  color: var(--c-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.guide__article {
  min-width: 0;
  max-width: 68ch;
}

.guide__section {
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  scroll-margin-top: 1.5rem;
}

.guide__section h2 {
  padding-top: 1.25rem;
  border-top: 0.0625rem solid var(--c-rule);
}

.guide__chapter {
  margin-bottom: 1rem;
  color: var(--c-accent);
  letter-spacing: 0.07em;
}

.guide__footer {
  padding-block: 2rem 2.5rem;
  margin-top: 3rem;
  background: var(--c-ink);
  box-shadow: 0 0 0 100vmax var(--c-ink);
  clip-path: inset(0 -100vmax);
  color: #D6CDB8;
  font-size: 0.8125rem;
}

.guide__footer p {
  margin: 0;
}

.guide__footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 2rem;
}

.guide__footer-row--legal {
  align-items: baseline;
  padding-top: 1.25rem;
  margin-top: 1.25rem;
  border-top: 0.0625rem solid #5A5444;
}

.guide__footer-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--c-paper);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.guide__footer-mark {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--c-paper);
}

.guide__footer-note {
  font-style: italic;
}

.guide__footer a {
  color: var(--c-paper);
}

@media (min-width: 48rem) {
  .guide__shell {
    width: min(100% - 5rem, 72rem);
  }

  .guide__masthead {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
  }

  .guide__hero {
    padding-block: 4rem 3rem;
  }
}

@media (min-width: 64rem) {
  .guide__hero {
    padding-block: 3rem;
  }

  .guide__layout {
    grid-template-columns: 13.5rem minmax(0, 68ch);
    align-items: start;
    gap: 4rem;
    padding-bottom: 1.5rem;
  }

  .guide__toc--mobile {
    display: none;
  }

  .guide__toc--desktop {
    display: block;
    position: sticky;
    top: 2rem;
    max-height: calc(100dvh - 4rem);
    overflow-y: auto;
    padding: 0.25rem 1.5rem 0.25rem 0.25rem;
    border-right: 0.0625rem solid var(--c-rule);
  }

  .guide__section {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
  }
}

.guide__section--contact {
  padding-block: 1.5rem;
  border-block: 0.1875rem double var(--c-rule);
}

.guide__section--contact h2 {
  padding-top: 0;
  border-top: 0;
}

.guide__hero-marker {
  display: none;
}

.guide__source {
  margin-top: 1.5rem;
  font-size: var(--f-source);
  line-height: 1.55;
}

.guide__note {
  padding: 1rem 0 1rem 1.25rem;
  margin-top: 1.75rem;
  border-left: 0.1875rem solid var(--c-accent);
}

.guide__note-title {
  margin-bottom: 0.375rem;
  color: var(--c-accent);
  font-size: var(--f-note-title);
  font-weight: 600;
}

.guide__note p:last-child {
  margin-bottom: 0;
}

.guide__checklist {
  padding-left: 0;
  list-style: none;
}

.guide__checklist li {
  padding-block: 0.875rem;
  border-top: 0.0625rem solid var(--c-rule);
}

.guide__checklist li:last-child {
  border-bottom: 0.0625rem solid var(--c-rule);
}

.guide__list {
  padding-left: 0;
  margin-bottom: 1.25rem;
  list-style: none;
}

.guide__list li {
  position: relative;
  padding-left: 1.25rem;
}

.guide__list li + li {
  margin-top: 0.5rem;
}

.guide__list li::before {
  position: absolute;
  left: 0.25rem;
  color: var(--c-accent);
  font-size: var(--f-list-marker);
  content: "\2022";
}

.guide__fees {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: var(--f-table);
  line-height: 1.55;
}

.guide__fees caption {
  padding-bottom: 0.875rem;
  color: var(--c-muted);
  font-size: var(--f-fee-caption);
  text-align: left;
}

.guide__fees th,
.guide__fees td {
  padding: 0.875rem 0.5rem 0.875rem 0;
  border-bottom: 0.0625rem solid var(--c-rule);
  text-align: left;
  vertical-align: top;
}

.guide__fees thead {
  background: var(--c-tint);
}

.guide__fees thead th {
  padding-left: 0.5rem;
  font-weight: 600;
}

.guide__fees th:first-child {
  width: 70%;
}

.guide__fees tbody th {
  font-weight: 400;
}

.guide__fees th:last-child,
.guide__fees td {
  padding-right: 0.5rem;
  text-align: right;
}

.faq__item {
  border-top: 0.0625rem solid var(--c-rule);
}

.faq__item:last-child {
  border-bottom: 0.0625rem solid var(--c-rule);
}

.faq__item > summary {
  position: relative;
  padding: 1.125rem 2rem 1.125rem 0;
  font-size: var(--f-faq-question);
  font-weight: 500;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}

.faq__item > summary::-webkit-details-marker {
  display: none;
}

.faq__item > summary::after {
  position: absolute;
  top: 1.125rem;
  right: 0.25rem;
  color: var(--c-accent);
  font-size: var(--f-faq-marker);
  font-weight: 400;
  content: "+";
}

.faq__item[open] > summary::after {
  content: "−";
}

.faq__item[open] > summary {
  color: var(--c-accent);
}

@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) and (transition-behavior: allow-discrete) and selector(details::details-content) {
    #page .faq__item {
      interpolate-size: allow-keywords;
    }

    #page .faq__item::details-content {
      height: 0;
      opacity: 0;
      overflow: clip;
      transition: height 220ms ease, opacity 220ms ease, content-visibility 220ms allow-discrete;
    }

    #page .faq__item[open]::details-content {
      height: auto;
      opacity: 1;
    }
  }
}

@media print {
  .guide__toc,
  .guide__skip,
  .guide__masthead-note {
    display: none;
  }

  .guide__hero,
  .guide__layout {
    display: block;
  }

  .guide__shell {
    width: 100%;
  }

  .guide__article {
    max-width: none;
  }

  .guide__section,
  .guide__figure {
    break-inside: avoid;
  }

  details::details-content {
    content-visibility: visible;
  }

  .faq__item:not([open]) > :not(summary) {
    display: block;
  }

  #page .faq__item::details-content {
    height: auto;
    opacity: 1;
    overflow: visible;
    content-visibility: visible;
    transition: none;
  }
}

.faq__answer {
  padding-right: 1.75rem;
}

.faq__answer p {
  margin-bottom: 1.25rem;
}

.guide__email {
  overflow-wrap: anywhere;
  font-size: var(--f-body-size);
}

.guide__figure {
  margin: 1.75rem 0 2rem;
}

.guide__section > .guide__figure:last-child {
  margin-bottom: 0;
}

.stamp__title {
  margin: 0 0 1rem;
  color: var(--c-muted);
  font-size: var(--f-graphic-title);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stamp__label {
  color: var(--c-muted);
  font-size: var(--f-graphic-label);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stamp__big {
  font-size: var(--f-graphic-number);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.stamp__note {
  margin: 0.875rem 0 0;
  font-size: var(--f-graphic-note);
  line-height: 1.5;
}

.stamp__note--muted {
  color: var(--c-muted);
  font-size: var(--f-graphic-caveat);
}

.stamp__ticket {
  display: grid;
  margin: 0;
  padding: 0;
  background: var(--c-tint);
  list-style: none;
}

.stamp__stub {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.875rem;
  padding: 1.125rem 1.25rem;
}

.stamp__stub + .stamp__stub {
  border-top: 0.0625rem solid var(--c-rule);
}

.stamp__stub + .stamp__stub::before,
.stamp__stub + .stamp__stub::after {
  position: absolute;
  top: -0.65625rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--c-paper);
  content: "";
}

.stamp__stub + .stamp__stub::before {
  left: -0.625rem;
}

.stamp__stub + .stamp__stub::after {
  right: -0.625rem;
}

.stamp__arrow {
  position: absolute;
  top: -0.03125rem;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--c-paper);
  transform: translate(-50%, -50%);
}

.stamp__arrow svg {
  display: block;
  width: 1rem;
  height: 1rem;
  transform: rotate(90deg);
}

.stamp__badge {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0.1875rem double var(--c-accent);
  color: var(--c-accent);
  font-size: var(--f-graphic-step);
  font-weight: 600;
  line-height: 1;
}

.stamp__seals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stamp__seals > li {
  display: grid;
  justify-items: center;
  min-width: 0;
}

.stamp__seal {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.125rem;
  width: 100%;
  max-width: 10rem;
  aspect-ratio: 1;
  padding: 0.875rem;
  border: 0.25rem double var(--c-accent);
  border-radius: 50%;
  color: var(--c-ink);
  text-align: center;
  text-decoration: none;
  transform: rotate(-2deg);
}

.stamp__seals > li:nth-child(even) .stamp__seal {
  transform: rotate(1.5deg);
}

.stamp__seal-icon {
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.25rem;
}

.stamp__seal-icon g {
  stroke: var(--c-accent);
}

.stamp__seal-word {
  color: var(--c-accent);
  font-size: var(--f-graphic-link);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: underline;
  text-decoration-thickness: 0.0625rem;
  text-underline-offset: 0.2em;
  text-transform: uppercase;
}

.stamp__seal-fact {
  font-size: var(--f-graphic-fact);
  font-weight: 500;
  line-height: 1.3;
}

.stamp__seal:hover,
.stamp__seal:focus-visible {
  background: var(--c-tint);
}

.stamp__seal:hover .stamp__seal-word,
.stamp__seal:focus-visible .stamp__seal-word {
  text-decoration-thickness: 0.125rem;
}

.stamp__receipt {
  max-width: 22rem;
  padding: 1.25rem 1.25rem 2rem;
  border-top: 0.1875rem solid var(--c-ink);
  background: var(--c-tint);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 0.75rem), 95% 100%, 90% calc(100% - 0.75rem), 85% 100%, 80% calc(100% - 0.75rem), 75% 100%, 70% calc(100% - 0.75rem), 65% 100%, 60% calc(100% - 0.75rem), 55% 100%, 50% calc(100% - 0.75rem), 45% 100%, 40% calc(100% - 0.75rem), 35% 100%, 30% calc(100% - 0.75rem), 25% 100%, 20% calc(100% - 0.75rem), 15% 100%, 10% calc(100% - 0.75rem), 5% 100%, 0 calc(100% - 0.75rem));
}

.stamp__receipt-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.stamp__receipt-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0 1rem;
  padding-block: 0.625rem;
  border-bottom: 0.0625rem solid var(--c-rule);
}

.stamp__receipt-word {
  font-size: var(--f-graphic-receipt-word);
}

.stamp__receipt-value {
  font-size: var(--f-graphic-receipt-amount);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.stamp__paid {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  margin: 1.125rem 0 0;
  border: 0.1875rem double var(--c-accent);
  color: var(--c-accent);
  font-size: var(--f-graphic-paid);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
}

.stamp__marks {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stamp__mark {
  display: grid;
  gap: 0.125rem;
  padding: 0.75rem 1rem 0.875rem;
  border: 0.25rem double var(--c-accent);
}

.stamp__marks > li:nth-child(2) .stamp__mark {
  transform: rotate(-0.75deg);
}

.stamp__marks > li:nth-child(3) .stamp__mark {
  transform: rotate(0.5deg);
}

.stamp__mark .stamp__label {
  color: var(--c-accent);
}

@media (min-width: 48rem) {
  .stamp__ticket {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stamp__stub {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.375rem;
    align-content: start;
    padding: 1.25rem 1.5rem 1.375rem;
  }

  .stamp__badge {
    grid-row: auto;
    margin-bottom: 0.375rem;
  }

  .stamp__stub + .stamp__stub {
    border-top: 0;
    border-left: 0.0625rem solid var(--c-rule);
  }

  .stamp__stub + .stamp__stub::before {
    top: -0.625rem;
    left: -0.65625rem;
  }

  .stamp__stub + .stamp__stub::after {
    top: auto;
    right: auto;
    bottom: -0.625rem;
    left: -0.65625rem;
  }

  .stamp__arrow {
    top: 50%;
    left: -0.03125rem;
  }

  .stamp__arrow svg {
    transform: none;
  }

  .stamp__seals {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .stamp__marks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}
