:root {
  --blue: #025ba9;
  --blue-dark: #014781;
  --cream: #f6f0df;
  --cream-deep: #ebe0c7;
  --ink: #063d70;
  --black: #151816;
  --rule: 1px solid var(--blue);
  --display: "Source Serif 4", Georgia, serif;
  --condensed: "Roboto Condensed", "Arial Narrow", sans-serif;
  --mono: "DM Mono", "Courier New", monospace;
  --page: min(100% - 50px, 1486px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(2, 91, 169, 0.025), transparent 22%),
    radial-gradient(circle at 78% 4%, rgba(92, 59, 24, 0.035), transparent 19%),
    var(--cream);
  font-family: var(--mono);
  font-size: 15px;
}

body::before {
  position: fixed;
  z-index: 100;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.25;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(16, 25, 20, 0.018) 4px
  );
  mix-blend-mode: multiply;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
}

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

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

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

.site-shell {
  width: var(--page);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: white;
  background: var(--blue);
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: color-mix(in srgb, var(--cream) 94%, transparent);
  backdrop-filter: blur(10px);
}

.header-inner {
  img {
    width: 75px;
  }

  min-height: 75px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  gap: 30px;
  border-bottom: var(--rule);
}
.header-end {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-end-link {
 
  gap: 10px;
  img, a {
    width: 30px;
    gap: 10px;
  }
 
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--blue);
  font-family: var(--display);
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.icon {
  display: block;
  width: 54px;
  height: 54px;
  color: var(--blue);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark {
  width: 62px;
  height: 38px;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.8vw, 46px);
}

.primary-nav a,
.primary-nav .nav-disabled,
.row-link {
  font-family: var(--condensed);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.primary-nav a {
  position: relative;
  white-space: nowrap;
}

.primary-nav .nav-disabled {
  color: color-mix(in srgb, var(--blue) 50%, var(--cream));
  cursor: default;
  white-space: nowrap;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transition: transform 160ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-cta {
  justify-self: end;
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--blue);
  background: none;
  font-family: var(--condensed);
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid currentColor;
  color: var(--blue);
  background: transparent;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.025em;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 140ms ease,
    background 140ms ease;
}

.button:hover,
.button:focus-visible {
  color: var(--cream);
  background: var(--blue);
}

.button-small {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 0.86rem;
}

.home-shell,
.past-shell {
  border-right: 0;
  border-left: 0;
}

.hero {
  display: grid;
  height: auto;
  min-height: 405px;
  grid-template-columns: minmax(420px, 38.7%) 1fr;
  align-items: start;
  border-bottom: var(--rule);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 12px 8px;
}

.hero h1,
.past-hero h1 {
  margin-bottom: 10px;
  color: var(--blue);
  font-family: var(--display);
  font-size: clamp(4rem, 7vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.83;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(3.25rem, 5.1vw, 4.85rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.hero h1 span {
  display: block;
  width: auto;
  white-space: normal;
}

.hero-intro {
  flex: 0 0 auto;
  margin-bottom: 10px;
  padding-bottom: 28px;
  border-bottom: var(--rule);
}

.hero-intro-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

.hero-description {
  min-width: 0;
  flex: 1 1 280px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(0.86rem, 0.95vw, 0.88rem);
  font-weight: 600;
  line-height: 1.3;
}

.hero-cta {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 5px 18px;
  font-size: 0.72rem;
  white-space: nowrap;
}

.hero-photo {
  height: 385px;
  min-height: 0;
  margin-bottom: 20px;
  overflow: hidden;
  border-left: var(--rule);
  background: var(--cream-deep);
}

.hero-photo img {
  height: 100%;
  object-fit: cover;
  object-position: 10% 50%;
}

.event-notice {
  display: grid;
  flex: 1;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 148px;
  gap: 14px;
  align-items: center;
  margin-top: 0;
}

.section-kicker {
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 800;
}

.event-details {
  display: grid;
  grid-template-columns: 92px 1fr;
}

.event-date {
  display: flex;
  width: 92px;
  height: 92px;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  padding-right: 8px;
  border-right: var(--rule);
  font-family: var(--display);
  line-height: 0.72;
}

.event-date span,
.event-date strong {
  display: block;
}

.event-date span {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 0.78;
}

.event-date strong {
  font-size: 4.5rem;
  letter-spacing: -0.045em;
  line-height: 0.72;
}

.event-date.is-month-only {
  justify-content: center;
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 14px;
  font-family: var(--display);
  font-size: 0.825rem;
  line-height: 1.35;
}

.event-visual {
  display: flex;
  height: 100%;
  min-height: 0;
  align-self: stretch;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding-bottom: 0;
}

.event-visual .button-small {
  flex: 0 0 auto;
  width: 100%;
  min-height: 34px;
  padding: 5px 8px;
  font-size: 0.72rem;
  white-space: nowrap;
}

.editorial-row {
  position: relative;
  display: grid;
  border-bottom: var(--rule);
}

.row-heading {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 14px;
  border-right: 0;
}

.row-heading::after,
.upcoming-item::after,
.classified::after {
  position: absolute;
  top: 12px;
  right: 0;
  bottom: 12px;
  width: 1px;
  content: "";
  background: var(--blue);
}

.row-heading h2,
.gallery-heading h2 {
  margin: 0;
  font-family: var(--condensed);
  font-size: clamp(1.55rem, 2.2vw, 2.3rem);
  line-height: 0.92;
}

.upcoming .row-heading h2 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 1.75vw, 1.8rem);
}

.upcoming {
  height: 98px;
  grid-template-columns: 180px 1fr;
  padding-bottom: 0;
}

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

.upcoming-item {
  position: relative;
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px 14px;
  border-right: 0;
}

.upcoming-item:last-child::after,
.classified:last-child::after {
  display: none;
}

.upcoming-item:last-child {
  height: 98px;
  min-height: 0;
  grid-template-columns: 60px 1fr;
  gap: 10px;
  padding: 20px 14px 6px;
  overflow: hidden;
}

.upcoming-item:last-child .upcoming-icon {
  width: 54px;
  height: 54px;
}

.upcoming-item:last-child .upcoming-date {
  font-size: 0.68rem;
}

.upcoming-item:last-child h3 {
  font-size: 1.05rem;
}

.upcoming-item:last-child p:last-child {
  font-size: 0.72rem;
}

.upcoming-icon {
  width: 62px;
  height: 62px;
}

.upcoming-date {
  margin-bottom: 3px;
  font-family: var(--display);
  font-size: 0.74rem;
  font-weight: 700;
}

.upcoming-item h3 {
  margin-bottom: 2px;
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1;
}

.upcoming-item p:last-child {
  margin-bottom: 0;
  font-family: var(--display);
  font-size: 0.79rem;
}

.row-link {
  position: absolute;
  right: 12px;
  bottom: 7px;
  white-space: nowrap;
}

.upcoming .row-link {
  top: 2px;
  bottom: auto;
}

.help-wanted {
  height: 151px;
  grid-template-columns: 200px 1fr;
  padding-bottom: 0;
  border-bottom: 0;
}

.help-heading {
  justify-content: flex-start;
}

.help-heading h2 {
  font-family: var(--display);
  font-size: 2.8rem;
}

.help-heading p {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.1;
}

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

.classified {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 52px;
  min-height: 150px;
  padding: 10px 10px;
  border-right: 0;
}

.classified h3 {
  margin-bottom: 6px;
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1;
}

.classified strong {
  display: block;
  margin-top: 5px;
  font-family: var(--condensed);
  font-size: 0.73rem;
}

.classified p {
  margin: 2px 0 0;
  font-size: 0.74rem;
  line-height: 1.42;
}

.classified-icon {
  align-self: end;
  width: 45px;
  height: 45px;
}

.help-wanted .row-link {
  top: 10px;
  bottom: auto;
}

.classified:last-child h3 {
  padding-right: 140px;
}

.last-room {
  padding: 7px 0 0;
  border-bottom: 0;
}

.gallery-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 12px 5px;
}

.gallery-heading h2 {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.gallery-heading span {
  height: 1px;
  background: var(--blue);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr;
  gap: 8px;
  padding: 0 12px 5px;
}

.gallery-item {
  margin: 0;
  min-width: 0;
}

.gallery-item img {
  height: 136px;
  object-fit: cover;
}

.gallery-item figcaption {
  padding-top: 5px;
  font-size: 0.74rem;
  line-height: 1.35;
}

.join-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(30px, 7vw, 110px);
  padding: clamp(46px, 7vw, 100px);
  color: var(--cream);
  background: var(--blue);
}

.join-copy h2 {
  margin-bottom: 18px;
  font-family: var(--display);
  font-size: clamp(3.4rem, 7vw, 7.5rem);
  letter-spacing: -0.045em;
  line-height: 0.84;
}

.join-copy > p:last-child {
  max-width: 570px;
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.35;
}

.join-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.join-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--condensed);
  font-size: 0.82rem;
  font-weight: 700;
}

.join-form label:nth-of-type(n + 3),
.join-form small,
.join-form button {
  grid-column: 1 / -1;
}

.join-form input,
.join-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  outline: none;
  color: var(--cream);
  background: transparent;
}

.join-form input {
  min-height: 36px;
}

.join-form textarea {
  padding: 8px 0;
  resize: vertical;
}

.join-form input:focus,
.join-form textarea:focus {
  background: rgba(255, 255, 255, 0.08);
}

.button-inverse {
  color: var(--cream);
}

.button-inverse:hover,
.button-inverse:focus-visible {
  color: var(--blue);
  background: var(--cream);
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.site-footer {
  color: var(--blue);
  background: var(--cream);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
}
.footer-end {
  display: flex;
  align-items: center;
  gap: 10px;
 
}

.footer-links {
  display: flex;
  
  gap: 10px;
  img {
    width: 30px;
  }
}
.footer-brand {
  img {
    width: 75px;
  }
  font-size: 1.05rem;
}

.footer-inner p {
  margin: 0;
  font-size: 0.72rem;
}

/* How It Works — editorial WhatsApp and events explainer. */
.how-shell {
  overflow: hidden;
}

.how-intro-viewport {
  min-height: calc(100svh - 159px);
  display: flex;
  flex-direction: column;
}

.how-masthead {
  min-height: 154px;
  display: grid;
  grid-template-columns: minmax(130px, 16%) 1fr minmax(100px, 13%);
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
  padding: 18px clamp(18px, 3vw, 46px);
}

.masthead-sketch {
  width: min(100%, 205px);
  height: 118px;
  justify-self: center;
  mix-blend-mode: darken;
  object-fit: contain;
}

.masthead-stamp {
  width: min(100%, 124px);
  justify-self: center;
  mix-blend-mode: darken;
}

.masthead-copy {
  min-width: 0;
  text-align: center;
}

.masthead-copy h1 {
  margin: 0;
  color: var(--blue);
  font-family: var(--display);
  font-size: clamp(3.6rem, 6.1vw, 6.35rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.86;
  white-space: nowrap;
}

.masthead-copy p {
  max-width: 790px;
  margin: 15px auto 0;
  font-size: clamp(0.78rem, 1vw, 0.96rem);
  line-height: 1.45;
}

.masthead-copy p span {
  display: block;
}

.how-whatsapp {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.how-section-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(22px, 4vw, 60px);
  border: var(--rule);
}

.how-section-header h2 {
  margin: 0;
  color: var(--blue);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.35rem, 4.2vw, 4.5rem);
  letter-spacing: 0.015em;
  line-height: 0.9;
}

.how-section-button {
  min-width: min(31vw, 390px);
  min-height: 44px;
  padding-inline: 28px;
  font-family: var(--mono);
  font-size: clamp(0.75rem, 1.15vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.whatsapp-columns {
  min-height: 318px;
  display: grid;
  flex: 1;
  grid-template-columns: 29% 44% 27%;
  border-right: var(--rule);
  border-bottom: var(--rule);
  border-left: var(--rule);
}

.whatsapp-column {
  min-width: 0;
  padding: 14px clamp(13px, 1.5vw, 24px) 18px;
}

.whatsapp-column + .whatsapp-column {
  border-left: var(--rule);
}

.whatsapp-column > h3 {
  margin-bottom: 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2vw, 2rem);
  letter-spacing: 0.01em;
  line-height: 1;
  text-align: center;
}

.short-version ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.how-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 13px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px dashed color-mix(in srgb, var(--blue) 68%, transparent);
}

.how-step:first-child {
  padding-top: 2px;
}

.how-step:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.step-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid var(--blue);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 1.8rem;
  line-height: 1;
}

.how-step h4 {
  margin: 0 0 3px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(0.94rem, 1.35vw, 1.25rem);
  line-height: 1;
}

.how-step p {
  margin: 0;
  font-size: clamp(0.65rem, 0.82vw, 0.78rem);
  line-height: 1.38;
}

.exchange-layout {
  display: grid;
  grid-template-columns: minmax(86px, 1fr) minmax(180px, 1.65fr) minmax(86px, 1fr);
  gap: clamp(7px, 0.9vw, 14px);
  align-items: center;
}

.exchange-person {
  min-width: 0;
  margin: 0;
}

.exchange-person.person-one {
  transform: rotate(-1.6deg);
}

.exchange-person.person-two {
  transform: rotate(1.6deg);
}

.exchange-photo {
  position: relative;
  padding: 7px 7px 26px;
  border: 1px solid rgba(80, 65, 38, 0.18);
  background: #f8f3e8;
  box-shadow: 0 5px 8px rgba(54, 40, 23, 0.15);
}

.exchange-photo::before,
.tape-detail::before {
  position: absolute;
  z-index: 2;
  top: -9px;
  left: 31%;
  width: 40%;
  height: 17px;
  content: "";
  background: rgba(215, 200, 162, 0.72);
  transform: rotate(-3deg);
}

.exchange-photo img {
  height: clamp(104px, 10vw, 148px);
  object-fit: cover;
}

.person-one .exchange-photo img {
  object-position: 20% 50%;
}

.person-two .exchange-photo img {
  object-position: 72% 50%;
}

.exchange-photo strong {
  position: absolute;
  right: 7px;
  bottom: 5px;
  left: 7px;
  font-family: var(--mono);
  font-size: clamp(0.82rem, 1.25vw, 1.15rem);
  font-style: italic;
  font-weight: 400;
  text-align: center;
}

.exchange-person figcaption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 5px 0;
  font-size: clamp(0.56rem, 0.72vw, 0.7rem);
  line-height: 1.25;
}

.exchange-ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: var(--rule);
  border-left: var(--rule);
  background: color-mix(in srgb, var(--cream) 82%, white);
  transform: rotate(0.4deg);
}

.exchange-ledger > * {
  min-width: 0;
  padding: 7px 8px;
  border-right: var(--rule);
  border-bottom: var(--rule);
}

.exchange-ledger > strong {
  font-family: var(--display);
  font-size: clamp(0.58rem, 0.78vw, 0.75rem);
  text-align: center;
}

.ledger-cell {
  min-height: 72px;
  display: flex;
  align-items: center;
  font-size: clamp(0.52rem, 0.67vw, 0.65rem);
  font-style: italic;
  line-height: 1.45;
}

.ask-categories ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.torn-label {
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 6px 8px;
  background: #efe5ce;
  box-shadow: 0 3px 4px rgba(54, 40, 23, 0.12);
  clip-path: polygon(2% 7%, 11% 1%, 23% 5%, 37% 0, 49% 4%, 61% 1%, 76% 5%, 91% 1%, 99% 7%, 97% 25%, 100% 45%, 97% 66%, 100% 91%, 88% 97%, 72% 94%, 57% 100%, 42% 95%, 27% 99%, 13% 94%, 1% 98%, 3% 76%, 0 52%, 3% 28%);
  font-size: clamp(0.58rem, 0.76vw, 0.72rem);
  line-height: 1.2;
  text-align: center;
}

.torn-label-2 {
  transform: rotate(0.8deg);
}

.torn-label-3 {
  transform: rotate(-0.7deg);
}

.torn-label-4 {
  transform: rotate(0.4deg);
}

.how-events {
  padding-top: clamp(18px, 1.5vw, 24px);
}

.how-events > .how-section-header {
  margin-top: 0;
}

.events-intro {
  display: grid;
  grid-template-columns: minmax(340px, 40%) 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  padding: clamp(24px, 2.2vw, 34px) clamp(18px, 2.5vw, 38px) 34px;
}

.events-copy h2 {
  max-width: 720px;
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--blue);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.5rem, 6.2vw, 6.5rem);
  letter-spacing: -0.035em;
  line-height: 0.9;
}

.events-copy p {
  max-width: 610px;
  margin: 0;
  font-size: clamp(0.9rem, 1.35vw, 1.28rem);
  line-height: 1.55;
}

