:root {
  --paper: #f4f1e8;
  --sheet: #fffdf7;
  --ink: #17211d;
  --muted-ink: #58625d;
  --evergreen: #0e4b3e;
  --evergreen-deep: #08372e;
  --signal: #ddf267;
  --signal-soft: #eff6c8;
  --rule: #c4c9bd;
  --focus: #6a42d8;
  --alert: #a63b2b;
  --frame-width: 74rem;
  --reading-width: 45rem;
  --line: 1px solid var(--ink);
  --hard-shadow: 0.48rem 0.48rem 0 var(--evergreen-deep);
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scroll-padding-top: 9rem;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(14, 75, 62, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 75, 62, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 1.5rem 1.5rem;
  color: var(--ink);
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

body::before {
  display: block;
  height: 0.42rem;
  background: linear-gradient(90deg, var(--evergreen) 0 66%, var(--signal) 66% 100%);
  content: "";
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  text-decoration-color: var(--evergreen);
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: rgba(221, 242, 103, 0.35);
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

h2[id] {
  scroll-margin-top: 9rem;
}

h1,
h2 {
  font-weight: 700;
  letter-spacing: -0.035em;
}

.frame {
  width: min(calc(100% - 2rem), var(--frame-width));
  margin-inline: auto;
}

.page-canvas {
  min-height: 65vh;
}

.skip-jump {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  min-height: 2.75rem;
  padding: 0.62rem 1rem;
  transform: translateY(-180%);
  border: 2px solid var(--ink);
  background: var(--signal);
  color: var(--ink);
  font-weight: 800;
}

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

.shell-head {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: var(--line);
  background: rgba(244, 241, 232, 0.96);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
}

.head-core {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
  min-height: 4.75rem;
  padding-block: 0.65rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  color: var(--evergreen-deep);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-decoration: none;
  white-space: nowrap;
}

.mark-swatch {
  width: 1.4rem;
  height: 1.4rem;
  transform: rotate(-5deg);
  border: 2px solid var(--ink);
  border-radius: 0.15rem 0.55rem 0.15rem 0.15rem;
  background: var(--signal);
  box-shadow: 0.18rem 0.18rem 0 var(--evergreen);
}

.section-strip {
  display: flex;
  width: 100%;
  gap: 0.35rem;
  padding: 0.55rem 0.45rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.section-strip a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.42rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.section-strip a:hover {
  border-color: var(--evergreen);
  background: var(--sheet);
}

.section-strip a[aria-current] {
  border-color: var(--ink);
  background: var(--evergreen);
  color: var(--sheet);
}

.shell-foot :focus-visible {
  outline-color: var(--signal);
}

.section-stack,
.brand-stack {
  padding-block: clamp(0.875rem, 2.5vw, 2.25rem);
}

.section-stack,
.brand-stack,
.reading-column,
.prose-flow {
  overflow-wrap: anywhere;
}

.section-stack,
.brand-stack {
  display: grid;
  gap: clamp(1.375rem, 3.5vw, 3rem);
}

.brand-stack {
  padding-block: clamp(1.25rem, 3.6vw, 3.25rem);
}

.signal-label {
  margin-bottom: 0.7rem;
  color: var(--evergreen);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.panel-link,
.visit-offer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  font-weight: 800;
}

.offer-zone {
  display: grid;
  gap: 1.5rem;
}

.region-heading {
  display: grid;
  gap: 0.2rem;
  max-width: 42rem;
}

.region-heading h2,
.answer-heading h2 {
  margin-bottom: 0.6rem;
  font-size: clamp(2rem, 8vw, 4rem);
}

.region-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted-ink);
}

.panel-link {
  color: var(--evergreen-deep);
  text-decoration: underline;
  text-decoration-thickness: 0.1rem;
}

.quiet-notice {
  grid-column: 1 / -1;
  padding: 2rem;
  border: 1px dashed var(--evergreen);
  background: rgba(255, 253, 247, 0.82);
  background: color-mix(in srgb, var(--sheet) 75%, transparent);
  color: var(--muted-ink);
  text-align: center;
}

.quiet-notice p {
  margin-bottom: 0;
}

.pathline {
  margin-bottom: -1.5rem;
  font-size: 0.84rem;
}

.pathline ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pathline li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.pathline li:not(:last-child)::after {
  margin-left: 0.55rem;
  color: var(--evergreen);
  content: "/";
}

.pathline a,
.pathline span {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.pathline span[aria-current="page"] {
  color: var(--muted-ink);
}

.collection-head {
  display: grid;
  gap: 2rem;
  align-items: end;
  padding: clamp(1.5rem, 6vw, 4rem);
  border: 2px solid var(--ink);
  background: var(--evergreen);
  color: var(--sheet);
  box-shadow: var(--hard-shadow);
}

.collection-head .signal-label {
  color: var(--signal);
}

.collection-head h1 {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: clamp(2.8rem, 12vw, 6rem);
}

.collection-summary {
  max-width: 42rem;
  margin-bottom: 0;
  color: #dce8df;
  font-size: 1.08rem;
}

.count-stamp {
  display: inline-grid;
  width: 7.5rem;
  min-height: 7.5rem;
  place-content: center;
  justify-self: start;
  transform: rotate(3deg);
  border: 2px solid var(--ink);
  background: var(--signal);
  color: var(--ink);
  text-align: center;
}

.count-stamp strong {
  font-size: 3.2rem;
  line-height: 0.9;
}

.count-stamp span {
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-intro {
  max-width: var(--reading-width);
  margin-inline: auto;
}

.brand-shelf {
  display: grid;
  gap: 1.25rem;
}

.brand-panel {
  display: grid;
  min-width: 0;
  border: 2px solid var(--ink);
  background: var(--sheet);
  box-shadow: 0.34rem 0.34rem 0 var(--rule);
}

.brand-panel-media {
  display: grid;
  min-height: 11rem;
  place-items: center;
  overflow: hidden;
  border-bottom: var(--line);
  background: var(--signal-soft);
  color: var(--evergreen-deep);
  text-decoration: none;
}

.brand-panel-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0.75rem;
  object-fit: contain;
}

.brand-panel-media span {
  max-width: 90%;
  font-size: clamp(1.4rem, 8vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  text-align: center;
}

.brand-panel-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 1.25rem;
}

.panel-kicker {
  margin-bottom: 0.55rem;
  color: var(--evergreen);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.brand-panel h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.75rem, 7vw, 2.6rem);
}

.brand-panel h2 a {
  text-decoration: none;
}

.brand-panel-copy > p:not(.panel-kicker) {
  color: var(--muted-ink);
}

.brand-panel .panel-link {
  align-self: flex-start;
  margin-top: auto;
}

.brand-stage {
  display: grid;
  min-width: 0;
  border: 2px solid var(--ink);
  background: var(--sheet);
  box-shadow: var(--hard-shadow);
}

.brand-stage-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(0.9rem, 3.6vw, 2.7rem);
}

.brand-stage h1 {
  margin-bottom: 1rem;
  color: var(--evergreen-deep);
  font-size: clamp(1.8rem, 7.2vw, 3.15rem);
}

.brand-stage-copy > p:last-child {
  max-width: 38rem;
  margin-bottom: 0;
  color: var(--muted-ink);
  font-size: 1.08rem;
}

.brand-stage-art,
.brand-stage-patch {
  min-width: 0;
  min-height: 16rem;
  margin-bottom: 0;
  border-top: var(--line);
}

.brand-stage-art {
  min-height: 0;
  aspect-ratio: 5 / 4;
  overflow: hidden;
}

.brand-stage-art img {
  width: 100%;
  height: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.brand-stage-patch {
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    linear-gradient(135deg, transparent 0 47%, rgba(255, 255, 255, 0.13) 47% 53%, transparent 53%),
    var(--evergreen);
  color: var(--signal);
}

.brand-stage-patch span {
  max-width: 100%;
  transform: rotate(-4deg);
  border: 2px solid currentColor;
  padding: 1rem;
  font-size: clamp(1.5rem, 9vw, 3.5rem);
  font-weight: 700;
  overflow-wrap: anywhere;
  text-align: center;
}

.compact-heading h2 {
  font-size: clamp(1.4rem, 6.5vw, 3.1rem);
}

.offer-ledger {
  display: grid;
  gap: 1rem;
}

.offer-entry {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 1.2rem;
  padding: 1.1rem;
  border: 2px solid var(--ink);
  background: var(--sheet);
  box-shadow: 0.28rem 0.28rem 0 var(--rule);
}

.offer-entry::before {
  position: absolute;
  top: 0.45rem;
  bottom: 0.45rem;
  left: 0.42rem;
  border-left: 2px dashed var(--rule);
  content: "";
}

.offer-visual {
  min-width: 0;
  margin-left: 0.7rem;
  overflow: hidden;
}

.offer-visual img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.offer-copy {
  min-width: 0;
  margin-left: 0.7rem;
}

.offer-number {
  margin-bottom: 0.35rem;
  color: var(--evergreen);
  font-size: 0.95rem;
  font-weight: 700;
}

.offer-copy h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.25rem, 5vw, 1.65rem);
}

