/* Ratboy — UK punk and skate culture zine */

:root {
  --rb-ink:     #0a0a0a;
  --rb-paper:   #f5f1e8;
  --rb-orange:  #ff5a1f;
  --rb-yellow:  #ffcf3c;
  --rb-grey:    #6b6b6b;
  --rb-border:  #1a1a1a;
  --rb-dark:    #121212;
  --rb-white:   #ffffff;
  --rb-font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --rb-font-heading: 'Anton', 'Oswald', 'Impact', 'Arial Narrow', sans-serif;
  --rb-font-display: 'Special Elite', 'Courier New', monospace;
  --rb-trans: 0.18s ease;
  --rb-max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--rb-font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--rb-ink);
  background: var(--rb-paper);
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--rb-ink);
  text-decoration: none;
  transition: color var(--rb-trans);
}
a:hover { color: var(--rb-orange); }

h1, h2, h3, h4 {
  font-family: var(--rb-font-heading);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.5px;
  color: var(--rb-ink);
  text-transform: uppercase;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); margin-bottom: 1rem; position: relative; display: inline-block; }
h2::after {
  content: '';
  position: absolute;
  left: 0; right: -16px; bottom: -4px; height: 6px;
  background: var(--rb-orange);
  transform: skewX(-12deg);
  z-index: -1;
}
h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.1rem; }

/* ===== HEADER ===== */
.rb-header {
  background: var(--rb-paper);
  border-bottom: 3px solid var(--rb-border);
  position: sticky; top: 0; z-index: 100;
}
.rb-nav {
  max-width: var(--rb-max);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.rb-logo { display: inline-flex; align-items: center; }
.rb-logo img { height: 46px; width: auto; }

.rb-nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  padding: 0.4rem; width: 36px; height: 36px;
  flex-direction: column; justify-content: space-between;
}
.rb-nav-toggle span {
  display: block; width: 100%; height: 3px; background: var(--rb-ink);
}

.rb-nav-links {
  list-style: none;
  display: flex;
  gap: 0.2rem;
  align-items: center;
  flex-wrap: wrap;
}
.rb-nav-links a {
  font-family: var(--rb-font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.02rem;
  padding: 0.45rem 0.8rem;
  position: relative;
  color: var(--rb-ink);
}
.rb-nav-links a:hover, .rb-nav-links a.rb-active {
  background: var(--rb-orange);
  color: var(--rb-ink);
}

/* ===== HERO ===== */
.rb-hero {
  padding: 4rem 1.5rem;
  border-bottom: 3px solid var(--rb-border);
  background: var(--rb-paper);
}
.rb-hero-inner {
  max-width: var(--rb-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}
.rb-hero h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95;
  margin-bottom: 1.2rem;
  word-break: keep-all;
}
.rb-hero .rb-slash { color: var(--rb-orange); }
.rb-hero-lead {
  font-family: var(--rb-font-display);
  font-size: 1.15rem;
  margin-bottom: 1.8rem;
  color: var(--rb-ink);
}
.rb-hero-img {
  border: 3px solid var(--rb-border);
  box-shadow: 8px 8px 0 var(--rb-orange);
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
}

/* ===== BUTTONS ===== */
.rb-btn {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  background: var(--rb-ink);
  color: var(--rb-paper) !important;
  font-family: var(--rb-font-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1rem;
  border: 3px solid var(--rb-ink);
  transition: all var(--rb-trans);
}
.rb-btn:hover {
  background: var(--rb-orange);
  color: var(--rb-ink) !important;
  border-color: var(--rb-orange);
}
.rb-btn-outline {
  background: transparent;
  color: var(--rb-ink) !important;
}
.rb-btn-outline:hover {
  background: var(--rb-ink);
  color: var(--rb-paper) !important;
}

/* ===== SECTIONS ===== */
.rb-section { padding: 4rem 1.5rem; }
.rb-section-alt { background: var(--rb-ink); color: var(--rb-paper); }
.rb-section-alt h1, .rb-section-alt h2, .rb-section-alt h3 { color: var(--rb-paper); }
.rb-section-alt h2::after { background: var(--rb-yellow); }
.rb-section-alt a { color: var(--rb-yellow); }
.rb-section-alt a:hover { color: var(--rb-orange); }

.rb-container { max-width: var(--rb-max); margin: 0 auto; }
.rb-section-header { margin-bottom: 2.5rem; }
.rb-section-header p { color: var(--rb-grey); font-size: 1.1rem; max-width: 720px; }
.rb-section-alt .rb-section-header p { color: var(--rb-paper); opacity: 0.8; }

.rb-label {
  font-family: var(--rb-font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--rb-orange);
  display: inline-block;
  margin-bottom: 0.8rem;
}

/* ===== CARD GRID ===== */
.rb-grid {
  display: grid;
  gap: 2rem;
}
.rb-grid-3 { grid-template-columns: repeat(3, 1fr); }
.rb-grid-4 { grid-template-columns: repeat(4, 1fr); }

.rb-card {
  background: var(--rb-white);
  border: 2px solid var(--rb-border);
  box-shadow: 6px 6px 0 var(--rb-orange);
  overflow: hidden;
  transition: transform var(--rb-trans);
}
.rb-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--rb-orange); }
.rb-card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-bottom: 2px solid var(--rb-border); }
.rb-card-body { padding: 1.3rem 1.3rem 1.6rem; }
.rb-card-body h3 { margin-bottom: 0.6rem; }
.rb-card-body h3 a { color: var(--rb-ink); }
.rb-card-body p { color: var(--rb-grey); font-size: 0.98rem; margin-bottom: 0.5rem; }

