/* ============================================
   iamscrolling.com — Homepage
   Design: Based on Google Stitch output
   Fonts: Literata (headlines) + Be Vietnam Pro (body)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Literata:ital,wght@0,400;0,600;0,700;0,800;1,400;1,700&family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

/* ── Reset ── */

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

/* ── Tokens ── */

:root {
  --bg: #fbf9f5;
  --surface: #f5f3ef;
  --surface-high: #eae8e4;
  --text: #1b1c1a;
  --text-soft: #5a413a;
  --text-muted: #8f7068;
  --border: #e4e2de;
  --logo-color: #b22c00;
  --accent: #b22c00;
  --accent-soft: #ff5f33;

  --font-display: 'Literata', Georgia, serif;
  --font-body: 'Be Vietnam Pro', -apple-system, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --max: 1200px;
}

/* ── Base ── */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

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

/* ============================================
   HEADER
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 245, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--logo-color);
  letter-spacing: -0.5px;
  flex-shrink: 0;
  font-style: italic;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  justify-content: center;
}

.header-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
  transition: color 0.18s, background 0.18s;
  letter-spacing: 0.01em;
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-link.active {
  color: var(--accent);
  background: #ffdbd1;
  font-weight: 700;
}

/* ============================================
   PAGE INTRO — thin strip
   ============================================ */

.page-intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.page-intro-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.page-intro-title em {
  color: var(--accent);
  font-style: italic;
}

.page-intro-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ============================================
   SECTION LABEL
   ============================================ */

.section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ============================================
   MASONRY GRID
   ============================================ */

.grid-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 24px 0;
}

.masonry {
  margin-top: 20px;
  columns: 1;
  column-gap: 20px;
}

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

@media (min-width: 900px) {
  .masonry {
    columns: 3;
  }
}

/* ============================================
   CARD
   ============================================ */

.card {
  break-inside: avoid;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  transition: transform 0.22s cubic-bezier(.34, 1.56, .64, 1),
    box-shadow 0.22s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.10);
}

.card:hover .card-img img {
  transform: scale(1.05);
}

/* Image area */
.card-img {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.card-img img.loaded {
  opacity: 1;
}

/* Category pill on image */
.card-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 20px;
  color: #fff;
  z-index: 2;
}

/* Card body */
.card-body {
  padding: 16px 18px 20px;
}

.card-headline {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.1px;
}

.card-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Category colour themes ── */

/* yolo */
.cat-yolo {
  background: #fff7ed;
}

.cat-yolo .card-img {
  background: linear-gradient(135deg, #ffe8c0 0%, #ffd080 100%);
}

.cat-yolo .card-pill {
  background: #d97706;
}

/* relationships */
.cat-relationships {
  background: #fff5f7;
}

.cat-relationships .card-img {
  background: linear-gradient(135deg, #ffd6e0 0%, #ffb3c6 100%);
}

.cat-relationships .card-pill {
  background: #e8445a;
}

/* life */
.cat-life {
  background: #f2f7f2;
}

.cat-life .card-img {
  background: linear-gradient(135deg, #d4edd4 0%, #b8ddb8 100%);
}

.cat-life .card-pill {
  background: #2d6a4f;
}

/* wow */
.cat-wow {
  background: #f2f2fb;
}

.cat-wow .card-img {
  background: linear-gradient(135deg, #d8d8f8 0%, #c0c0f0 100%);
}

.cat-wow .card-pill {
  background: #4338ca;
}

/* lit */
.cat-lit {
  background: #fff0f8;
}

.cat-lit .card-img {
  background: linear-gradient(135deg, #ffd4ec 0%, #ffb0d8 100%);
}

.cat-lit .card-pill {
  background: #be185d;
}


/* ============================================================
   ADD THIS TO YOUR HOMEPAGE index.css (after .cat-lit block)
   ============================================================ */

/* fitness */
.cat-fitness {
  background: #f2f7f4;
}

.cat-fitness .card-img {
  background: linear-gradient(135deg, #d4edd4 0%, #a8d5b8 100%);
}

.cat-fitness .card-pill {
  background: #2d6a4f;
}


/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  max-width: var(--max);
  margin: 64px auto 0;
  padding: 36px 24px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--logo-color);
  font-style: italic;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.18s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  width: 100%;
}