.events-hero {
  position: relative;
  padding: 10px;
  background: #f1e8d4;
  box-shadow: 0 8px 12px rgba(54, 40, 23, 0.13);
  clip-path: polygon(0 2%, 8% 0, 17% 2%, 25% 0, 37% 2%, 48% 0, 61% 2%, 75% 0, 87% 2%, 100% 0, 99% 17%, 100% 33%, 99% 49%, 100% 66%, 99% 84%, 100% 100%, 87% 98%, 75% 100%, 62% 98%, 50% 100%, 38% 98%, 25% 100%, 13% 98%, 0 100%, 1% 82%, 0 65%, 1% 49%, 0 32%, 1% 15%);
  transform: rotate(0.8deg);
}

.events-hero::before {
  left: 9%;
  width: 18%;
  height: 24px;
}

.events-hero img {
  height: clamp(280px, 27vw, 430px);
  object-fit: cover;
  object-position: 45% 50%;
}

.event-polaroid-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3.2vw, 50px);
  align-items: start;
  padding: 72px clamp(30px, 4vw, 62px) clamp(64px, 6vw, 96px);
}

.event-polaroid {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: clamp(10px, 1vw, 16px) clamp(10px, 1vw, 16px) clamp(20px, 2.2vw, 34px);
  border: 1px solid rgba(80, 65, 38, 0.18);
  background: #f8f3e8;
  box-shadow: 0 8px 10px rgba(54, 40, 23, 0.16);
}

.event-polaroid-1 {
  transform: rotate(-1.4deg);
}

.event-polaroid-2 {
  transform: rotate(1.2deg);
}

.event-polaroid-3 {
  transform: rotate(-0.8deg);
}

.polaroid-tape {
  position: absolute;
  z-index: 2;
  top: -16px;
  left: 36%;
  width: 30%;
  height: 30px;
  background: rgba(215, 200, 162, 0.76);
  transform: rotate(3deg);
}

.event-polaroid img {
  aspect-ratio: 1.52 / 1;
  object-fit: cover;
}

.event-polaroid-1 img {
  object-position: 42% 46%;
}

.event-polaroid-2 img {
  object-position: 30% 50%;
}

.event-polaroid-3 img {
  object-position: 55% 50%;
}

.event-polaroid figcaption {
  padding: 15px 8px 0;
  text-align: center;
}

.event-polaroid h3 {
  margin: 0 0 7px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.55rem, 2.8vw, 3rem);
  letter-spacing: 0.03em;
  line-height: 1;
}

.event-polaroid p {
  margin: 0;
  font-size: clamp(0.72rem, 1vw, 0.94rem);
  line-height: 1.35;
}

.workshop-note {
  position: absolute;
  z-index: 3;
  top: 8px;
  left: 21%;
  width: min(17%, 220px);
  min-height: 88px;
  padding: 18px 16px 15px;
  color: var(--blue);
  background: #efe5ce;
  box-shadow: 0 4px 9px rgba(54, 40, 23, 0.15);
  font-size: clamp(0.58rem, 0.72vw, 0.68rem);
  font-style: italic;
  line-height: 1.48;
  text-decoration: none;
  transform: rotate(-2deg);
}

.workshop-note::before {
  position: absolute;
  top: -6px;
  left: calc(50% - 6px);
  width: 12px;
  height: 12px;
  content: "";
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 2px 3px rgba(12, 47, 78, 0.28);
}

/* The Barter Shelf — resource hub composed from editable HTML and CSS. */
.resource-page-loading {
  min-height: calc(100svh - 75px);
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.resources-shell {
  overflow: hidden;
  border-right: var(--rule);
  border-left: var(--rule);
}

.resources-hero {
  min-height: calc(100svh - 75px);
  display: grid;
  grid-template-columns: minmax(330px, 30%) 1fr;
  gap: clamp(26px, 3vw, 48px);
  align-items: stretch;
  padding: clamp(36px, 4vw, 62px) clamp(24px, 3vw, 48px) 28px;
}

.resources-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding-bottom: 32px;
}

.resources-hero h1 {
  max-width: 6.5ch;
  margin-bottom: 22px;
  color: var(--blue);
  font-family: var(--display);
  font-size: clamp(4.6rem, 7.6vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.79;
}

.resources-intro {
  max-width: 38ch;
  margin-bottom: 28px;
  font-size: clamp(0.75rem, 0.95vw, 0.92rem);
  line-height: 1.65;
}

.shelf-stamp {
  width: 118px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 8px double var(--blue);
  border-radius: 50%;
  font-family: var(--condensed);
  font-size: 0.80rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  transform: rotate(-8deg);
}

.primary-shelf,
.future-shelf {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.primary-shelf-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(150px, 0.84fr);
  gap: clamp(10px, 1.2vw, 18px);
  align-items: end;
  padding: 30px 8px 0;
}

.resource-book,
.future-book,
.shelf-note {
  position: relative;
  min-width: 0;
  color: var(--blue);
  background: #f4ecd9;
  box-shadow: 0 7px 9px rgba(54, 40, 23, 0.16);
  text-decoration: none;
}

.resource-book {
  min-height: clamp(355px, 37vw, 510px);
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.4vw, 38px) clamp(18px, 1.9vw, 30px);
  border: 1px solid rgba(2, 91, 169, 0.55);
}

.resource-book::before,
.future-book::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 9px;
  width: 1px;
  content: "";
  background: rgba(2, 91, 169, 0.36);
}

.resource-book-1 {
  transform: rotate(-0.9deg);
}

.resource-book-2 {
  min-height: clamp(390px, 40vw, 550px);
  transform: rotate(0.55deg);
}

.resource-book-3 {
  transform: rotate(-0.35deg);
}

a.resource-book {
  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}

a.resource-book:hover,
a.resource-book:focus-visible {
  box-shadow: 0 13px 16px rgba(54, 40, 23, 0.2);
  transform: translateY(-8px) rotate(0deg);
}

.book-label {
  width: fit-content;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid currentColor;
  font-family: var(--condensed);
  font-size: clamp(0.72rem, 0.9vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.resource-book h2,
.future-book h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.95;
}

.resource-book h2 {
  margin-bottom: 22px;
  font-size: clamp(1.25rem, 1.55vw, 2rem);
}

.resource-book p {
  max-width: 24ch;
  margin-bottom: 24px;
  font-size: clamp(0.67rem, 0.82vw, 0.8rem);
  line-height: 1.6;
}

.resource-book-icon {
  width: clamp(62px, 6vw, 88px);
  height: clamp(62px, 6vw, 88px);
  margin-top: auto;
  align-self: center;
}

.book-action {
  display: block;
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid currentColor;
  font-family: var(--condensed);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.coming-soon-stamp {
  position: absolute;
  right: 14px;
  bottom: 20px;
  padding: 7px 9px;
  border: 2px solid var(--blue);
  font-family: var(--condensed);
  font-size: clamp(0.55rem, 0.68vw, 0.68rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  transform: rotate(-6deg);
}

.new-resource-stamp {
  border-color: #c64b34;
  color: #c64b34;
  background: rgba(246, 240, 223, 0.9);
  transform: rotate(6deg);
}

.shelf-note {
  align-self: center;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 32px 24px;
  border: 1px solid rgba(80, 65, 38, 0.14);
  font-style: italic;
  line-height: 1.45;
  transform: rotate(2.5deg);
  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}

.shelf-note::before {
  position: absolute;
  top: -7px;
  left: calc(50% - 7px);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  content: "";
  background: var(--blue);
  box-shadow: 1px 3px 3px rgba(0, 0, 0, 0.2);
}

.shelf-note:hover,
.shelf-note:focus-visible {
  box-shadow: 0 12px 15px rgba(54, 40, 23, 0.2);
  transform: translateY(-6px) rotate(1deg);
}

.shelf-note strong {
  font-family: var(--display);
  font-size: clamp(1.3rem, 1.8vw, 1.85rem);
  line-height: 1;
}

.shelf-note span {
  font-size: clamp(0.65rem, 0.78vw, 0.76rem);
}

.shelf-note-icon {
  height: 58px;
  margin-top: auto;
  align-self: end;
}

.shelf-plank {
  position: relative;
  z-index: 3;
  height: 26px;
  border: 1px solid var(--blue);
  background: #e6d9bb;
  box-shadow: 0 9px 8px rgba(54, 40, 23, 0.22);
}

.shelf-plank::before,
.shelf-plank::after {
  position: absolute;
  top: 25px;
  width: 22px;
  height: 40px;
  border-right: 1px solid var(--blue);
  border-bottom: 1px solid var(--blue);
  border-left: 1px solid var(--blue);
  content: "";
  background: #e6d9bb;
}

.shelf-plank::before {
  left: 8%;
}

.shelf-plank::after {
  right: 8%;
}

.future-shelf-section {
  padding: clamp(72px, 8vw, 116px) clamp(24px, 4vw, 64px) clamp(84px, 8vw, 120px);
  border-top: var(--rule);
}

.future-shelf-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
}

.future-shelf-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.4vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.88;
}

.future-shelf-heading p {
  max-width: 35ch;
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.5;
  text-align: right;
}

.future-shelf-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 28px);
  align-items: end;
  padding: 0 18px;
}

.future-book {
  min-height: clamp(220px, 21vw, 310px);
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  border: 1px solid rgba(2, 91, 169, 0.4);
}

.future-book:nth-child(2n) {
  min-height: clamp(245px, 23vw, 330px);
}

.future-book:nth-child(1) {
  transform: rotate(0.5deg);
}

.future-book:nth-child(2) {
  transform: rotate(-0.7deg);
}

.future-book:nth-child(3) {
  transform: rotate(0.8deg);
}

.future-book:nth-child(4) {
  transform: rotate(-0.4deg);
}

.future-book h3 {
  margin-bottom: 16px;
  font-size: clamp(1.25rem, 1.8vw, 1.85rem);
}

.future-book p {
  margin-bottom: 52px;
  font-size: clamp(0.62rem, 0.76vw, 0.73rem);
  line-height: 1.5;
}

.future-book-icon {
  width: 50px;
  height: 50px;
  margin-top: auto;
}

.future-book .coming-soon-stamp {
  right: 12px;
  bottom: 15px;
}

.resource-submit {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(34px, 7vw, 110px);
  padding: clamp(58px, 7vw, 104px);
  color: var(--cream);
  background: var(--blue);
}

.recommendation-shelf-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 7vw, 110px);
  align-items: end;
  padding: clamp(42px, 6vw, 82px) clamp(24px, 4vw, 64px) clamp(76px, 8vw, 116px);
  border-top: var(--rule);
}

.recommendation-shelf-heading {
  align-self: start;
}

.recommendation-shelf-heading h2 {
  max-width: 9ch;
  margin: 8px 0 18px;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.2vw, 4.6rem);
  line-height: 0.88;
}

.recommendation-shelf-heading > p:last-child {
  max-width: 28ch;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
}

.recommendation-shelf {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: end;
  justify-content: center;
  padding: 0;
  perspective: 900px;
}

.recommendation-book {
  position: relative;
  z-index: 2;
  width: min(310px, calc(100% - 24px));
  max-width: none;
  aspect-ratio: 4 / 5;
  color: var(--blue);
  align-self: center;
  transform: rotate(-2deg) rotateY(-3deg);
  transform-origin: 50% 100%;
  filter: drop-shadow(10px 12px 7px rgba(54, 40, 23, 0.2));
}

.recommendation-book-art { width: 100%; display: block; }
.recommendation-book-copy { position: absolute; inset: 12% 8% 9% 19%; display: flex; flex-direction: column; }
.recommendation-book h3 { max-width: 100%; margin: 10px 0 16px; font-family: var(--display); font-size: clamp(0.92rem, 1.55vw, 1.45rem); line-height: 0.95; overflow-wrap: anywhere; }
.recommendation-book p { margin: 0; max-width: 21ch; font-size: clamp(0.62rem, 0.78vw, 0.76rem); line-height: 1.5; }
.recommendation-book-logo { width: min(58%, 92px); height: auto; margin-top: auto; object-fit: contain; object-position: left bottom; }
.recommendation-illustrated-shelf-plank { width: 100%; margin-top: 8px; }

@media (max-width: 800px) {
  .recommendation-shelf-section { display: block; padding-top: 58px; }
  .recommendation-shelf-heading h2 { max-width: 11ch; font-size: 3rem; }
  .recommendation-shelf-heading > p:last-child { margin-bottom: 26px; }
  .recommendation-shelf { min-height: 330px; padding-inline: 8%; }
  .recommendation-book { width: min(82vw, calc(100% - 24px), 310px); }
  .recommendation-book h3 { font-size: 1.28rem; }
}

.resource-submit-copy h2 {
  margin-bottom: 20px;
  font-family: var(--display);
  font-size: clamp(3.5rem, 6.5vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.83;
}

.resource-submit-copy > p:last-child {
  max-width: 500px;
  font-family: var(--display);
  font-size: clamp(1rem, 1.55vw, 1.35rem);
  line-height: 1.45;
}

.resource-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.resource-form [hidden] {
  display: none !important;
}

.form-required-key {
  margin: 0 0 -4px;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-align: right;
}

.required-mark {
  color: #ffb8a8;
  font-family: var(--mono);
}

.field-optional {
  font-family: var(--mono);
  font-size: 0.68em;
  font-weight: 400;
  opacity: 0.78;
}

.resource-form label:not(.permission-field) {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--condensed);
  font-size: 0.82rem;
  font-weight: 700;
}

.resource-form input,
.resource-form textarea,
.resource-form select {
  width: 100%;
  min-height: 39px;
  padding: 7px 3px;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  outline: none;
  color: var(--cream);
  background: transparent;
}

.resource-form textarea {
  resize: vertical;
}

.resource-form select {
  color-scheme: dark;
}

.resource-form select option {
  color: var(--ink);
  background: var(--cream);
}

.resource-form input:focus,
.resource-form textarea:focus,
.resource-form select:focus {
  background-color: rgba(255, 255, 255, 0.08);
}

.resource-form input::placeholder {
  color: rgba(246, 240, 223, 0.56);
}

.resource-form .form-wide {
  grid-column: 1 / -1;
}

.permission-field {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.45;
}

.resource-form .permission-field input {
  width: 18px;
  min-height: 18px;
  margin: 1px 0 0;
  accent-color: var(--cream);
}

.resource-form small {
  font-size: 0.68rem;
  line-height: 1.45;
}

