:root {
  --bg-color: #f5f5f5;
  --text-color: #000;
  --primary-color: #ff3e00;
  --secondary-color: #0000ff;
  --border-width: 3px;
  --shadow-offset: 6px;
  --font-display: 'Arial Black', 'Helvetica Black', sans-serif;
  --font-body: 'Arial', sans-serif;
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--primary-color);
  color: #fff;
}

:focus-visible {
  outline: 3px dashed var(--primary-color);
  outline-offset: 3px;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  line-height: 1.4;
  border: var(--border-width) solid #000;
  min-height: 100vh;
  margin: 10px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; max-height: 500px; object-fit: cover; display: block; border: var(--border-width) solid #000; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Utilities */
.section-wrapper {
  background: #fff;
  border-bottom: var(--border-width) solid #000;
}

/* Header */
.header {
  border-bottom: var(--border-width) solid #000;
  padding: 20px 0;
  background: #fff;
}
.brand {
  font-family: var(--font-display);
  font-size: 2rem;
  text-transform: uppercase;
  background: var(--primary-color);
  color: #fff;
  padding: 5px 15px;
  display: inline-block;
  transform: rotate(-2deg);
}

/* Hero */
.hero {
  padding: 60px 0;
  background: #fff;
  border-bottom: var(--border-width) solid #000;
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 0.9;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.hero p {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 30px;
  background: var(--secondary-color);
  color: #fff;
  display: inline-block;
  padding: 5px;
}
.btn-brutal {
  display: inline-block;
  background: #fff;
  color: #000;
  border: var(--border-width) solid #000;
  padding: 15px 30px;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 1.2rem;
  box-shadow: var(--shadow-offset) var(--shadow-offset) 0 #000;
  transition: transform 0.1s, box-shadow 0.1s;
  margin-right: 15px;
  margin-bottom: 10px;
}
.btn-brutal:hover {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0 #000;
  background: var(--primary-color);
  color: #fff;
}
.btn-brutal img { display: inline-block; width: 20px; border: none; vertical-align: middle; margin-right: 10px; }

.hero-img {
  box-shadow: -10px 10px 0 var(--secondary-color);
}

/* Marquee (Features) */
.marquee-container {
  background: var(--primary-color);
  color: #fff;
  padding: 15px 0;
  border-bottom: var(--border-width) solid #000;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-content {
  display: inline-block;
  animation: marquee 20s linear infinite;
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  border-bottom: var(--border-width) solid #000;
}
.feature-box {
  background: #fff;
  padding: 30px;
  border-right: var(--border-width) solid #000;
}
.feature-box:last-child { border-right: none; }
.feature-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 15px;
  text-decoration: underline;
  text-decoration-thickness: 3px;
}

/* Gallery */
.gallery-section {
  padding: 40px 0;
  background: #000;
  color: #fff;
}
.gallery-title {
  font-family: var(--font-display);
  font-size: 3rem;
  text-align: center;
  margin-bottom: 40px;
  color: #fff;
}
.gallery-scroll {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 0 20px 20px;
  /* Centering */
  margin: 0 auto;
  justify-content: center; /* Center items if they don't overflow */
}
/* Ensure it scrolls on small screens if content overflows */
@media (max-width: 768px) {
  .gallery-scroll {
    justify-content: flex-start;
  }
  .gallery-scroll img {
    height: 300px; /* Reduce height on mobile */
  }
}
.gallery-scroll img {
  border: var(--border-width) solid #fff;
  height: 500px;
  width: auto;
  flex-shrink: 0;
  object-fit: cover;
}

/* Posts */
.posts-section {
  padding: 40px 0;
  background: #fff;
  border-bottom: var(--border-width) solid #000;
}
.post-list {
  max-width: 800px;
  margin: 0 auto;
}
.post-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border: var(--border-width) solid #000;
  margin-bottom: -3px; /* Overlap borders */
  background: #fff;
  transition: 0.2s;
}
.post-row:hover {
  background: var(--secondary-color);
  color: #fff;
  transform: translateX(-10px);
}
.post-title { font-weight: bold; font-size: 1.2rem; text-transform: uppercase; }
.post-date { font-family: var(--font-display); }

/* Friends */
.friends-section {
  padding: 40px 0;
  background: #ffeb3b; /* Yellow */
  border-bottom: var(--border-width) solid #000;
  text-align: center;
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}
.friend-btn {
  background: #fff;
  border: var(--border-width) solid #000;
  padding: 10px 20px;
  font-weight: bold;
  box-shadow: 4px 4px 0 #000;
  display: flex;
  align-items: center;
  gap: 10px;
}
.friend-btn:hover { background: #000; color: #fff; box-shadow: none; transform: translate(4px, 4px); }
.friend-btn img { width: 30px; height: 30px; border: none; }

/* Comments */
.comments-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.comment-block {
  padding: 30px;
  border-right: var(--border-width) solid #000;
  border-bottom: var(--border-width) solid #000;
  background: #fff;
}
.comment-user {
  font-family: var(--font-display);
  font-size: 1.2rem;
  background: #000;
  color: #fff;
  display: inline-block;
  padding: 5px 10px;
  margin-bottom: 15px;
}

/* Footer */
.footer {
  padding: 60px 0;
  background: #000;
  color: #fff;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.5rem; }
  .feature-box { border-right: none; border-bottom: var(--border-width) solid #000; }
  .comment-block { border-right: none; }
}
