@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../fonts/bitter-var.woff2") format("woff2");
}

@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/caveat-500.woff2") format("woff2");
}

@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/karla-var.woff2") format("woff2");
}

:root {
  --paper: #f3ead7;
  --gum: #5b7f6a;
  --canopy: #3e5b4a;
  --ochre: #c9772b;
  --ochre-ink: #94541a;
  --bark: #23302a;
  --clay: #9a4b2f;
  --sky: #8fb8c9;
  --leaf-card: #fbf6ea;
  --grid-line: rgba(35, 48, 42, 0.06);
  --tape: rgba(143, 184, 201, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--bark);
  font-family: "Karla", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-family: "Bitter", Georgia, serif;
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.45rem, 3.4vw, 1.9rem);
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--canopy);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--clay);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 3px;
}

img {
  max-width: 100%;
}

.wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.top {
  background: var(--canopy);
  color: var(--paper);
  border-bottom: 6px solid var(--gum);
}

.top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  flex: 0 0 auto;
}

.word {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--paper);
  font-family: "Bitter", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
}

.word:hover {
  color: var(--paper);
  text-decoration: underline;
}

.tagline {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 6px;
  border-bottom: 4px solid var(--paper);
  background: var(--paper);
  color: var(--bark);
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover {
  color: var(--clay);
}

.nav a[aria-current="page"] {
  border-bottom-color: var(--ochre);
}

main {
  padding: 32px 0 56px;
}

.band {
  padding: 36px 0;
}

.band + .band {
  border-top: 2px dashed rgba(154, 75, 47, 0.4);
}

.prose {
  max-width: 780px;
}

.noted {
  display: grid;
  gap: 4px 32px;
}

.margin-note {
  margin: 0 0 1em;
  color: var(--ochre-ink);
  font-family: "Caveat", cursive;
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.15;
  transform: rotate(-2deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border: 2px solid var(--canopy);
  border-radius: 6px;
  background: var(--canopy);
  color: var(--paper);
  font-family: "Karla", Arial, sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  border-color: var(--clay);
  background: var(--clay);
  color: var(--paper);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 2px 14px;
  border: 2px solid var(--ochre);
  border-radius: 999px;
  background: rgba(201, 119, 43, 0.16);
  color: var(--bark);
  font-size: 1rem;
  font-weight: 600;
}

.byline {
  color: var(--clay);
  font-weight: 600;
}

.taped {
  position: relative;
}

.taped::before,
.taped::after {
  content: "";
  position: absolute;
  top: -12px;
  width: 84px;
  height: 26px;
  background: var(--tape);
  border: 1px solid rgba(143, 184, 201, 0.8);
}

.taped::before {
  left: 18px;
  transform: rotate(-6deg);
}

.taped::after {
  right: 18px;
  transform: rotate(5deg);
}

.cards {
  display: grid;
  gap: 44px 32px;
  padding-top: 16px;
}

.card {
  padding: 30px 22px 24px;
  border: 1px solid rgba(35, 48, 42, 0.18);
  background: var(--leaf-card);
  box-shadow: 0 6px 14px rgba(35, 48, 42, 0.12);
  transform: rotate(var(--lean, -1deg));
  transition: transform 0.25s ease;
}

.cards > :nth-child(even),
.guide-row:nth-child(even) {
  --lean: 1deg;
}

.card:hover {
  --lean: 0deg;
}

.sketch {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px dashed rgba(35, 48, 42, 0.3);
  border-radius: 4px;
  background: rgba(255, 250, 240, 0.9);
}

.sketch img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
}

.card h3 {
  margin: 12px 0 2px;
  font-size: 1.45rem;
}

.card .byline {
  margin-bottom: 10px;
}

.facts {
  margin: 0 0 18px;
  padding-left: 1.2em;
}

.facts li::marker,
.kit li::marker {
  color: var(--clay);
}

.guide {
  display: grid;
  gap: 48px;
  padding-top: 16px;
}

.steps {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding: 20px;
  border-left: 4px solid var(--gum);
  background: rgba(255, 250, 240, 0.75);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--ochre);
  color: var(--bark);
  font-family: "Bitter", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.steps p {
  margin: 0;
}

.camp-qa h3 {
  margin-top: 1.4em;
}

.stamp {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 5px double var(--ochre);
  border-radius: 50%;
  color: var(--ochre-ink);
  font-family: "Bitter", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  transform: rotate(-8deg);
}

.table-scroll {
  margin: 0 0 1.5em;
  overflow-x: auto;
}

.ledger {
  width: 100%;
  margin: 0 0 1.5em;
  border-collapse: collapse;
  background: rgba(255, 250, 240, 0.8);
}

.table-scroll .ledger {
  min-width: 560px;
  margin: 0;
}

.ledger th,
.ledger td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(154, 75, 47, 0.35);
  text-align: left;
  vertical-align: top;
}

