/*
Theme Name: BRUT Child
Theme URI: https://studiobrut.art
Description: Child theme for Studio BRUT. Bold Raw Untrained Talent. All brand tokens, templates and CPT styling live here.
Author: Studio BRUT
Template: generatepress
Version: 1.0.0
Text Domain: brut-child
*/

/* -------------------------------------------------
 * Tokens
 * Colour targets from the BRUT poster. Red and pink still
 * to be eyedropper-checked against 16.png when supplied.
 * ------------------------------------------------- */
:root {
  --brut-black: #0A0A0A;
  --brut-red:   #CE1616;
  --brut-bone:  #F2EFE6;
  --brut-white: #FFFFFF;
  --brut-text:  #EDEDED;
  --brut-pink:  #E8447A;

  --font-display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --font-body: 'Figtree', 'Avenir', 'Helvetica Neue', sans-serif;
}

/* -------------------------------------------------
 * Fonts, self hosted
 * ------------------------------------------------- */
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/bigshoulders-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/bigshoulders-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/figtree-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/figtree-400.woff2') format('woff2');
}

/* -------------------------------------------------
 * Base
 * ------------------------------------------------- */
html {
  background: var(--brut-black);
}
body {
  background: var(--brut-black);
  color: var(--brut-text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
}
strong, b {
  font-weight: 400;
}
h1, h2, h3, h4, h5, h6,
.main-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
  color: var(--brut-white);
}
h3, h4 {
  font-weight: 500;
}
a {
  color: var(--brut-text);
  text-decoration-color: var(--brut-red);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--brut-red);
}
::selection {
  background: var(--brut-red);
  color: var(--brut-white);
}
img {
  border-radius: 0;
}

/* Visible focus, bone on black */
:focus-visible {
  outline: 3px solid var(--brut-bone);
  outline-offset: 2px;
  border-radius: 0;
}
.brut-on-red :focus-visible,
.brut-on-bone :focus-visible {
  outline-color: var(--brut-black);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------------------------------------
 * Buttons
 * ------------------------------------------------- */
.brut-btn,
.wp-block-button__link,
button[type="submit"],
input[type="submit"],
.ff-btn-submit {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0.9em 1.6em;
  background: var(--brut-red);
  color: var(--brut-white);
  border: 0;
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.brut-btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
.ff-btn-submit:hover {
  background: var(--brut-bone);
  color: var(--brut-black);
}
.brut-btn--bone {
  background: var(--brut-bone);
  color: var(--brut-black);
}
.brut-btn--bone:hover {
  background: var(--brut-black);
  color: var(--brut-bone);
}

/* -------------------------------------------------
 * Header and navigation
 * ------------------------------------------------- */
.site-header {
  background: var(--brut-black);
  border-bottom: 1px solid rgba(242, 239, 230, 0.12);
}
.site-header .main-title a,
.brut-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -0.01em;
  color: var(--brut-white);
  text-decoration: none;
}
.main-navigation {
  background: var(--brut-black);
}
.main-navigation .main-nav ul li a {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: var(--brut-text);
  transition: color 0.15s ease;
}
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li:hover > a {
  color: var(--brut-red);
  background: transparent;
}
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current_page_item > a {
  color: var(--brut-red);
}
/* The one red button in the nav */
.main-navigation .main-nav ul li.brut-join-btn > a {
  background: var(--brut-red);
  color: var(--brut-white);
  margin-left: 12px;
}
.main-navigation .main-nav ul li.brut-join-btn > a:hover {
  background: var(--brut-bone);
  color: var(--brut-black);
}
.menu-toggle {
  background: var(--brut-black);
  color: var(--brut-bone);
}
.main-navigation.toggled .main-nav > ul {
  background: var(--brut-black);
}

/* -------------------------------------------------
 * Layout helpers
 * ------------------------------------------------- */
.brut-section {
  padding: 5rem 20px;
}
.brut-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.brut-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .brut-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .brut-grid-3 {
    grid-template-columns: 1fr;
  }
}
.brut-kicker {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
  color: var(--brut-red);
  margin: 0 0 1rem;
}

/* Inkblot divider between homepage sections */
.brut-divider {
  text-align: center;
  padding: 0.5rem 0;
}
.brut-divider img {
  width: 44px;
  height: 44px;
  opacity: 0.85;
}

/* -------------------------------------------------
 * Hero
 * ------------------------------------------------- */
