/* ============================================================
   RICO RAMOS — styles
   ------------------------------------------------------------
   VIBE CONTROL: every color, font, and corner radius flows from
   the variables below. Restyle the whole site in two minutes by
   editing only this block.
   ============================================================ */
:root {
  --bg:        #ffffff;   /* page background            */
  --surface:   #f7f5f1;   /* cards / panels             */
  --text:      #1d1a16;   /* main text                  */
  --muted:     #8a8178;   /* dates, secondary text      */
  --accent:    #c9602f;   /* tags, buttons, highlights  */
  --accent-ink:#ffffff;   /* text on accent color       */
  --line:      #e9e2d8;   /* borders                    */
  --radius:    18px;      /* corner roundness           */
  --font-body: "Helvetica Neue", Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;
  --max-width: 1140px;    /* content column width       */
}

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

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

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; }

/* small uppercase label used on cards + hero */
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

/* ---------- header : nav | brand | nav ---------- */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.site-header nav a {
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0.9rem;
}
.site-header nav a:hover { color: var(--accent); }
.nav-right { text-align: right; }

.brand {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  text-indent: 0.28em; /* optically centers letterspaced text */
}

/* ---------- hero : full-bleed featured post ---------- */
.hero {
  position: relative;
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding: 0 1.5rem;
}
.hero-photo {
  width: 100%;
  height: clamp(320px, 55vw, 560px);
  object-fit: cover;
  border-radius: var(--radius);
}
.hero-overlay {
  position: absolute;
  inset: auto 1.5rem 1.5rem 1.5rem;
  padding: 2.5rem 2rem 1.75rem;
  border-radius: 0 0 var(--radius) var(--radius);
  background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0));
  color: #fff;
}
.hero-overlay h1 { font-size: clamp(1.7rem, 4vw, 2.9rem); margin-bottom: 0.4rem; }
.hero-overlay p  { opacity: 0.9; margin-bottom: 0.5rem; }
.hero-overlay time {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.75;
}

/* ---------- category pills ---------- */
.categories {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.75rem 1.5rem 0.5rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}
.pill {
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill.active { background: var(--text); border-color: var(--text); color: #fff; }

/* ---------- post grid ---------- */
.post-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
}

.card-media { position: relative; }
.card-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* date badge, top-left over the photo */
.date-badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 10px;
  padding: 0.35rem 0.6rem;
  text-align: center;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  line-height: 1.2;
}
.date-badge b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--text);
}

.card-body { padding: 1.25rem 1.25rem 1.5rem; }
.card-body h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.card-body p  { color: var(--muted); font-size: 0.95rem; }
.card-body time {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

/* text-only cards get a little extra presence */
.card-text { justify-content: center; }
.card-text .card-body h3 { font-size: 1.5rem; }

/* ---------- about ---------- */
.about {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: center;
}
.about-photo {
  width: 100%;
  aspect-ratio: 3 / 3.5;
  object-fit: cover;
  border-radius: var(--radius);
}
.about-body h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.about-body p { font-size: 1.1rem; max-width: 55ch; }

/* ---------- footer ---------- */
.site-footer {
  text-align: center;
  padding: 2.5rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-brand {
  font-family: var(--font-head);
  font-size: 1.4rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.copyright { margin-top: 1rem; font-size: 0.85rem; }

/* contact email line */
.contact-line { margin-top: 0.75rem; }
.contact-line a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.contact-line a:hover { text-decoration: underline; }

/* ============================================================
   CAROUSEL (photo slideshow) — styles ready for the day you
   uncomment the gallery HTML in index.html. Nothing to change.
   ============================================================ */
.carousel-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
}
.carousel-section h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.carousel { position: relative; overflow: hidden; border-radius: var(--radius); }
.carousel-track { display: flex; transition: transform 0.45s ease; }
.carousel-track img { min-width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 2;
}
.carousel-btn:hover { background: var(--accent); }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-dots { text-align: center; margin-top: 0.75rem; }
.carousel-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--line);
  margin: 0 4px;
  cursor: pointer;
}
.carousel-dots button.active { background: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; }
}

@media (max-width: 600px) {
  .site-header { grid-template-columns: 1fr; text-align: center; gap: 0.5rem; }
  .nav-right { text-align: center; }
  .post-grid { grid-template-columns: 1fr; }
  .hero-overlay { padding: 1.75rem 1.25rem 1.25rem; }
}