.ledger thead th {
  background: var(--canopy);
  color: var(--paper);
  font-family: "Bitter", Georgia, serif;
  font-weight: 600;
}

.ledger tbody th {
  width: 36%;
  font-weight: 600;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.crumbs li + li::before {
  content: "›";
  margin: 0 8px;
  color: var(--clay);
}

.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.entry-head {
  display: grid;
  gap: 16px 32px;
  align-items: center;
  margin-bottom: 24px;
}

.entry-head .tag {
  margin-bottom: 12px;
}

.frame {
  position: relative;
  width: 100%;
  max-width: 1000px;
  min-height: 480px;
  margin: 8px auto 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 6px solid var(--canopy);
  border-radius: 8px;
  background: var(--bark);
}

.frame iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
}

.wait {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--paper);
  text-align: center;
}

.wait p {
  max-width: 420px;
  margin: 0;
}

.frame.live iframe {
  z-index: 3;
  background: var(--bark);
}

.frame-note {
  max-width: 1000px;
  margin: 12px auto 0;
}

.trail-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.trail-links a,
.links a,
.out,
.back-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.back-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dated {
  color: var(--clay);
  font-weight: 600;
}

.note-form {
  display: grid;
  gap: 6px;
  max-width: 560px;
  margin: 24px 0 28px;
}

.note-form label {
  margin-top: 12px;
  font-weight: 600;
}

.note-form input,
.note-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 2px solid var(--gum);
  border-radius: 6px;
  background: #fffaf0;
  color: var(--bark);
  font: inherit;
}

.note-form .btn {
  justify-self: start;
  margin-top: 18px;
}

.foot {
  padding: 40px 0 28px;
  background: var(--canopy);
  color: var(--paper);
}

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

.foot a:hover {
  color: var(--paper);
  text-decoration-thickness: 3px;
}

.foot h2 {
  margin-bottom: 0.4em;
  font-size: 1.2rem;
}

.foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(243, 234, 215, 0.3);
}

.foot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-tags .tag {
  min-height: 44px;
  background: rgba(201, 119, 43, 0.22);
  color: var(--paper);
  text-decoration: none;
}

.foot-cols {
  display: grid;
  gap: 24px;
  padding: 28px 0 8px;
}

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

.pledges {
  margin: 0 0 20px;
  padding: 18px 0 0 1.2em;
  border-top: 1px solid rgba(243, 234, 215, 0.3);
}

.foot-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.foot-end p {
  margin: 0;
}

.foot .stamp {
  color: var(--paper);
}

.reset {
  min-height: 44px;
  padding: 8px 16px;
  border: 2px solid var(--paper);
  border-radius: 6px;
  background: transparent;
  color: var(--paper);
  font-family: "Karla", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.reset:hover {
  background: var(--clay);
  border-color: var(--clay);
}

.gate:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow-y: auto;
  background: rgba(35, 48, 42, 0.62);
}

.permit {
  width: 100%;
  max-width: 460px;
  overflow: hidden;
  border: 2px solid var(--bark);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

.permit-strip {
  margin: 0;
  padding: 12px 20px;
  background: var(--gum);
  color: var(--paper);
  font-family: "Bitter", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.permit-body {
  padding: 20px;
}

.permit-body .stamp {
  float: right;
  margin: 0 0 8px 12px;
}

.permit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  clear: both;
}

.corner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
  pointer-events: none;
}

.slip {
  max-width: 340px;
  padding: 26px 20px 18px;
  border: 1px solid rgba(35, 48, 42, 0.25);
  background: #fffaf0;
  box-shadow: 0 8px 22px rgba(35, 48, 42, 0.25);
  pointer-events: auto;
  transform: rotate(-1deg);
}

.slip p {
  margin-bottom: 14px;
}

.rest:not([hidden]) {
  transform: rotate(1deg);
  animation: slide-in 0.6s ease-out;
}

@keyframes slide-in {
  from {
    transform: translateY(48px) rotate(1deg);
  }

  to {
    transform: translateY(0) rotate(1deg);
  }
}

@media (min-width: 700px) {
  .wrap {
    padding: 0 24px;
  }

  .frame {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

@media (min-width: 760px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .foot-cols {
    grid-template-columns: repeat(3, 1fr);
  }

  .entry-head {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
}

@media (min-width: 900px) {
  .noted {
    grid-template-columns: minmax(0, 1fr) 200px;
    align-items: start;
  }

  .margin-note {
    padding-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card {
    transition: none;
  }

  .rest:not([hidden]) {
    animation: none;
  }
}
