/* =============================================
   Liverpool Love – style.css
   Vanilla HTML/CSS, no framework.
   All brand tokens at the top as variables.
   ============================================= */

/* ── SELF-HOSTED JOST FONT ─────────────────── */
@font-face {
  font-family: 'Jost';
  src: url('../assets/fonts/Jost/static/Jost-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Jost';
  src: url('../assets/fonts/Jost/static/Jost-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Jost';
  src: url('../assets/fonts/Jost/static/Jost-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'Jost';
  src: url('../assets/fonts/Jost/static/Jost-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

/* ── TOKENS ─────────────────────────────────── */
:root {
  /* Colours */
  --c-white:          #ffffff;
  --c-black:          #333333;
  --c-grey-100:       #f5f5f5;
  --c-grey-300:       #cccccc;
  --c-grey-500:       #888888;
  --c-grey-700:       #555555;
  --c-text:           #333333;
  --c-text-muted:     #888888;
  --c-border:         #cccccc;

  /* Brand palette (from logo shapes) */
  --c-red:            #ee3123;
  --c-yellow:         #ffde00;
  --c-green:          #8dc73f;
  --c-blue:           #0055a5;

  /* Typography */
  --font-body:        'Jost', Arial, sans-serif;

  /* Font sizes */
  --font-size-xs:     12px;
  --font-size-sm:     14px;
  --font-size-base:   16px;
  --font-size-md:     20px;
  --font-size-lg:     24px;
  --font-size-xl:     36px;
  --font-size-2xl:    48px;
  --font-size-3xl:    64px;

  /* Line heights */
  --line-height-xs:   16px;
  --line-height-sm:   20px;
  --line-height-base: 24px;
  --line-height-md:   28px;
  --line-height-lg:   32px;
  --line-height-xl:   44px;
  --line-height-2xl:  56px;
  --line-height-3xl:  72px;

  /* Spacing */
  --space-xs:   8px;
  --space-sm:   16px;
  --space-md:   24px;
  --space-lg:   32px;
  --space-xl:   48px;
  --space-2xl:  64px;
  --space-3xl:  96px;
  --space-4xl:  128px;

  /* Image ratios */
  --ratio-16-9:   16 / 9;
  --ratio-1-1:    1 / 1;
  --ratio-3-1:    3 / 1;
  --ratio-3-2:    3 / 2;

  /* Grid */
  --grid-columns:     12;
  --grid-margin:      40px;
  --grid-gutter:      24px;

  /* Layout */
  --max-width:        1200px;
  --gutter:           0px;
}

/* ── RESET ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-y: scroll; }
body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--c-text);
  background: var(--c-white) url('../assets/images/love-background.svg') center top no-repeat;
  background-size: 1580px auto;
  line-height: 1.65;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

/* ── HEADINGS ────────────────────────────────── */
h1 {
  font-size: var(--font-size-2xl);
  font-weight: 400;
  color: var(--c-text);
  line-height: var(--line-height-2xl);
  margin-bottom: 28px;
}
h2 {
  font-size: var(--font-size-xl);
  font-weight: 400;
  color: var(--c-text);
  line-height: var(--line-height-xl);
  margin-bottom: var(--space-sm);
}
h3 {
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: var(--c-text);
  line-height: var(--line-height-lg);
  margin-bottom: var(--space-sm);
}
h4 {
  font-size: var(--font-size-md);
  font-weight: 500;
  color: var(--c-text);
  line-height: var(--line-height-md);
  margin-bottom: var(--space-sm);
}

/* ── IMAGE RATIOS ────────────────────────────── */
.img-16-9 { aspect-ratio: var(--ratio-16-9); object-fit: cover; width: 100%; }
.img-1-1  { aspect-ratio: var(--ratio-1-1);  object-fit: cover; width: 100%; }
.img-3-1  { aspect-ratio: var(--ratio-3-1);  object-fit: cover; width: 100%; }
.img-3-2  { aspect-ratio: var(--ratio-3-2);  object-fit: cover; width: 100%; }

.img-full  { width: 100%; height: auto; }

/* ── ACCESSIBILITY ───────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  background: var(--c-text);
  color: var(--c-white);
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--font-size-sm);
  z-index: 200;
  transition: top 0.2s;
}
.skip-link:focus {
  top: var(--space-xs);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── PAGE WRAP (white box over background) ──── */
.page-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--c-white);
  position: relative;
  min-height: 1567px;
}

/* ── UTILITY ─────────────────────────────────── */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: relative;
  z-index: 100;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-sm) var(--gutter);
}
.header-logo img {
  width: 127px;
  height: auto;
}

/* Nav (inline with logo on desktop) */
.site-nav {
  background: var(--c-white);
  display: flex;
  align-items: center;
}
.nav-list {
  display: flex;
  gap: var(--space-lg);
}
.nav-list a {
  display: block;
  color: var(--c-text);
  font-size: var(--font-size-xs);
  font-weight: 500;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  padding: var(--space-xs) 0;
  transition: color 0.15s;
}
.nav-list a:hover { color: var(--c-text-muted); }
.nav-list a.active { color: var(--c-black); }
.nav-social {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-left: var(--space-lg);
}
.nav-social a {
  display: flex;
  align-items: center;
}
.nav-social img {
  width: 18px;
  height: 18px;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.nav-social a:hover img {
  opacity: 1;
}

/* Mobile nav overlay (hidden on desktop) */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--c-white);
  z-index: 99;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.nav-mobile.open { display: flex; transform: translateX(0); }
.nav-overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 24px 32px 16px;
  box-sizing: border-box;
  position: relative;
}
.nav-overlay-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 32px;
  right: 32px;
  height: 1px;
  background: var(--c-border);
}
.nav-overlay-logo img {
  height: 44px;
  width: auto;
}
.nav-mobile-list {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}
.nav-mobile-list a {
  display: block;
  font-size: 1.4rem;
  padding: 0.65rem 32px;
  color: var(--c-text);
  letter-spacing: 0.05em;
  font-weight: 700;
  text-transform: uppercase;
}
.nav-mobile-list a:hover { color: var(--c-text-muted); }
.nav-mobile-list a.active { color: var(--c-red); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.nav-toggle:hover { background: transparent; }
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding: 0 var(--space-lg);
}
.hero-img {
  display: block;
}

