/* ==========================================================================
   Extra+Points Journal — base styles
   Brand colors and card/badge treatments matched to yourextrapoints.com's
   dark, red/teal shop theme.
   ========================================================================== */

:root {
  --red: #b03822;
  --red-bright: #e2472e;
  --red-glow: rgba(226, 71, 46, .35);
  --teal: #0a6478;
  --teal-deep: #063f4b;
  --light: #d7dbe0;
  --ink: #0c0c0e;
  --ink-2: #1c1c1f;

  --bg: #0c0c0e;
  --bg-soft: #141416;
  --card: #18181b;
  --card-border: rgba(255, 255, 255, .08);

  --text: #e7e7ea;
  --text-muted: #9b9ba1;

  --font-display: 'Cinzel', serif;
  --font-body: 'Raleway', Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}

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

a {
  color: var(--red-bright);
  text-decoration: none;
}
a:hover { color: #fff; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
  margin: 0 0 .5em;
}

/* ---------- Badges ---------- */

.badge,
.hero__kicker,
.eyebrow {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(226, 71, 46, .12);
  border: 1px solid rgba(226, 71, 46, .35);
  color: #ff8a6b;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero__kicker { margin-bottom: 22px; }

.eyebrow { margin-bottom: 14px; }

/* ---------- Header ---------- */

.site-header {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  border-bottom: 3px solid var(--red);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand__mark { height: 68px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--light);
  font-size: .9rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 2px;
  background: var(--red-bright);
  transition: width .2s ease;
}

.main-nav a:hover,
.main-nav a.is-active { color: #fff; }
.main-nav a:hover::after,
.main-nav a.is-active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: radial-gradient(ellipse at top, #201013 0%, var(--bg) 60%);
  color: var(--light);
  overflow: hidden;
  padding: 100px 0 88px;
  text-align: center;
  border-bottom: 1px solid var(--card-border);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(226, 71, 46, .3), transparent 60%);
  pointer-events: none;
}

.hero__kicker {
  position: relative;
}

.hero h1 {
  position: relative;
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.25;
}

.hero h1 .accent { color: var(--red-bright); }

.hero h1 .title-lead { font-size: calc(1em + 4px); }

.hero p {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  color: var(--light);
  font-size: 1.05rem;
}

.hero__subhead {
  font-style: italic;
  color: var(--text-muted);
}

.hero__list {
  position: relative;
  display: inline-block;
  max-width: 560px;
  margin: 0 auto 1.3em;
  padding-left: 1.2em;
  text-align: left;
  color: var(--light);
  font-size: 1.05rem;
}

.hero__list li { margin-bottom: .5em; }

.hero__rule {
  position: relative;
  width: 70px;
  height: 3px;
  background: var(--red-bright);
  margin: 26px auto;
}

.hero--post {
  padding: 68px 0 58px;
}

.post-meta {
  position: relative;
  color: var(--text-muted);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 0;
}

/* ---------- Author card ---------- */

.author-card {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 680px;
  margin: 0 auto 48px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}

.author-card__photo {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid var(--red-bright);
}

.author-card__info .badge { margin-bottom: 10px; }

.author-card__name {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.author-card__name .accent { color: var(--red-bright); }

.author-card__title {
  color: var(--text-muted);
  font-size: .92rem;
  margin: 0;
}

/* ---------- Pull quote ---------- */

.pull-quote {
  position: relative;
  max-width: 680px;
  margin: 48px auto;
  padding: 36px 44px;
  background: linear-gradient(120deg, var(--teal) 0%, var(--teal-deep) 100%);
  border-radius: var(--radius);
  color: #fff;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.5;
  text-align: center;
  overflow: hidden;
}

.pull-quote::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(226, 71, 46, .25), transparent 55%);
  pointer-events: none;
}

.pull-quote p {
  position: relative;
  margin: 0;
  color: #fff;
}

/* ---------- Article body ---------- */

.article-body {
  max-width: 680px;
  margin: 0 auto;
  color: var(--text);
  font-size: 1.05rem;
}

.article-body h2 {
  font-size: 1.4rem;
  margin-top: 1.8em;
  padding-top: .1em;
  position: relative;
}

.article-body h2::before {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  background: var(--red-bright);
  margin-bottom: 16px;
}

.article-body p { margin: 0 0 1.3em; color: var(--text); }

.article-body strong { color: #fff; }

.article-body ul {
  margin: 0 0 1.5em;
  padding-left: 1.2em;
}

.article-body li { margin-bottom: .6em; }

.article-body blockquote {
  margin: 0 0 1.5em;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--red-bright);
  color: var(--text-muted);
  font-style: italic;
}