.brut-hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 20px 4rem;
  overflow-x: clip;
}
.brut-hero h1 {
  margin: 0 auto;
  max-width: 1100px;
  width: 100%;
  font-size: clamp(4rem, 17vw, 13rem);
  line-height: 0.88;
}
.brut-hero h1 span {
  display: block;
}
.brut-hero .hero-slab {
  position: relative;
  color: var(--brut-white);
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.55);
  padding: 0.04em 0;
  z-index: 0;
}
.brut-hero .hero-slab::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--brut-red);
  z-index: -1;
}
.brut-hero .hero-sub {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  width: 100%;
  font-size: 1.2rem;
}
.brut-hero .hero-sub p {
  margin: 0 0 1.5rem;
  max-width: 34ch;
}

/* -------------------------------------------------
 * Next event, the one taped poster
 * ------------------------------------------------- */
.brut-event-card {
  position: relative;
  background: var(--brut-bone);
  color: var(--brut-black);
  max-width: 560px;
  margin: 2.5rem auto 0;
  padding: 28px;
}
.brut-event-card::before,
.brut-event-card::after {
  content: '';
  position: absolute;
  width: 110px;
  height: 34px;
  background: rgba(242, 239, 230, 0.75);
  border: 1px solid rgba(10, 10, 10, 0.06);
}
.brut-event-card::before {
  top: -16px;
  left: -34px;
  transform: rotate(-38deg);
}
.brut-event-card::after {
  top: -16px;
  right: -34px;
  transform: rotate(38deg);
}
.brut-event-card img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
}
.brut-event-card h3 {
  color: var(--brut-black);
  font-weight: 700;
  font-size: 2rem;
  margin: 0 0 0.5rem;
}
.brut-event-card .event-meta {
  font-size: 1rem;
  margin: 0 0 1.25rem;
}
.brut-event-card a {
  color: var(--brut-black);
}
.brut-event-card .brut-btn {
  color: var(--brut-white);
}
.brut-event-card .brut-btn:hover {
  background: var(--brut-black);
  color: var(--brut-bone);
}

/* -------------------------------------------------
 * From the studio grid
 * ------------------------------------------------- */
.brut-studio-item {
  display: block;
  text-decoration: none;
}
.brut-studio-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.brut-studio-item .item-title {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 1.15rem;
  color: var(--brut-white);
  margin: 0.6rem 0 0;
}
.brut-studio-item:hover .item-title {
  color: var(--brut-red);
}
.brut-studio-item .item-sub {
  font-size: 0.9rem;
  color: var(--brut-text);
  margin: 0.15rem 0 0;
}

/* -------------------------------------------------
 * Red slab call to action
 * ------------------------------------------------- */
.brut-slab-cta {
  background: var(--brut-red);
  color: var(--brut-white);
  padding: 5rem 20px;
}
.brut-slab-cta h2 {
  font-size: clamp(2.4rem, 7vw, 5rem);
  margin: 0 0 1rem;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.55);
}
.brut-slab-cta p {
  max-width: 60ch;
  margin: 0 0 2rem;
  font-size: 1.15rem;
}

/* -------------------------------------------------
 * Footer, bone strip mirroring the poster partner band
 * ------------------------------------------------- */
.brut-footer {
  background: var(--brut-bone);
  color: var(--brut-black);
  padding: 3rem 20px 2.5rem;
}
.brut-footer .brut-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.brut-partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.brut-partners li {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}
.brut-partners img {
  max-height: 56px;
  width: auto;
}
.brut-footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(10, 10, 10, 0.15);
  padding-top: 1.5rem;
  font-size: 0.95rem;
}
.brut-footer a {
  color: var(--brut-black);
  text-decoration-color: var(--brut-red);
}
.brut-footer a:hover {
  color: var(--brut-red);
}
.site-footer {
  display: none;
}

/* -------------------------------------------------
 * Directory
 * ------------------------------------------------- */