/* =============================================
   CAROUSEL
   ============================================= */
.carousel {
  position: relative;
}
.carousel-track {
  position: relative;
  overflow: hidden;
}
.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.carousel-slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) 0;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-grey-300);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.carousel-dot.active {
  background: var(--c-text);
}
.carousel-dot:hover {
  background: var(--c-grey-500);
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-section {
  text-align: center;
  padding: var(--space-2xl) var(--gutter);
}
.about-label {
  font-size: var(--font-size-xs);
  font-weight: 500;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  color: var(--c-black);
  margin-bottom: var(--space-lg);
}
.about-heading {
  font-size: clamp(2rem, 4vw, var(--font-size-2xl));
  font-weight: 400;
  color: var(--c-text-muted);
  line-height: 1.17;
  letter-spacing: -0.24px;
  max-width: 792px;
  margin: 0 auto var(--space-lg);
}
.about-body {
  font-size: var(--font-size-md);
  font-weight: 400;
  color: var(--c-text-muted);
  line-height: 1.6;
  max-width: 792px;
  margin: 0 auto 28px;
}
.about-body:last-of-type {
  margin-bottom: var(--space-xl);
}
/* ── BUTTONS ──────────────────────────────────── */
/* Shared base */
.btn-dark,
.btn-dark-sm {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  border: 1px solid var(--c-text);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

/* Medium: 156x64, padding 40h 24v */
.btn-dark {
  background: var(--c-text);
  color: var(--c-white);
  font-size: var(--font-size-xs);
  padding: 24px 40px;
}
.btn-dark:hover { background: var(--c-grey-700); color: var(--c-white); }

/* Small: 116x40, padding 16h 12v */
.btn-dark-sm {
  background: var(--c-text);
  color: var(--c-white);
  font-size: var(--font-size-xs);
  padding: 12px 16px;
}
.btn-dark-sm:hover { background: var(--c-grey-700); color: var(--c-white); }

/* =============================================
   INNER PAGE LAYOUT (sidebar + main)
   ============================================= */
.inner-layout {
  display: grid;
  grid-template-columns: 102px 180px 24px 690px 204px;
  align-items: start;
  padding: var(--space-lg) 0 0;
}

h1.page-title {
  font-size: var(--font-size-xl);
  font-weight: 400;
  color: var(--c-text);
  line-height: var(--line-height-xl);
  padding: var(--space-lg) 0 var(--space-lg) 306px;
  margin-bottom: 0;
}

/* Sidebar nav */
.sidebar-nav {
  grid-column: 2;
  padding-top: var(--space-xs);
  padding-right: var(--space-md);
}

/* Inner main content */
.inner-main {
  grid-column: 4;
  padding-bottom: var(--space-3xl);
}
.sidebar-nav a {
  display: block;
  font-size: var(--font-size-base);
  font-weight: 400;
  color: var(--c-text);
  line-height: var(--line-height-base);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-sm);
  border-bottom: 1px solid var(--c-grey-300);
  transition: color 0.15s;
}
.sidebar-nav a:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.sidebar-nav a:hover { color: var(--c-text-muted); }
.sidebar-nav a.active { font-weight: 600; }

.inner-main img {
  width: 100%;
  height: auto;
  margin-bottom: var(--space-xl);
}
.inner-main h2 {
  font-size: var(--font-size-2xl);
  font-weight: 400;
  line-height: var(--line-height-2xl);
  margin-bottom: 28px;
}

.inner-main ul:not(.news-list) {
  list-style: disc;
  padding-left: var(--space-md);
  margin-bottom: var(--space-lg);
}
.inner-main ul:not(.news-list) li {
  font-size: var(--font-size-md);
  color: var(--c-text);
  line-height: var(--line-height-lg);
  margin-bottom: var(--space-xs);
}
.inner-main a {
  color: var(--c-text);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.15s;
}
.inner-main a:hover {
  color: var(--c-text-muted);
}
.inner-main p {
  font-size: var(--font-size-md);
  font-weight: 400;
  color: var(--c-text);
  line-height: var(--line-height-lg);
  margin-bottom: var(--space-lg);
}

/* =============================================
   VIDEO EMBED
   ============================================= */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-top: var(--space-lg);
  margin-bottom: 0;
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* =============================================
   ARTIST DETAIL PAGE
   ============================================= */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--c-text);
  margin-bottom: var(--space-md);
  transition: color 0.15s;
}
.back-link:hover { color: var(--c-text-muted); }
.inner-main .back-link-icon {
  width: 16px;
  height: 16px;
  margin-bottom: 0 !important;
  opacity: 1;
  transition: opacity 0.15s;
}
.back-link:hover .back-link-icon {
  opacity: 0.5;
}

