:root {
  --terracotta: #d9472b;
  --cream: #fbf1dd;
  --ink: #241c17;
  --brick: #be3a20;
  --amber: #e9a33c;
  --slip: #2a221c;
  --rule: #e4d3b4;
  --ink-soft: #5c5148;
  --font-display: "Poppins", "Avenir Next", "Trebuchet MS", sans-serif;
  --font-body: "Inter", "Avenir Next", "Segoe UI", sans-serif;
  --font-mono: "Space Mono", "Courier New", monospace;
  --page: 1120px;
  --dock: 4.6rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
}



img { max-width: 100%; height: auto; }

a { color: var(--brick); }

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

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.5rem 0.8rem;
  z-index: 5;
}

.skip:focus { top: 0.5rem; }

.awning {
  height: 34px;
  background-color: var(--terracotta);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='34' viewBox='0 0 80 34'><rect width='80' height='34' fill='%23D9472B'/><path fill='%23FBF1DD' d='M0 0h20v14A10 10 0 0 1 0 14z'/><path fill='%23BE3A20' d='M20 0h20v14A10 10 0 0 1 20 14z'/><path fill='%23FBF1DD' d='M40 0h20v14A10 10 0 0 1 40 14z'/><path fill='%23BE3A20' d='M60 0h20v14A10 10 0 0 1 60 14z'/></svg>");
  background-repeat: repeat-x;
  background-size: 80px 34px;
}

.top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0.9rem 1.25rem 0.4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.nav-inline {
  display: flex;
  gap: 1.1rem;
  margin-left: auto;
}

.nav-inline a,
.menu a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.nav-inline a[aria-current="page"],
.menu a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28em;
  text-decoration-color: var(--terracotta);
}

.menu { display: none; margin-left: auto; }

.menu summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  list-style: none;
}

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

.menu nav {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  padding: 0.4rem 1.25rem 1rem;
  display: grid;
  gap: 0.7rem;
  z-index: 3;
}

h1, h2, h3, .ticket-price, .brand, .btn, .dock strong {
  font-family: var(--font-display);
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.03em; font-weight: 700; }

h1 { font-size: clamp(2.3rem, 5vw, 4.15rem); font-weight: 800; margin: 0 0 0.8rem; }

h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0 0 0.8rem; }

h3 { font-size: 1.25rem; margin: 0 0 0.35rem; }

.lede, .prose p, .shelf-note, .fine, .faq p { color: var(--ink); }

.lede {
  font-size: 1.2rem;
  max-width: 38rem;
  margin: 0 0 1.3rem;
}

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 1.2rem 1.25rem 3.5rem;
}

.counter {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.7fr);
  gap: 2rem;
  align-items: start;
  padding-top: 1.2rem;
  min-width: 0;
}

.counter > *,
.split > *,
.week li,
.shelf a {
  min-width: 0;
}

.actions, .row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}

.btn {
  display: inline-block;
  background: var(--terracotta);
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  padding: 0.78rem 1.05rem;
  border: 2px solid var(--terracotta);
  border-radius: 999px;
  line-height: 1.1;
}

.btn:hover { background: var(--brick); border-color: var(--brick); color: var(--cream); }

.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.btn-ink:hover { background: #3a312b; border-color: #3a312b; color: var(--cream); }

.btn-line {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}

.btn-line:hover { background: var(--cream); color: var(--ink); }

button.btn {
  font: inherit;
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
}

.fine { color: var(--ink-soft); font-size: 0.95rem; margin: 0.9rem 0 0; max-width: 36rem; }

.ticket {
  background: var(--ink);
  color: var(--cream);
  padding: 1.3rem 1.25rem 1.35rem;
  border-radius: 1.3rem 1.3rem 0.4rem 0.4rem;
  box-shadow: 0 14px 0 var(--brick);
}

.ticket::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  margin: 0 auto 0.8rem;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: inset 0 0 0 3px var(--ink), 0 0 0 2px var(--amber);
}

.ticket-kicker, .ticket-name { margin: 0; }

.ticket-kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--amber);
  text-align: center;
}

