/* ReferStash theme: paper ledger, forest ink, orange ticket accents. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/site-assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/site-assets/fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/site-assets/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ui: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --bg: #f4efe3;
  --bg-2: #ece4d2;
  --paper: #0b3d2e;
  --yellow: #d9642c;
  --red: #b6412f;
  --cyan: #2f7d6d;
  --violet: #7c8d82;
  --green: #2f7d6d;
  --surface: #fffdf7;
  --surface-2: #ece4d2;
  --text: #0b3d2e;
  --paper: #0b3d2e;
  --muted: #536b60;
  --muted-2: #7c8d82;
  --line: #d3c8b2;
  --accent: #d9642c;
  --accent-ink: #fff9f0;
  --info: #2f7d6d;
  --success: #2f7d6d;
  --danger: #b6412f;
  --radius: 18px;
  --shadow: 0 10px 28px rgba(11,61,46,.08);
}

body.public.theme-referstash {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(11,61,46,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,61,46,.045) 1px, transparent 1px);
  background-size: 34px 34px;
  color: var(--text);
  font-family: var(--body);
}
body.theme-referstash::before {
  content: "REFERSTASH  ·  REFERRAL CODES FROM PEOPLE WHO USED THEM  ·  STOP LOSING BONUSES  ·  ";
  display: block;
  padding: 8px 16px;
  background: #0b3d2e;
  color: #f4efe3;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theme-referstash ::selection { background: #d9642c; color: #fff9f0; }

.theme-referstash .site-header {
  background: rgba(244,239,227,.94);
  border-bottom: 1px solid rgba(11,61,46,.18);
  backdrop-filter: blur(14px);
}
.theme-referstash .header-inner { padding: 14px 0; }
.theme-referstash .brand { gap: 12px; }
.theme-referstash .brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: #0b3d2e;
  color: #f4efe3;
  border: 0;
  border-radius: 12px 12px 12px 3px;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: .04em;
}
.theme-referstash .brand-name {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  color: #0b3d2e;
}
.theme-referstash .brand-sub {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .16em;
  margin-top: 4px;
}
.theme-referstash .site-nav a {
  color: #0b3d2e;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
}
.theme-referstash .site-nav a:hover { background: #ece4d2; color: #0b3d2e; }
.theme-referstash .site-nav .nav-cta {
  background: var(--accent);
  color: var(--accent-ink) !important;
  border: 1px solid #0b3d2e;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
  box-shadow: 0 2px 0 #0b3d2e;
}

.theme-referstash .hero {
  padding: 56px 0 44px;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 42px;
  align-items: center;
}
.theme-referstash .eyebrow,
.theme-referstash .kicker {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--accent);
}
.theme-referstash .hero h1 {
  font-family: var(--display);
  font-size: clamp(40px, 6.4vw, 76px);
  font-weight: 700;
  line-height: .94;
  letter-spacing: -.045em;
  max-width: 18ch;
  color: #0b3d2e;
}
.theme-referstash .lede {
  color: #3f5a4d;
  font-size: 18px;
  max-width: 60ch;
}
.theme-referstash .hero-card {
  --text: #fff9f0;
  background: #0b3d2e;
  color: #fff9f0;
  border: 0;
  border-radius: 24px;
  box-shadow: 14px 14px 0 rgba(217,100,44,.22);
  transform: rotate(-.6deg);
}
.theme-referstash .hero-card img { height: 230px; filter: saturate(.92); }
.theme-referstash .hero-card-body { padding: 20px; }
.theme-referstash .hero-card-body p { color: #d8e4d9; }
.theme-referstash .hero-card-body .kicker { color: #f4b183; }
.theme-referstash .hero-card-body a { color: #f4b183; }

.theme-referstash .btn {
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 700;
  letter-spacing: .01em;
}
.theme-referstash .btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid #0b3d2e;
  box-shadow: 0 2px 0 #0b3d2e;
}
.theme-referstash .btn-primary:hover { transform: translateY(-1px); }
.theme-referstash .btn-ghost {
  background: transparent;
  color: #0b3d2e;
  border: 1px solid rgba(11,61,46,.35);
}
.theme-referstash .btn-ghost:hover { background: #ece4d2; }

.theme-referstash .section { padding: 42px 0; }
.theme-referstash .section-head h2 {
  font-family: var(--display);
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 700;
  letter-spacing: -.035em;
  color: #0b3d2e;
}
.theme-referstash .section-head p { color: #4d655a; }
.theme-referstash .section-note { color: #6b8176; font-family: var(--mono); font-size: 11px; }

.theme-referstash .card-grid { gap: 18px; }
.theme-referstash .post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.theme-referstash .post-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(11,61,46,.12); }
.theme-referstash .post-media { aspect-ratio: 4 / 3; background: #e7dfce; }
.theme-referstash .post-media-text { color: #7c8d82; font-family: var(--mono); }
.theme-referstash .post-body { padding: 16px; }
.theme-referstash .post-meta {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  color: #7c8d82;
}
.theme-referstash .post-caption { color: #123f31; font-size: 15px; }
.theme-referstash .post-stats { font-family: var(--mono); font-size: 10px; color: #6b8176; }
.theme-referstash .post-card .btn { border-radius: 8px; }

.theme-referstash .topic-grid { gap: 10px; }
.theme-referstash .topic-chip {
  background: var(--surface);
  border: 1px solid rgba(11,61,46,.28);
  border-radius: 8px;
  color: #0b3d2e;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  padding: 10px 14px;
}
.theme-referstash .topic-chip span { color: var(--accent); }
.theme-referstash .topic-chip:hover { background: #0b3d2e; color: #f4efe3; }
.theme-referstash .topic-chip:hover span { color: #f4b183; }

.theme-referstash .prompt-grid { gap: 16px; }
.theme-referstash .prompt-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(11,61,46,.05);
}
.theme-referstash .prompt-card h3 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: #0b3d2e;
}
.theme-referstash .prompt-card p { color: #4d655a; }
.theme-referstash .prompt-card a { color: var(--accent); font-weight: 700; }

.theme-referstash .vault-grid { gap: 18px; }
.theme-referstash .vault-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.theme-referstash .vault-card img { aspect-ratio: 4 / 3; object-fit: cover; }
.theme-referstash .vault-card figcaption { padding: 16px; }
.theme-referstash .vault-card p { color: #3f5a4d; }
.theme-referstash .vault-card small { color: #6b8176; font-family: var(--mono); font-size: 10px; }
.theme-referstash .vault-card small a { color: var(--info); }

.theme-referstash .about-grid article {
  background: rgba(255,253,247,.65);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.theme-referstash .about-grid h3 { font-family: var(--display); font-weight: 700; color: #0b3d2e; }
.theme-referstash .about-grid p { color: #4d655a; }

.theme-referstash .cta-band {
  background: #0b3d2e;
  color: #f4efe3;
  border-radius: 24px;
  padding: 40px;
  border: 0;
  box-shadow: 12px 12px 0 rgba(217,100,44,.22);
}
.theme-referstash .cta-band .kicker { color: #f4b183; }
.theme-referstash .cta-band h2 { color: #fff9f0; font-family: var(--display); letter-spacing: -.03em; }
.theme-referstash .cta-band .btn-primary { background: #f4efe3; color: #0b3d2e; border-color: #f4efe3; box-shadow: none; }

.theme-referstash .site-footer {
  margin-top: 56px;
  background: #0b3d2e;
  color: #d8e4d9;
  border-top: 0;
}
.theme-referstash .site-footer strong { color: #fff9f0; font-family: var(--display); }
.theme-referstash .site-footer a { color: #f4b183; }
.theme-referstash .footer-links a { color: #f4efe3; }
.theme-referstash .footer-inner { padding: 36px 0; }

.theme-referstash .archive-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.theme-referstash .archive-item:hover { border-color: rgba(217,100,44,.55); }
.theme-referstash .archive-item .body { padding: 12px; }
.theme-referstash .post-detail h1 { font-family: var(--display); letter-spacing: -.035em; color: #0b3d2e; }
.theme-referstash .post-detail .caption { color: #2f4a3e; font-size: 17px; }
.theme-referstash .post-detail .meta { font-family: var(--mono); color: #6b8176; font-size: 11px; }
.theme-referstash .empty {
  background: rgba(255,253,247,.7);
  border: 1px dashed rgba(11,61,46,.3);
  border-radius: 12px;
  color: #536b60;
}
.theme-referstash .preview-banner { background: #d9642c; color: #fff9f0; font-family: var(--mono); }

@media (max-width: 860px) {
  .theme-referstash .hero { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 28px; }
  .theme-referstash .hero-card { transform: none; }
  .theme-referstash .card-grid { grid-template-columns: 1fr; }
  .theme-referstash .prompt-grid { grid-template-columns: 1fr; }
  .theme-referstash .site-nav { gap: 2px; }
  .theme-referstash .site-nav a { padding: 6px 8px; font-size: 12px; }
  .theme-referstash .cta-band { padding: 26px; }
}