.turnstile-slot[hidden] { display: none; }
.form-status { margin: 0; font-family: "DM Mono", monospace; font-size: 0.82rem; }
.form-status.is-success { color: #d9f99d; }
.form-status.is-error { color: #ffd1c8; }
.resource-form button:disabled { cursor: wait; opacity: 0.65; }

/* Past Nights — composed against the approved 1536 × 1024 noticeboard. */
.past-shell {
  width: min(100%, 1636px);
  height: min(56.234375vw, 863.76px);
  margin-inline: auto;
}

.past-board {
  position: relative;
  width: 100%;
  aspect-ratio: 1636 / 944;
  overflow: hidden;
  background: transparent;
  transform: scale(0.915);
  transform-origin: top center;
}

.past-paper,
.past-ticket,
.past-polaroid,
.past-film-strip {
  position: absolute;
  filter: drop-shadow(0 8px 7px rgba(54, 40, 23, 0.13));
}

.past-paper {
  background: #f3ecda;
  clip-path: polygon(
    1% 3%, 5% 1%, 11% 2%, 17% 0, 24% 2%, 31% 1%, 38% 3%, 46% 1%, 55% 2%,
    63% 0, 71% 2%, 79% 1%, 87% 3%, 94% 1%, 99% 3%, 98% 10%, 100% 18%,
    98% 27%, 100% 36%, 98% 44%, 100% 53%, 98% 62%, 99% 72%, 97% 81%,
    99% 90%, 97% 98%, 90% 97%, 83% 99%, 75% 97%, 67% 99%, 59% 97%,
    51% 99%, 43% 97%, 35% 99%, 27% 97%, 19% 99%, 11% 97%, 3% 99%, 2% 91%,
    0 83%, 2% 74%, 0 65%, 2% 56%, 0 47%, 2% 38%, 0 29%, 2% 20%, 0 11%
  );
}

.past-manifesto {
  isolation: isolate;
  z-index: 1;
  top: 4.8%;
  left: 2.9%;
  width: 42.6%;
  height: 59.5%;
  padding: 4.5% 2.4%;
  background: url("/assets/optimized/past-manifesto-paper-1200-4d5dec8f7211.webp") center / 100% 100% no-repeat;
  clip-path: none;
  filter: drop-shadow(0 7px 6px rgba(54, 40, 23, 0.14));
  transform: rotate(-1.4deg);
}

.past-manifesto h1 {
  position: relative;
  z-index: 1;
  max-width: 91%;
  margin: 0;
  color: var(--blue);
  font-family: var(--display);
  font-size: clamp(3.5rem, 8.4vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.past-manifesto h1 span {
  display: block;
  white-space: nowrap;
}

.past-scribble {
  position: absolute;
  z-index: 1;
  top: 5%;
  right: 7%;
  margin: 0;
  font-size: clamp(0.65rem, 1.1vw, 1.1rem);
  font-style: italic;
  line-height: 1.65;
  transform: rotate(-7deg);
}

.past-handshake {
  position: absolute;
  z-index: 1;
  right: 3%;
  bottom: 9.5%;
  width: 75%;
  height: 40%;
  stroke-width: 2.2;
  transform: scaleX(1.3);
  transform-origin: center;
}

.round-stamp {
  position: absolute;
  z-index: 15;
  top: 37.4%;
  left: 1.5%;
  width: 8.2%;
  aspect-ratio: 1;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 1px 0 rgba(2, 91, 169, 0.1));
  transform: rotate(-12deg);
}

.pinned-note {
  position: absolute;
  z-index: 4;
  top: 45.8%;
  left: 3.9%;
  width: 16.3%;
  min-height: 16.5%;
  margin: 0;
  padding: 3.1% 2.6% 2.2%;
  background: #f4eedf;
  box-shadow: 0 7px 9px rgba(49, 37, 20, 0.13);
  font-size: clamp(0.55rem, 0.91vw, 0.9rem);
  line-height: 1.55;
  transform: rotate(-4deg);
}

.pinned-note::before {
  position: absolute;
  top: -8%;
  left: 35%;
  width: 34%;
  height: 14%;
  content: "";
  background: rgba(215, 200, 162, 0.72);
  transform: rotate(1deg);
}

.past-polaroid {
  z-index: 4;
  margin: 0;
  padding: 0.85% 0.85% 1.4%;
  border: 1px solid rgba(80, 65, 38, 0.16);
  background: #f8f3e8;
  box-shadow: 0 4px 5px rgba(38, 28, 16, 0.08);
}

.past-polaroid img {
  height: 78%;
  object-fit: cover;
}

.past-polaroid figcaption {
  padding: 2.8% 8% 0;
  font-size: clamp(0.48rem, 0.8vw, 0.8rem);
  line-height: 1.55;
  white-space: pre-line;
}

.has-pin::before {
  position: absolute;
  z-index: 8;
  top: -2.7%;
  left: 48%;
  width: 5.6%;
  aspect-ratio: 1;
  border-radius: 50%;
  content: "";
  background: #b7a070;
  box-shadow: 1px 3px 3px rgba(0, 0, 0, 0.3);
}

.has-tape::before {
  position: absolute;
  z-index: 8;
  top: -8%;
  left: 26%;
  width: 34%;
  height: 13%;
  content: "";
  background: rgba(220, 205, 165, 0.72);
  transform: rotate(5deg);
}

.polaroid-one {
  top: 2.8%;
  left: 48.2%;
  width: 21.1%;
  height: 33.8%;
  transform: rotate(1.8deg) scale(0.955902);
}

.polaroid-two {
  top: 8.5%;
  left: 69.5%;
  width: 15.6%;
  height: 28.8%;
  transform: rotate(5.2deg) scale(0.955902);
}

.polaroid-two img {
  height: 69%;
}

.polaroid-three {
  top: 37.1%;
  left: 48.3%;
  width: 11%;
  height: 27.3%;
  transform: rotate(-0.8deg) scale(0.955902);
}

.polaroid-three img {
  height: 72%;
}

.polaroid-four {
  top: 38.7%;
  left: 59.8%;
  width: 25.2%;
  height: 27.4%;
  transform: rotate(2deg) scale(0.955902);
}

.polaroid-four img {
  height: 68%;
}

.past-film-strip {
  z-index: 3;
  top: 10.3%;
  left: 85.6%;
  width: 12.8%;
  height: 59.5%;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 1.2%;
  margin: 0;
  padding: 0.8% 0.8% 4.5%;
  border: 1px solid rgba(80, 65, 38, 0.16);
  background: #f8f3e8;
  box-shadow: 0 5px 7px rgba(38, 28, 16, 0.1);
  transform: rotate(1.7deg);
}

.past-film-strip > img:not(.night-stamp) {
  min-height: 0;
  height: 100%;
  object-fit: cover;
}

.past-film-strip figcaption.strip-caption {
  padding: 2.8% 8% 0;
  font-size: clamp(0.48rem, 0.8vw, 0.8rem);
  line-height: 1.55;
  white-space: pre-line;
}

.night-stamp {
  position: absolute;
  right: -22%;
  bottom: -.1%;
  width: 100%;
  height: 14%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 1px 0 rgba(2, 91, 169, 0.1));
  transform: rotate(5deg);
}

.past-ticket {
  z-index: 6;
  isolation: isolate;
  color: var(--blue);
  background: transparent;
  filter: drop-shadow(1px 7px 5px rgba(54, 40, 23, 0.22));
  clip-path: none;
}

.past-ticket::before {
  position: absolute;
  z-index: 0;
  inset: 9% 8%;
  border: 1px solid var(--blue);
  border-radius: 2px;
  content: "";
}

.past-ticket > * {
  position: relative;
  z-index: 1;
}

.top-ticket {
  top: 2%;
  left: 81.8%;
  width: 15.8%;
  height: 12.8%;
  display: grid;
  grid-template-columns: 1fr 18%;
  align-items: center;
  padding: 1.9% 2.2%;
  background:
    linear-gradient(rgba(199, 216, 229, 0.78), rgba(189, 208, 224, 0.78)),
    url("/assets/optimized/past-perspective-ticket-1200-a08801e8acb8.webp") center / 100% 100% no-repeat;
  background-blend-mode: multiply;
  -webkit-mask: url("/assets/optimized/past-perspective-ticket-1200-a08801e8acb8.webp") center / 100% 100% no-repeat;
  mask: url("/assets/optimized/past-perspective-ticket-1200-a08801e8acb8.webp") center / 100% 100% no-repeat;
  font-size: clamp(0.5rem, 0.76vw, 0.76rem);
  line-height: 1.35;
  transform: rotate(-5.5deg);
}

.top-ticket::before {
  inset: 14% 9%;
  border-width: 0.75px;
}

.top-ticket > span {
  max-width: 16ch;
}

.top-ticket strong {
  align-self: stretch;
  display: grid;
  place-items: center;
  border-left: 0.75px solid var(--blue);
  font-size: clamp(0.48rem, 0.68vw, 0.68rem);
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
}

.next-ticket {
  top: 68.2%;
  left: 2.4%;
  width: 32.5%;
  height: 26.1%;
  display: grid;
  grid-template-columns: 10% 47% 30% 9%;
  align-items: center;
  padding: 2.2% 2.5% 2.2% 1.6%;
  background: url("/assets/optimized/past-next-ticket-1200-a08801e8acb8.webp") center / 100% 100% no-repeat;
  transform: rotate(0.7deg);
}

.next-ticket::before {
  inset: 11.5% 10%;
  border-width: 0.75px;
}

.next-ticket::after {
  position: absolute;
  top: 14%;
  bottom: 14%;
  left: 87%;
  border-left: 0.75px solid var(--blue);
  content: "";
}

.admit-one,
.ticket-code {
  font-family: var(--display);
  font-weight: 700;
  writing-mode: vertical-rl;
}

.admit-one {
  font-size: clamp(0.48rem, 0.66vw, 0.66rem);
  letter-spacing: 0.1em;
  transform: rotate(180deg);
}

.next-ticket-copy {
  padding-left: 6%;
}

.next-ticket-copy h2 {
  margin-bottom: 4%;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.05rem, 1.72vw, 1.72rem);
}

.next-ticket-copy p {
  margin-bottom: 1%;
  font-family: var(--display);
  font-size: clamp(0.48rem, 0.7vw, 0.7rem);
  line-height: 1.35;
  white-space: pre-line;
}

.next-ticket-copy hr {
  width: 88%;
  margin: 6% 0;
  border: 0;
  border-top: 0.75px solid var(--blue);
}

.next-ticket-icon {
  width: 88%;
  height: 62%;
  justify-self: center;
}

.ticket-code {
  justify-self: end;
  font-size: clamp(0.52rem, 0.72vw, 0.72rem);
  letter-spacing: 0.1em;
}

.past-tags {
  position: absolute;
  z-index: 2;
  top: 68.3%;
  left: 36.4%;
  width: 22.8%;
  padding: 0.6% 0;
}

.past-tags h2 {
  margin-bottom: 2.5%;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(0.72rem, 1.18vw, 1.18rem);
}

.past-tags ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45vw;
  margin: 0;
  padding: 0;
  list-style: none;
}

.past-tags li {
  padding: 0.3vw 0.45vw;
  border: 1px solid var(--blue);
  font-size: clamp(0.50rem, 0.75vw, 0.75rem);
  line-height: 1;
}

.past-tags hr {
  margin: 5% 0 3%;
  border: 0;
  border-top: 1px solid var(--blue);
}

.quote-paper {
  z-index: 3;
  top: 68.5%;
  left: 59.7%;
  width: 20.2%;
  height: 27%;
  margin: 0;
  padding: 2.2% 2.6%;
  background: url("/assets/optimized/past-quote-paper-1200-4d5dec8f7211.webp") center / 100% 100% no-repeat;
  clip-path: none;
  filter: drop-shadow(0 7px 6px rgba(54, 40, 23, 0.14));
  transform: rotate(-2.7deg);
}

.quote-paper::before {
  position: absolute;
  top: -4%;
  left: 41%;
  width: 27%;
  height: 9%;
  content: "";
  background: rgba(217, 203, 164, 0.67);
  transform: rotate(4deg);
}

.quote-paper p {
  margin-bottom: 2%;
  font-size: clamp(0.65rem, 1.06vw, 1.06rem);
  font-style: italic;
  line-height: 1.6;
}

.quote-paper cite {
  display: block;
  font-size: clamp(0.55rem, 0.85vw, 0.85rem);
  text-align: right;
}

.past-join-card {
  z-index: 3;
  top: 68.1%;
  left: 81.1%;
  width: 16.3%;
  height: 28.2%;
  padding: 2.4% 2.4%;
  background: url("/assets/optimized/past-join-paper-1200-a26877d083c3.webp") center / 100% 100% no-repeat;
  clip-path: none;
  filter: drop-shadow(0 7px 6px rgba(54, 40, 23, 0.14));
  transform: rotate(1.2deg);
}

.past-join-card h2 {
  margin-bottom: 13%;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.25vw, 2.25rem);
  line-height: 0.9;
  text-align: center;
  white-space: pre-line;
}

.past-join-card p {
  font-size: clamp(0.52rem, 0.75vw, 0.75rem);
  line-height: 1.5;
}

.past-join-card a {
  position: absolute;
  right: 11%;
  bottom: 7%;
  left: 11%;
  display: block;
  border-top: 1px solid var(--blue);
}

.join-card-icon {
  width: 42%;
  height: 2.1vw;
  margin: 1% 0 0 auto;
}

.thanks-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.thanks-card {
  max-width: 760px;
  padding: clamp(34px, 7vw, 90px);
  border: var(--rule);
  text-align: center;
}

.thanks-card h1 {
  margin-bottom: 20px;
  font-family: var(--display);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  line-height: 0.9;
}

.thanks-card p:not(.section-kicker) {
  margin-inline: auto;
  max-width: 500px;
  font-family: var(--display);
  font-size: 1.2rem;
}

/* Contact — a pinned editorial board for every Barter social channel. */
.contact-shell {
  min-height: calc(100svh - 75px);
}

.contact-hero {
  min-height: 300px;
  display: grid;
  grid-template-columns: minmax(390px, 1.35fr) minmax(280px, 0.8fr) 150px;
  align-items: end;
  gap: clamp(28px, 5vw, 76px);
  padding: clamp(50px, 6vw, 92px) clamp(24px, 4vw, 64px) clamp(36px, 4.5vw, 70px);
  border-bottom: var(--rule);
}

.contact-title-block {
  align-self: end;
}

.contact-eyebrow,
.contact-board h2 {
  font-family: var(--condensed);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.contact-eyebrow {
  margin-bottom: 12px;
}

.contact-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(5rem, 9vw, 9rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.76;
}

.contact-intro {
  max-width: 35ch;
  margin-bottom: 2px;
  padding-top: 10px;
  border-bottom: var(--rule);
  font-family: var(--display);
  font-size: clamp(1rem, 1.35vw, 1.28rem);
  font-weight: 600;
  line-height: 1.45;
}

.contact-stamp {
  width: 132px;
  align-self: center;
  justify-self: center;
  transform: rotate(7deg);
}

.contact-board {
  position: relative;
  padding: 42px clamp(24px, 4vw, 64px) clamp(72px, 8vw, 118px);
}

.contact-board h2 {
  width: fit-content;
  min-width: 310px;
  margin: 0 auto 42px;
  padding: 20px 52px 18px;
  border: 0;
  background: transparent url("/assets/optimized/past-next-ticket-1200-a08801e8acb8.webp") center / 100% 100% no-repeat;
  filter: drop-shadow(0 7px 7px rgba(55, 40, 18, 0.14));
  text-align: center;
  transform: rotate(-1.4deg);
}

.contact-social-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(184px, auto);
  gap: clamp(20px, 2.4vw, 38px);
  align-items: stretch;
}

.contact-social-card {
  --contact-paper: url("/assets/optimized/past-manifesto-paper-1200-4d5dec8f7211.webp");
  position: relative;
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  column-gap: 18px;
  align-items: center;
  min-width: 0;
  padding: 42px 34px 32px;
  border: 0;
  color: var(--blue);
  background: transparent var(--contact-paper) center / 100% 100% no-repeat;
  filter: drop-shadow(0 11px 9px rgba(55, 40, 18, 0.17));
  text-decoration: none;
  transition:
    transform 160ms ease,
    filter 160ms ease;
}

.contact-social-card::before {
  position: absolute;
  z-index: 2;
  top: -8px;
  left: 47%;
  width: 92px;
  height: 25px;
  content: "";
  background: rgba(213, 197, 157, 0.8);
  box-shadow: inset 0 0 0 1px rgba(91, 72, 35, 0.08);
  transform: translateX(-50%) rotate(-2deg);
}

.contact-social-card:nth-child(even)::before {
  transform: translateX(-50%) rotate(3deg);
}

.contact-social-card:hover,
.contact-social-card:focus-visible {
  z-index: 2;
  outline: 2px solid var(--blue);
  outline-offset: 5px;
  filter: drop-shadow(0 16px 12px rgba(55, 40, 18, 0.23));
}

.contact-social-card-1 {
  --contact-paper: url("/assets/optimized/past-manifesto-paper-1200-4d5dec8f7211.webp");
  grid-column: 1 / 5;
  transform: rotate(-1.2deg);
}

.contact-social-card-2 {
  --contact-paper: url("/assets/optimized/past-next-ticket-1200-a08801e8acb8.webp");
  grid-column: 5 / 9;
  transform: translateY(7px) rotate(0.8deg);
}

.contact-social-card-3 {
  --contact-paper: url("/assets/optimized/past-quote-paper-1200-4d5dec8f7211.webp");
  grid-column: 9 / 13;
  transform: rotate(-0.5deg);
}

.contact-social-card-4 {
  --contact-paper: url("/assets/optimized/past-perspective-ticket-1200-a08801e8acb8.webp");
  grid-column: 1 / 5;
  transform: translateY(8px) rotate(0.9deg);
}

.contact-social-card-5 {
  --contact-paper: url("/assets/optimized/past-manifesto-paper-1200-4d5dec8f7211.webp");
  grid-column: 5 / 9;
  transform: rotate(-1deg);
}

.contact-social-card-6 {
  --contact-paper: url("/assets/optimized/past-next-ticket-1200-a08801e8acb8.webp");
  grid-column: 9 / 13;
  transform: translateY(5px) rotate(0.7deg);
}

.contact-social-card-1:hover,
.contact-social-card-1:focus-visible {
  transform: translateY(-5px) rotate(-1.2deg);
}

.contact-social-card-2:hover,
.contact-social-card-2:focus-visible {
  transform: translateY(2px) rotate(0.8deg);
}

.contact-social-card-3:hover,
.contact-social-card-3:focus-visible {
  transform: translateY(-5px) rotate(-0.5deg);
}

