/* ============================================================
   OVERLAY COUTURE
   Museum-grade editorial design system
   Palette (exact, from the creative brief):
   paper #F8F7F4 | surface #F2EEE7 | ink #111111
   sketch #2D2D2D | yellow #F5C400 | blue #2556D8 | red #D93B30
   Display: Bodoni Moda | Body: Inter | Hand: Caveat
   ============================================================ */

:root {
  --paper: #F8F7F4;
  --surface: #F2EEE7;
  --mat: #FCFBF7;
  --ink: #111111;
  --sketch: #2D2D2D;
  --yellow: #F5C400;
  --blue: #2556D8;
  --red: #D93B30;
  --serif: 'Bodoni Moda', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --hand: 'Caveat', 'Segoe Script', cursive;
  --gutter: clamp(20px, 5vw, 76px);
  --maxw: 1440px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
body { overflow-x: hidden; overflow-x: clip; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* warm gallery paper texture, very subtle */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
p { margin: 0 0 1.1em; }

::selection { background: var(--yellow); color: var(--ink); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 20px; font-size: 14px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------------- type scale ---------------- */
.display {
  font-family: var(--serif);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.015em;
  font-size: clamp(2.3rem, 8.6vw, 7.2rem);
  margin: 0;
  overflow-wrap: break-word;
}
.display em { font-style: italic; font-weight: 500; }
.display--small { font-size: clamp(2.1rem, 5.6vw, 4.6rem); }

h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.05; margin: 0 0 .4em; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 4.6vw, 3.6rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.7rem); }

.label {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .34em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sketch);
  padding-bottom: 10px;
  position: relative;
}
.label::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 58px; height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='58' height='10'%3E%3Cpath d='M1 6 C 16 2, 30 9, 57 4' stroke='%23F5C400' stroke-width='5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
  background-size: cover;
}

.hand {
  font-family: var(--hand);
  font-weight: 500;
  color: var(--sketch);
  line-height: 1.25;
}
.hand--blue { color: var(--blue); }
.hand--red { color: var(--red); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); line-height: 1.6; max-width: 56ch; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: 17px 30px;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
  position: relative;
}
.btn:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--line { background: transparent; border: 1px solid rgba(17,17,17,.4); }
.btn--line:hover { border-color: var(--ink); background: transparent; }

/* grid and flex items must be allowed to shrink below their content */
.split > *, .hero__grid > *, .cards > *, .gal > *, .journal-grid > *,
.metrics__cell, .foot__col, .foot__brand, .foot__legal > *, .nav__links,
.nav__cta { min-width: 0; }

/* ---------------- header & nav ---------------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248,247,244,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(17,17,17,.08);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; line-height: 1; flex-shrink: 0; }
.brand__logo { height: 46px; width: auto; max-width: 170px; }
.brand__sub { font-size: 9.5px; letter-spacing: .42em; text-transform: uppercase; color: var(--sketch); margin-top: 3px; }
.nav__links { display: flex; gap: 18px; align-items: center; flex-shrink: 1; }
.nav__links a {
  text-decoration: none; font-size: 11.5px; letter-spacing: .11em; text-transform: uppercase;
  font-weight: 500; color: var(--ink); position: relative; padding: 4px 0; white-space: nowrap;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--yellow); transition: width .3s var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }
.nav__links a[aria-current="page"] { font-weight: 600; }
.nav__cta { display: flex; gap: 14px; align-items: center; }
.nav__cta .btn { font-size: 11.5px; padding: 13px 20px; letter-spacing: .17em; white-space: nowrap; }
.menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--ink); line-height: 1; }

.drawer {
  position: fixed; inset: 0; z-index: 90; background: var(--paper);
  padding: 90px var(--gutter) 40px; display: none; flex-direction: column; gap: 6px;
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  height: 100dvh; max-height: 100vh;
}
.drawer.open { display: flex; }
.drawer a { font-family: var(--serif); font-size: 2.2rem; text-decoration: none; padding: 10px 0; border-bottom: 1px solid rgba(17,17,17,.08); }
/* The Commission a piece link inside the mobile drawer is a real button, not
   a plain drawer link: outrank the generic .drawer a rule with the .btn
   class so it keeps the brand's black button look and stays reachable at
   the bottom of the scrolling menu. */
