/* ============================================================
   BRENDANBOSTOCK.COM — Global Stylesheet
   Theme: Minimalist black & white
   Font: Space Grotesk (Google Fonts)
   Primary text: #292929 | Background: #ffffff
   ============================================================ */

/* --- Reset & Base ------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: #292929;
  background-color: #ffffff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, iframe, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* --- Typography -------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

p { max-width: 68ch; }

.inline-link {
  border-bottom: 1px solid #292929;
  transition: opacity 0.2s ease;
}
.inline-link:hover { opacity: 0.5; }

/* --- Layout Utilities -------------------------------------- */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.section-title {
  margin-bottom: 0.5rem;
}

.section-sub {
  color: #666;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* --- Animations -------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: #292929;
  color: #ffffff;
  border-color: #292929;
}
.btn--primary:hover {
  background: #111;
  border-color: #111;
  box-shadow: 0 4px 16px rgba(41,41,41,0.18);
}

.btn--outline {
  background: transparent;
  color: #292929;
  border-color: #292929;
}
.btn--outline:hover {
  background: #292929;
  color: #ffffff;
}

.btn--large {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

.btn--full { width: 100%; }

/* --- Navigation -------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(41,41,41,0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  height: 64px;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.6; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.2s ease;
}
.nav-link:hover { opacity: 0.5; }

.nav-link--cta {
  padding: 0.45rem 1.1rem;
  border: 2px solid #292929;
  border-radius: 4px;
}
.nav-link--cta:hover {
  background: #292929;
  color: #fff;
  opacity: 1;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #292929;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid rgba(41,41,41,0.1);
    padding: 1rem 0;
  }
  .nav-links.is-open { display: flex; }

  .nav-links li { width: 100%; text-align: center; }
  .nav-link { display: block; padding: 0.75rem 2rem; font-size: 1rem; }
  .nav-link--cta { margin: 0.5rem 2rem; display: block; border: 2px solid #292929; }
}

/* --- Main Content ------------------------------------------ */
.main-content {
  min-height: calc(100vh - 64px - 100px);
}

/* --- Home / Masonry Feed ----------------------------------- */
.feed-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 5rem) clamp(1.25rem, 4vw, 3rem) 2rem;
}

.feed-header__title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
}

.feed-header__sub {
  color: #666;
  font-size: 1.05rem;
}

.masonry {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem clamp(1.25rem, 4vw, 3rem) 5rem;
  columns: 3;
  column-gap: 1.25rem;
}

@media (max-width: 1024px) { .masonry { columns: 2; } }
@media (max-width: 600px)  { .masonry { columns: 1; } }

.card {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(41,41,41,0.1);
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
  box-shadow: 0 8px 32px rgba(41,41,41,0.12);
  transform: translateY(-3px);
}

.card__link { display: block; }

.card__media--image img {
  width: 100%;
  height: auto;
  display: block;
}

.card__media--video iframe {
  width: 100%;
  aspect-ratio: 16/9;
}

.card__body {
  padding: 1.25rem;
}

.card__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card__blurb {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.card__date {
  font-size: 0.8rem;
  color: #999;
  font-weight: 500;
}

.empty-feed {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem clamp(1.25rem, 4vw, 3rem);
  color: #999;
}

/* --- Bio --------------------------------------------------- */
.bio {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 6rem) clamp(1.25rem, 4vw, 3rem);
}

.bio__intro {
  margin-bottom: 3rem;
}

.bio__name {
  margin-bottom: 0.35rem;
}

.bio__tagline {
  font-size: 1.15rem;
  color: #666;
  font-weight: 400;
}

.bio__layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .bio__layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .bio__photos { display: flex; gap: 1rem; }
  .bio__photo--secondary { flex: 1; }
}