.article-body blockquote p:last-child { margin-bottom: 0; }

.article-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--card-border);
}

.back-link {
  color: var(--text-muted);
  font-weight: 600;
  font-size: .9rem;
}
.back-link:hover { color: var(--red-bright); }

/* ---------- Sections ---------- */

.section {
  padding: 80px 0;
}

.section--muted { background: var(--bg-soft); }

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

.section__head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }

.section__head p { color: var(--text-muted); }

/* ---------- Category grid ---------- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.category-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .45), 0 0 0 1px var(--red-bright) inset;
  border-color: var(--red-bright);
}

.category-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(226, 71, 46, .12);
  border: 1px solid rgba(226, 71, 46, .3);
  color: var(--red-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.category-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: #fff; }
.category-card p { color: var(--text-muted); font-size: .92rem; margin: 0; }

/* ---------- Featured / post cards ---------- */

.post-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  align-items: center;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.post-card:not(:last-child) { margin-bottom: 24px; }

.post-card:hover {
  border-color: var(--red-bright);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .45);
}

.post-card__media {
  position: relative;
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 55%, #2a1310 100%);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  align-self: stretch;
}

.post-card__media::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 30% 100%, rgba(226, 71, 46, .35), transparent 55%),
    linear-gradient(135deg, transparent 40%, rgba(226, 71, 46, .18) 50%, transparent 60%);
  pointer-events: none;
}

.post-card__media img {
  position: relative;
  height: 64px;
  width: auto;
  opacity: .92;
}

.post-card__body { padding: 32px 36px; }

.post-card .badge { margin-bottom: 14px; }

.post-card h3 { font-size: 1.5rem; }

.post-card p { color: var(--text-muted); }

.post-card__meta {
  font-size: .8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .03em;
  border: 2px solid var(--red-bright);
}

.btn--primary {
  background: var(--red-bright);
  color: #fff;
  box-shadow: 0 8px 20px rgba(226, 71, 46, .25);
}
.btn--primary:hover { background: var(--red); color: #fff; border-color: var(--red); }

.btn--ghost {
  background: transparent;
  color: var(--light);
  border-color: rgba(216, 223, 225, .4);
}
.btn--ghost:hover { color: #fff; border-color: #fff; }

/* ---------- Newsletter / CTA band ---------- */

.cta-band {
  position: relative;
  background: linear-gradient(120deg, var(--teal) 0%, var(--teal-deep) 60%, var(--ink) 130%);
  color: #fff;
  text-align: center;
  padding: 64px 0;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(226, 71, 46, .22), transparent 55%);
  pointer-events: none;
}

.cta-band h2 { position: relative; color: #fff; }
.cta-band p { position: relative; color: var(--light); max-width: 520px; margin: 0 auto 24px; }
.cta-band .btn { position: relative; }

/* ---------- Footer ---------- */

.site-footer {
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
  color: var(--light);
  margin-top: 40px;
  border-top: 3px solid var(--red);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  padding: 56px 24px 40px;
}

.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 18px;
}

.footer__social,
.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__social li,
.footer__links li { margin-bottom: 10px; }

.footer__social a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--light);
}
.footer__social a:hover { color: var(--red-bright); }

.footer__links a { color: var(--light); }
.footer__links a:hover { color: var(--red-bright); }

.footer__contact a { color: var(--light); font-weight: 600; }
.footer__contact a:hover { color: var(--red-bright); }

.footer__address {
  color: rgba(216, 223, 225, .6);
  font-size: .9rem;
  margin-top: 14px;
}

.footer__bottom {
  border-top: 1px solid rgba(216, 223, 225, .12);
  padding: 26px 0;
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  font-size: .82rem;
  color: rgba(216, 223, 225, .6);
}

.footer__mark { height: 32px; width: auto; opacity: .85; margin-bottom: 4px; }

.footer__legal a { color: rgba(216, 223, 225, .6); }
.footer__legal a:hover { color: #fff; }

/* ---------- Responsive ---------- */

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

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--ink);
    border-bottom: 3px solid var(--red);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }

  .main-nav.is-open { max-height: 300px; }

  .main-nav a { width: 100%; padding: 14px 24px; }
  .main-nav a::after { display: none; }

  .site-header { position: relative; }

  .post-card { grid-template-columns: 1fr; }
  .post-card__media { min-height: 160px; }
  .post-card__body { padding: 24px; }
}
