/* ------------------------------------------------------------------
   WORLDS BY — base
   A quiet gallery interface. The drawings supply the colour.
   ------------------------------------------------------------------ */
:root {
  --fs-label: 11.5px;
  --fs-small: 14px;
  --fs-body: 17px;
  --fs-lead: clamp(18px, 1.45vw, 21px);
  --fs-h3: clamp(26px, 2.3vw, 34px);
  --fs-h2: clamp(42px, 5.2vw, 82px);
  --fs-h1: clamp(58px, 8.4vw, 138px);
  --gutter: clamp(20px, 4.4vw, 72px);
  --column-gap: clamp(20px, 2.2vw, 36px);
  --section-space: clamp(88px, 10vw, 168px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--wb-warm-white);
  color: var(--wb-charcoal);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01";
}
body.menu-open {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
img,
svg {
  display: block;
}
img {
  max-width: 100%;
  height: auto;
}
figure,
p,
h1,
h2,
h3,
blockquote {
  margin: 0;
}
ul,
ol {
  padding-left: 1.3em;
}
h1,
h2,
h3 {
  font-weight: 400;
  text-wrap: balance;
}
h1,
h2 {
  font-family: var(--font-editorial);
  line-height: 0.98;
  letter-spacing: -0.018em;
}
h1 {
  font-size: var(--fs-h1);
  line-height: 0.9;
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: 18px;
  line-height: 1.35;
}
p {
  text-wrap: pretty;
}
p + p {
  margin-top: 1em;
}
::selection {
  background: var(--wb-paper-edge);
}
:focus-visible {
  outline: 2px solid var(--wb-charcoal);
  outline-offset: 4px;
}
main:focus {
  outline: none;
}
.wrap {
  width: min(1480px, 100%);
  padding-inline: var(--gutter);
  margin-inline: auto;
}
.eyebrow {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.5;
}
.small {
  font-size: var(--fs-small);
}
.muted {
  color: var(--wb-muted);
}
.serif {
  font-family: var(--font-editorial);
  font-size: var(--fs-h3);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.prose {
  max-width: 34em;
}
.rte p + p {
  margin-top: 1em;
}
.rte a,
.prose a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.rte ul {
  padding-left: 1.2em;
}
.rte li + li {
  margin-top: 0.5em;
}
.rte img {
  height: auto;
}

/* Buttons ---------------------------------------------------------- */
.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: var(--wb-charcoal);
  color: var(--wb-ivory);
  border: 1px solid var(--wb-charcoal);
  border-radius: 3px;
  padding: 15px 26px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.005em;
  transition:
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}
.button:hover {
  background: #3a3632;
  border-color: #3a3632;
}
.button svg {
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}
.button:hover svg {
  transform: translateX(4px);
}
.button-light {
  background: var(--wb-ivory);
  color: var(--wb-charcoal);
  border-color: var(--wb-ivory);
}
.button-light:hover {
  background: var(--wb-paper);
  border-color: var(--wb-paper);
}
.button-outline {
  background: transparent;
  color: var(--wb-charcoal);
}
.button-outline:hover {
  color: var(--wb-ivory);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.text-link svg {
  transition: transform 0.3s var(--ease-out);
}
.text-link:hover svg {
  transform: translateX(4px);
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 100;
  background: var(--wb-charcoal);
  color: var(--wb-ivory);
  padding: 14px 24px;
}
.skip-link:focus {
  top: 12px;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  background: var(--wb-collection-accent);
  border-radius: 50%;
  vertical-align: 1px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(36px, 4vw, 64px);
}
.section-heading .eyebrow {
  margin-bottom: 22px;
}
.section-heading > p,
.section-heading > span {
  max-width: 24em;
  font-size: var(--fs-small);
  color: var(--wb-muted);
}
.concept-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wb-muted);
  border: 1px solid var(--wb-rule);
  border-radius: 2px;
  padding: 4px 8px 3px;
  white-space: nowrap;
  line-height: 1.4;
}
.section-rule {
  border-top: 1px solid var(--wb-rule);
}

/* Header ----------------------------------------------------------- */
.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.wordmark {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.3em;
  margin-right: -0.3em;
  white-space: nowrap;
  line-height: 1.3;
}
.wordmark img {
  max-width: 210px;
  max-height: 65px;
  object-fit: contain;
}
.desktop-nav {
  display: flex;
  gap: clamp(20px, 2.6vw, 40px);
  margin-left: auto;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}