.bio__text p {
  margin-bottom: 1.4rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

.bio__cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.bio__photo {
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.bio__photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.bio__photo:hover img { transform: scale(1.02); }

/* --- Hero -------------------------------------------------- */
.hero {
  padding: clamp(5rem, 10vw, 10rem) clamp(1.25rem, 4vw, 3rem);
  text-align: center;
  background: #fff;
}

.hero__inner {
  max-width: 760px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid #292929;
  border-radius: 100px;
  margin-bottom: 2rem;
}

.hero__headline {
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #555;
  line-height: 1.7;
  margin: 0 auto 2.5rem;
}

.hero__cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero__platforms {
  font-size: 0.875rem;
  color: #999;
}

/* --- Features ---------------------------------------------- */
.features {
  padding: clamp(4rem, 8vw, 8rem) 0;
  background: #f9f9f9;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (max-width: 900px) { .features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features__grid { grid-template-columns: 1fr; } }

.feature-card {
  padding: 2rem;
  background: #fff;
  border: 1px solid rgba(41,41,41,0.08);
  border-radius: 6px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.feature-card:hover {
  box-shadow: 0 6px 24px rgba(41,41,41,0.1);
  transform: translateY(-4px);
}

.feature-card__icon {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #292929;
}

.feature-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
}

.screenshots {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.screenshot {
  border-radius: 6px;
  border: 1px solid rgba(41,41,41,0.1);
  max-width: 560px;
  flex-shrink: 0;
}

/* --- Pricing ----------------------------------------------- */
.pricing {
  padding: clamp(4rem, 8vw, 8rem) 0;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 900px) { .pricing__grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }

.pricing-card {
  position: relative;
  padding: 2.25rem;
  border: 1px solid rgba(41,41,41,0.12);
  border-radius: 8px;
  transition: box-shadow 0.25s ease;
}
.pricing-card:hover { box-shadow: 0 8px 32px rgba(41,41,41,0.1); }

.pricing-card--featured {
  border-color: #292929;
  border-width: 2px;
}

.pricing-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: #292929;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.85rem;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-card__header {
  margin-bottom: 1.75rem;
}

.pricing-card__tier {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.pricing-card__price {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0.5rem 0 0.25rem;
  color: #292929;
}
.pricing-card__price span {
  font-size: 0.95rem;
  font-weight: 400;
  color: #999;
  letter-spacing: 0;
}

.pricing-card__desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.55;
}

.pricing-card__features {
  margin-bottom: 2rem;
}

.pricing-card__features li {
  font-size: 0.9rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(41,41,41,0.06);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #333;
}
.pricing-card__features li::before {
  content: "✓";
  font-weight: 700;
  font-size: 0.85rem;
  color: #292929;
  flex-shrink: 0;
}

/* --- Contact ----------------------------------------------- */
.contact {
  padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 4vw, 3rem);
}

.contact__inner {
  max-width: 580px;
  margin: 0 auto;
}

.contact__title {
  margin-bottom: 0.75rem;
}

.contact__sub {
  color: #666;
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.45rem; }

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #292929;
}

.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: #292929;
  background: #fff;
  border: 1.5px solid rgba(41,41,41,0.25);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  border-color: #292929;
  box-shadow: 0 0 0 3px rgba(41,41,41,0.08);
}

.form-textarea { resize: vertical; min-height: 140px; }

/* --- Legal Pages ------------------------------------------- */
.legal {
  padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 4vw, 3rem);
}

.legal__inner {
  max-width: 720px;
  margin: 0 auto;
}

.legal__inner h1 { margin-bottom: 0.35rem; }
.legal__meta { color: #999; font-size: 0.875rem; margin-bottom: 3rem; }
.legal__inner h2 { font-size: 1.25rem; margin-top: 2.5rem; margin-bottom: 0.75rem; }
.legal__inner p { margin-bottom: 1rem; color: #444; font-size: 0.975rem; }
.legal__inner ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.legal__inner ul li { list-style: disc; font-size: 0.975rem; color: #444; margin-bottom: 0.4rem; }

/* --- Latest Posts (bottom of single post) ------------------ */
.latest-posts {
  border-top: 1px solid rgba(41,41,41,0.1);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  background: #f9f9f9;
}

.latest-posts__inner {
  max-width: 760px;
  margin: 0 auto;
}

.latest-posts__heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 1.5rem;
}

.latest-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 600px) {
  .latest-posts__grid { grid-template-columns: 1fr; gap: 0.75rem; }
}

.latest-card {
  display: flex;
  flex-direction: row;
  gap: 0;
  border: 1px solid rgba(41,41,41,0.1);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.latest-card:hover {
  box-shadow: 0 4px 16px rgba(41,41,41,0.1);
  transform: translateY(-2px);
}

/* Fixed-ratio image box — always 4:3, clips any size image cleanly */
.latest-card__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f0f0f0;
  flex-shrink: 0;
}

.latest-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.latest-card:hover .latest-card__media img { transform: scale(1.04); }

.latest-card__media--video iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

.latest-card__body {
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.latest-card__title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  color: #292929;
}

.latest-card__blurb {
  font-size: 0.78rem;
  color: #777;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-card__date {
  font-size: 0.72rem;
  color: #bbb;
  font-weight: 500;
  margin-top: auto;
  padding-top: 0.25rem;
}

/* --- Single Post ------------------------------------------- */
.post-single {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 6rem) clamp(1.25rem, 4vw, 3rem);
}

.post-single__image {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 2.5rem;
}

.post-single__video {
  aspect-ratio: 16/9;
  margin-bottom: 2.5rem;
}

.post-single__video iframe {
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

.post-single__title { margin-bottom: 0.5rem; }

.post-single__date {
  font-size: 0.85rem;
  color: #999;
  display: block;
  margin-bottom: 2.5rem;
}

.post-single__content p { margin-bottom: 1.4rem; font-size: 1.05rem; line-height: 1.75; }

/* --- Footer ------------------------------------------------ */
.site-footer {
  border-top: 1px solid rgba(41,41,41,0.1);
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: #999;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.85rem;
  color: #666;
  transition: color 0.2s ease;
}

.footer-nav a:hover { color: #292929; }

@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
