/*
Theme Name: Rubbout 2027 XXXV — MASKARADE
Theme URI: https://rubbout.com/
Author: Rubbout
Description: Bespoke, responsive 2027 WordPress theme for Rubbout XXXV: MASKARADE.
Version: 2.4.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: rubbout-maskarade-2027
*/

:root {
  --ink: #080808;
  --paper: #f0eadf;
  --muted: #aaa39a;
  --line: rgba(240, 234, 223, .24);
  --red: #d41122;
  --red-dark: #8d0612;
  --max: 1240px;
  --serif: "Times New Roman", Times, serif;
  --sans: Inter, Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
.elementor-page .page-content--elementor { padding: 0; }
.elementor-page .entry-content--elementor { max-width: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.eyebrow { margin: 0 0 18px; color: var(--red); font-size: .75rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.display { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 7vw, 7rem); letter-spacing: -.045em; line-height: .92; }
.section { padding: clamp(80px, 10vw, 150px) 0; border-top: 1px solid var(--line); }
.section-lead { max-width: 740px; margin-top: 28px; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 25px; border: 1px solid var(--paper); font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; transition: .22s ease; }
.button:hover, .button:focus-visible { background: var(--paper); color: var(--ink); }
.button--red { border-color: var(--red); background: var(--red); }
.button--red:hover, .button--red:focus-visible { border-color: var(--paper); }

/* Header */
.announcement { min-height: 39px; background: var(--red); color: white; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.announcement .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 39px; }
.announcement a { border-bottom: 1px solid currentColor; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(8,8,8,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 28px; }
.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 180px;
  min-height: 54px;
  padding: 0;
  background: transparent;
  transition: transform .2s ease, filter .2s ease;
}
.brand:hover, .brand:focus-visible { transform: scale(1.035); filter: drop-shadow(0 0 8px rgba(255,190,0,.38)); }
.brand .custom-logo-link { display: flex; align-items: center; justify-content: center; }
.brand img { width: 180px; max-height: 54px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.nav a { font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.nav a:hover, .nav .current-menu-item > a { color: var(--red); }
.nav .menu { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); padding: 0; margin: 0; list-style: none; }
.menu-toggle { display: none; appearance: none; border: 0; background: transparent; color: var(--paper); font: inherit; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }

/* Hero */
.hero { min-height: calc(100svh - 121px); display: grid; align-items: center; position: relative; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(circle at 75% 35%, rgba(212,17,34,.22), transparent 33%), linear-gradient(110deg,#050505 10%,#141010 54%,#050505 100%); }
.hero::after { content: "XXXV"; position: absolute; right: -2vw; bottom: -12vw; z-index: -1; color: rgba(255,255,255,.025); font-family: var(--serif); font-size: 42vw; line-height: 1; }
.hero__inner { padding-block: clamp(70px, 10vw, 130px); }
.hero__layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(300px,.72fr); align-items: center; gap: clamp(35px,5vw,82px); }
.hero__content { min-width: 0; }
.hero__mark { width: 100%; max-height: 42vh; object-fit: contain; object-position: left center; }
.hero__visual { position: relative; width: 100%; max-width: 470px; margin: 0; justify-self: end; aspect-ratio: 4 / 5; border: 1px solid rgba(240,234,223,.28); background: #090707; box-shadow: 28px 28px 0 rgba(212,17,34,.14); isolation: isolate; }
.hero__visual::before { content: ""; position: absolute; top: -22px; right: -22px; width: 70%; height: 88%; z-index: -1; background: linear-gradient(155deg,rgba(212,17,34,.72),rgba(54,5,10,.3)); }
.hero__visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: contrast(1.04) saturate(.95); }
.hero__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top,rgba(8,8,8,.46),transparent 35%); pointer-events: none; }
.hero__visual figcaption { position: absolute; left: 18px; bottom: 16px; z-index: 2; padding: 8px 10px; background: rgba(8,8,8,.88); color: var(--paper); font-size: .62rem; font-weight: 800; letter-spacing: .13em; }
.hero__fallback { font-family: var(--serif); font-size: clamp(4rem, 11vw, 10rem); line-height: .8; letter-spacing: -.06em; }
.hero__quote { margin: 28px 0 0; font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 3rem); }
.hero__quote em { color: var(--red); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 32px 70px; margin: 45px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.hero__meta span { display: block; color: var(--muted); font-size: .65rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero__meta strong { font-family: var(--serif); font-size: 1.45rem; font-weight: 400; }

/* Homepage sections */
.welcome-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; align-items: end; gap: 70px; }
.anniversary { min-height: 300px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); background: linear-gradient(145deg,rgba(212,17,34,.16),transparent); }
.anniversary b { font-family: var(--serif); font-size: 7rem; font-weight: 400; line-height: .8; }
.anniversary span { font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.acts { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 60px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.act { position: relative; min-height: 440px; padding: 27px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s; }
.act:hover { background: rgba(212,17,34,.08); }
.act__top { display: flex; justify-content: space-between; color: var(--muted); font-size: .65rem; font-weight: 800; letter-spacing: .12em; }
.act__date { margin: 40px 0 55px; font-family: var(--serif); font-size: 6rem; line-height: .8; }
.act h3 { margin: 0 0 18px; font-family: var(--serif); font-size: 2rem; font-weight: 400; line-height: 1; }
.act ul { margin: 0; padding: 0; color: var(--muted); list-style: none; font-size: .9rem; }
.highlights { display: grid; grid-template-columns: 1.25fr 1fr 1fr; margin-top: 55px; border: 1px solid var(--line); }
.highlight { min-height: 380px; padding: 34px; display: flex; flex-direction: column; justify-content: flex-end; border-right: 1px solid var(--line); background: linear-gradient(to top,rgba(0,0,0,.9),rgba(0,0,0,.05)), radial-gradient(circle at 70% 20%,rgba(212,17,34,.35),transparent 55%); }
.highlight:last-child { border-right: 0; }
.highlight small { color: var(--red); font-weight: 800; letter-spacing: .13em; }
.highlight h3 { margin: 10px 0; font-family: var(--serif); font-size: clamp(2rem,4vw,4rem); line-height: .9; font-weight: 400; }
.highlight p { margin-bottom: 0; color: var(--muted); }
.photo-grid { display: grid; grid-template-columns: 1.1fr 1fr .72fr; gap: 18px; margin-top: 55px; }
.photo-card { position: relative; min-height: 440px; margin: 0; overflow: hidden; border: 1px solid var(--line); background: #111; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.photo-card--title { min-height: 0; aspect-ratio: 1280 / 705; display: flex; align-items: center; justify-content: center; background: #050505; }
.photo-card--title img { width: 100%; height: 100%; padding: clamp(10px, 2vw, 24px); object-fit: contain; }
.photo-card:hover img { transform: scale(1.035); }
.photo-card--title:hover img { transform: scale(1.018); }
.photo-card figcaption { position: absolute; left: 20px; bottom: 18px; padding: 7px 10px; background: var(--ink); font-size: .65rem; font-weight: 800; letter-spacing: .12em; }
.photo-stack { display: grid; grid-template-rows: auto 1fr; gap: 18px; min-width: 0; }
.maskarade-note { position: relative; min-height: 190px; padding: clamp(24px, 3vw, 38px); overflow: hidden; border: 1px solid rgba(212,17,34,.8); background: linear-gradient(135deg,rgba(212,17,34,.16),rgba(8,8,8,.98) 58%); isolation: isolate; }
.maskarade-note::after { content: "XXXV"; position: absolute; right: -20px; bottom: -45px; z-index: -1; color: rgba(240,234,223,.035); font-family: var(--serif); font-size: clamp(7rem, 12vw, 12rem); line-height: 1; }
.maskarade-note span { display: block; margin-bottom: 14px; color: #f1c232; font-size: .65rem; font-weight: 800; letter-spacing: .16em; }
.maskarade-note h3 { margin: 0; font-family: var(--serif); font-size: clamp(2.3rem, 4vw, 4.3rem); font-weight: 400; letter-spacing: -.04em; line-height: .82; text-transform: uppercase; }
.maskarade-note p { max-width: 520px; margin: 22px 0 0; color: var(--muted); font-size: .92rem; }
.archive-card { display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; background: var(--red); }
.archive-card span { font-family: var(--serif); font-size: 2.2rem; }
.archive-card strong { font-size: 2.5rem; line-height: .9; }
.arrival-grid { display: grid; grid-template-columns: repeat(2,1fr); margin-top: 55px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.arrival-card { min-height: 190px; padding: 30px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .2s; }
.arrival-card:hover { background: var(--red); }
.arrival-card b { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.arrival-card span { color: var(--muted); }
.arrival-card:hover span { color: white; }
.first-grid { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 55px; }
.first-item { padding: 26px 34px 26px 0; border-top: 1px solid var(--line); }
.first-item + .first-item { padding-left: 34px; border-left: 1px solid var(--line); }
.first-item b { color: var(--red); font-size: .72rem; letter-spacing: .14em; }
.first-item h3 { font-family: var(--serif); font-size: 1.8rem; font-weight: 400; line-height: 1; }
.first-item p { color: var(--muted); }
.final-cta { padding: clamp(90px,14vw,190px) 0; text-align: center; background: radial-gradient(circle at center,rgba(212,17,34,.22),transparent 45%); border-top: 1px solid var(--line); }
.final-cta p { color: var(--muted); }

/* Interior pages */
.page-hero { padding: clamp(80px,12vw,170px) 0 70px; background: radial-gradient(circle at 80% 20%,rgba(212,17,34,.2),transparent 36%); border-bottom: 1px solid var(--line); }
.page-content { padding: 70px 0 120px; }
.entry-content { max-width: 860px; font-size: 1.08rem; }
.entry-content h2, .entry-content h3 { font-family: var(--serif); font-weight: 400; line-height: 1; }
.entry-content h2 { margin-top: 2em; font-size: clamp(2.2rem,5vw,4.6rem); }
.entry-content h3 { margin-top: 1.7em; font-size: 2rem; }
.entry-content p, .entry-content li { color: #d2cdc4; }
.entry-content a { color: var(--red); text-decoration: underline; }
.entry-content img { margin-block: 35px; }
.entry-content blockquote { margin: 45px 0; padding: 25px 30px; border-left: 4px solid var(--red); background: #121212; font-family: var(--serif); font-size: 1.5rem; }
.entry-content .intro { margin: 0 0 65px; color: var(--paper); font-family: var(--serif); font-size: clamp(1.55rem,3vw,2.6rem); line-height: 1.15; }
.content-section { margin: 0 0 70px; padding-top: 32px; border-top: 1px solid var(--line); }
.content-section h2 { margin: 0 0 25px; }
.content-section h3 { font-family: var(--sans); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.content-section ul { padding-left: 1.25em; }
.page-note { margin-top: 90px; padding: 32px; display: grid; grid-template-columns: 130px 1fr; gap: 30px; align-items: center; border: 1px solid var(--line); background: linear-gradient(120deg,rgba(212,17,34,.18),transparent); }
.page-note strong { font-family: var(--serif); font-size: 3rem; font-weight: 400; }
.page-note p { margin: 0; }

/* Footer */
.site-footer { padding: 65px 0 35px; border-top: 1px solid var(--line); }
.site-footer__top { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  transition: transform .2s ease, filter .2s ease;
}
.footer-brand:hover, .footer-brand:focus-visible { transform: scale(1.035); filter: drop-shadow(0 0 8px rgba(255,190,0,.38)); }
.site-footer .footer-brand img { width: 180px; max-height: 60px; object-fit: contain; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 45px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav { position: fixed; inset: 121px 0 0; display: none; padding: 40px 20px; background: var(--ink); align-items: flex-start; }
  .nav.is-open { display: block; }
  .nav .menu { align-items: flex-start; flex-direction: column; gap: 24px; }
  .nav a { font-family: var(--serif); font-size: 2rem; font-weight: 400; text-transform: none; }
  .welcome-grid { grid-template-columns: 1fr; }
  .hero__layout { grid-template-columns: minmax(0,1.2fr) minmax(260px,.8fr); gap: 32px; }
  .hero__visual { box-shadow: 18px 18px 0 rgba(212,17,34,.14); }
  .anniversary { min-height: 220px; }
  .acts { grid-template-columns: repeat(2,1fr); }
  .highlights { grid-template-columns: 1fr; }
  .highlight { min-height: 300px; border-right: 0; border-bottom: 1px solid var(--line); }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .archive-card { min-height: 220px; grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .announcement .wrap { justify-content: center; text-align: center; }
  .announcement span:last-child { display: none; }
  .site-header__inner { min-height: 76px; }
  .brand { min-width: 138px; min-height: 44px; }
  .brand img { width: 138px; max-height: 44px; }
  .nav { inset: 109px 0 0; }
  .hero { min-height: calc(100svh - 109px); }
  .hero__layout { grid-template-columns: 1fr; }
  .hero__visual { width: min(100%,440px); justify-self: center; margin-top: 22px; aspect-ratio: 1 / 1; }
  .hero__visual::before { top: -12px; right: -12px; }
  .hero__meta { gap: 22px 38px; }
  .acts, .arrival-grid, .first-grid, .photo-grid { grid-template-columns: 1fr; }
  .act { min-height: 360px; }
  .photo-card { min-height: 360px; }
  .photo-card--title { min-height: 0; aspect-ratio: 1280 / 705; }
  .maskarade-note { min-height: 230px; }
  .first-item + .first-item { padding-left: 0; border-left: 0; }
  .site-footer__top, .site-footer__bottom { align-items: flex-start; flex-direction: column; }
  .page-note { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