.desktop-nav a {
  padding-block: 12px;
  position: relative;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.desktop-nav a:hover::after,
.desktop-nav a[aria-current]::after {
  transform: scaleX(1);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-actions:empty {
  display: none;
}
.bag-link {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.mobile-menu {
  display: none;
}

/* Footer ----------------------------------------------------------- */
.site-footer {
  padding-top: clamp(64px, 7vw, 112px);
  padding-bottom: 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 50px;
  padding-bottom: clamp(56px, 6vw, 96px);
}
.footer-tagline {
  font-family: var(--font-editorial);
  font-size: clamp(34px, 3.6vw, 56px);
  line-height: 1;
  letter-spacing: -0.015em;
  margin-top: 26px;
  max-width: 11em;
}
.footer-top nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 15px;
  font-weight: 500;
  min-width: 200px;
}
.footer-top nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  border-bottom: 1px solid var(--wb-rule);
}
.footer-bottom {
  border-top: 1px solid var(--wb-rule);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--wb-muted);
  gap: 24px;
}
.footer-bottom > div {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}
.footer-bottom a:hover {
  color: var(--wb-charcoal);
}

/* Forms ------------------------------------------------------------ */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.field label {
  font-size: 14px;
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid #cfcbc5;
  background: var(--wb-white);
  border-radius: 3px;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 0.2s;
}
.field textarea {
  resize: vertical;
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--wb-stone);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--wb-charcoal);
}
.field input::placeholder {
  color: var(--wb-muted);
}
.field-wide {
  grid-column: 1/-1;
}
.form-note {
  font-size: 14px;
  color: var(--wb-muted);
  margin-bottom: 24px;
}
.form-note a {
  text-decoration: underline;
}
.form-message,
.form-errors {
  padding: 24px;
  border: 1px solid var(--wb-charcoal);
  margin-bottom: 24px;
}
.form-errors {
  border-color: var(--wb-collection-accent);
}
.form-errors h3 {
  font-size: 16px;
}

/* Generic pages ---------------------------------------------------- */
.empty-state {
  padding-block: clamp(72px, 10vw, 150px);
  min-height: 60vh;
}
.empty-state h1,
.empty-state h2 {
  max-width: 14em;
  margin-bottom: 28px;
}
.empty-state .eyebrow {
  margin-bottom: 28px;
}
.empty-state .button {
  margin-top: 32px;
}
.standard-page {
  padding-block: 72px 120px;
  min-height: 55vh;
}
.standard-page h1 {
  margin-bottom: 48px;
}
.standard-page .prose {
  max-width: 800px;
}
.pagination {
  padding-top: 40px;
  display: flex;
  gap: 18px;
}
.pagination a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--wb-rule);
}

/* Reveal (only when JS is available; see theme.js) ------------------ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1000px) {
  .site-header {
    gap: 20px;
  }
  .desktop-nav {
    font-size: 13px;
  }
}
@media (max-width: 860px) {
  .site-header {
    min-height: 76px;
  }
  .desktop-nav {
    display: none;
  }
  .header-actions {
    margin-left: auto;
    gap: 16px;
  }
  .mobile-menu {
    display: block;
  }
  .mobile-menu summary {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding-inline: 4px;
    font-size: 14px;
    font-weight: 500;
    list-style: none;
    cursor: pointer;
    position: relative;
    z-index: 31;
  }
  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }
  .menu-lines {
    width: 22px;
    height: 9px;
    border-block: 1.5px solid;
    transition: height 0.2s;
  }
  .mobile-menu[open] .menu-lines {
    height: 0;
    border-bottom: 0;
  }
  .mobile-menu-panel {
    position: fixed;
    inset: 76px 0 0;
    background: var(--wb-warm-white);
    z-index: 30;
    padding: 28px var(--gutter) 40px;
    border-top: 1px solid var(--wb-rule);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
  .mobile-menu-panel nav {
    display: flex;
    flex-direction: column;
  }
  .mobile-menu-panel nav a {
    font-family: var(--font-editorial);
    font-size: clamp(40px, 11vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.015em;
    padding-block: 12px;
    border-bottom: 1px solid var(--wb-rule);
  }
  .mobile-menu-panel > p {
    margin-top: auto;
    padding-top: 40px;
    font-size: 14px;
    color: var(--wb-muted);
  }
}
@media (max-width: 760px) {
  :root {
    --fs-body: 16px;
    --fs-label: 11px;
    --fs-h2: clamp(38px, 10.4vw, 52px);
    --fs-h1: clamp(50px, 14.6vw, 76px);
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 20px;
  }
  .section-heading .eyebrow {
    margin-bottom: 16px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 14px;
  }
  .footer-bottom > div {
    gap: 16px;
  }
  .button {
    gap: 20px;
    min-height: 52px;
    padding-inline: 22px;
  }
  .wordmark {
    font-size: 15px;
    letter-spacing: 0.26em;
  }
  .standard-page {
    padding-block: 40px 80px;
  }
}
@media (max-width: 360px) {
  .wordmark {
    font-size: 14px;
    letter-spacing: 0.22em;
  }
  .button {
    padding-inline: 18px;
    gap: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