.contact-social-card-4:hover,
.contact-social-card-4:focus-visible {
  transform: translateY(3px) rotate(0.9deg);
}

.contact-social-card-5:hover,
.contact-social-card-5:focus-visible {
  transform: translateY(-5px) rotate(-1deg);
}

.contact-social-card-6:hover,
.contact-social-card-6:focus-visible {
  transform: translateY(0) rotate(0.7deg);
}

.contact-card-number {
  position: absolute;
  top: 18px;
  right: 23px;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.58rem;
  transform: rotate(7deg);
}

.contact-social-icon {
  width: 68px;
  height: 68px;
}

.contact-social-icon {
  stroke-width: 1.7;
}

.contact-social-artwork {
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: none;
}

.contact-card-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-card-copy strong {
  font-family: var(--display);
  font-size: clamp(1.65rem, 2.25vw, 2.5rem);
  line-height: 0.9;
}

.contact-card-copy span,
.contact-social-card small {
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 1.35;
}

.contact-social-card small {
  grid-column: 1 / -1;
  margin-top: 17px;
  padding-top: 10px;
  border-top: 1px solid currentColor;
  font-weight: 500;
  letter-spacing: 0.07em;
}

.contact-social-card.is-coming-soon {
  color: color-mix(in srgb, var(--blue) 68%, var(--cream));
  cursor: default;
  opacity: 0.78;
}

@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: 1fr auto auto;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .primary-nav {
    position: absolute;
    top: 76px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: var(--rule);
    background: var(--cream);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a,
  .primary-nav .nav-disabled {
    padding: 16px 20px;
    border-bottom: var(--rule);
  }

  .primary-nav > :last-child {
    border-bottom: 0;
  }

  .resources-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

  .resources-hero-copy {
    display: grid;
    grid-template-columns: minmax(310px, 0.8fr) 1fr;
    column-gap: 48px;
    align-items: end;
    padding-bottom: 12px;
  }

  .resources-hero h1 {
    grid-row: 1 / 4;
    margin-bottom: 0;
  }

  .resources-intro {
    max-width: 42ch;
  }

  .shelf-stamp {
    justify-self: start;
  }

  .resource-book {
    min-height: 390px;
  }

  .resource-book-2 {
    min-height: 430px;
  }

  .hero {
    grid-template-columns: minmax(360px, 43%) 1fr;
  }

  .hero h1 {
    font-size: clamp(3.15rem, 5.4vw, 4.25rem);
  }

  .event-notice {
    grid-template-columns: 1fr 118px;
  }

  .event-visual {
    height: 100%;
    justify-content: center;
    gap: 0;
    padding-bottom: 0;
  }

  .event-visual .button-small {
    font-size: 0.62rem;
  }

  .upcoming {
    grid-template-columns: 150px 1fr;
  }

  .upcoming-list {
    overflow-x: auto;
    grid-template-columns: repeat(4, minmax(250px, 1fr));
  }

  .help-wanted {
    grid-template-columns: 170px 1fr;
  }

  .classified-list {
    overflow-x: auto;
    grid-template-columns: repeat(4, minmax(240px, 1fr));
  }

  .past-hero {
    grid-template-columns: 1fr 1fr;
  }

  .past-title-card {
    grid-row: auto;
  }

  .ticket {
    position: absolute;
    top: 36px;
    right: 36px;
    width: 180px;
  }

  .past-notes {
    grid-column: 1 / -1;
  }

  .masthead-copy h1 {
    font-size: clamp(3.45rem, 6.6vw, 4.9rem);
  }

  .how-section-header h2 {
    font-size: clamp(2.6rem, 4.6vw, 3.8rem);
  }

  .whatsapp-column {
    padding-inline: 13px;
  }

  .exchange-layout {
    grid-template-columns: minmax(78px, 1fr) minmax(170px, 1.55fr) minmax(78px, 1fr);
  }
  .contact-hero {
    grid-template-columns: minmax(280px, 1fr) minmax(200px, 0.75fr) 90px;
    gap: clamp(20px, 3vw, 36px);
  }

  .contact-stamp {
    width: 104px;
  }

  .contact-social-card {
    grid-template-columns: 72px minmax(0, 1fr);
    padding-inline: 20px;
  }

  .contact-social-icon {
    width: 54px;
    height: 54px;
  }

  .contact-social-artwork {
    width: 70px;
    height: 70px;
  }

  .contact-social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
  }

  .contact-social-card-1,
  .contact-social-card-2,
  .contact-social-card-3,
  .contact-social-card-4,
  .contact-social-card-5,
  .contact-social-card-6 {
    width: auto;
    grid-column: auto;
    justify-self: center;
  }
}

@media (max-width: 1000px) and (min-width: 801px) {
  .how-masthead {
    grid-template-columns: 110px 1fr 85px;
    gap: 12px;
    padding-inline: 14px;
  }

  .masthead-copy h1 {
    font-size: 3.15rem;
  }

  .masthead-copy p {
    font-size: 0.72rem;
  }

  .exchange-layout {
    grid-template-columns: minmax(64px, 0.9fr) minmax(135px, 1.5fr) minmax(64px, 0.9fr);
    gap: 6px;
  }

  .exchange-photo {
    padding: 5px 5px 23px;
  }

  .exchange-photo img {
    height: 108px;
  }

  .exchange-person figcaption,
  .ledger-cell {
    font-size: 0.52rem;
  }

  .exchange-ledger > * {
    padding-inline: 5px;
  }
}

@media (max-width: 800px) {
  :root {
    --page: 100%;
  }

  .header-inner {
    width: calc(100% - 28px);
    min-height: 68px;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .brand {
    font-size: 1.05rem;
  }

  .brand-mark {
    width: 46px;
  }

  .header-cta {
    display: none;
  }

  .primary-nav {
    top: 68px;
    right: 14px;
    left: 14px;
  }

  .home-shell,
  .past-shell,
  .resources-shell,
  .contact-shell {
    height: auto;
    border-right: 0;
    border-left: 0;
  }

  .resources-hero {
    display: block;
    padding: 64px 20px 34px;
  }

  .contact-hero {
    min-height: 0;
    grid-template-columns: 1fr auto;
    gap: 28px;
    padding: 52px 20px 38px;
  }

  .contact-title-block {
    grid-column: 1 / -1;
  }

  .contact-hero h1 {
    font-size: clamp(3.5rem, 19vw, 7rem);
    line-height: 0.82;
  }

  .contact-intro {
    align-self: center;
    margin: 0;
    font-size: 0.92rem;
  }

  .contact-stamp {
    width: 86px;
  }

  .contact-board {
    padding: 38px 20px 72px;
  }

  .contact-board h2 {
    min-width: min(100%, 310px);
    margin-bottom: 42px;
    padding: 18px 34px 16px;
    font-size: 0.7rem;
    text-align: center;
  }

  .contact-social-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 30px;
  }

  .contact-social-card,
  .contact-social-card-1,
  .contact-social-card-2,
  .contact-social-card-3,
  .contact-social-card-4,
  .contact-social-card-5,
  .contact-social-card-6 {
    width: min(100%, 560px);
    min-height: 188px;
    grid-column: 1;
    justify-self: center;
    padding: 42px 30px 34px;
    transform: none;
  }

  .contact-social-card:nth-child(even) {
    transform: rotate(0.5deg);
  }

  .contact-social-card:hover,
  .contact-social-card:focus-visible,
  .contact-social-card-1:hover,
  .contact-social-card-1:focus-visible,
  .contact-social-card-2:hover,
  .contact-social-card-2:focus-visible,
  .contact-social-card-3:hover,
  .contact-social-card-3:focus-visible,
  .contact-social-card-4:hover,
  .contact-social-card-4:focus-visible,
  .contact-social-card-5:hover,
  .contact-social-card-5:focus-visible,
  .contact-social-card-6:hover,
  .contact-social-card-6:focus-visible {
    transform: translateY(-4px);
  }

  .resources-hero-copy {
    display: flex;
    align-items: flex-start;
    padding-bottom: 54px;
  }

  .resources-hero h1 {
    max-width: 7ch;
    margin-bottom: 24px;
    font-size: clamp(4rem, 20vw, 6.2rem);
    line-height: 0.88;
  }

  .resources-intro {
    max-width: 45ch;
    font-size: 0.78rem;
  }

  .shelf-stamp {
    width: 100px;
  }

  .primary-shelf-items {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 0 0 14px;
  }

  .resource-book,
  .resource-book-2,
  .shelf-note {
    width: min(100%, 560px);
    min-height: 0;
    justify-self: center;
    padding: 32px 28px;
    transform: none;
  }

  .resource-book {
    min-height: 300px;
  }

  .resource-book h2 {
    font-size: 2.3rem;
  }

  .resource-book-icon {
    width: 70px;
    height: 70px;
  }

  .shelf-note {
    min-height: 220px;
    margin-top: 14px;
  }

  .shelf-note strong {
    font-size: 1.85rem;
  }

  .shelf-plank {
    height: 20px;
  }

  .shelf-plank::before,
  .shelf-plank::after {
    top: 19px;
    height: 30px;
  }

  .future-shelf-section {
    padding: 68px 20px 88px;
  }

  .future-shelf-heading {
    display: block;
    margin-bottom: 32px;
  }

  .future-shelf-heading h2 {
    margin-bottom: 14px;
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .future-shelf-heading p {
    max-width: 38ch;
    text-align: left;
  }

  .future-shelf-items {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 0 0 14px;
  }

  .future-book,
  .future-book:nth-child(2n) {
    width: min(100%, 560px);
    min-height: 230px;
    justify-self: center;
    transform: none;
  }

  .future-book h3 {
    font-size: 1.8rem;
  }

  .resource-submit {
    grid-template-columns: 1fr;
    padding: 58px 22px;
  }

  .resource-submit-copy h2 {
    max-width: 8ch;
    font-size: clamp(3.5rem, 17vw, 5.4rem);
  }

  .resource-form {
    grid-template-columns: 1fr;
  }

  .resource-form > label,
  .resource-form .form-wide {
    grid-column: 1;
  }

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

  .hero-copy {
    min-width: 0;
    min-height: 540px;
    padding: 32px 20px 10px;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 15vw, 4.3rem);
    letter-spacing: -0.03em;
    line-height: 0.9;
  }

  .hero h1 span {
    width: 100%;
    white-space: normal;
    transform: none;
  }

  .hero-description {
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .hero-photo {
    min-height: 380px;
    border-top: var(--rule);
    border-left: 0;
    
  }

  .event-notice {
    grid-template-columns: minmax(0, 1fr) 112px;
  }

  .event-details {
    grid-template-columns: 78px 1fr;
  }

  .event-date {
    width: 78px;
    height: 78px;
    gap: 4px;
  }

  .event-date span {
    font-size: 1.42rem;
  }

  .event-date strong {
    font-size: 3.7rem;
  }

  .event-visual .button-small {
    font-size: 0.58rem;
  }

  .editorial-row {
    display: block;
    height: auto;
    padding-bottom: 0;
  }

  .row-heading {
    min-height: auto;
    padding: 14px 18px;
    border-right: 0;
    border-bottom: var(--rule);
  }

  .row-heading::after {
    display: none;
  }

  .row-heading h2 {
    font-size: 2rem;
  }

  .upcoming-list,
  .classified-list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .upcoming-item,
  .classified {
    flex: 0 0 82vw;
    scroll-snap-align: start;
  }

  .upcoming-item {
    min-height: 118px;
  }

  .upcoming-item:last-child {
    height: auto;
    min-height: 118px;
    grid-template-columns: 68px 1fr;
    gap: 12px;
    padding: 12px 14px;
    overflow: visible;
  }

  .upcoming-item:last-child .upcoming-icon {
    width: 62px;
    height: 62px;
  }

  .upcoming-item:last-child .upcoming-date {
    font-size: 0.74rem;
  }

  .upcoming-item:last-child h3 {
    font-size: 1.15rem;
  }

  .upcoming-item:last-child p:last-child {
    font-size: 0.79rem;
  }

  .classified {
    min-height: 190px;
  }

  .classified:last-child h3 {
    padding-right: 0;
  }

  .row-link {
    position: static;
    display: block;
    padding: 12px 18px;
    border-top: var(--rule);
    text-align: right;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item img {
    height: 260px;
  }

  .join-section {
    grid-template-columns: 1fr;
    padding: 54px 22px;
  }

  .join-form {
    grid-template-columns: 1fr;
  }

  .join-form label,
  .join-form small,
  .join-form button {
    grid-column: 1;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }

  .past-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 20px;
  }

  .past-title-card,
  .photo-large,
  .photo-small,
  .past-notes {
    grid-column: 1;
    transform: none;
  }

  .ticket {
    position: static;
    width: auto;
    transform: none;
  }

  .field-note-grid {
    grid-template-columns: 1fr;
  }

  .field-note {
    min-height: 0;
    border-right: 0;
    border-bottom: var(--rule);
  }

  .field-note:last-child {
    border-bottom: 0;
  }

  .past-board {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 0;
    margin-bottom: 0;
    padding: 20px;
    overflow: hidden;
    aspect-ratio: auto;
    transform: none;
  }

  .past-board > .past-paper,
  .past-board > .past-ticket,
  .past-board > .past-polaroid,
  .past-board > .past-film-strip,
  .past-board > .past-tags {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    transform: none;
  }

  .past-board > .round-stamp,
  .past-board > .pinned-note {
    position: relative;
    inset: auto;
  }

  .past-manifesto {
    min-height: clamp(390px, 112vw, 440px);
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    column-gap: 12px;
    align-content: start;
    padding: 58px 28px;
  }

  .past-manifesto h1 {
    grid-column: 1 / -1;
    max-width: 100%;
    font-size: clamp(3.45rem, 16vw, 4.8rem);
  }

  .past-scribble {
    position: static;
    grid-column: 1;
    grid-row: 2;
    width: fit-content;
    margin: 12px 0 4px 10px;
    font-size: 0.8rem;
    line-height: 1.45;
    transform: rotate(-4deg);
  }

  .past-manifesto > img {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    max-width: 180px;
    margin: 12px 0 0;
    padding-left: 0 !important;
    justify-self: start;
  }

  .past-handshake {
    right: 4%;
    bottom: 19%;
    width: 82%;
    height: 28%;
    transform: scaleX(1.25);
  }

  .round-stamp {
    width: 78px;
    align-self: flex-start;
    margin: -150px 0 0 -15px;
  }

  .pinned-note {
    width: 76%;
    min-height: 110px;
    margin: -100px 0 18px 38px;
    padding: 24px;
    font-size: 0.75rem;
    transform: rotate(-2deg);
  }

  .top-ticket {
    min-height: 145px;
    padding: 28px 36px;
    font-size: 0.76rem;
  }

  .top-ticket strong {
    font-size: 0.68rem;
  }

  .past-polaroid {
    min-height: 390px;
    padding: 12px 12px 22px;
  }

  .past-polaroid img,
  .polaroid-two img,
  .polaroid-three img,
  .polaroid-four img {
    height: 300px;
  }

  .past-polaroid figcaption {
    padding: 12px 12px 0;
    font-size: 0.78rem;
  }

  .past-film-strip {
    min-height: 290px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 1fr;
    gap: 8px;
    padding: 12px 12px 52px;
  }

  .night-stamp {
    right: 4%;
    bottom: -2%;
    width: 140px;
    height: 70px;
  }

  .next-ticket {
    min-height: 260px;
    grid-template-columns: 10% 47% 30% 9%;
    padding: 34px 26px 34px 18px;
    order: 3;
  }

  .next-ticket-copy h2 {
    font-size: 1.3rem;
  }

  .next-ticket-copy p,
  .ticket-code {
    font-size: 0.65rem;
  }

  .admit-one {
    font-size: 0.64rem;
  }

  .past-tags {
    padding: 18px 4px 28px;
    order: 1;
  }

  .past-tags h2 {
    font-size: 1.4rem;
  }

  .past-tags ul {
    gap: 7px;
  }

  .past-tags li {
    padding: 6px 8px;
    font-size: 0.62rem;
  }

  .quote-paper {
    min-height: 330px;
    padding: 44px 34px;
    order: 2;
  }

  .quote-paper p {
    font-size: 1.05rem;
  }

  .quote-paper cite {
    font-size: 0.8rem;
  }

  .past-join-card {
    min-height: 320px;
    padding: 48px 42px;
    order: 4;
  }

  .past-join-card h2 {
    font-size: 3rem;
  }

  .past-join-card p {
    font-size: 0.82rem;
  }

  .past-join-card a img {
    width: 45%;
    max-width: 112px;
    margin-left: auto;
    padding-left: 0 !important;
  }

  .join-card-icon {
    height: 62px;
  }

  .how-intro-viewport {
    min-height: 0;
  }

  .how-masthead {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 34px 20px 38px;
  }

  .masthead-sketch {
    width: 164px;
    height: 112px;
  }

  .masthead-stamp {
    width: 104px;
  }

  .masthead-copy h1 {
    font-size: clamp(3.2rem, 15vw, 5rem);
    line-height: 0.9;
    white-space: normal;
  }

  .masthead-copy p {
    max-width: 540px;
    margin-top: 18px;
    font-size: 0.82rem;
  }

  .how-section-header {
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px;
  }

  .how-section-header h2 {
    font-size: clamp(2.4rem, 12vw, 3.7rem);
    text-align: center;
  }

  .how-section-button {
    width: 100%;
    min-width: 0;
    font-size: 0.84rem;
  }

  .whatsapp-columns {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .whatsapp-column {
    padding: 30px 20px 34px;
  }

  .whatsapp-column + .whatsapp-column {
    border-top: var(--rule);
    border-left: 0;
  }

  .whatsapp-column > h3 {
    margin-bottom: 22px;
    font-size: 1.75rem;
  }

  .how-step {
    max-width: 560px;
    grid-template-columns: 52px 1fr;
    gap: 15px;
    margin-inline: auto;
    padding: 14px 0;
  }

  .how-step h4 {
    font-size: 1.2rem;
  }

  .how-step p {
    font-size: 0.75rem;
  }

  .exchange-layout {
    max-width: 560px;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-inline: auto;
  }

  .exchange-person {
    width: min(100%, 280px);
    justify-self: center;
    transform: none !important;
  }

  .exchange-photo img {
    height: 250px;
  }

  .exchange-person figcaption {
    font-size: 0.7rem;
  }

  .exchange-ledger {
    width: 100%;
    max-width: 420px;
    justify-self: center;
    transform: none;
  }

  .exchange-ledger > strong {
    font-size: 0.72rem;
  }

  .ledger-cell {
    min-height: 92px;
    font-size: 0.66rem;
  }

  .ask-categories ul {
    max-width: 560px;
    gap: 12px;
    margin: 0 auto;
  }

  .torn-label {
    min-height: 42px;
    font-size: 0.68rem;
  }

  .events-intro {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 28px 20px 38px;
  }

  .how-events {
    padding-top: 20px;
  }

  .events-copy h2 {
    font-size: clamp(3.3rem, 15vw, 5rem);
  }

  .events-copy p {
    font-size: 0.9rem;
  }

  .events-hero {
    padding: 8px;
    transform: none;
  }

  .events-hero img {
    height: clamp(250px, 72vw, 420px);
  }

  .event-polaroid-row {
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 38px 20px 62px;
  }

  .workshop-note {
    position: relative;
    inset: auto;
    width: min(62vw, 230px);
    min-height: 0;
    justify-self: end;
    margin: 0 16px -10px 0;
    font-size: 0.62rem;
  }

  .event-polaroid {
    width: min(100%, 560px);
    justify-self: center;
    padding: 12px 12px 28px;
    transform: none;
  }

  .event-polaroid-2 {
    transform: rotate(0.7deg);
  }

  .event-polaroid-3 {
    transform: rotate(-0.6deg);
  }

  .event-polaroid h3 {
    font-size: 2.35rem;
  }

  .event-polaroid p {
    font-size: 0.8rem;
  }
}

@media (max-width: 430px) {
  .how-section-header h2 {
    font-size: 2.4rem;
  }

  .ask-categories ul {
    gap: 9px;
  }

  .torn-label {
    padding-inline: 5px;
    font-size: 0.59rem;
  }

  .ledger-cell {
    padding: 8px;
    font-size: 0.59rem;
  }
}

/* Asset-built desktop Shelf scene. The existing card sequence remains the mobile view. */
.mobile-shelf-list {
  display: none;
}

.mobile-future-shelf-plank {
  display: none;
}

.desktop-shelf-scene {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 0 4px;
}

.desktop-shelf-row {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: end;
}

.desktop-shelf-row-top {
  min-height: clamp(330px, 31vw, 475px);
  grid-template-columns: minmax(210px, 1.02fr) minmax(180px, 0.9fr) minmax(185px, 0.82fr);
  gap: clamp(5px, 1vw, 16px);
  padding: 0 clamp(8px, 1.2vw, 18px);
}

.desktop-shelf-row-bottom {
  min-height: clamp(350px, 32vw, 485px);
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  justify-content: center;
  gap: clamp(8px, 1.2vw, 18px);
  margin-top: -24px;
  padding: 0 2%;
}

.illustrated-shelf-plank {
  position: relative;
  z-index: 4;
  width: 100%;
  height: auto;
  display: block;
  margin-top: -19px;
  pointer-events: none;
}

.shelf-object {
  position: relative;
  min-width: 0;
  display: block;
  justify-self: center;
  color: var(--blue);
  text-decoration: none;
  transform-origin: 50% 100%;
}

.shelf-object-book {
  width: min(100%, 295px);
  transform: translateY(4px) rotate(-0.55deg);
}

.shelf-object-folder {
  width: min(100%, 292px);
}

.shelf-object-folder:nth-child(2) {
  transform: rotate(0.5deg);
}

.shelf-object-art,
.future-book-art {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  pointer-events: none;
}

.shelf-object-copy {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  color: var(--blue);
}

.shelf-object-book .shelf-object-copy {
  inset: 13% 8.5% 9% 20%;
}

.shelf-object-folder .shelf-object-copy {
  inset: 13.5% 12.5% 8.5% 10.5%;
}

.shelf-object .book-label {
  margin-bottom: clamp(8px, 1vw, 15px);
  padding-bottom: 5px;
  font-size: clamp(0.58rem, 0.7vw, 0.74rem);
}

.shelf-object h2 {
  margin-bottom: clamp(10px, 1.3vw, 20px);
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.55vw, 1.7rem);
  font-weight: 800;
  line-height: 0.95;
}

.shelf-object p {
  margin: 0;
  font-size: clamp(0.55rem, 0.68vw, 0.7rem);
  line-height: 1.5;
}

.shelf-object .book-action {
  margin-top: auto;
  padding-top: 9px;
  font-size: clamp(0.55rem, 0.65vw, 0.68rem);
}

.shelf-object .coming-soon-stamp {
  right: 2px;
  bottom: 1px;
  font-size: clamp(0.48rem, 0.58vw, 0.6rem);
  background: rgba(246, 240, 223, 0.88);
}

a.shelf-object {
  transition: transform 160ms ease, filter 160ms ease;
}

a.shelf-object:hover,
a.shelf-object:focus-visible {
  z-index: 5;
  filter: drop-shadow(0 12px 10px rgba(54, 40, 23, 0.2));
  transform: translateY(-7px) rotate(0deg);
}

.shelf-object-paperclip {
  position: absolute;
  z-index: 5;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

.shelf-object-paperclip {
  top: -7%;
  left: 0;
  width: 25%;
  transform: rotate(-8deg);
}

.desktop-shelf-note {
  position: relative;
  width: min(100%, 258px);
  align-self: center;
  justify-self: center;
  color: var(--blue);
  text-decoration: none;
  transform: rotate(3.5deg);
  transition: transform 160ms ease, filter 160ms ease;
}

.desktop-shelf-note > img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 7px rgba(54, 40, 23, 0.2));
}