/* ===== ARTICLE ===== */
.rb-article {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.rb-article h1 { margin-bottom: 1rem; }
.rb-breadcrumb {
  font-family: var(--rb-font-display);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  color: var(--rb-grey);
}
.rb-breadcrumb a { color: var(--rb-grey); text-decoration: underline; }
.rb-breadcrumb a:hover { color: var(--rb-orange); }
.rb-article-hero {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border: 2px solid var(--rb-border);
  box-shadow: 8px 8px 0 var(--rb-orange);
  margin: 1.5rem 0 2.5rem;
}
.rb-article h2 { margin-top: 2.5rem; }
.rb-article h3 { margin-top: 1.8rem; }
.rb-article ul, .rb-article ol { margin: 0 0 1.2rem 1.5rem; }
.rb-article li { margin-bottom: 0.5rem; }
.rb-article a { color: var(--rb-ink); border-bottom: 2px solid var(--rb-orange); }
.rb-article a:hover { background: var(--rb-yellow); color: var(--rb-ink); }

blockquote.rb-quote {
  margin: 2rem 0;
  padding: 1.4rem 1.6rem;
  border-left: 6px solid var(--rb-orange);
  background: var(--rb-white);
  font-family: var(--rb-font-display);
  font-size: 1.1rem;
  line-height: 1.5;
}

/* ===== FAQ ===== */
.rb-faq { max-width: 820px; margin: 2rem auto; }
.rb-faq-item {
  border: 2px solid var(--rb-border);
  margin-bottom: 1rem;
  background: var(--rb-white);
  box-shadow: 4px 4px 0 var(--rb-ink);
}
.rb-faq-q {
  width: 100%;
  background: none;
  border: 0;
  padding: 1.1rem 3rem 1.1rem 1.2rem;
  font-family: var(--rb-font-heading);
  text-transform: uppercase;
  font-size: 1.1rem;
  text-align: left;
  cursor: pointer;
  position: relative;
  color: var(--rb-ink);
  line-height: 1.3;
}
.rb-faq-q::after {
  content: '+';
  position: absolute;
  right: 1.2rem; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem;
  color: var(--rb-orange);
}
.rb-faq-item.rb-open .rb-faq-q::after { content: '×'; }
.rb-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.rb-faq-a-inner { padding: 0 1.2rem 1.2rem; color: var(--rb-grey); font-size: 0.98rem; }

/* ===== FOOTER ===== */
.rb-footer {
  background: var(--rb-dark);
  color: var(--rb-paper);
  padding: 3rem 1.5rem 0;
  border-top: 3px solid var(--rb-orange);
}
.rb-footer a { color: var(--rb-paper); }
.rb-footer a:hover { color: var(--rb-orange); }
.rb-footer-inner {
  max-width: var(--rb-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.rb-footer-col h4 {
  color: var(--rb-orange);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}
.rb-footer-col p { font-size: 0.9rem; opacity: 0.8; margin-top: 1rem; }
.rb-footer-col ul { list-style: none; }
.rb-footer-col ul li { margin-bottom: 0.45rem; font-size: 0.92rem; }
.rb-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.2rem 0;
  text-align: center;
  max-width: var(--rb-max);
  margin: 0 auto;
  font-size: 0.82rem;
  opacity: 0.7;
}
.rb-footer-bottom p { margin: 0 0 0.3rem; }
.rb-disclaimer {
  font-size: 0.75rem;
  opacity: 0.55;
  font-style: italic;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .rb-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .rb-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .rb-footer-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .rb-hero-inner { grid-template-columns: 1fr; }
  .rb-hero { padding: 2.5rem 1.5rem; }
  .rb-grid-4, .rb-grid-3 { grid-template-columns: 1fr; }
  .rb-footer-inner { grid-template-columns: 1fr; gap: 1.8rem; }

  .rb-nav-toggle { display: flex; }
  .rb-nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--rb-paper);
    border-top: 3px solid var(--rb-border);
    padding: 1rem 1.5rem;
    gap: 0;
  }
  .rb-nav-links.rb-open { display: flex; }
  .rb-nav-links a { display: block; padding: 0.7rem 0.5rem; border-bottom: 1px solid rgba(0,0,0,0.08); }
}