.artist-detail {
  margin-top: var(--space-xl);
}
.artist-detail h2 {
  margin-bottom: var(--space-xs);
}
.artist-detail h3 {
  margin-bottom: var(--space-md);
}

.artist-meta {
  margin-bottom: var(--space-lg);
}
.artist-meta div {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--c-border);
}
.artist-meta dt {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--c-text);
  min-width: 100px;
}
.artist-meta dd {
  font-size: var(--font-size-sm);
  font-weight: 400;
  color: var(--c-text-muted);
}

.artist-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  margin-top: var(--space-xl);
  border-top: 1px solid var(--c-border);
}
.artist-nav-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--c-text);
  transition: color 0.15s;
}
.artist-nav-link:hover { color: var(--c-text-muted); }
.inner-main .artist-nav-icon {
  width: 16px;
  height: 16px;
  margin-bottom: 0 !important;
  transition: opacity 0.15s;
}
.artist-nav-link:hover .artist-nav-icon {
  opacity: 0.5;
}

.artist-portraits {
  display: flex;
  gap: var(--space-sm);
  margin: var(--space-xl) 0 var(--space-md);
}
.inner-main .artist-portraits .artist-portrait {
  margin: 0;
}
.inner-main .artist-portrait {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  margin: var(--space-xl) 0 var(--space-md);
}

/* =============================================
   NEWS LIST
   ============================================= */