.drawer a.btn {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  color: var(--paper); background: var(--ink); border: 1px solid var(--ink);
  padding: 15px 24px; text-align: center; display: block; margin-top: 18px;
}
.drawer a.btn:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); transform: translateY(-2px); }
.drawer .close-btn { position: absolute; top: 22px; right: 24px; background: none; border: none; font-size: 30px; cursor: pointer; }
body.locked { overflow: hidden; }

/* ---------------- hero ---------------- */
.hero { padding: clamp(70px, 10vw, 130px) 0 clamp(60px, 8vw, 110px); }
.hero__grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.hero__title { font-size: clamp(2.3rem, 8.2vw, 6.8rem); }
.hero__copy { max-width: 52ch; margin-top: 26px; }
.hero__notes { position: relative; }
.float-notes { position: absolute; z-index: 3; pointer-events: none; }
.fn-1 { top: -34px; right: 8%; font-size: 1.9rem; transform: rotate(-4deg); }
.fn-2 { top: 30%; left: -46px; font-size: 1.6rem; transform: rotate(3deg); }
.fn-3 { bottom: -30px; right: -6px; font-size: 1.7rem; transform: rotate(-2deg); }
.fn-4 { top: 62%; right: -34px; font-size: 1.5rem; transform: rotate(4deg); }
.fn-5 { top: 8%; left: 12%; font-size: 1.5rem; transform: rotate(-3deg); }

/* ---------------- taped artwork panels ---------------- */
.taped { position: relative; display: block; width: 100%; }
.taped .tape {
  position: absolute; width: 110px; height: 30px; z-index: 4;
  background: linear-gradient(100deg, rgba(245,196,0,.34), rgba(255,255,255,.6) 55%, rgba(245,196,0,.28));
  box-shadow: 0 2px 4px rgba(17,17,17,.14);
  border-left: 1px dashed rgba(17,17,17,.12);
  border-right: 1px dashed rgba(17,17,17,.12);
}
.tape--tl { top: -14px; left: -18px; transform: rotate(-7deg); }
.tape--tr { top: -14px; right: -18px; transform: rotate(6deg); }
.tape--bl { bottom: -14px; left: -16px; transform: rotate(5deg); }
.tape--br { bottom: -14px; right: -16px; transform: rotate(-6deg); }
.taped img { transition: transform .6s var(--ease); }
.taped:hover img { transform: rotate(0deg) scale(1.012); }

/* museum frame */
.frame {
  background: var(--mat);
  border: 1px solid rgba(17,17,17,.09);
  padding: clamp(14px, 2vw, 26px);
  box-shadow: 0 18px 44px rgba(17,17,17,.10), 0 2px 6px rgba(17,17,17,.06);
  width: 100%;
}
.frame img { width: 100%; }
.frame__cap { padding: 16px 4px 2px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.frame__cap .cap-t, .gal__tile figcaption .cap-t { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; margin: 0; }
.frame__cap span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--sketch); white-space: nowrap; }

/* rotated panels for the pinboard feel */
.rot1 { transform: rotate(-1.1deg); }
.rot2 { transform: rotate(.9deg); }
.rot3 { transform: rotate(-.7deg); }