.ticket-price {
  margin: 0.15rem 0 0.1rem;
  text-align: center;
  font-size: 4.4rem;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.ticket-price span { font-size: 0.5em; vertical-align: 0.7em; margin-right: 0.05em; }

.ticket-name { text-align: center; font-family: var(--font-display); font-weight: 700; margin-bottom: 0.8rem; }

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

.ticket li {
  padding: 0.38rem 0;
  border-top: 1px dashed rgba(251, 241, 221, 0.35);
}

.ticket .btn { width: 100%; text-align: center; background: var(--cream); color: var(--ink); border-color: var(--cream); }

.ticket .btn:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }

.board, .week, .split, .faq, .habits { margin-top: 3.4rem; }

.shelf { display: grid; margin: 0; padding: 0; }

.shelf a {
  display: grid;
  grid-template-columns: minmax(9rem, 0.7fr) minmax(0, 1.4fr) auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.95rem 0;
  border-bottom: 1px dashed #c9b48a;
  color: var(--ink);
  text-decoration: none;
}

.shelf a:hover .shelf-name { color: var(--terracotta); }

.shelf-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }

.shelf-note { color: var(--ink-soft); }

.shelf-count {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--terracotta);
}

.slip {
  margin-top: 3.2rem;
  background: var(--slip);
  color: var(--cream);
  padding: 1.4rem 1.2rem 1.3rem;
  border-radius: 0.3rem 0.3rem 1.2rem 1.2rem;
}

.slip h2, .bench-band h2 { color: var(--cream); }

.slip p { max-width: 40rem; }

.slip-tools { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; margin-top: 0.8rem; }

.slip a { color: var(--amber); }

pre.prompt {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  line-height: 1.55;
  background: #1a1512;
  color: var(--cream);
  padding: 1rem;
  border-left: 4px solid var(--amber);
  max-width: 100%;
}

.week ol, .plain-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.9rem; }

.week li, .step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: baseline;
}

.num {
  font-family: var(--font-mono);
  color: var(--terracotta);
  font-weight: 700;
  font-size: 1.15rem;
}

.bench-band {
  margin-top: 3.2rem;
  background: var(--brick);
  color: var(--cream);
  padding: 1.5rem 1.25rem 1.6rem;
}

.bench-band p { max-width: 40rem; }

.bench-band a.btn-line { margin-right: 0.5rem; }

.site-footer {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

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

.foot-links { display: flex; flex-wrap: wrap; gap: 0.9rem 1.2rem; margin-bottom: 0.7rem; }

.page-kicker {
  font-family: var(--font-mono);
  color: var(--terracotta);
  margin: 0 0 0.4rem;
}

.catalog { margin-top: 2rem; display: grid; gap: 1.8rem; }

.catalog ol { margin: 0.3rem 0 0; padding-left: 1.3rem; }

.catalog li { margin: 0.2rem 0; }

.catalog section {
  padding-top: 0.4rem;
  border-top: 1px solid var(--rule);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}

.note {
  background: #fff8ea;
  border: 1px solid var(--rule);
  padding: 1rem 1rem 0.2rem;
}

.dock {
  display: none;
}

@media (max-width: 800px) {
  .top { flex-wrap: wrap; }
  .top > .btn, .menu { display: none; }
  .nav-inline {
    display: flex;
    width: 100%;
    margin-left: 0;
    padding: 0.15rem 0 0.2rem;
  }
  .counter, .split, .shelf a { grid-template-columns: minmax(0, 1fr); }
  .shelf-count { justify-self: start; }
  h1, h2, .lede, .fine, .ticket li { overflow-wrap: break-word; }
  .actions, .row-actions { display: grid; }
  .actions .btn, .row-actions .btn { text-align: center; }
  .wrap, .slip, .bench-band, .ticket { max-width: 100%; }
  body.has-dock { padding-bottom: var(--dock); }
  .dock {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ink);
    color: var(--cream);
    padding: 0.7rem 0.9rem;
    z-index: 4;
  }
  .dock p { margin: 0; min-width: 0; }
  .dock .btn { padding: 0.65rem 0.85rem; flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