.desktop-shelf-note-copy {
  position: absolute;
  inset: 13% 12% 12%;
  display: flex;
  flex-direction: column;
  gap: 13px;
  font-style: italic;
  img {
    width: 50%;
    align-self: center;
  }
}

.desktop-shelf-note-copy strong {
  font-family: var(--display);
  font-size: clamp(1rem, 1.45vw, 1.55rem);
  line-height: 0.98;
}

.desktop-shelf-note-copy > span:not(.note-pin) {
  font-size: clamp(0.55rem, 0.68vw, 0.68rem);
  line-height: 1.45;
}

.desktop-shelf-note .shelf-note-icon {
  width: clamp(38px, 3.5vw, 54px);
  height: clamp(38px, 3.5vw, 54px);
  margin-top: auto;
  align-self: end;
}

.note-pin {
  position: absolute;
  z-index: 4;
  top: 5.5%;
  left: 50%;
  width: 15px;
  height: 15px;
  border: 1px solid #0a3f75;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 2px 4px 4px rgba(35, 27, 19, 0.25);
  transform: translateX(-50%);
}

.desktop-shelf-note:hover,
.desktop-shelf-note:focus-visible {
  filter: drop-shadow(0 12px 10px rgba(54, 40, 23, 0.18));
  transform: translateY(-6px) rotate(1.5deg);
}

.barter-radio {
  position: relative;
  width: min(122%, 270px);
  align-self: end;
  justify-self: center;
  color: var(--blue);
}

.barter-radio-art {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 6px rgba(54, 40, 23, 0.16));
}

.barter-radio-display {
  position: absolute;
  top: 38%;
  left: 53.6%;
  width: 27.2%;
  height: 22%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 3px 5px;
  text-align: center;
}

.barter-radio-display span,
.barter-radio-display small,
.radio-status {
  font-family: var(--mono);
}

.barter-radio-display span { font-size: clamp(0.28rem, 0.36vw, 0.38rem); letter-spacing: 0.06em; }
.radio-track-window { width: 100%; overflow: hidden; white-space: nowrap; }
.radio-track-line { --radio-track-gap: 1.8rem; width: max-content; display: flex; gap: var(--radio-track-gap); font-family: var(--condensed); font-size: clamp(0.38rem, 0.47vw, 0.5rem); line-height: 1.15; }
.radio-track-line > span { flex: 0 0 auto; padding: 0; font: inherit; letter-spacing: normal; }
.radio-marquee-active { animation: radio-marquee 12s linear infinite; }
@keyframes radio-marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - var(--radio-track-gap) / 2)); } }
@media (prefers-reduced-motion: reduce) { .radio-marquee-active { animation: none; } }

.radio-control {
  position: absolute;
  top: 65.5%;
  width: 9.5%;
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid var(--blue);
  border-radius: 50%;
  color: var(--cream);
  background: var(--blue);
  display: grid;
  place-items: center;
  font-family: system-ui, sans-serif;
  font-size: clamp(0.62rem, 0.82vw, 0.88rem);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.radio-previous { left: 54.5%; }
.radio-play { left: 65.5%; z-index: 7; pointer-events: auto; }
.radio-next { left: 76.5%; }
.radio-control:hover, .radio-control:focus-visible { background: rgba(2, 91, 169, 0.1); outline: 2px solid var(--blue); outline-offset: 1px; }
.radio-control:disabled { cursor: wait; opacity: 0.55; }

.radio-spotify-popover[hidden] { display: none; }
.radio-spotify-popover {
  position: absolute;
  z-index: 10000;
  width: min(456px, calc(100vw - 24px));
  height: 152px;
  border-radius: 12px;
  background: #191414;
  box-shadow: 0 18px 48px rgba(30, 47, 63, 0.34);
}
.radio-spotify-popover [data-radio-embed],
.radio-spotify-popover iframe {
  width: 100% !important;
  height: 152px !important;
  display: block;
  border: 0;
  border-radius: 12px;
}
.radio-spotify-close {
  position: absolute;
  z-index: 2;
  top: -11px;
  right: -11px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 2px solid var(--cream);
  border-radius: 50%;
  color: var(--cream);
  background: var(--blue);
  box-shadow: 0 3px 8px rgba(30, 47, 63, 0.3);
  font: 700 1.15rem/1 system-ui, sans-serif;
  cursor: pointer;
}
.radio-spotify-close:hover,
.radio-spotify-close:focus-visible {
  color: var(--blue);
  background: var(--cream);
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.radio-add-song {
  position: absolute;
  z-index: 5;
  top: 76.5%;
  left: 29%;
  width: 31%;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 5px;
  border: 1px solid var(--blue);
  color: var(--blue);
  background: var(--cream);
  font-family: var(--condensed);
  font-size: clamp(0.38rem, 0.46vw, 0.5rem);
  font-weight: 700;
  text-decoration: none;
  white-space: normal;
  line-height: 1.05;
  transform: translateX(-50%) rotate(-3deg);
}

.radio-add-song > span:last-child {
  min-width: 0;
  text-align: left;
  overflow-wrap: normal;
}

.radio-spotify-mark { width: 18px; aspect-ratio: 1; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--cream); background: var(--blue); font-family: var(--display); font-size: 0.9rem; line-height: 0.6; transform: rotate(90deg); }

.radio-add-song:hover, .radio-add-song:focus-visible { color: var(--cream); background: var(--blue); }
.radio-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.barter-radio-mobile { display: none; }

.shelf-memory-object {
  width: min(100%, 248px);
  max-height: clamp(280px, 27vw, 415px);
  display: block;
  align-self: end;
  justify-self: center;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
}

.decorative-laid-books {
  display: none;
}

.future-shelf-items {
  gap: clamp(12px, 1.6vw, 24px);
}

.future-book,
.future-book:nth-child(2n) {
  min-height: 0;
  aspect-ratio: 4 / 5;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.future-book::before {
  display: none;
}

.future-book-copy {
  position: absolute;
  z-index: 2;
  inset: 12% 8% 9% 19%;
  display: flex;
  flex-direction: column;
}

.future-book .book-label {
  margin-bottom: 10px;
  padding-bottom: 5px;
  font-size: clamp(0.5rem, 0.62vw, 0.66rem);
}

.future-book h3 {
  margin-bottom: clamp(9px, 1vw, 15px);
  font-size: clamp(0.92rem, 1.35vw, 1.45rem);
}

.future-book p {
  margin-bottom: 44px;
  font-size: clamp(0.5rem, 0.62vw, 0.65rem);
  line-height: 1.42;
}

.future-book-icon {
  display: none;
}

.future-book .coming-soon-stamp {
  right: 0;
  bottom: 0;
  padding: 5px 6px;
  font-size: clamp(0.44rem, 0.52vw, 0.55rem);
  background: rgba(246, 240, 223, 0.88);
}

a.future-book {
  transition: transform 160ms ease, filter 160ms ease;
}

a.future-book:hover,
a.future-book:focus-visible {
  z-index: 3;
  filter: drop-shadow(0 12px 10px rgba(54, 40, 23, 0.2));
  transform: translateY(-8px) rotate(0deg);
}

@media (max-width: 1180px) and (min-width: 801px) {
  .desktop-shelf-scene {
    width: min(100%, 920px);
    justify-self: center;
    margin-inline: auto;
  }

  .desktop-shelf-row-top {
    min-height: 410px;
  }

  .desktop-shelf-row-bottom {
    width: min(calc(100% + 80px), 1000px);
    align-self: center;
    min-height: 430px;
  }

  .desktop-shelf-row-bottom + .illustrated-shelf-plank {
    width: min(calc(100% + 80px), 1000px);
    align-self: center;
  }

  .decorative-laid-books {
    position: relative;
    width: min(100%, 220px);
    aspect-ratio: 3 / 2;
    display: block;
    align-self: end;
    overflow: visible;
    pointer-events: none;
  }

  .decorative-laid-books img {
    position: absolute;
    top: 15%;
    left: 16.666%;
    width: 66.666%;
    transform: rotate(-90deg);
  }

  .laid-book-title { display: none; }
}

@media (max-width: 800px) {
  .desktop-shelf-scene {
    display: none;
  }

  .mobile-shelf-list {
    display: flex;
  }

  .barter-radio-mobile {
    width: min(88vw, 390px);
    display: block;
    align-self: center;
    margin: 76px auto 38px;
  }

  .barter-radio-mobile .barter-radio-display span { font-size: 0.48rem; }
  .barter-radio-mobile .radio-track-line { font-size: 0.72rem; }
  .barter-radio-mobile .radio-control { font-size: 1rem; }
  .barter-radio-mobile .radio-add-song { font-size: 0.58rem; }
  .barter-radio-mobile .radio-status { font-size: 0.58rem; }

  .future-illustrated-shelf-plank {
    display: none;
  }

  .mobile-future-shelf-plank {
    display: block;
  }

  .future-book,
  .future-book:nth-child(2n) {
    min-height: 0;
    aspect-ratio: 4 / 5;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .future-book::before {
    display: none;
  }

  .future-book-art {
    display: block;
  }

  .future-book-copy {
    position: absolute;
    inset: 12% 8% 9% 19%;
    display: flex;
    flex-direction: column;
  }

  .future-book .book-label {
    margin-bottom: 18px;
    padding-bottom: 8px;
    font-size: 0.72rem;
  }

  .future-book h3 {
    margin-bottom: 16px;
    font-size: 1.65rem;
  }

  .future-book p {
    margin-bottom: 52px;
    font-size: 0.68rem;
    line-height: 1.5;
  }

  .future-book-icon {
    display: none;
  }

  .future-book .coming-soon-stamp {
    right: 12px;
    bottom: 15px;
    padding: 7px 9px;
    font-size: 0.58rem;
    background: transparent;
  }
}

@media (min-width: 1181px) {
  .resources-hero {
    padding-top: 0;
  }

  .future-shelf-section {
    padding-top: clamp(34px, 3vw, 48px);
  }

  .resources-hero-copy {
    justify-content: flex-start;
    padding-top: clamp(10px, 1.1vw, 18px);
  }

  .desktop-shelf-scene {
    justify-content: flex-start;
    padding-top: 0;
  }

  .desktop-shelf-row-top {
    min-height: clamp(300px, 26vw, 410px);
  }

  .desktop-shelf-row-bottom {
    width: min(calc(100% + 150px), 1120px);
    grid-template-columns: minmax(205px, 255px) minmax(205px, 255px) repeat(2, minmax(210px, 255px));
    align-self: flex-end;
    justify-content: end;
    gap: clamp(8px, 0.9vw, 14px);
    padding-inline: 10px;
  }

  .desktop-shelf-row-bottom + .illustrated-shelf-plank {
    width: min(calc(100% + 150px), 1120px);
    align-self: flex-end;
  }

  .desktop-shelf-row-bottom .shelf-object-folder {
    width: clamp(200px, 16.5vw, 245px);
  }

  .decorative-laid-books {
    position: relative;
    width: min(100%, 340px);
    aspect-ratio: 3 / 2;
    display: block;
    align-self: end;
    justify-self: end;
    margin-bottom: 0;
    overflow: visible;
    pointer-events: none;
  }

  .decorative-laid-books img {
    position: absolute;
    top: 15%;
    left: 16.666%;
    width: 66.666%;
    height: auto;
    display: block;
    transform: rotate(-90deg);
    transform-origin: center;
  }

  .laid-book-title {
    position: absolute;
    z-index: 3;
    left: 17%;
    width: 66%;
    color: var(--blue);
    font-family: var(--condensed);
    font-size: clamp(0.52rem, 0.62vw, 0.68rem);
    font-weight: 700;
    letter-spacing: 0.025em;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
  }

  .laid-book-title-top {
    top: 36%;
  }

  .laid-book-title-bottom {
    top: 76%;
  }

}

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

  * {
    transition-duration: 0.01ms !important;
  }
}

/* Resource archive readers — opened from the existing shelf books and folders. */
body.resource-reader-open {
  overflow: hidden;
}

body.resource-reader-open #site-header {
  visibility: hidden;
}

.resource-reader[hidden] {
  display: none;
}

.resource-reader {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  grid-template-rows: 76px minmax(0, 1fr) 70px;
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(circle at 50% 44%, rgba(36, 126, 205, 0.52), transparent 42%),
    linear-gradient(145deg, #0064b9 0%, #025ba9 50%, #003f7b 100%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.resource-reader::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    repeating-linear-gradient(7deg, transparent 0 3px, rgba(255, 255, 255, 0.012) 4px),
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.08), transparent 24%);
  mix-blend-mode: soft-light;
}