.offer-benefit,
.offer-condition {
  margin-bottom: 0.35rem;
  color: var(--muted-ink);
  font-size: 0.92rem;
}

.offer-actions {
  display: grid;
  min-width: 0;
  gap: 0.55rem;
  margin-left: 0.7rem;
  align-content: center;
}

.claim-key,
.visit-offer,
.direct-note {
  width: 100%;
  min-height: 3rem;
  margin: 0;
  border: 2px solid var(--ink);
}

.claim-key {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.55rem 0.45rem 0.8rem;
  background: var(--signal);
  cursor: pointer;
  text-align: left;
}

.claim-key:disabled {
  cursor: wait;
  opacity: 0.75;
}

.claim-key[data-copy-state="done"] {
  background: var(--signal-soft);
}

.claim-key[data-copy-state="error"] {
  border-color: var(--alert);
  background: #fae5df;
}

.claim-code {
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.claim-label {
  padding: 0.28rem 0.5rem;
  border-left: 1px solid var(--ink);
  font-size: 0.76rem;
  font-weight: 850;
  white-space: nowrap;
}

.copy-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-note {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.visit-offer {
  padding: 0.55rem 0.85rem;
  background: var(--evergreen);
  color: var(--sheet);
  text-align: center;
  text-decoration: none;
}

.visit-offer:hover {
  background: var(--evergreen-deep);
}

.direct-note {
  display: grid;
  place-items: center;
  padding: 0.5rem 0.75rem;
  border-style: dashed;
  color: var(--muted-ink);
  font-size: 0.86rem;
  font-weight: 750;
}

.brand-layout {
  display: grid;
  min-width: 0;
  gap: 2rem;
}

.jump-index {
  border: 2px solid var(--ink);
  background: var(--signal-soft);
  box-shadow: 0.28rem 0.28rem 0 var(--rule);
}

.jump-index summary {
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  font-weight: 850;
  list-style: none;
}

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

.jump-index summary::after {
  font-size: 1.25rem;
  content: "+";
}

.jump-index[open] summary::after {
  content: "−";
}

.jump-index nav {
  border-top: var(--line);
  padding: 0.8rem 1rem 1rem;
}

.jump-index ol,
.jump-index ul {
  display: grid;
  gap: 0.3rem;
  margin: 0;
  padding-left: 1.15rem;
}

.jump-index a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--evergreen-deep);
  font-size: 0.9rem;
  font-weight: 700;
}