.brut-artist-card {
  background: var(--brut-bone);
  color: var(--brut-black);
  padding: 0 0 18px;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.brut-artist-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.brut-artist-card .artist-body {
  padding: 16px 18px 0;
}
.brut-artist-card h3 {
  color: inherit;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0 0 0.4rem;
}
.brut-artist-card .artist-area {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.6rem;
}
.brut-artist-card .artist-bio {
  font-size: 0.95rem;
  margin: 0 0 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.brut-artist-card .artist-links {
  display: flex;
  gap: 12px;
}
.brut-artist-card .artist-links a {
  color: inherit;
  line-height: 0;
}
.brut-artist-card .artist-links svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.brut-artist-card:hover {
  background: var(--brut-red);
  color: var(--brut-white);
}
.brut-artist-card:hover a {
  color: var(--brut-white);
}

/* -------------------------------------------------
 * Gallery
 * ------------------------------------------------- */
.brut-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .brut-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .brut-gallery-grid {
    grid-template-columns: 1fr;
  }
}
.brut-work {
  position: relative;
  display: block;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}
.brut-work img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.brut-work figcaption {
  position: absolute;
  inset: auto 0 0 0;
  background: rgba(10, 10, 10, 0.85);
  color: var(--brut-text);
  font-size: 0.9rem;
  padding: 10px 14px;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.brut-work:hover figcaption,
.brut-work:focus-visible figcaption {
  opacity: 1;
}
@media (hover: none) {
  .brut-work figcaption {
    opacity: 1;
    position: static;
    background: none;
    padding: 8px 0 0;
  }
}
.brut-work figcaption .work-title {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--brut-white);
}

/* Lightbox */
.brut-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
  padding: 24px;
}
.brut-lightbox.open {
  display: flex;
}
.brut-lightbox img {
  max-width: 92vw;
  max-height: 82vh;
  width: auto;
  height: auto;
}
.brut-lightbox .lb-caption {
  color: var(--brut-text);
  margin-top: 14px;
  font-size: 0.95rem;
}
.brut-lightbox .lb-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: 0;
  color: var(--brut-bone);
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 12px;
}
.brut-lightbox .lb-close:hover {
  color: var(--brut-red);
}

/* -------------------------------------------------
 * Events archive
 * ------------------------------------------------- */
.brut-event-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  background: var(--brut-bone);
  color: var(--brut-black);
  margin-bottom: 28px;
}
@media (max-width: 700px) {
  .brut-event-row {
    grid-template-columns: 1fr;
  }
}
.brut-event-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.brut-event-row .event-body {
  padding: 26px 26px 26px 0;
}
@media (max-width: 700px) {
  .brut-event-row .event-body {
    padding: 0 26px 26px;
  }
}
.brut-event-row h2 {
  color: var(--brut-black);
  font-size: 2.2rem;
  margin: 0 0 0.5rem;
}
.brut-event-row h2 a {
  color: inherit;
  text-decoration: none;
}
.brut-event-row h2 a:hover {
  color: var(--brut-red);
}
.brut-past-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.brut-past-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(242, 239, 230, 0.15);
}
.brut-past-list .past-date {
  color: var(--brut-red);
  font-family: var(--font-display);
  text-transform: uppercase;
  min-width: 130px;
}

/* Single event */
.single-event .entry-header h1 {
  font-size: clamp(2.6rem, 8vw, 5rem);
}
.brut-event-facts {
  font-size: 1.05rem;
  margin: 1rem 0 2rem;
}
.brut-event-facts span {
  display: block;
}

/* -------------------------------------------------
 * Blog, single column reading layout
 * ------------------------------------------------- */
.blog .site-main article,
.single-post .site-main article,
.archive.category .site-main article {
  max-width: 68ch;
  margin-left: auto;
  margin-right: auto;
}
.entry-title a {
  color: var(--brut-white);
  text-decoration: none;
}
.entry-title a:hover {
  color: var(--brut-red);
}
.entry-meta {
  color: rgba(237, 237, 237, 0.6);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* -------------------------------------------------
 * About page artist blocks
 * ------------------------------------------------- */
.brut-artist-block {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: start;
  margin: 3rem 0;
}
.brut-artist-block img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.brut-artist-block.flip {
  direction: rtl;
}
.brut-artist-block.flip > * {
  direction: ltr;
}
@media (max-width: 700px) {
  .brut-artist-block,
  .brut-artist-block.flip {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

/* -------------------------------------------------
 * Content area defaults
 * ------------------------------------------------- */
.site-content {
  background: var(--brut-black);
}
.inside-article {
  background: transparent;
}
.entry-content a {
  color: var(--brut-text);
}
.entry-content a:hover {
  color: var(--brut-red);
}
.page-header .archive-title,
h1.entry-title {
  font-size: clamp(2.6rem, 8vw, 5rem);
}

/* -------------------------------------------------
 * Forms (Fluent Forms on black)
 * ------------------------------------------------- */
.fluentform .ff-el-form-control {
  background: #141414;
  border: 1px solid rgba(242, 239, 230, 0.35);
  border-radius: 0;
  color: var(--brut-text);
}
.fluentform .ff-el-form-control:focus {
  border-color: var(--brut-bone);
  outline: 2px solid var(--brut-bone);
  box-shadow: none;
}
.fluentform .ff-el-input--label label {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brut-bone);
  font-size: 0.95rem;
}
.fluentform .ff-el-form-check-label {
  color: var(--brut-text);
}

/* -------------------------------------------------
 * 404
 * ------------------------------------------------- */
.brut-404 {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 20px;
}
.brut-404 img {
  width: 140px;
  height: 140px;
  margin-bottom: 2rem;
}
.brut-404 h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  margin: 0 0 1rem;
}