.resource-reader.is-open {
  opacity: 1;
}

.resource-reader-toolbar,
.resource-reader-footer {
  position: relative;
  z-index: 5;
  width: min(100% - 8vw, 1460px);
  margin-inline: auto;
  display: grid;
  align-items: center;
  font-family: var(--mono);
}

.resource-reader-toolbar {
  grid-template-columns: 1fr auto;
}

.resource-reader-footer {
  grid-template-columns: 1fr auto 1fr;
}

.reader-nav-action,
.reader-lift {
  width: fit-content;
  padding: 9px 0;
  border: 0;
  color: inherit;
  background: transparent;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.reader-nav-action:hover,
.reader-nav-action:focus-visible,
.reader-lift:hover,
.reader-lift:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.reader-nav-action:disabled,
.reader-lift:disabled {
  cursor: default;
  opacity: 0.38;
  text-decoration: none;
}

.reader-next {
  justify-self: end;
}

.reader-lift {
  min-width: 190px;
  padding: 11px 18px;
  border: 1px solid currentColor;
  text-align: center;
}

.reader-page-count {
  justify-self: end;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.resource-reader-stage {
  position: relative;
  z-index: 2;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0 4vw;
  perspective: 1700px;
  perspective-origin: 50% 48%;
}

.reader-loading {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.reader-object {
  position: relative;
  width: min(88vw, calc((100svh - 154px) * 1.6), 1420px);
  height: min(55vw, calc(100svh - 154px), 887.5px);
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  color: #161616;
  transform-style: preserve-3d;
  transform: scale(0.78) rotateX(7deg) rotateY(-10deg);
  transform-origin: 50% 80%;
  filter: drop-shadow(0 20px 14px rgba(0, 24, 55, 0.45));
  opacity: 0;
  transition: transform 560ms cubic-bezier(0.2, 0.72, 0.2, 1), opacity 180ms ease;
}

.resource-reader.is-open .reader-object {
  opacity: 1;
  transform: scale(1) rotateX(1.4deg) rotateY(-0.7deg);
}

.reader-spine {
  position: absolute;
  z-index: 9;
  top: 1.5%;
  bottom: 1.5%;
  left: 50%;
  width: 22px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(80, 52, 20, 0.18), rgba(255, 255, 255, 0.55) 46%, rgba(64, 42, 15, 0.18));
  filter: blur(1px);
  opacity: 0.68;
  transform: translateX(-50%) translateZ(14px);
}

.book-page,
.folder-cover,
.folder-sheet {
  background-color: #f3ead5;
  background-image:
    radial-gradient(circle at 24% 20%, rgba(122, 82, 31, 0.08) 0 0.8px, transparent 1.4px),
    radial-gradient(circle at 80% 66%, rgba(122, 82, 31, 0.06) 0 0.7px, transparent 1.2px),
    linear-gradient(105deg, rgba(255, 255, 255, 0.36), transparent 24%, rgba(119, 82, 35, 0.035));
  background-size: 9px 11px, 13px 15px, auto;
}

.reader-book::before,
.reader-folder::before {
  position: absolute;
  z-index: -2;
  inset: 0.8% -0.8% -1.2%;
  border: 3px solid #054983;
  border-radius: 2.5% 2.5% 3% 3%;
  content: "";
  background: #0a528e;
  box-shadow: 0 7px 0 #cdbb93, 0 11px 0 rgba(6, 49, 91, 0.8);
  transform: translateZ(-8px);
}

.book-page {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(121, 79, 29, 0.28);
  transition: transform 620ms cubic-bezier(0.2, 0.72, 0.2, 1);
  backface-visibility: hidden;
}

.book-page-left {
  padding: 3.2% 5% 3.2% 4.8%;
  border-radius: 5% 1.2% 1.2% 4%;
  box-shadow: inset -20px 0 22px rgba(85, 57, 25, 0.08), inset 5px 0 rgba(255, 255, 255, 0.48);
  transform-origin: 100% 50%;
  transform: rotateY(2deg) translateZ(2px);
}

.resource-reader:not(.is-open) .book-page-left {
  transform: rotateY(82deg) translateZ(6px);
}

.book-page-right {
  padding: 5.6% 5.5% 4.2% 8.2%;
  border-radius: 1.2% 5% 4% 1.2%;
  background-image:
    linear-gradient(90deg, transparent 0 11.4%, rgba(197, 80, 62, 0.28) 11.5% 11.7%, transparent 11.8%),
    repeating-linear-gradient(to bottom, transparent 0 42px, rgba(34, 104, 159, 0.16) 43px 44px),
    radial-gradient(circle at 24% 20%, rgba(122, 82, 31, 0.07) 0 0.8px, transparent 1.4px),
    linear-gradient(105deg, rgba(255, 255, 255, 0.28), transparent 40%);
  background-size: auto, auto, 11px 13px, auto;
  box-shadow: inset 22px 0 24px rgba(85, 57, 25, 0.09), inset -6px 0 rgba(255, 255, 255, 0.44);
  transform-origin: 0 50%;
  transform: rotateY(-1.4deg) translateZ(1px);
}

.book-page-left::before,
.book-page-right::after {
  position: absolute;
  top: 1.5%;
  bottom: 1.5%;
  width: 13px;
  content: "";
  background: repeating-linear-gradient(to right, #d8c6a2 0 1px, #f3ead5 1px 3px);
  opacity: 0.9;
}

.book-page-left::before {
  left: 0;
  border-radius: 60% 0 0 60%;
}

.book-page-right::after {
  right: 0;
  border-radius: 0 60% 60% 0;
}

.book-title-frame {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 62px) clamp(30px, 5vw, 74px);
  border: 8px double var(--blue);
  border-radius: 7% 2.5% 3% 5%;
  color: var(--blue);
}

.book-reader-kicker {
  margin: 0 0 auto;
  font-family: var(--condensed);
  font-size: clamp(0.5rem, 0.65vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.13em;
}

.book-title-frame h2 {
  max-width: 8ch;
  margin: 0 0 20px;
  font-family: var(--condensed);
  font-size: clamp(2.8rem, 4.6vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.92;
}

.book-title-rule {
  width: 105px;
  height: 4px;
  margin-bottom: 22px;
  background: var(--blue);
}

.book-title-frame > p:not(.book-reader-kicker) {
  max-width: 35ch;
  margin-bottom: 24px;
  color: #161616;
  font-size: clamp(0.58rem, 0.78vw, 0.84rem);
  line-height: 1.55;
}

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

.book-contents li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--blue);
  color: #161616;
  font-size: clamp(0.54rem, 0.68vw, 0.72rem);
}

.book-contents li span {
  color: var(--blue);
  font-family: var(--condensed);
  font-weight: 700;
}

.book-contents .is-empty {
  font-style: italic;
  opacity: 0.7;
}

.book-entry-stamp {
  width: 115px;
  margin: auto 8% 0 auto;
  padding: 9px;
  border: 3px double #c64b34;
  color: #c64b34;
  display: grid;
  place-items: center;
  font-family: var(--condensed);
  transform: rotate(-5deg);
}

.book-entry-stamp strong {
  font-size: 1.7rem;
  line-height: 1;
}

.book-entry-stamp span {
  font-size: 0.82rem;
  font-weight: 700;
}

.book-page-rule {
  height: 2px;
  margin-bottom: 2.4%;
  background: var(--blue);
}

.book-entry-list,
.folder-entry-list {
  height: calc(100% - 14px);
  min-height: 0;
  display: grid;
  grid-template-rows: repeat(6, minmax(0, 1fr));
  overflow: hidden;
}

.book-entry {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  padding: 2.6% 1% 2.4%;
  border-bottom: 2px solid var(--blue);
  overflow: hidden;
  grid-row: span 2;
}

.book-entry[data-reader-units="3"],
.folder-entry[data-reader-units="3"] {
  grid-row: span 3;
}

.reader-entry-number {
  color: var(--blue);
  font-family: var(--condensed);
  font-size: clamp(1rem, 1.65vw, 1.65rem);
  font-weight: 700;
}

.reader-entry-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.reader-entry-copy h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.55vw, 1.7rem);
  line-height: 1.04;
}

.reader-entry-copy > p {
  max-width: 48ch;
  margin: 0 0 10px;
  font-size: clamp(0.54rem, 0.68vw, 0.74rem);
  line-height: 1.48;
}

.reader-entry-meta {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  font-size: clamp(0.48rem, 0.6vw, 0.64rem);
}

.reader-entry-byline {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.reader-entry-comment-preview {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 0;
  color: var(--blue);
  font-size: 0.92em;
  line-height: 1.2;
}

.reader-entry-comment-preview[hidden] {
  display: none;
}

.reader-entry-comment-preview span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reader-entry-comment-preview b {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 1.15em;
  letter-spacing: 0.08em;
}

.reader-entry-like {
  min-width: 40px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 3px 7px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  color: var(--blue);
  background: transparent;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.reader-entry-like svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.reader-entry-like:hover,
.reader-entry-like:focus-visible,
.reader-entry-like.is-liked {
  color: var(--cream);
  background: var(--blue);
}

.reader-entry-like:disabled {
  cursor: wait;
  opacity: 0.62;
}

.reader-category {
  width: fit-content;
  padding: 5px 7px;
  border: 1px solid var(--blue);
  border-radius: 3px;
  color: var(--blue);
  font-family: var(--condensed);
  font-weight: 700;
}

.book-entry:nth-child(2n) .reader-category {
  border-color: #c64b34;
  color: #c64b34;
}

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

.reader-entry-tags li {
  padding: 3px 6px;
  border: 1px solid var(--blue);
  border-radius: 2px;
  color: var(--blue);
  font-family: var(--condensed);
  font-size: clamp(0.46rem, 0.54vw, 0.58rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.book-entry.has-attachment:not(.has-pdf-attachment) .reader-entry-copy,
.folder-entry.has-attachment:not(.has-pdf-attachment) .folder-entry-copy {
  display: block;
}

.reader-entry-photo {
  position: relative;
  float: right;
  width: 38%;
  aspect-ratio: 1 / 1.06;
  margin: 0 0 8px 12px;
  overflow: hidden;
  border: 4px solid #fffaf0;
  background: transparent;
  box-shadow: 2px 3px 7px rgba(62, 39, 15, 0.25);
  transform: rotate(1.2deg);
}

.reader-entry-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.reader-entry-photo-open {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.reader-entry-photo-open:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: -3px;
}

.reader-entry-expand {
  position: absolute;
  z-index: 3;
  right: 6px;
  bottom: 6px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid var(--cream);
  border-radius: 50%;
  color: var(--cream);
  background: var(--blue);
  font-family: var(--condensed);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.24);
  cursor: pointer;
}

.reader-entry-expand:hover,
.reader-entry-expand:focus-visible {
  color: var(--blue);
  background: var(--cream);
  border-color: var(--blue);
}

.reader-entry-media-count {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 3px 5px;
  color: var(--cream);
  background: rgba(2, 91, 169, 0.94);
  font-family: var(--condensed);
  font-size: 0.54rem;
  font-weight: 700;
}

.photo-album-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.photo-album-filters button { padding: 5px 7px; border: 1px solid var(--blue); color: var(--blue); background: transparent; font-family: var(--condensed); font-size: 0.62rem; font-weight: 700; cursor: pointer; }
.photo-album-filters button[aria-pressed="true"], .photo-album-filters button:hover, .photo-album-filters button:focus-visible { color: var(--cream); background: var(--blue); }

.book-entry.has-attachment:not(.has-pdf-attachment) .reader-entry-meta,
.folder-entry.has-attachment:not(.has-pdf-attachment) .folder-entry-meta {
  clear: both;
  padding-top: 6px;
}

.book-entry.has-pdf-attachment,
.folder-entry.has-pdf-attachment {
  padding-block: 1.4%;
}

.book-entry.has-pdf-attachment .reader-entry-copy,
.folder-entry.has-pdf-attachment .folder-entry-copy {
  min-height: 0;
}

.reader-entry-pdf {
  position: relative;
  height: 100%;
  min-height: 112px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 2px solid var(--blue);
  background: #fffdf8;
  box-shadow: 2px 3px 0 rgba(2, 91, 169, 0.17);
}

.reader-entry-pdf-heading,
.reader-entry-pdf-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--condensed);
  font-size: clamp(0.46rem, 0.55vw, 0.6rem);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.reader-entry-pdf-heading {
  padding: 6px 8px;
  color: var(--cream);
  background: var(--blue);
  justify-content: flex-start;
}

.reader-entry-pdf-heading strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reader-entry-pdf-page {
  position: relative;
  min-height: 70px;
  overflow: hidden;
  background: #fff;
}

.reader-entry-pdf-page iframe {
  width: 100%;
  height: 100%;
  min-height: 94px;
  display: block;
  border: 0;
  background: #fff;
  pointer-events: none;
}

.reader-entry-pdf-details {
  padding: 6px 8px;
  border-top: 1px solid var(--blue);
  color: var(--blue);
  background: rgba(246, 240, 223, 0.98);
}

.reader-entry-pdf-details .reader-entry-like {
  min-width: 34px;
  height: 20px;
  padding: 2px 5px;
  font-size: 0.5rem;
}

.reader-entry-pdf-details .reader-entry-like svg {
  width: 11px;
  height: 11px;
}

.reader-entry-pdf-details .reader-entry-byline {
  max-width: 34%;
}

.reader-entry-pdf .reader-entry-expand {
  bottom: 29px;
}

.reader-entry-action {
  color: var(--blue);
  font-family: var(--condensed);
  font-weight: 700;
  letter-spacing: 0.035em;
  text-decoration: none;
  white-space: nowrap;
}

.reader-entry-action:hover,
.reader-entry-action:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.reader-entry-action.is-unlinked {
  opacity: 0.76;
}

.reader-entry-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.reader-entry-comments {
  padding: 4px 6px;
  border: 1px solid var(--blue);
  color: var(--blue);
  background: transparent;
  font-family: var(--condensed);
  font-size: inherit;
  font-weight: 700;
  letter-spacing: 0.035em;
  white-space: nowrap;
  cursor: pointer;
}

.reader-entry-comments:hover,
.reader-entry-comments:focus-visible {
  color: var(--cream);
  background: var(--blue);
}

.reader-entry-comments span {
  margin-left: 2px;
}

.reader-entry-pdf-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.reader-entry-pdf-actions .reader-entry-comments {
  padding: 2px 4px;
}

.reader-empty-state {
  grid-row: 1 / -1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px;
  color: var(--blue);
  text-align: center;
}

.reader-empty-state > span {
  margin-bottom: 14px;
  font-size: 2rem;
}

.reader-empty-state h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 3rem);
}

