/* ============================================================
   GRAMPA.COM — Global Stylesheet v2
   Mobile-first · Production-ready · Bold not bloggy
   ============================================================ */

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

:root {
  --black:     #0d0d0d;
  --off-white: #f5f0e8;
  --cream:     #fdf8f0;
  --warm-mid:  #e8dfc8;
  --muted:     #7a6a5a;
  --rust:      #c04a18;
  --rust-h:    #a03a10;
  --gold:      #c09030;
  --rule:      #d4c0a0;
  --ff-display:'Bebas Neue', Impact, sans-serif;
  --ff-body:   'Lora', Georgia, serif;
  --ff-ui:     'Inter', system-ui, sans-serif;
  --max:       1120px;
  --ease:      0.18s ease;
}

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

body {
  background: var(--cream);
  color: var(--black);
  font-family: var(--ff-body);
  font-size: 1.05rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--rust); text-decoration: none; }
a:hover { color: var(--black); }
img { max-width: 100%; height: auto; display: block; }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--black);
  color: #fff;
  padding: .65rem 1.4rem;
  font-family: var(--ff-ui);
  font-size: .85rem;
  border-left: 3px solid var(--rust);
  z-index: 1000;
  transition: transform .3s ease;
  white-space: nowrap;
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── HERO ── */
.hero {
  background: var(--black);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding-bottom: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: clamp(6rem, 22vw, 18rem);
  color: rgba(255,255,255,.03);
  letter-spacing: -4px;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* TOP NAV */
.top-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
  gap: .75rem;
}

.nav-logo {
  font-family: var(--ff-display);
  font-size: 1.8rem;
  color: #fff;
  letter-spacing: 1px;
  text-decoration: none;
  line-height: 1;
}
.nav-logo span { color: var(--rust); }