/* ---------------- sections ---------------- */
.sec { padding: clamp(80px, 11vw, 150px) 0; }
.sec--surface { background: var(--surface); }
.sec--paper { background: var(--paper); }
.sec__head { max-width: 900px; margin-bottom: clamp(40px, 6vw, 80px); }
.sec__head p.lead { margin-top: 22px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.split--flip .split__media { order: -1; }
.split__media { position: relative; }

/* numbered list with dividers (reference composition) */
.numlist { list-style: none; margin: 0; padding: 0; }
.numlist li {
  display: flex; gap: 26px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid rgba(17,17,17,.14);
}
.numlist li:first-child { padding-top: 4px; }
.numlist__n { font-family: var(--serif); font-size: 1.15rem; color: var(--sketch); }
.numlist h3 { font-size: 1.5rem; margin: 0 0 4px; }
.numlist p { margin: 0; color: #3a3a3a; max-width: 48ch; }

/* metrics with vertical rules */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); }
.metrics__cell { padding: 10px clamp(18px, 2.5vw, 40px); border-left: 1px solid rgba(17,17,17,.18); }
.metrics__cell:first-child { border-left: 0; padding-left: 0; }
.metrics__n { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1; font-weight: 700; }
.metrics__cell:nth-child(1) .metrics__n { color: var(--yellow); }
.metrics__cell:nth-child(2) .metrics__n { color: var(--blue); }
.metrics__cell:nth-child(3) .metrics__n { color: var(--ink); }
.metrics__cell:nth-child(4) .metrics__n { color: var(--red); }
.metrics__k { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; margin-top: 14px; color: var(--sketch); }

/* stamp badge */
.stamp {
  display: grid; place-items: center;
  width: 132px; height: 132px;
  border: 2px solid var(--red);
  border-radius: 50%;
  transform: rotate(-12deg);
  text-align: center; color: var(--red);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  line-height: 1.4; position: relative;
  background: rgba(248,247,244,.55);
}
.stamp::before { content: ""; position: absolute; inset: 7px; border: 1px dashed var(--red); border-radius: 50%; }
.stamp b { display: block; font-size: 13px; letter-spacing: .14em; }

/* handwritten note card */
.note {
  background: var(--surface);
  padding: 22px 26px;
  font-family: var(--hand);
  font-size: 1.5rem;
  line-height: 1.35;
  transform: rotate(-2deg);
  box-shadow: 0 6px 18px rgba(17,17,17,.08);
  max-width: 320px;
  position: relative;
}

/* collection cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(26px, 4vw, 60px); }
.card { text-decoration: none; color: var(--ink); display: block; }
.card__media { overflow: hidden; }
.card__media img { transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.045); }
.card h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 22px 0 8px; display: flex; align-items: center; gap: 12px; }
.card h3 .idx { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; color: var(--sketch); }
.card p { color: #3a3a3a; }

/* artwork gallery tiles */
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); }
.gal__tile { cursor: pointer; }
.gal__tile figcaption { padding-top: 14px; }
.gal__tile figcaption .cap-t { font-size: 1.15rem; margin: 0 0 2px; }
.gal__tile figcaption span { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--sketch); }

/* journal */
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3.4vw, 48px); }
.journal-card { border-top: 1px solid rgba(17,17,17,.2); padding-top: 22px; }
.journal-card .tag { font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--sketch); }
.journal-card h3 { font-size: 1.55rem; margin: 12px 0 10px; line-height: 1.15; }
.journal-card p { color: #3a3a3a; font-size: 15px; }
.journal-card .read { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--yellow); padding-bottom: 2px; }

/* topic list */
.topic-list { list-style: none; margin: 0; padding: 0; }
.topic-list li { padding: 18px 0 18px 42px; border-bottom: 1px solid rgba(17,17,17,.14); position: relative; font-size: 1.05rem; }
.topic-list li::before { content: "+"; position: absolute; left: 6px; color: var(--red); font-family: var(--serif); font-size: 1.3rem; }

/* forms */
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--mat); border: 1px solid rgba(17,17,17,.22);
  padding: 15px 16px; font-family: var(--sans); font-size: 16px; color: var(--ink); border-radius: 0;
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(37,86,216,.14); }
.field textarea { min-height: 150px; resize: vertical; }

.form-note { font-family: var(--hand); font-size: 1.35rem; margin-top: 8px; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 120; background: rgba(17,17,17,.9);
  display: none; place-items: center; padding: 30px;
}
.lightbox.open { display: grid; }
.lightbox figure { max-width: min(900px, 100%); margin: 0; }
.lightbox img { max-height: 78vh; margin: 0 auto; }
.lightbox figcaption { color: var(--paper); text-align: center; padding-top: 18px; }
.lightbox .lb-close { position: absolute; top: 22px; right: 26px; background: none; border: none; color: var(--paper); font-size: 34px; cursor: pointer; }