.reader-empty-state p {
  max-width: 44ch;
  margin: 0 0 10px;
  color: #161616;
  font-size: 0.72rem;
  line-height: 1.55;
}

.reader-empty-state small {
  margin-bottom: 10px;
  color: #7b371f;
}

.reader-empty-state button {
  margin-top: 14px;
  padding: 9px 12px;
  border: 1px solid var(--blue);
  color: var(--blue);
  background: transparent;
  font-family: var(--condensed);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}

.reader-empty-state button:hover,
.reader-empty-state button:focus-visible {
  color: var(--cream);
  background: var(--blue);
}

.reader-folder {
  width: min(78vw, calc((100svh - 154px) * 1.6), 1260px);
  height: min(48.75vw, calc(100svh - 154px), 787.5px);
}

.reader-folder::before {
  inset: 0 -1.5% -0.6%;
  border: 0;
  background: #dcc9a3;
  box-shadow: 0 10px 0 rgba(65, 43, 19, 0.24);
}

.folder-cover {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(104, 69, 28, 0.26);
  transition: transform 620ms cubic-bezier(0.2, 0.72, 0.2, 1);
  backface-visibility: hidden;
}

.folder-cover-left {
  padding: 4.2%;
  border-radius: 4% 1% 1% 4%;
  box-shadow: inset -22px 0 28px rgba(84, 54, 22, 0.12);
  transform-origin: 100% 50%;
  transform: rotateY(2.5deg);
}

.resource-reader:not(.is-open) .folder-cover-left {
  transform: rotateY(84deg) translateZ(8px);
}

.folder-cover-right {
  padding: 2.2% 3.4% 2.2% 2.4%;
  overflow: visible;
  border-radius: 1% 4% 4% 1%;
  box-shadow: inset 20px 0 28px rgba(84, 54, 22, 0.1);
  transform: rotateY(-1deg);
}

.folder-cover-frame {
  height: 100%;
  padding: 11% 10% 29%;
  border: 7px double var(--blue);
  border-radius: 5% 2% 2% 5%;
}

.folder-cover-heading {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.folder-cover-heading p {
  width: fit-content;
  margin: 0 0 8%;
  padding: 5px 7px;
  border: 1px solid #c64b34;
  color: #c64b34;
  font-family: var(--condensed);
  font-size: clamp(0.64rem, 0.74vw, 0.78rem);
  transform: rotate(-4deg);
}

.folder-cover-heading h2 {
  max-width: 9ch;
  margin: 0;
  color: var(--blue);
  font-family: var(--condensed);
  font-size: clamp(2.65rem, 3.8vw, 4.2rem);
  letter-spacing: 0.01em;
  line-height: 0.91;
}

.folder-title-rule {
  width: 72%;
  margin-top: 7%;
  border-top: 4px solid var(--blue);
}

.folder-cover-heading > span:last-child {
  align-self: flex-end;
  max-width: 175px;
  margin-top: 9%;
  padding: 11px 13px;
  color: #282017;
  background: #e9dcc0;
  box-shadow: 0 4px 4px rgba(79, 52, 25, 0.12);
  font-size: clamp(0.72rem, 0.82vw, 0.88rem);
  line-height: 1.45;
  transform: rotate(-2deg);
}

.folder-library-stamp {
  position: absolute;
  bottom: 9%;
  left: 11%;
  min-width: 154px;
  display: grid;
  place-items: center;
  padding: 9px 13px;
  border: 3px double var(--blue);
  color: var(--blue);
  font-family: var(--mono);
  transform: rotate(7deg);
}

.folder-library-stamp strong {
  font-size: 1.4rem;
  letter-spacing: 0.15em;
}

.folder-library-stamp span,
.folder-library-stamp small {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
}

.folder-library-stamp small {
  position: absolute;
  top: calc(100% + 7px);
  left: 8px;
  white-space: nowrap;
}

.folder-sheet {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 12% 5.5% 5%;
  border: 1px solid rgba(98, 66, 31, 0.28);
  border-radius: 3% 2% 4% 2%;
  background-image:
    linear-gradient(90deg, transparent 0 13%, rgba(197, 80, 62, 0.25) 13.1% 13.3%, transparent 13.4%),
    repeating-linear-gradient(to bottom, transparent 0 33px, rgba(34, 104, 159, 0.14) 34px 35px),
    radial-gradient(circle at 24% 20%, rgba(122, 82, 31, 0.07) 0 0.8px, transparent 1.4px);
  background-size: auto, auto, 11px 13px;
  box-shadow: -4px 4px 0 #e8dcc1, -8px 8px 0 #d7c5a1, 0 8px 12px rgba(74, 47, 21, 0.2);
  transform: translateZ(14px) rotate(0.25deg);
  transition: transform 500ms ease;
}

.resource-reader:not(.is-open) .folder-sheet {
  transform: translateZ(50px) translateY(-22px) rotateX(-8deg) rotate(1.2deg);
}

.folder-paperclip {
  position: absolute;
  z-index: 5;
  top: 8px;
  left: 7%;
  width: 30px;
  height: 84px;
  border: 3px solid #4d493e;
  border-bottom-color: transparent;
  border-radius: 16px 16px 8px 8px;
  box-shadow: 2px 2px 3px rgba(56, 42, 24, 0.32);
  transform: rotate(1deg);
}

.folder-paperclip::after {
  position: absolute;
  inset: 5px 5px 7px;
  border: 1px solid #655f51;
  border-bottom-color: transparent;
  border-radius: 10px 10px 5px 5px;
  content: "";
}

.folder-sheet-rule {
  height: 2px;
  margin-bottom: 1%;
  background: var(--blue);
}

.folder-entry-list {
  flex: 1;
  min-height: 0;
}

.folder-entry {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: clamp(10px, 1.1vw, 16px);
  padding: 3.2% 1%;
  border-bottom: 2px solid var(--blue);
  overflow: hidden;
  grid-row: span 2;
}

.folder-entry-number {
  color: var(--blue);
  font-family: var(--condensed);
  font-size: clamp(1.05rem, 1.45vw, 1.5rem);
  font-weight: 700;
  line-height: 1;
}

.folder-entry-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.folder-entry h3 {
  margin: 0 0 7px;
  color: var(--blue);
  font-family: var(--condensed);
  font-size: clamp(1.05rem, 1.3vw, 1.4rem);
  line-height: 1.12;
}

.folder-entry-copy > p {
  max-width: 54ch;
  margin: 0 0 10px;
  font-size: clamp(0.72rem, 0.82vw, 0.88rem);
  line-height: 1.48;
}

.folder-entry-meta {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: clamp(10px, 1.2vw, 18px);
  align-items: center;
  margin-top: auto;
  color: #2c261d;
  font-size: clamp(0.64rem, 0.72vw, 0.76rem);
}

.attachment-viewer-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.folder-entry-meta span,
.folder-entry-meta time {
  margin: 0;
}

.folder-entry .reader-entry-action {
  font-size: clamp(0.68rem, 0.78vw, 0.82rem);
}

.folder-entry .reader-entry-action.is-unlinked {
  padding: 4px 6px;
  border: 1px solid currentColor;
  white-space: nowrap;
}

.folder-sheet-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 3%;
  color: var(--blue);
  font-size: clamp(0.6rem, 0.68vw, 0.72rem);
}

.book-page-markers {
  position: absolute;
  z-index: 12;
  top: 11%;
  right: -51px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.book-page-marker {
  width: 70px;
  min-height: 38px;
  padding: 6px 12px 6px 22px;
  border: 1px solid #b69d6c;
  border-left: 0;
  border-radius: 0 14px 14px 0;
  color: var(--blue);
  background: #eadabd;
  font-family: var(--mono);
  font-size: 0.48rem;
  cursor: pointer;
  writing-mode: vertical-rl;
}

.book-page-marker.is-active {
  color: var(--cream);
  background: var(--blue);
  transform: translateX(5px);
}

.folder-file-tabs {
  position: absolute;
  z-index: 4;
  top: 15%;
  right: -34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.folder-file-tab {
  width: 42px;
  height: 88px;
  padding: 12px 8px 12px 10px;
  border: 1px solid #a98d5b;
  border-left: 0;
  border-radius: 0 10px 10px 0;
  color: var(--blue);
  background: #dfc99d;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.23);
  clip-path: polygon(0 0, 74% 0, 100% 9%, 100% 100%, 0 100%);
  font-family: var(--mono);
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  cursor: pointer;
}

.folder-file-tab.is-active {
  color: var(--cream);
  background: var(--blue);
  transform: translateX(6px);
}

@media (max-width: 800px) {
  .resource-reader {
    grid-template-rows: 58px minmax(0, 1fr) 58px;
  }

  .resource-reader-toolbar,
  .resource-reader-footer {
    width: calc(100% - 26px);
  }

  .reader-nav-action,
  .reader-lift,
  .reader-page-count {
    font-size: 0.58rem;
  }

  .reader-lift {
    min-width: 0;
    padding: 8px 10px;
  }

  .resource-reader-stage {
    display: block;
    overflow: auto;
    padding: 12px 13px 28px;
    perspective: 1100px;
  }

  .reader-object,
  .reader-folder {
    width: min(100%, 620px);
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    margin: 0 auto;
    transform: scale(0.88) rotateX(5deg);
  }

  .resource-reader.is-open .reader-object {
    transform: scale(1) rotateX(0.5deg);
  }

  .reader-book::before,
  .reader-folder::before {
    inset: 0 -4px -6px;
  }

  .reader-spine {
    top: 50%;
    right: 2%;
    bottom: auto;
    left: 2%;
    width: auto;
    height: 18px;
    background: linear-gradient(rgba(80, 52, 20, 0.18), rgba(255, 255, 255, 0.5), rgba(64, 42, 15, 0.18));
    transform: translateY(-50%);
  }

  .book-page-left {
    min-height: 500px;
    padding: 18px;
    border-radius: 20px 20px 5px 5px;
    transform-origin: 50% 100%;
  }

  .resource-reader:not(.is-open) .book-page-left {
    transform: rotateX(-64deg) translateZ(8px);
  }

  .book-page-right {
    height: 590px;
    min-height: 0;
    padding: 36px 26px 34px 48px;
    border-radius: 5px 5px 20px 20px;
  }

  .book-title-frame {
    padding: 42px 34px;
  }

  .book-title-frame h2 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .book-entry {
    grid-template-columns: 38px 1fr;
    gap: 8px;
    padding-block: 18px;
  }

  .reader-entry-copy h3 {
    font-size: 1.15rem;
  }

  .reader-entry-copy > p {
    font-size: 0.62rem;
  }

  .reader-entry-meta {
    grid-template-columns: minmax(0, 1fr) auto auto;
    font-size: 0.52rem;
  }

  .reader-entry-meta > span,
  .reader-entry-meta .reader-entry-byline {
    grid-column: 1;
  }

  .reader-entry-meta .reader-entry-like {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .reader-entry-meta .reader-entry-actions {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .folder-cover-left {
    min-height: 500px;
    padding: 18px;
    border-radius: 20px 20px 5px 5px;
    transform-origin: 50% 100%;
  }

  .resource-reader:not(.is-open) .folder-cover-left {
    transform: rotateX(-62deg) translateZ(8px);
  }

  .folder-cover-right {
    height: 630px;
    min-height: 0;
    padding: 14px;
    border-radius: 5px 5px 20px 20px;
  }

  .folder-sheet {
    height: 600px;
    min-height: 0;
    padding: 82px 24px 32px 34px;
  }

  .folder-cover-frame {
    padding: 48px 36px 138px;
  }

  .folder-cover-heading h2 {
    max-width: 100%;
    font-size: clamp(2.65rem, 10.5vw, 3.7rem);
    letter-spacing: -0.015em;
  }

  .folder-cover-heading > span:last-child {
    font-size: 0.82rem;
  }

  .folder-entry {
    min-height: 0;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    padding: 20px 4px;
  }

  .folder-entry-number {
    font-size: 1.05rem;
  }

  .folder-entry h3 {
    font-size: 1.12rem;
  }

  .folder-entry-copy > p {
    font-size: 0.76rem;
  }

  .folder-entry-meta {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 5px 10px;
    font-size: 0.66rem;
  }

  .folder-entry-meta > span,
  .folder-entry-meta > time,
  .folder-entry-meta .reader-entry-byline {
    grid-column: 1;
  }

  .folder-entry-meta .reader-entry-like {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .folder-entry .reader-entry-actions {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
  }

  .folder-entry .reader-entry-action,
  .folder-entry .reader-entry-comments {
    font-size: 0.68rem;
  }

  .book-page-markers {
    top: calc(50% + 26px);
    right: -3px;
    gap: 5px;
  }

  .book-page-marker {
    width: 48px;
    min-height: 28px;
    padding: 5px 7px 5px 13px;
    font-size: 0.42rem;
  }

  .folder-file-tabs {
    top: 76px;
    right: -5px;
    gap: 5px;
  }

  .folder-file-tab {
    width: 32px;
    height: 72px;
    padding: 8px 5px 8px 7px;
    font-size: 0.43rem;
  }

  .folder-file-tab.is-active {
    transform: translateX(4px);
  }

  .reader-empty-state {
    padding: 28px 16px;
  }
}

.resource-attachment-viewer[hidden] {
  display: none;
}

.resource-attachment-viewer {
  position: absolute;
  z-index: 30;
  inset: 18px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  padding: clamp(14px, 2vw, 26px);
  color: var(--blue);
  background:
    radial-gradient(circle at 24% 20%, rgba(122, 82, 31, 0.07) 0 0.8px, transparent 1.4px) 0 0 / 11px 13px,
    var(--cream);
  border: 3px solid var(--blue);
  box-shadow: 0 18px 46px rgba(0, 23, 51, 0.46);
}

.attachment-viewer-toolbar,
.attachment-viewer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.attachment-viewer-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.attachment-viewer-toolbar button,
.attachment-viewer-nav button {
  padding: 8px 10px;
  border: 1px solid var(--blue);
  color: var(--blue);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.attachment-viewer-toolbar button:hover,
.attachment-viewer-toolbar button:focus-visible,
.attachment-viewer-nav button:hover,
.attachment-viewer-nav button:focus-visible {
  color: var(--cream);
  background: var(--blue);
}

.attachment-viewer-nav button:disabled {
  cursor: default;
  opacity: 0.35;
}

.attachment-viewer-layout {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 28%);
  gap: clamp(14px, 2.5vw, 34px);
}

.attachment-viewer-layout.is-details-only {
  grid-template-columns: 1fr;
}

.attachment-viewer-layout.is-details-only .attachment-viewer-details {
  width: min(760px, 100%);
  margin: 0 auto;
  align-self: start;
}

.attachment-viewer-media-column {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
}

.attachment-viewer-media-column[hidden],
.attachment-viewer-nav[hidden] {
  display: none;
}

.attachment-viewer-gallery[hidden] {
  display: none;
}

.attachment-viewer-gallery {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-content: start;
  gap: 18px;
  overflow-y: auto;
  padding: 8px;
}

.resource-attachment-viewer.is-gallery-view .attachment-viewer-nav {
  display: none;
}

.attachment-viewer-gallery-pagination {
  align-items: center;
  color: var(--blue);
  display: flex;
  font-size: .72rem;
  font-weight: 800;
  gap: 12px;
  justify-content: space-between;
  letter-spacing: .08em;
  padding: 10px 2px 0;
}

.attachment-viewer-gallery-pagination[hidden] {
  display: none;
}

.attachment-viewer-gallery-pagination div {
  display: flex;
  gap: 6px;
}

.attachment-viewer-gallery-pagination button {
  background: var(--paper);
  border: 1px solid currentColor;
  color: var(--blue);
  font: inherit;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 7px 8px;
}

.attachment-viewer-gallery-item {
  aspect-ratio: 1;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(2, 91, 169, 0.42);
  background: rgba(2, 91, 169, 0.06);
  cursor: pointer;
}

.attachment-viewer-gallery-item:hover,
.attachment-viewer-gallery-item:focus-visible {
  border: 3px solid var(--blue);
  outline: none;
}

.attachment-viewer-gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.attachment-viewer-media {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
}

.attachment-viewer-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.attachment-viewer-thumbnails[hidden] {
  display: none;
}

.attachment-viewer-thumbnails {
  min-width: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  padding: 3px 2px 5px;
}

.attachment-viewer-thumbnail {
  flex: 0 0 68px;
  width: 68px;
  height: 58px;
  display: grid;
  place-items: center;
  padding: 3px;
  overflow: hidden;
  border: 1px solid rgba(2, 91, 169, 0.48);
  color: var(--blue);
  background: transparent;
  font-family: var(--condensed);
  font-weight: 700;
  cursor: pointer;
}

.attachment-viewer-thumbnail.is-active {
  border: 3px solid var(--blue);
  padding: 1px;
}

.attachment-viewer-thumbnail img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.attachment-viewer-media iframe {
  width: 100%;
  height: 100%;
  max-width: 100%;
  min-height: 320px;
  border: 0;
  background: #fff;
}

.attachment-viewer-details {
  min-width: 0;
  max-height: 100%;
  align-self: center;
  overflow-y: auto;
  padding-right: 4px;
}

.attachment-viewer-details h2 {
  margin: 0 0 16px;
  color: var(--blue);
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.2vw, 3.8rem);
  line-height: 0.94;
}

.attachment-viewer-details > p {
  color: var(--ink);
  font-size: clamp(0.78rem, 1vw, 0.98rem);
  line-height: 1.55;
}

.attachment-viewer-details dl {
  margin: 20px 0;
  padding-top: 14px;
  border-top: 1px solid var(--blue);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.attachment-viewer-details dl div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 7px;
}

.attachment-viewer-details dt { font-weight: 500; text-transform: uppercase; }
.attachment-viewer-details dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }

.attachment-viewer-comments {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 2px solid var(--blue);
}

.attachment-viewer-comments > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.attachment-viewer-comments h3 {
  margin: 0;
  font-family: var(--condensed);
  font-size: 1rem;
}

.attachment-viewer-comments button {
  padding: 6px 8px;
  border: 1px solid var(--blue);
  color: var(--blue);
  background: transparent;
  font-family: var(--condensed);
  font-size: 0.66rem;
  font-weight: 700;
  cursor: pointer;
}

.attachment-viewer-comments button:hover,
.attachment-viewer-comments button:focus-visible {
  color: var(--cream);
  background: var(--blue);
}

.attachment-viewer-comments ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.attachment-viewer-comments li {
  padding: 9px 10px;
  color: var(--ink);
  background: rgba(234, 218, 189, 0.55);
  border-left: 2px solid var(--blue);
}

.attachment-viewer-comments li > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.54rem;
  text-transform: uppercase;
}

.attachment-viewer-comments li p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.72rem;
  line-height: 1.42;
}

.attachment-viewer-comments .attachment-comments-status {
  color: var(--blue);
  background: transparent;
  border: 1px dashed var(--blue);
  font-family: var(--mono);
  font-size: 0.6rem;
  text-align: center;
}

.resource-comments-viewer[hidden] {
  display: none;
}

.resource-comments-viewer {
  position: absolute;
  z-index: 40;
  top: 50%;
  left: 50%;
  width: min(390px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  display: grid;
  gap: 12px;
  padding: 16px;
  overflow: auto;
  color: var(--blue);
  background:
    radial-gradient(circle at 24% 20%, rgba(122, 82, 31, 0.07) 0 0.8px, transparent 1.4px) 0 0 / 11px 13px,
    var(--cream);
  border: 2px solid var(--blue);
  box-shadow: 0 18px 46px rgba(0, 23, 51, 0.46);
  transform: translate(-50%, -50%);
}

.comments-popover-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--blue);
}