.reading-column {
  min-width: 0;
}

.prose-flow {
  max-width: var(--reading-width);
  font-size: 1.04rem;
}

.prose-flow > :first-child {
  margin-top: 0;
}

.prose-flow > :last-child {
  margin-bottom: 0;
}

.prose-flow h2 {
  margin: 1.3em 0 0.8em;
  padding-top: 0.35em;
  border-top: 3px solid var(--evergreen);
  font-size: clamp(1.75rem, 6vw, 2.5rem);
}

.prose-flow h3 {
  margin: 2em 0 0.9em;
  font-size: clamp(1.3rem, 4.5vw, 1.7rem);
}

.prose-flow p,
.prose-flow li {
  color: #303b36;
}

.prose-flow a {
  color: var(--evergreen-deep);
  font-weight: 700;
}

.prose-flow blockquote {
  margin: 2rem 0;
  padding: 1rem 1.2rem;
  border-left: 0.45rem solid var(--signal);
  background: var(--sheet);
}

.prose-flow blockquote > :last-child {
  margin-bottom: 0;
}

.prose-flow code {
  padding: 0.12em 0.3em;
  border: 1px solid var(--rule);
  background: var(--sheet);
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.prose-flow pre {
  max-width: 100%;
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid var(--rule);
  background: var(--ink);
  color: var(--sheet);
  white-space: pre;
  word-break: normal;
}

.prose-flow pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.prose-flow .table-scroll {
  width: 100%;
  margin-block: 1rem;
  overflow-x: visible;
  border: 1px solid var(--rule);
}

.prose-flow table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.prose-flow th,
.prose-flow td {
  min-width: 0;
  padding: 0.7rem;
  border: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.prose-flow th {
  background: var(--evergreen);
  color: var(--sheet);
}

.answer-stack {
  max-width: var(--reading-width);
  margin-top: clamp(3.5rem, 8vw, 6rem);
  padding-top: 1.5rem;
  border-top: 3px solid var(--evergreen);
}

.answer-heading h2 {
  margin-bottom: 0.8em;
  font-size: clamp(1.9rem, 7vw, 3rem);
}

.answer-folds {
  border-top: 2px solid var(--ink);
}

.answer-fold {
  border-bottom: 2px solid var(--ink);
  background: rgba(255, 253, 247, 0.86);
  background: color-mix(in srgb, var(--sheet) 80%, transparent);
}

.answer-fold summary {
  display: flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0.2rem;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

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

.answer-fold summary::after {
  flex: 0 0 auto;
  width: 2rem;
  font-size: 1.5rem;
  text-align: center;
  content: "+";
}

.answer-fold[open] summary::after {
  content: "−";
}

.answer-fold > div {
  padding: 0 2.4rem 1rem 0;
  color: var(--muted-ink);
}

.answer-fold > div p {
  margin-bottom: 0;
}

.shell-foot {
  margin-top: clamp(3rem, 8vw, 7rem);
  border-top: 2px solid var(--ink);
  background: var(--evergreen-deep);
  color: var(--sheet);
}

.foot-grid {
  display: grid;
  gap: 2rem;
  padding-block: 2.5rem;
}

.foot-mark {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--signal);
  font-size: 1.5rem;
  font-weight: 700;
}

.foot-grid p {
  margin-bottom: 0;
  color: #c9d6cf;
  font-size: 0.9rem;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.foot-links a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--sheet);
  font-weight: 700;
}

@media (min-width: 42rem) {
  .frame {
    width: min(calc(100% - 3rem), var(--frame-width));
  }

  .brand-shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-panel-copy {
    padding: 1.5rem;
  }

  .offer-entry {
    grid-template-columns: minmax(0, 10rem) minmax(0, 1fr);
    align-items: center;
    padding: 1.25rem;
  }

  .offer-entry-text {
    grid-template-columns: minmax(0, 1fr);
  }

  .offer-actions {
    grid-column: 1 / -1;
  }

  .foot-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .foot-links {
    justify-content: flex-end;
  }
}

@media (min-width: 60rem) {
  html {
    scroll-padding-top: 6.5rem;
  }

  h2[id] {
    scroll-margin-top: 6.5rem;
  }

  .shell-head {
    backdrop-filter: blur(0.75rem);
  }

  .head-core {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .section-strip {
    width: auto;
    max-width: 70%;
    justify-content: flex-end;
  }

  .collection-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .count-stamp {
    justify-self: end;
  }

  .brand-shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-panel:only-child {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }

  .brand-panel:only-child .brand-panel-media {
    border-right: var(--line);
    border-bottom: 0;
  }

  .brand-stage {
    grid-template-columns: minmax(0, 7fr) minmax(19rem, 5fr);
  }

  .brand-stage-art,
  .brand-stage-patch {
    min-height: 27rem;
    border-top: 0;
    border-left: var(--line);
  }

  .brand-stage-art {
    min-height: 0;
  }

  .compact-heading h2 {
    white-space: nowrap;
  }

  .offer-entry {
    grid-template-columns: minmax(8rem, 0.8fr) minmax(15rem, 1.5fr) minmax(13rem, 0.8fr);
  }

  .offer-entry-text {
    grid-template-columns: minmax(0, 1fr) minmax(13rem, 0.8fr);
  }

  .offer-actions {
    grid-column: auto;
  }

  .brand-layout {
    grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
  }

  .brand-layout-single {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand-layout-single .reading-column {
    width: min(100%, var(--reading-width));
    margin-inline: auto;
  }

  .jump-index {
    position: sticky;
    top: 6.5rem;
    max-height: calc(100svh - 8rem);
    overflow-y: auto;
  }
}

@media (min-width: 75rem) {
  .offer-entry {
    padding: 1.5rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  body {
    background: #fff;
  }

  .shell-head,
  .shell-foot,
  .skip-jump,
  .claim-key,
  .visit-offer {
    display: none !important;
  }

  .collection-head,
  .brand-stage,
  .brand-panel,
  .offer-entry,
  .jump-index {
    box-shadow: none;
  }
}