/* toast for form feedback */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--paper); padding: 15px 26px; font-size: 14px;
  z-index: 130; opacity: 0; transition: all .4s var(--ease); max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- footer ---------------- */
.site-foot { background: var(--ink); color: #EDEAE2; padding: clamp(70px, 9vw, 120px) 0 40px; }
.site-foot .foot__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(30px, 5vw, 70px); }
.site-foot .wp-block-column { margin: 0; }
.foot__brand .brand__name { color: #fff; font-size: 30px; }
.foot__brand p { color: #B9B4A8; max-width: 34ch; margin-top: 16px; }
.foot__col h3 { color: #fff; font-family: var(--sans); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; margin-bottom: 18px; font-weight: 600; }
.foot__col a { color: #C8C4B8; text-decoration: none; display: block; padding: 6px 0; font-size: 15px; transition: color .2s; }
.foot__col a:hover { color: var(--yellow); }
.foot__social { display: flex; gap: 14px; margin-top: 18px; }
.foot__social a { color: #C8C4B8; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; border: 1px solid rgba(255,255,255,.25); padding: 9px 14px; }
.foot__social a:hover { border-color: var(--yellow); color: var(--yellow); }
.foot__news p { color: #B9B4A8; font-size: 14px; }
.foot__col .hand { color: #B9B4A8; }
.news-form { display: flex; margin-top: 14px; }
.news-form input { flex: 1; background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff; padding: 14px 16px; font-size: 15px; font-family: var(--sans); }
.news-form input::placeholder { color: #8d887d; }
.news-form button { background: var(--yellow); border: none; color: var(--ink); font-weight: 700; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; padding: 0 22px; cursor: pointer; font-family: var(--sans); }
.foot__note { font-family: var(--hand); color: var(--yellow); font-size: 1.7rem; transform: rotate(-3deg); margin-top: 22px; display: inline-block; }
.foot__legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.14); margin-top: 50px; padding-top: 26px; font-size: 12.5px; color: #8d887d; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------------- page head for inner pages ---------------- */
.phead { padding: clamp(70px, 9vw, 120px) 0 clamp(30px, 4vw, 60px); }
.phead .hand { font-size: 1.5rem; margin-top: 18px; display: inline-block; }

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
  /* Higher specificity than core's `body .is-layout-flex { display: flex }`,
   * which is printed after the theme stylesheet and would otherwise keep the
   * desktop links visible on mobile, overlapping the menu button. */
  .nav__links.is-layout-flex { display: none !important; }
  .nav__cta .btn { display: none; }
  .nav__cta .wp-block-button.btn { display: none; }
  .menu-btn { display: inline-flex; }
}
/* Narrow desktop (just above the mobile breakpoint): nine links plus the
   Commission CTA need slightly tighter spacing so the CTA never touches the
   last link (at 1081-1110px they collide with the default 18px gap). */
@media (min-width: 1081px) and (max-width: 1180px) {
  .nav__links { gap: 12px; }
  .nav__links a { font-size: 11px; letter-spacing: .09em; }
  .nav__cta { gap: 8px; }
  .nav__cta .wp-block-button.btn .wp-block-button__link,
  .nav__cta .btn { font-size: 10.5px; padding: 12px 14px; letter-spacing: .13em; }
}
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { margin-top: 40px; }
  .split { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .cards { grid-template-columns: 1fr; }
  .gal { grid-template-columns: repeat(2, 1fr); }
  .journal-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .metrics__cell:nth-child(odd) { border-left: 0; padding-left: 0; }
  .metrics__cell { padding-left: 20px; }
  .site-foot .foot__grid { grid-template-columns: 1fr 1fr; }
  .float-notes { display: none; }
}
@media (max-width: 768px) {
  body { font-size: 16px; }
  .gal { grid-template-columns: 1fr; }
  .journal-grid { grid-template-columns: 1fr; }
  .site-foot .foot__grid { grid-template-columns: 1fr; }
  .frame__cap { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; text-align: center; }
  .phead .display { font-size: clamp(2.2rem, 10vw, 3.4rem); }
}
@media (max-width: 480px) {
  .metrics { grid-template-columns: 1fr; }
  .metrics__cell { border-left: 0; padding-left: 0; }
  .brand__sub { display: none; }
  .hero { padding-top: 50px; }
  .note { display: none; }
  .stamp { width: 108px; height: 108px; font-size: 10px; }
}

/* ------------------------------------------------------------------ */
/* Native block variants of the designed components. These only apply   */
/* to the editable block versions (core/buttons, core/image,            */
/* core/social-links); the classic .btn / .brand html markup above      */
/* is unchanged.                                                        */
/* ------------------------------------------------------------------ */

/* call-to-action buttons rendered as core/buttons keep the .btn look */
.wp-block-buttons.oc-btn { margin-top: 26px; }
.wp-block-buttons.oc-btn.oc-mt34 { margin-top: 34px; }
.wp-block-buttons.oc-btn.oc-mt40 { margin-top: 40px; }
.wp-block-button.btn, .wp-block-button.btn--ghost { display: inline-block; width: auto; margin: 0; }
.wp-block-button.btn .wp-block-button__link {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: 17px 30px;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
  position: relative;
}
.wp-block-button.btn .wp-block-button__link:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); transform: translateY(-2px); }
.wp-block-button.btn--ghost .wp-block-button__link { background: transparent; color: var(--ink); }
.wp-block-button.btn--ghost .wp-block-button__link:hover { background: var(--ink); color: var(--paper); }

/* header CTA rendered as a native button block keeps the small nav size */
.nav__cta .wp-block-buttons { margin: 0; }
.nav__cta .wp-block-button.btn .wp-block-button__link { font-size: 11.5px; padding: 13px 20px; letter-spacing: .17em; }
@media (max-width: 768px) {
  .wp-block-button.btn, .wp-block-button.btn--ghost { width: 100%; }
  .wp-block-button.btn .wp-block-button__link, .wp-block-button.btn--ghost .wp-block-button__link { width: 100%; text-align: center; }
}

/* header logo as a native image block */
.brand__logo.wp-block-image { margin: 0; height: auto; }
.brand__logo.wp-block-image img { height: 46px; width: auto; max-width: 170px; }

/* taped artwork frames holding native image blocks */
.frame .wp-block-image, .frame > figure { margin: 0; }
.frame .wp-block-image img { width: 100%; }

/* footer social links as the editable social-links block */
.foot__social.wp-block-social-links { gap: 14px; padding: 0; margin: 18px 0 0; }
.foot__social .wp-social-link {
  background: transparent;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, .25);
  margin: 0;
}
.foot__social .wp-social-link a { color: #C8C4B8; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; padding: 0; }
.foot__social .wp-social-link:hover { background: transparent; }
.foot__social .wp-social-link a:hover { color: var(--yellow); }
.foot__social .wp-social-link svg { display: none; }

/* ============================================================
   BLOCK EDITOR BRIDGE (appended by build_theme.py)
   These rules make Gutenberg block content render exactly like
   the original design, plus the hero slider and single-article
   styles. They are part of the approved design system.
   ============================================================ */

/* ---------------- block content basics ---------------- */
.wp-block-group { box-sizing: border-box; }
.wp-block-image { margin: 0; }
.frame .wp-block-image { margin: 0; }
.frame .wp-block-image img { width: 100%; height: auto; }
.wp-block-image figcaption { margin-top: 10px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--sketch); }
.gal__tile .frame__cap { padding-top: 14px; }
.gal__tile .frame__cap .cap-t { font-size: 1.15rem; margin: 0 0 2px; }
.gal__tile .frame__cap span { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--sketch); }

/* Stray blocks a client adds should stay tasteful and centered. */
.entry-content > * { max-width: var(--maxw); margin-inline: auto; }
.entry-content > .sec { width: 100%; max-width: 100%; }
.entry-content > .wp-block-paragraph,
.entry-content > .wp-block-heading,
.entry-content > .wp-block-image { max-width: 820px; }
.entry-content > .wp-block-paragraph { padding: 0 var(--gutter); }
.entry-content > .wp-block-heading { padding: 0 var(--gutter); margin-top: 1.4em; }

/* ---------------- utility classes for block content ---------------- */
.oc-mt4 { margin-top: 4px; } .oc-mt6 { margin-top: 6px; }
.oc-mt10 { margin-top: 10px; } .oc-mt12 { margin-top: 12px; }
.oc-mt14 { margin-top: 14px; } .oc-mt16 { margin-top: 16px; }
.oc-mt18 { margin-top: 18px; } .oc-mt20 { margin-top: 20px; }
.oc-mt22 { margin-top: 22px; } .oc-mt24 { margin-top: 24px; }
.oc-mt26 { margin-top: 26px; } .oc-mt28 { margin-top: 28px; }
.oc-mt30 { margin-top: 30px; } .oc-mt34 { margin-top: 34px; }
.oc-mt40 { margin-top: 40px; }

.oc-max46 { max-width: 46ch; } .oc-max48 { max-width: 48ch; }
.oc-max54 { max-width: 54ch; } .oc-max56 { max-width: 56ch; }
.oc-max60 { max-width: 60ch; } .oc-max62 { max-width: 62ch; }

.oc-serif { font-family: var(--serif); }
.oc-serif-md { font-family: var(--serif); font-size: 1.2rem; }
.oc-serif-lg { font-family: var(--serif); font-size: 1.4rem; }

.oc-h12 { font-size: 1.2rem; } .oc-h13 { font-size: 1.3rem; }
.oc-h14 { font-size: 1.4rem; } .oc-h15 { font-size: 1.5rem; }
.oc-h16 { font-size: 1.6rem; } .oc-h17 { font-size: 1.7rem; }
.oc-h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.oc-pt30 { padding-top: 30px; }
.oc-ai-start { align-items: start; }
.oc-final-pad { padding-bottom: clamp(90px, 12vw, 160px); }
.oc-max1000 { max-width: 1000px; }
.oc-mt34 { margin-top: 34px; }
.oc-h16 { font-size: 1.6rem; }
.oc-serif { font-family: var(--serif); }
.oc-inline { display: inline-block; }
.oc-rot2 { transform: rotate(-2deg); }
.oc-rot3 { transform: rotate(2deg); }
.hand--blue { color: var(--blue); }
.hand--red { color: var(--red); }

/* Labels used as paragraph blocks keep the underline mark and no extra margin. */
.wp-block-paragraph.label { margin-bottom: 0; }

/* Collection card numbering via CSS counters (replaces hardcoded 01 spans). */
.wp-block-group.cards { counter-reset: oc-card; }
.card h3::before {
  counter-increment: oc-card;
  content: counter(oc-card, decimal-leading-zero) " ";
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--sketch);
}

/* ---------------- hero slider ---------------- */
/* The slider follows the ACTIVE image: slides are stacked absolutely and the
 * container height is set by JS to the active image's aspect ratio, so a
 * shorter image never leaves blank space below it. aspect-ratio below is the
 * first-paint fallback before JS measures the real image dimensions. */
.hero__slides {
  position: relative;
  width: 100%;
  transition: height .55s cubic-bezier(.22, .61, .36, 1);
  aspect-ratio: 4 / 5; /* first-paint fallback only; JS sets the real height */
}
.hero__slide {
  position: absolute; top: 0; left: 0; width: 100%;
  opacity: 0; pointer-events: none; transition: opacity 1.4s ease;
}
.hero__slide.is-active { opacity: 1; pointer-events: auto; }
.hero__slide img { width: 100%; height: auto; display: block; }
.hero__controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 36px; }
.hero__dots { display: flex; gap: 10px; }
.hero__dot {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1px solid rgba(17,17,17,.45); background: transparent;
  padding: 0; cursor: pointer; transition: background .3s ease;
}
.hero__dot.is-active { background: var(--ink); }
.hero__arrow {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(17,17,17,.3); background: rgba(248,247,244,.6);
  color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer;
  transition: background .3s ease, color .3s ease;
}
.hero__arrow:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 768px) { .hero__arrow { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero__slide { transition: none; } }

/* ---------------- single journal article ---------------- */
.oc-single .entry-content { max-width: 820px; margin: 0 auto; padding: 20px var(--gutter) clamp(90px, 10vw, 140px); }
.oc-single .entry-content p { margin-bottom: 1.4em; }
.oc-single .entry-content .wp-block-image { margin: 34px 0; }
.oc-single .entry-content .wp-block-image img { margin: 0; }
.oc-single .entry-content h2 { margin: 1.6em 0 .6em; }
.oc-single .entry-content h3 { margin: 1.4em 0 .5em; }
.oc-single .wp-block-quote { border-left: 3px solid var(--yellow); padding-left: 22px; font-family: var(--serif); font-style: italic; font-size: 1.3rem; margin: 2em 0; }
.oc-single .entry-content ul:not(.numlist):not(.topic-list) { padding-left: 24px; margin-bottom: 1.4em; }
.oc-single .entry-content li { margin-bottom: .5em; }

/* ---------------- block editor preview niceties ---------------- */
.editor-styles-wrapper .frame { box-shadow: none; }

/* ============================================================
   BLOCK THEME BRIDGE (theme 3.0.0)
   These rules make the native block-theme templates (templates/,
   parts/) render exactly like the approved design.
   ============================================================ */

/* post-content wrapper: no extra chrome, full width bands */
.wp-block-post-content { padding: 0; margin: 0; max-width: none; }

/* header navigation (Navigation block inside .nav__links) */
.nav__links.wp-block-navigation { gap: 18px; }
.nav__links .wp-block-navigation__container {
  display: flex; gap: 18px; flex-wrap: nowrap;
  list-style: none; margin: 0; padding: 0;
}
.nav__links .wp-block-navigation-item { margin: 0; }

/* mobile drawer navigation stacks vertically */
.drawer .wp-block-navigation,
.drawer .wp-block-navigation__container {
  flex-direction: column; align-items: stretch; width: 100%;
  list-style: none; margin: 0; padding: 0; gap: 0;
}
.drawer .wp-block-navigation-item { margin: 0; }

/* single article (singular.html): center the header block, keep prose 820px */
.oc-single > * { max-width: 820px; margin-inline: auto; padding-inline: var(--gutter); }
.oc-single .wp-block-post-terms { display: block; padding-top: clamp(70px, 9vw, 120px); }
.oc-single .wp-block-post-title { padding-top: 26px; }

/* journal pagination */
.pagination { display: flex; gap: 10px; justify-content: center; margin: 60px 0 0; flex-wrap: wrap; }
.pagination .page-numbers {
  border: 1px solid rgba(17,17,17,.25); padding: 8px 14px;
  text-decoration: none; color: var(--ink); font-size: 14px;
}
.pagination .page-numbers.current { background: var(--ink); color: var(--paper); }
.pagination .page-numbers:hover { border-color: var(--ink); }

/* footer page-list block matches the designed link column */
.foot__col .wp-block-page-list { list-style: none; margin: 0; padding: 0; }

/* block quote in the design voice (used by patterns + posts) */
.wp-block-quote {
  border-left: 3px solid var(--yellow); padding-left: 22px;
  font-family: var(--serif); font-style: italic; font-size: 1.3rem;
  margin: 2em auto; max-width: 820px; color: var(--ink);
}
.wp-block-quote cite { font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-style: normal; }

/* buttons inserted via patterns keep the .btn look when they carry the class */
.wp-block-button .wp-block-button__link.btn {
  display: inline-block; font-size: 13px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
  color: var(--paper); background: var(--ink); border: 1px solid var(--ink);
  padding: 17px 30px; border-radius: 0; transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.wp-block-button .wp-block-button__link.btn:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); transform: translateY(-2px); }