.comments-popover-heading p {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.07em;
}

.comments-popover-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1;
}

.comments-popover-heading button {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--blue);
  color: var(--blue);
  background: transparent;
  font-family: var(--mono);
  font-size: 1rem;
  cursor: pointer;
}

.comments-popover-heading button:hover,
.comments-popover-heading button:focus-visible {
  color: var(--cream);
  background: var(--blue);
}

.comments-form {
  display: grid;
  gap: 10px;
  padding: 0;
  color: var(--blue);
  background: transparent;
  box-shadow: none;
}

.comments-form label > span {
  display: block;
  margin-bottom: 5px;
  font-family: var(--condensed);
  font-weight: 700;
}

.comments-form label small,
.comments-form > small {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 400;
}

.comments-form input,
.comments-form textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--blue);
  border-radius: 0;
  color: var(--ink);
  background: #fffdf5;
  font: inherit;
}

.comments-form textarea {
  resize: vertical;
}

.comments-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.comments-form-footer p {
  min-height: 1.2em;
  margin: 0;
  color: #9f321f;
  font-family: var(--mono);
  font-size: 0.58rem;
}

.comments-form-footer button {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid var(--blue);
  color: var(--cream);
  background: var(--blue);
  font-family: var(--condensed);
  font-weight: 700;
  cursor: pointer;
}

.comments-form-footer button:disabled {
  cursor: wait;
  opacity: 0.6;
}

@media (max-width: 800px) {
  .resource-attachment-viewer {
    position: fixed;
    inset: 8px;
    overflow: auto;
  }

  .resource-attachment-viewer.is-gallery-view {
    grid-template-rows: auto auto auto;
    align-content: start;
  }

  .resource-attachment-viewer.is-gallery-view .attachment-viewer-toolbar {
    align-items: center;
    flex-wrap: wrap;
  }

  .resource-attachment-viewer.is-gallery-view .attachment-viewer-toolbar-actions {
    flex: 1 1 100%;
  }

  .resource-attachment-viewer.is-gallery-view .attachment-viewer-toolbar > span {
    margin-left: auto;
  }

  .resource-attachment-viewer.is-gallery-view .attachment-viewer-layout,
  .resource-attachment-viewer.is-gallery-view .attachment-viewer-media-column {
    display: block;
    min-height: auto;
  }

  .resource-attachment-viewer.is-gallery-view .attachment-viewer-nav {
    display: none;
  }

  .resource-attachment-viewer.is-gallery-view .attachment-viewer-details {
    margin-top: 28px;
  }

  .attachment-viewer-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(46vh, 1fr) auto;
  }

  .attachment-viewer-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    overflow: visible;
  }

  .attachment-viewer-gallery-pagination {
    gap: 8px;
    padding: 14px 0 2px;
  }

  .attachment-viewer-gallery-pagination div {
    flex: 1 1 auto;
  }

  .attachment-viewer-gallery-pagination button {
    flex: 1 1 0;
    white-space: nowrap;
  }

  .attachment-viewer-layout.is-details-only {
    grid-template-rows: auto;
  }

  .attachment-viewer-details { align-self: start; }
  .attachment-viewer-media iframe {
    height: 100%;
    min-height: 0;
  }

  .reader-entry-photo {
    width: 42%;
    margin-left: 9px;
  }

  .reader-entry-pdf { min-height: 132px; }
  .reader-entry-pdf-heading,
  .reader-entry-pdf-details { font-size: 0.5rem; }

  .resource-comments-viewer {
    position: fixed;
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    width: min(360px, calc(100% - 24px));
    max-height: calc(100% - 24px);
    overflow: auto;
  }

  .comments-form {
    margin: 0;
  }

  /* Mobile WebKit expands embedded PDFs to their document size. Give its PDF
     viewer a wider virtual viewport, then scale that viewport back into the
     fixed book preview so the whole page remains visible. */
  @supports (-webkit-touch-callout: none) {
    .resource-pdf-embed {
      position: absolute;
      top: 0;
      left: 0;
      width: 200%;
      height: 200%;
      max-width: none;
      min-height: 0;
      transform: scale(0.5);
      transform-origin: top left;
    }
  }
}

/* Private resource review desk */
.resource-admin-page { min-height: 100vh; background: var(--blue); color: var(--cream); }
.resource-admin-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 100px; }
.resource-admin-header { max-width: 780px; }
.resource-admin-header .eyebrow { font-family: var(--mono); letter-spacing: 0.08em; }
.resource-admin-header h1 { margin: 12px 0 20px; font-family: var(--serif); font-size: clamp(3.6rem, 10vw, 8rem); line-height: 0.78; }
.resource-admin-header > p:last-child { max-width: 650px; font-size: 1.15rem; }
.admin-access, .admin-queue { margin-top: 54px; padding: clamp(22px, 4vw, 42px); background: var(--cream); color: var(--blue); }
.admin-access h2, .admin-queue h2 { margin: 0 0 20px; font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 3rem); }
.admin-access form { display: flex; align-items: end; gap: 16px; }
.admin-access label { flex: 1; font-family: var(--condensed); font-size: 1.1rem; }
.admin-access input, .admin-publish-form input, .admin-publish-form textarea, .admin-publish-form select {
  display: block; width: 100%; margin-top: 7px; padding: 12px; border: 1px solid var(--blue); border-radius: 0; background: #fffdf5; color: #111; font: inherit;
}
.admin-access button, .admin-queue button { padding: 13px 20px; border: 1px solid var(--blue); background: var(--blue); color: var(--cream); font-family: var(--condensed); font-weight: 700; cursor: pointer; }
.admin-note, .admin-status, .admin-card-status { font-family: var(--mono); font-size: 0.9rem; }
.admin-note { margin-bottom: 0; opacity: 0.8; }
.admin-status { min-height: 1.4em; margin-bottom: 0; color: #b43825; }
.admin-queue-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.admin-submission { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 34px; padding: 30px 0; border-top: 2px solid var(--blue); }
.admin-submission h3 { margin: 6px 0 18px; font-family: var(--serif); font-size: 2rem; line-height: 1; }
.admin-submission-meta { font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; }
.admin-original { white-space: pre-wrap; }
.admin-publish-form { display: grid; gap: 14px; }
.admin-publish-form label { font-family: var(--condensed); font-weight: 700; }
.admin-publish-form label > small { display: block; margin-top: 5px; font-family: var(--mono); font-size: 0.7rem; font-weight: 400; }
.admin-publish-form textarea { min-height: 140px; resize: vertical; }
.admin-attachments { margin: 4px 0; padding: 16px; border: 1px solid var(--blue); }
.admin-attachments legend { padding: 0 7px; font-family: var(--condensed); font-weight: 700; }
.admin-attachments > p { margin: 0 0 14px; font-family: var(--mono); font-size: 0.72rem; line-height: 1.45; }
.admin-attachment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.admin-attachment-option { position: relative; min-width: 0; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 5px 7px; align-content: start; padding: 9px; border: 1px solid rgba(2, 91, 169, 0.38); cursor: pointer; }
.admin-attachment-option:has(input:checked) { border: 2px solid var(--blue); padding: 8px; background: rgba(2, 91, 169, 0.07); }
.admin-attachment-option input { width: 16px; margin: 2px 0 0; accent-color: var(--blue); }
.admin-attachment-preview { grid-column: 1 / -1; min-height: 92px; display: grid; place-items: center; overflow: hidden; color: var(--cream); background: #d9c49c; }
.admin-attachment-preview img,
.admin-attachment-preview iframe { width: 100%; height: 160px; display: block; border: 0; background: #fff; }
.admin-attachment-preview img { object-fit: contain; object-position: center; background: transparent; }
.admin-attachment-preview iframe { pointer-events: none; }
.admin-attachment-preview strong { min-width: 64px; padding: 13px 8px; border: 3px double var(--cream); color: var(--cream); background: #b43825; font-family: var(--mono); text-align: center; transform: rotate(-4deg); }
.admin-attachment-name { grid-column: 1 / -1; min-width: 0; line-height: 1.15; overflow-wrap: anywhere; }
.admin-attachment-option small { grid-column: 2; font-family: var(--mono); font-size: 0.62rem; font-weight: 400; overflow-wrap: anywhere; }
.admin-review-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-review-actions .admin-reject { background: transparent; color: #b43825; border-color: #b43825; }
.admin-empty { padding: 30px 0; border-top: 2px solid var(--blue); font-family: var(--mono); }

@media (max-width: 720px) {
  .resource-admin-shell { width: min(100% - 24px, 1180px); padding-top: 38px; }
  .admin-access form, .admin-submission { display: grid; grid-template-columns: 1fr; }
  .admin-submission { gap: 18px; }
  .admin-queue-heading { align-items: flex-start; }
}

/* The recommendation shelf uses the same illustrated plank, anchored beneath its book. */
.recommendation-shelf .recommendation-illustrated-shelf-plank {
  position: relative;
  z-index: 4;
  width: 100%;
  height: auto;
  margin-top: 8px;
}

.recommendation-shelf .recommendation-book {
  bottom: auto;
  z-index: 2;
}

.mobile-future-shelf-items {
  display: none;
}

@media (max-width: 800px) {
  .primary-shelf-items {
    display: flex;
    flex-direction: column;
    gap: 54px;
    align-items: center;
    padding: 0;
  }

  .mobile-resource-slot,
  .mobile-future-book-slot {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .resource-book,
  .resource-book-2,
  .resource-book-3 {
    position: relative;
    width: min(82vw, 340px);
    min-height: 0;
    aspect-ratio: auto;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .resource-book::before {
    display: none;
  }

  .resource-book-art {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
    user-select: none;
  }

  .resource-book-copy {
    position: absolute;
    z-index: 2;
    display: flex;
    flex-direction: column;
    color: var(--blue);
  }

  .resource-book-object-book .resource-book-copy {
    inset: 13% 8.5% 9% 20%;
  }

  .resource-book-object-folder .resource-book-copy {
    inset: 13.5% 12.5% 8.5% 10.5%;
  }

  .resource-book .book-label {
    margin-bottom: 12px;
    padding-bottom: 5px;
    font-size: 0.68rem;
  }

  .resource-book h2 {
    margin-bottom: 14px;
    font-size: clamp(1.12rem, 5.8vw, 1.55rem);
    line-height: 0.95;
  }

  .resource-book p {
    max-width: 23ch;
    margin: 0;
    font-size: 0.66rem;
    line-height: 1.45;
  }

  .resource-book-icon {
    display: none;
  }

  .resource-book .book-action {
    margin-top: auto;
    padding-top: 8px;
    font-size: 0.64rem;
  }

  .resource-book .coming-soon-stamp {
    right: 9%;
    bottom: 7%;
    font-size: 0.56rem;
    background: rgba(246, 240, 223, 0.88);
  }

  .mobile-object-shelf-plank {
    position: relative;
    z-index: 4;
    width: 100%;
    height: auto;
    display: block;
    margin-top: 0;
    pointer-events: none;
  }

  .future-shelf-items,
  .future-illustrated-shelf-plank {
    display: none;
  }

  .mobile-future-shelf-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .mobile-future-book-slot .future-book,
  .mobile-future-book-slot .future-book:nth-child(2n) {
    width: min(82vw, 340px);
    min-height: 0;
    aspect-ratio: 4 / 5;
    transform: none;
  }

  .mobile-future-book-slot .future-book .book-label {
    margin-bottom: 10px;
    padding-bottom: 5px;
    font-size: 0.64rem;
  }

  .mobile-future-book-slot .future-book h3 {
    margin-bottom: 12px;
    font-size: clamp(1.08rem, 5.5vw, 1.5rem);
  }

  .mobile-future-book-slot .future-book p {
    margin: 0;
    font-size: 0.64rem;
    line-height: 1.42;
  }

  .mobile-future-book-slot .future-book .coming-soon-stamp {
    right: 0;
    bottom: 0;
    font-size: 0.54rem;
  }

  .recommendation-shelf {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  .recommendation-shelf .recommendation-book {
    position: relative;
    bottom: auto;
    width: min(82vw, 340px);
    transform: rotate(-1deg);
  }

  .recommendation-shelf .recommendation-illustrated-shelf-plank {
    position: relative;
    z-index: 4;
    width: 100%;
    margin-top: 8px;
  }
}

/* Keep long resource URLs readable in books, folders and expanded articles. */
.resource-description-link {
  color: #025BA9;
  text-decoration: underline;
  overflow-wrap: anywhere;
}
.resource-description-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