.nav-links {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.nav-links a {
  color: rgba(255,255,255,.55);
  font-family: var(--ff-ui);
  font-size: .7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: .5rem .9rem;
  text-decoration: none;
  transition: color var(--ease);
}
.nav-links a:hover { color: #fff; }

.nav-cta {
  background: var(--rust);
  color: #fff;
  border: none;
  padding: .5rem 1.1rem;
  font-family: var(--ff-ui);
  font-size: .7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: background var(--ease);
}
.nav-cta:hover { background: var(--rust-h); }

/* HERO BODY */
.hero-body {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 2rem 3.5rem;
}

.hero-eyebrow {
  font-family: var(--ff-ui);
  font-size: .65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(5rem, 16vw, 13rem);
  line-height: .9;
  letter-spacing: -2px;
  color: #fff;
  margin-bottom: 1.25rem;
}
.hero-title span { color: var(--rust); }

.hero-sub {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: rgba(255,255,255,.55);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--rust);
  color: #fff;
  border: none;
  padding: .85rem 2rem;
  font-family: var(--ff-ui);
  font-size: .8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: background var(--ease), transform var(--ease);
}
.btn-primary:hover { background: var(--rust-h); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.2);
  padding: .85rem 2rem;
  font-family: var(--ff-ui);
  font-size: .8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: all var(--ease);
}
.btn-ghost:hover { border-color: rgba(255,255,255,.5); color: #fff; }

/* TICKER */
.ticker-wrap {
  background: var(--rust);
  overflow: hidden;
  padding: .6rem 0;
  position: relative;
  z-index: 2;
}

.ticker {
  display: inline-flex;
  gap: 2rem;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
  font-family: var(--ff-body);
  font-style: italic;
  font-size: .85rem;
  color: rgba(255,255,255,.9);
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.tdot { color: rgba(255,255,255,.4); }

/* ── TIP STRIP ── */
.tip-strip {
  background: var(--black);
  padding: 3rem 2rem;
  border-bottom: 3px solid var(--rust);
}

.tip-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.tip-badge {
  display: inline-block;
  background: var(--rust);
  color: #fff;
  font-family: var(--ff-ui);
  font-size: .6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.tip-quote {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: .5px;
}

.tip-btns {
  display: flex;
  gap: .5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── SHARE PILLS ── */
.share-pill {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.12);
  padding: .45rem 1rem;
  font-family: var(--ff-ui);
  font-size: .7rem;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 2px;
  transition: all var(--ease);
}
.share-pill:hover { background: var(--rust); border-color: var(--rust); color: #fff; }

/* light share pill variant */
.share-pill.light {
  background: var(--warm-mid);
  color: var(--black);
  border-color: var(--rule);
}
.share-pill.light:hover { background: var(--rust); border-color: var(--rust); color: #fff; }

/* ── SITE LAYOUT ── */
.site-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 900px) {
  .site-layout { grid-template-columns: 1fr 300px; gap: 4rem; }
}

/* ── PILL NAV ── */
.pill-nav {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.topic-pill {
  background: var(--off-white);
  color: var(--black);
  border: 1px solid var(--rule);
  padding: .35rem .9rem;
  font-family: var(--ff-ui);
  font-size: .7rem;
  letter-spacing: .5px;
  border-radius: 2px;
  text-decoration: none;
  transition: all var(--ease);
}
.topic-pill:hover { background: var(--black); color: #fff; border-color: var(--black); }

/* ── SECTION HED ── */
.section-hed {
  font-family: var(--ff-display);
  font-size: 1.8rem;
  letter-spacing: 1px;
  color: var(--black);
  margin: 2.5rem 0 1.25rem;
  border-bottom: 2px solid var(--black);
  padding-bottom: .5rem;
}

/* ── FEATURED ── */
.featured {
  background: var(--off-white);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--rust);
  padding: 2rem;
  margin-bottom: .5rem;
}

.featured-tag {
  display: inline-block;
  background: var(--rust);
  color: #fff;
  font-family: var(--ff-ui);
  font-size: .6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: .25rem .75rem;
  margin-bottom: 1rem;
  border-radius: 2px;
}

.f-title {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.05;
  color: var(--black);
  margin-bottom: 1rem;
  letter-spacing: .5px;
}

.f-quote {
  border-left: 3px solid var(--rust);
  padding: .5rem 0 .5rem 1rem;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.f-body {
  color: #3a2e24;
  font-size: .95rem;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}
.f-body p { margin-bottom: .75rem; }

.f-share {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

/* ── CARD GRID ── */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

@media (min-width: 560px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}

.post-card {
  background: var(--cream);
  padding: 1.5rem;
  transition: background var(--ease);
}
.post-card:hover { background: var(--off-white); }

.pc-kicker {
  font-family: var(--ff-ui);
  font-size: .6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: .4rem;
  display: block;
}

.pc-title {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--black);
  margin-bottom: .5rem;
  letter-spacing: .3px;
  cursor: pointer;
  transition: color var(--ease);
}
.pc-title:hover { color: var(--rust); }

.pc-excerpt {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: .75rem;
}

.pc-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.pc-read {
  font-family: var(--ff-ui);
  font-size: .7rem;
  color: var(--rust);
  text-decoration: none;
  letter-spacing: 1px;
}

.pc-share {
  background: none;
  border: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--ff-ui);
  font-size: .65rem;
  padding: .25rem .6rem;
  cursor: pointer;
  border-radius: 2px;
  transition: all var(--ease);
}
.pc-share:hover { background: var(--black); color: #fff; border-color: var(--black); }

/* ── SIDEBAR ── */

/* STREAK */
.streak-box {
  background: var(--black);
  color: #fff;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.streak-fire { font-size: 2rem; margin-bottom: .25rem; }

.streak-num {
  font-family: var(--ff-display);
  font-size: 3.5rem;
  color: var(--rust);
  line-height: 1;
}

.streak-txt {
  font-family: var(--ff-ui);
  font-size: .65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: .75rem;
}

.streak-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: .75rem;
}

.sdot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  transition: background var(--ease);
}
.sdot.active { background: var(--rust); }

.streak-note {
  font-family: var(--ff-ui);
  font-size: .7rem;
  color: rgba(255,255,255,.3);
  line-height: 1.4;
}

/* NEWSLETTER */
.nl-box {
  background: var(--off-white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--rust);
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.5rem;
}

.nl-icon { font-size: 1.75rem; margin-bottom: .75rem; }

.nl-title {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  color: var(--black);
  margin-bottom: .4rem;
  letter-spacing: .5px;
}

.nl-desc {
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.nl-form {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.nl-form input[type="email"] {
  width: 100%;
  padding: .65rem .85rem;
  border: 1px solid var(--rule);
  background: #fff;
  font-family: var(--ff-body);
  font-size: .9rem;
  color: var(--black);
  outline: none;
  transition: border-color var(--ease);
  border-radius: 2px;
}
.nl-form input[type="email"]:focus { border-color: var(--black); }

.nl-btn {
  width: 100%;
  background: var(--black);
  color: #fff;
  border: none;
  padding: .7rem;
  font-family: var(--ff-ui);
  font-size: .7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: background var(--ease);
}
.nl-btn:hover { background: var(--rust); }

.nl-fine {
  font-family: var(--ff-ui);
  font-size: .65rem;
  color: var(--muted);
  margin-top: .5rem;
}

.fs-ok {
  display: none;
  background: #d4edda;
  color: #155724;
  padding: .65rem .85rem;
  font-size: .85rem;
  border-radius: 2px;
  margin-bottom: .75rem;
}
.fs-err {
  display: none;
  background: #f8d7da;
  color: #721c24;
  padding: .65rem .85rem;
  font-size: .85rem;
  border-radius: 2px;
  margin-bottom: .75rem;
}
.fs-field-err {
  font-size: .75rem;
  color: var(--rust);
}

/* SIDEBAR QUOTE */
.sq-box {
  background: var(--black);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sq-label {
  font-family: var(--ff-ui);
  font-size: .6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}

.sq-quote {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,.85);
  line-height: 1.6;
  margin-bottom: .5rem;
}

.sq-by {
  font-family: var(--ff-ui);
  font-size: .65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1rem;
}

.sq-btn {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.5);
  padding: .5rem;
  font-family: var(--ff-ui);
  font-size: .65rem;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 2px;
  transition: all var(--ease);
}
.sq-btn:hover { background: var(--rust); border-color: var(--rust); color: #fff; }

/* TOPIC LINKS */
.topic-links { margin-bottom: 1.5rem; }

.tl-label {
  font-family: var(--ff-ui);
  font-size: .6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--black);
  display: block;
  margin-bottom: .25rem;
}

.tl-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .6rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: .9rem;
  color: var(--black);
  text-decoration: none;
  transition: color var(--ease), padding-left var(--ease);
}
.tl-item:last-child { border-bottom: none; }
.tl-item:hover { color: var(--rust); padding-left: 4px; }

/* ── QUOTE WALL ── */
.quote-wall {
  background: var(--black);
  padding: 4rem 2rem;
}

.qw-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.qw-head h2 {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: .5rem;
}

.qw-head p {
  font-family: var(--ff-ui);
  font-size: .75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}

.qw-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.06);
}

.qw-card {
  background: var(--black);
  padding: 1.75rem;
  cursor: pointer;
  transition: background var(--ease);
  border: 1px solid rgba(255,255,255,.04);
}
.qw-card:hover { background: #1a1208; }

.qw-quote {
  font-family: var(--ff-body);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,.85);
  line-height: 1.65;
  margin-bottom: .75rem;
}

.qw-action {
  font-family: var(--ff-ui);
  font-size: .6rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.2);
  transition: color var(--ease);
}
.qw-card:hover .qw-action { color: var(--rust); }

/* ── FOOTER ── */
.footer {
  background: #080808;
  color: rgba(255,255,255,.35);
  padding: 3rem 1.5rem;
}

.footer-in { max-width: var(--max); margin: 0 auto; text-align: center; }

.footer-logo {
  font-family: var(--ff-display);
  font-size: 2.5rem;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: .25rem;
}
.footer-logo span { color: var(--rust); }

.footer-tag {
  font-style: italic;
  font-size: .875rem;
  color: rgba(255,255,255,.3);
  margin-bottom: 1.5rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: .25rem 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-nav a {
  font-family: var(--ff-ui);
  font-size: .65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  text-decoration: none;
  transition: color var(--ease);
}
.footer-nav a:hover { color: #fff; }

.footer-copy { font-family: var(--ff-ui); font-size: .7rem; }

/* ── SKELETON ── */
.skel {
  background: linear-gradient(90deg, #e8e0d0 25%, #d4c8b4 50%, #e8e0d0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 2px;
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.post-card { animation: fadeUp .4s ease both; }
.post-card:nth-child(1) { animation-delay: .05s; }
.post-card:nth-child(2) { animation-delay: .10s; }
.post-card:nth-child(3) { animation-delay: .15s; }
.post-card:nth-child(4) { animation-delay: .20s; }
.post-card:nth-child(5) { animation-delay: .25s; }
.post-card:nth-child(6) { animation-delay: .30s; }

/* ── RESPONSIVE TWEAKS ── */
@media (max-width: 640px) {
  .top-nav { padding: 1rem; }
  .nav-links { display: none; }
  .hero-body { padding: 2.5rem 1rem 2.5rem; }
  .tip-strip { padding: 2rem 1rem; }
  .site-layout { padding: 2rem 1rem; }
}
