/* ===== Yhden miehen levyraati — brand tokens & base styles ===== */

:root {
  --yellow: #FFBD59;
  --yellow-deep: #F0A934;
  --black: #000000;
  --white: #FFFFFF;
  --ice: #CDDFE3;
  --charcoal: #383838;
  --ticket: #E27A66;       /* salmon / brick-red for concert ticket */
  --ticket-shadow: #B4513F;

  --font-heading: "Calistoga", Georgia, serif;
  --font-body: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;

  --radius-pill: 9999px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--yellow);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ----- Type scale ----- */
.h1, .h2, .h3, .h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
  margin: 0;
}
.h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
.h3 { font-size: clamp(1.4rem, 2.4vw, 2.2rem); }
.h4 { font-size: clamp(1.1rem, 1.8vw, 1.6rem); }

.body-lg { font-size: 1.125rem; line-height: 1.55; }
.body { font-size: 1rem; line-height: 1.55; }
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 1.1em 2em;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--black);
  color: var(--white);
}
.btn--primary:hover { background: #1a1a1a; }

.btn--secondary {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn--secondary:hover { background: var(--black); color: var(--white); }

.btn--tertiary {
  background: transparent;
  color: var(--black);
  padding: 0.4em 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  font-weight: 500;
}
.btn--tertiary:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ----- Layout helpers ----- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

.section {
  padding: 96px 0;
  border-top: 2px solid var(--black);
}
.section:first-of-type { border-top: none; }
@media (max-width: 720px) {
  .section { padding: 64px 0; }
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: start;
}
@media (max-width: 920px) {
  .two-col { grid-template-columns: 1fr; gap: 40px; }
}

/* ----- Cards ----- */
.card-meta {
  font-size: 0.85rem;
  color: var(--charcoal);
  letter-spacing: 0.04em;
}

/* ----- Header ----- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--yellow);
  border-bottom: 2px solid var(--black);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  gap: 24px;
}
.header__nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.header__nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  color: inherit;
}
.header__nav a.is-active::after,
.header__nav a:hover::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--black);
}
.header__hamburger {
  display: none;
  background: none;
  border: 2px solid var(--black);
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
}
@media (max-width: 980px) {
  .header__nav { display: none; }
  .header__hamburger { display: inline-flex; align-items: center; gap: 8px; }
  .header__nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--yellow);
    border-bottom: 2px solid var(--black);
    padding: 20px 24px 28px;
    gap: 18px;
    align-items: flex-start;
  }
}

/* ----- Footer ----- */
.footer {
  background: var(--yellow);
  border-top: 2px solid var(--black);
  padding: 48px 0 28px;
}
.footer__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
}
.footer__icons {
  display: flex;
  gap: 14px;
  justify-content: center;
}
.footer__icon {
  width: 44px; height: 44px;
  border: 2px solid var(--black);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}
.footer__icon:hover { background: var(--black); color: var(--white); }
.footer__right { text-align: right; }
.footer__bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.25);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
@media (max-width: 720px) {
  .footer__row { grid-template-columns: 1fr; text-align: center; }
  .footer__right { text-align: center; }
}

/* ----- Hero ----- */
.hero {
  padding: 120px 0 96px;
  text-align: center;
}
.hero h1 {
  max-width: 16ch;
  margin: 0 auto 24px;
}
.hero p {
  max-width: 56ch;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.5;
}

/* ----- Section header (h2 link + tagline) ----- */
.section-head h2 {
  text-decoration: none;
  display: inline-block;
}
.section-head h2:hover { text-decoration: underline; text-underline-offset: 6px; }
.section-head p {
  margin: 16px 0 0;
  max-width: 32ch;
  font-size: 1.05rem;
}

/* ----- Carousel ----- */
.carousel {
  position: relative;
}
.carousel__btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--black);
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.carousel__btn:hover { background: var(--black); color: var(--white); }
.carousel__btn:disabled { opacity: 0.3; cursor: not-allowed; }
.carousel__track {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
  scroll-behavior: smooth;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__item {
  flex: 0 0 280px;
  scroll-snap-align: start;
}

/* ----- Article card ----- */
.article-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.article-card__date {
  font-size: 0.85rem;
  color: var(--charcoal);
}
.article-card__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  line-height: 1.2;
  margin: 0;
  text-wrap: pretty;
}
.article-card__link {
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ----- Grid ----- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 40px;
}
@media (max-width: 920px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
}