.news-list {
  list-style: none;
}
.news-item {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--c-border);
}
.news-item:first-child {
  padding-top: 0;
}
.inner-main .news-date {
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--c-text-muted);
  letter-spacing: 0.96px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.news-headline {
  margin-bottom: var(--space-xs);
}
.news-headline a {
  color: var(--c-text);
  text-decoration: none;
  transition: color 0.15s;
}
.news-headline a:hover {
  color: var(--c-text-muted);
}
.news-read-more {
  font-size: var(--font-size-base);
  color: var(--c-text);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.15s;
}
.news-read-more:hover {
  color: var(--c-text-muted);
}

/* =============================================
   MASONRY GRID (artist cards)
   ============================================= */
.masonry-grid {
  column-count: 2;
  column-gap: var(--grid-gutter);
}
.masonry-card {
  break-inside: avoid;
  margin-bottom: var(--space-lg);
  display: block;
  color: inherit;
  text-decoration: none;
  text-underline-offset: 0;
}
.inner-main a.masonry-card {
  text-decoration: none;
}
.inner-main a.masonry-card:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.masonry-card img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 0 !important;
  transition: opacity 0.2s;
}
.masonry-card:hover img {
  opacity: 0.85;
}
.masonry-card-info {
  padding: var(--space-xs) 0 0;
  display: flex;
  flex-direction: column;
}
.masonry-card-info p {
  margin-bottom: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}
.masonry-card-info {
  display: flex;
  flex-direction: column;
}
.inner-main p.masonry-card-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--c-text);
  line-height: var(--line-height-sm);
  margin-bottom: 4px;
  order: 1;
}
.inner-main p.masonry-card-name {
  font-size: var(--font-size-base);
  font-weight: 400;
  color: var(--c-text);
  line-height: var(--line-height-xs);
  order: 2;
}

/* =============================================
   DIVIDER
   ============================================= */
.divider {
  height: 1px;
  background: var(--c-border);
}

/* =============================================
   FOUNDERS ROW
   ============================================= */
.founders-row {
  padding: var(--space-xl) var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-xl);
  text-align: center;
}
.founder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}
.founder-card .btn-dark-sm {
  margin-top: auto;
}
.founder-label {
  font-size: var(--font-size-xs);
  font-weight: 500;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  color: var(--c-black);
}
.founder-logo {
  height: 48px;
  width: auto;
}
.founder-logo--furr {
  height: 34px;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  border-top: none;
}
.footer-inner {
  padding: var(--space-md) var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}
.footer-copy {
  font-size: 13px;
  color: var(--c-text-muted);
}
.footer-links {
  display: flex;
  gap: var(--space-sm);
}
.footer-links a {
  font-size: 13px;
  color: var(--c-text-muted);
}
.footer-links a:hover { color: var(--c-text); }
.footer-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--c-text);
  transition: color 0.15s;
}
.footer-social a:hover { color: var(--c-text-muted); }
.footer-social svg {
  width: 18px;
  height: 18px;
}
.footer-charity {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.footer-charity-text {
  font-size: 13px;
  color: var(--c-text-muted);
}
.footer-charity-logo {
  height: 40px;
  width: auto;
}
.footer-credit {
  font-size: 13px;
  color: var(--c-text-muted);
  margin-left: auto;
}
.footer-credit a {
  color: var(--c-text-muted);
}
.footer-credit a:hover { color: var(--c-text); }

/* =============================================
   MOBILE
   ============================================= */
@media (max-width: 700px) {
  :root {
    --gutter: 20px;
  }

  /* Header */
  .header-inner {
    padding: 12px var(--gutter);
  }
  .header-logo img { height: 40px; }
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  body.nav-open .nav-toggle {
    position: fixed;
    top: 12px;
    right: 20px;
    z-index: 1000;
  }

  /* Inner layout */
  .inner-layout {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  /* About */
  .about-section {
    padding: var(--space-xl) var(--gutter);
  }
  .about-heading {
    font-size: 1.75rem;
  }
  .about-body {
    font-size: 1rem;
  }

  /* Founders */
  .founders-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Masonry */
  .masonry-grid {
    column-count: 2;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}
