/* mndlab.studio home page, built from MNDLab.pen ("Web – Desktop 1440" and "Web – Mobile 390"). */
@font-face { font-family: "BrainWashers"; src: url("/fonts/brainwashers.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Big Brain Company"; src: url("/fonts/big-brain-company.ttf") format("truetype"); font-display: swap; }

:root {
  --ink: #1A1A1A;
  --paper: #FFF6EE;
  --pink: #FFAAAA;
  --plum: #664C66;
  --coral: #D9736F;
  --muted: #B8AFB2;
  --board: #362C2C;
  --font-display: "BrainWashers", "Arial Black", sans-serif;
  --font-brain: "Big Brain Company", "Arial Black", sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
  --gutter: 16px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--font-body); font-size: 16px; line-height: 1.45; overflow-x: clip; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

.page {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 96px var(--gutter) 72px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* Big brain mark behind the headline */
.brain-bg { position: absolute; z-index: 0; opacity: .2; pointer-events: none; left: 40px; top: -60px; width: 453px; height: auto; max-width: none; }

/* Headline */
.intro { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; }
.headline { margin: 0; display: flex; flex-direction: column; gap: 6px; font: 400 30px/29px var(--font-display); color: var(--paper); }
.headline .line { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.headline .mark { width: 39.4px; height: 34px; }
.tagline { margin: 0; font: 400 28px/27px var(--font-brain); color: var(--muted); }

/* Wavy fold line */
.fold { display: block; width: 100%; height: 18px; fill: var(--plum); }

/* Event board */
.events { position: relative; z-index: 2; }
.board { --brain-fill: var(--board); --brain-stroke: var(--plum); padding: 12px 14px; }
.list { display: flex; flex-direction: column; }
.event { position: relative; padding: 24px 16px; display: flex; flex-direction: column; gap: 16px; }
.fold-h { display: none; }
.event + .event > .fold-h { display: block; position: absolute; left: 16px; right: 16px; top: -9px; width: auto; }
.lead { display: flex; align-items: center; gap: 20px; }
.date { position: relative; flex: 0 0 80px; width: 80px; padding: 4px 20px 4px 0; display: flex; flex-direction: column; align-items: center; gap: 2px; text-transform: uppercase; }
.date .wd, .date .mo { font: 700 12px/16px var(--font-mono); letter-spacing: 1.2px; color: var(--muted); }
.date .wd { color: var(--pink); }
.date .dd { font: 400 56px/50px var(--font-brain); color: var(--paper); }
.date .fold-v { position: absolute; right: -9px; top: 0; bottom: 0; width: 18px; height: 100%; }
.flyer { flex: 1 1 auto; height: 102px; border-radius: 6px; background: var(--ink); overflow: hidden; }
.event:nth-of-type(even) .flyer { background: var(--plum); }
.flyer img { width: 100%; height: 100%; object-fit: cover; }
.info { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag, .status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font: 700 12px/16px var(--font-mono); letter-spacing: 1.2px; text-transform: uppercase; }
.tag { color: var(--pink); box-shadow: inset 0 0 0 1px var(--pink); }
.status { background: var(--coral); color: var(--ink); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.status.sold { background: var(--muted); }
.title { margin: 0; font: 700 24px/26px var(--font-body); letter-spacing: -.5px; }
.artist { margin: 0; font-weight: 500; font-size: 16px; }
.meta { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; color: var(--muted); font-size: 14px; line-height: 20px; }
.meta span { display: inline-flex; align-items: center; gap: 8px; }
.icon { width: 14px; height: 14px; flex: none; }

.actions { display: flex; flex-direction: column; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; font: 600 15px/1 var(--font-body); letter-spacing: .6px; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: transform .15s ease, filter .15s ease; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--plum); color: var(--paper); }
.btn-outline { color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--paper); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.page-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; color: var(--pink); font-weight: 600; font-size: 15px; text-decoration: none; }
.page-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.page-link .icon { transition: transform .15s ease; }
.page-link:hover .icon { transform: translateX(3px); }

.empty { padding: 32px 16px; margin: 0; color: var(--muted); text-align: center; }
.empty a { color: var(--pink); }

/* Instagram */
.insta { position: relative; z-index: 3; display: flex; flex-direction: column; gap: 32px; }
.insta-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.insta-head h2 { margin: 0; font: 400 30px/29px var(--font-display); white-space: nowrap; }
.insta-head .btn { height: 44px; padding: 0 16px; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.post { display: flex; flex-direction: column; gap: 8px; text-decoration: none; min-width: 0; }
.tile { position: relative; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--board); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post:hover .tile img { transform: scale(1.03); }
.marker { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 8px; background: rgba(26, 26, 26, .7); display: grid; place-items: center; color: var(--paper); }
.post .when { font: 700 12px/1.3 var(--font-mono); letter-spacing: 1.2px; color: var(--muted); text-transform: uppercase; }
.post .cap { display: none; font-size: 15px; line-height: 23px; color: var(--paper); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Desktop (design: 1440) */
@media (min-width: 900px) {
  :root { --gutter: clamp(32px, 8.33vw, 120px); }
  .page { padding: 160px var(--gutter) 120px; gap: 72px; }
  .brain-bg { left: calc(50% - 184px); top: -162px; width: 948px; }
  .intro { gap: 28px; }
  .headline { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 .27em; font-size: clamp(40px, 4.2vw, 60px); line-height: .95; }
  .headline .line { gap: .27em; }
  .headline .mark { width: 1.24em; height: 1.07em; }
  .tagline { font-size: clamp(36px, 3.5vw, 50px); line-height: .92; }
  .board { padding: 16px 20px; }
  .event { flex-direction: row; align-items: center; gap: 32px; padding: 24px 32px; }
  .event + .event > .fold-h { left: 32px; right: 64px; }
  .lead { gap: 32px; flex: none; }
  .date { flex-basis: 144px; width: 144px; padding-right: 32px; }
  .date .wd, .date .mo { font-size: 13px; line-height: 17px; }
  .date .wd { color: var(--muted); }
  .date .dd { font-size: 96px; line-height: 86px; }
  .flyer { flex: 0 0 144px; height: 180px; }
  .info { flex: 1 1 0; }
  .tag, .status { font-size: 13px; line-height: 17px; }
  .title { font-size: 34px; line-height: 37px; }
  .artist { font-size: 18px; }
  .meta { flex-direction: row; flex-wrap: wrap; column-gap: 24px; font-size: 15px; line-height: 22px; }
  .actions { flex: 0 0 250px; width: 250px; }
  .btn-primary { background: var(--pink); color: var(--ink); }
  .insta { gap: 48px; }
  .insta-head h2 { font-size: clamp(40px, 4.2vw, 60px); line-height: .95; }
  .insta-head .btn { height: 48px; padding: 0 22px; }
  .posts { gap: 24px; }
  .post { gap: 12px; }
  .marker { top: 12px; right: 12px; width: 28px; height: 28px; }
  .post .when { font-size: 13px; }
  .post .cap { display: block; }
}

/* Mid widths: let the event body wrap before the actions column gets squeezed */
@media (min-width: 900px) and (max-width: 1180px) {
  .event { flex-wrap: wrap; }
  .info { flex-basis: 300px; }
  .actions { flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; width: auto; }
  .actions .btn { flex: 1 1 220px; }
}