/* ----- Search ----- */
.search {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--black);
  border-radius: var(--radius-pill);
  padding: 14px 22px;
  background: var(--white);
  max-width: 520px;
}
.search input {
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  flex: 1;
  color: var(--black);
}

/* ----- Tag pills ----- */
.tag {
  display: inline-block;
  padding: 7px 16px;
  border: 2px solid var(--black);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.tag:hover, .tag.is-active { background: var(--black); color: var(--white); }

/* ----- Article body ----- */
.prose {
  max-width: 680px;
  font-size: 1.125rem;
  line-height: 1.65;
}
.prose p { margin: 0 0 1.2em; }
.prose p:first-of-type::first-letter {
  font-family: var(--font-heading);
  font-size: 4.5em;
  float: left;
  line-height: 0.85;
  padding: 6px 12px 0 0;
}
.prose h2 { font-family: var(--font-heading); font-size: 2rem; margin: 2em 0 0.5em; line-height: 1.2; }
.prose h3 { font-family: var(--font-heading); font-size: 1.5rem; margin: 1.6em 0 0.4em; line-height: 1.2; }
.prose blockquote {
  margin: 1.8em 0;
  padding: 8px 0 8px 28px;
  border-left: 4px solid var(--black);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1.3;
}
.prose strong { font-weight: 600; }
.prose em { font-style: italic; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }

/* ----- Spotify embed ----- */
.spotify-embed {
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--black);
  background: var(--black);
}

/* ----- Bad Record promo block ----- */
.promo {
  background: var(--black);
  color: var(--white);
  padding: 56px 48px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.promo h3 { font-family: var(--font-heading); font-size: 2rem; margin: 0; max-width: 24ch; }
.promo .btn--primary {
  background: var(--white);
  color: var(--black);
}
.promo .btn--primary:hover { background: var(--ice); }
.promo__code {
  display: inline-block;
  padding: 6px 14px;
  background: var(--yellow);
  color: var(--black);
  border-radius: var(--radius-pill);
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* ----- Instagram grid ----- */
.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ig-tile {
  aspect-ratio: 1;
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.ig-tile__play {
  position: absolute;
  top: 12px; right: 12px;
  width: 28px; height: 28px;
  background: rgba(0,0,0,0.55);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
}

/* ----- Contact form ----- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}
.field input, .field textarea {
  border: 2px solid var(--black);
  background: var(--white);
  padding: 14px 16px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  box-shadow: 0 0 0 3px rgba(0,0,0,0.15);
}
.field--honeypot { display: none; }

/* ----- Image placeholder (striped) ----- */
.img-placeholder {
  background:
    repeating-linear-gradient(45deg,
      rgba(0,0,0,0.06) 0 10px,
      rgba(0,0,0,0.02) 10px 20px),
    var(--ice);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  font-size: 0.78rem;
  color: var(--charcoal);
  text-align: center;
  padding: 12px;
}

/* ----- Skip link ----- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--black);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  z-index: 100;
}
.skip-link:focus { left: 16px; }

/* ----- Prev/Next article nav ----- */
.adjacent {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 64px;
  border-top: 2px solid var(--black);
  padding-top: 32px;
}
@media (max-width: 600px) { .adjacent { grid-template-columns: 1fr; } }
.adjacent__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  padding: 18px 0;
}
.adjacent__card--next { text-align: right; }

/* ----- Podcast page ----- */
.podcast-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  max-width: 420px;
  margin: 0 auto;
}
.podcast-buttons .btn { width: 100%; padding: 1.4em 2em; font-size: 1.05rem; }

.podimo-block {
  margin-top: 96px;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 24px;
  padding: 48px;
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.podimo-block__logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: #6B2FB3;
  margin-bottom: 16px;
}

/* ----- Cookie consent ----- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: var(--white);
  border-top: 2px solid var(--black);
  padding: 20px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
}
.cookie-banner__text {
  max-width: 640px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cookie-modal {
  background: var(--white);
  color: var(--black);
  border-radius: 16px;
  border: 2px solid var(--black);
  max-width: 520px;
  width: 100%;
  padding: 32px;
  max-height: 90vh;
  overflow-y: auto;
}
.cookie-modal__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}
.cookie-modal__row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.cookie-modal__close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 6px;
  flex-shrink: 0;
  color: var(--black);
}
.cookie-modal__close:hover { opacity: 0.6; }
