@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Fraunces:ital,opsz,wght@0,9..144,400..700;1,9..144,400..600&display=swap");

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

:root {
  --coral: #E05C3E;
  --amber: #F0A33C;
  --teal: #3FB0A6;
}

html {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  scroll-behavior: smooth;
}
body { background: #0a0a0a; color: #e5e5e5; overflow-x: hidden; }

.serif { font-family: "Fraunces", Georgia, "Times New Roman", serif; font-optical-sizing: auto; }

.hero-bg {
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(224, 92, 62, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 10%, rgba(63, 176, 166, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 70%, rgba(240, 163, 60, 0.08) 0%, transparent 50%);
  z-index: 0; animation: bgShift 12s ease-in-out infinite alternate;
}
@keyframes bgShift { 0% { opacity: 0.7; } 100% { opacity: 1; } }

.container { width: 100%; max-width: none; margin: 0 auto; padding: 0 clamp(24px, 5vw, 80px); position: relative; z-index: 1; }

/* Nav */
nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { height: 38px; width: auto; display: block; }
.brand-name { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: #a3a3a3; text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: #fff; }

/* Hero */
.hero { padding: 54px 0 40px; max-width: 760px; }
.hero .eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--amber); margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(38px, 5.5vw, 62px); font-weight: 600; line-height: 1.05;
  letter-spacing: -1.5px; color: #fff; margin-bottom: 18px;
}
.hero p { font-size: 18px; color: #a3a3a3; line-height: 1.7; max-width: 580px; }
.hero .accent { font-style: italic; color: var(--coral); }

/* States */
.state { padding: 80px 0; text-align: center; color: #737373; font-size: 16px; }
.spinner {
  width: 34px; height: 34px; margin: 0 auto 18px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.1); border-top-color: var(--coral);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Section label */
.section-label {
  font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: #737373; margin: 40px 0 22px; display: flex; align-items: center; gap: 14px;
}
.section-label::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,0.08); }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; padding-bottom: 40px; }
.card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px; overflow: hidden; display: flex; flex-direction: column;
  transition: border-color 0.3s, transform 0.3s; position: relative;
}
.card:hover { border-color: rgba(224,92,62,0.35); transform: translateY(-4px); }
.card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; flex: 1; cursor: pointer; }
.card-img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; display: block; background-color: #161616; }

/* Skeleton / lazy-load placeholders */
.skel { background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.09) 37%, rgba(255,255,255,0.04) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.skel-img { aspect-ratio: 1 / 1; width: 100%; display: block; }
.skel-line { height: 13px; border-radius: 7px; margin: 10px 0; }
.card-img.lazy { opacity: 0; transition: opacity 0.4s ease; }
.card-img.loaded { opacity: 1; }
.latest-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: linear-gradient(135deg, var(--coral), var(--amber)); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 30px;
}
.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card-body .meta { font-size: 12px; color: var(--amber); font-weight: 600; letter-spacing: 0.5px; margin-bottom: 11px; }
.card-body h3 { font-size: 19px; font-weight: 600; line-height: 1.3; color: #fff; letter-spacing: -0.3px; margin-bottom: 11px; font-family: "Fraunces", serif; }
.card-body p { font-size: 14px; color: #8f8f8f; line-height: 1.65; flex: 1; }
.card-body .read-link { margin-top: 18px; font-size: 14px; }
.read-link { color: #fff; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 7px; transition: gap 0.2s; }
.card:hover .read-link { gap: 12px; }

/* Share button on card */
.share-btn {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(10,10,10,0.72); border: 1px solid rgba(255,255,255,0.14);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.share-btn:hover { background: var(--coral); border-color: var(--coral); transform: translateY(-2px); }
.share-btn svg { width: 16px; height: 16px; fill: currentColor; }

/* Article (overlay + static post page) */
.article-overlay {
  position: fixed; inset: 0; z-index: 100; background: #0a0a0a;
  overflow-y: auto; display: none;
}
.article-overlay.open { display: block; }
.article {
  max-width: 760px; margin: 0 auto; padding: 0 24px 100px;
  position: relative; z-index: 1;
}
.article-top {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; margin-bottom: 10px;
  background: rgba(10,10,10,0.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.article-actions { display: flex; align-items: center; gap: 12px; }
.back-btn {
  background: linear-gradient(135deg, var(--coral), var(--amber));
  border: none; color: #fff; padding: 12px 24px; border-radius: 40px;
  font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 20px rgba(224,92,62,0.35); transition: transform 0.2s, box-shadow 0.2s;
}
.back-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(224,92,62,0.5); }
.share-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  color: #e5e5e5; padding: 11px 20px; border-radius: 40px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.share-pill:hover { background: rgba(224,92,62,0.15); border-color: rgba(224,92,62,0.4); color: #fff; }
.share-pill svg { width: 16px; height: 16px; fill: currentColor; }
.article-banner { width: 100%; border-radius: 20px; margin-bottom: 36px; border: 1px solid rgba(255,255,255,0.08); display: block; }
.article h1 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 600; line-height: 1.12; letter-spacing: -1px; color: #fff; margin-bottom: 20px; }
.article-meta { display: flex; align-items: center; gap: 13px; margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.article-meta img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(224,92,62,0.4); }
.article-meta .who { font-size: 15px; font-weight: 600; color: #fff; }
.article-meta .when { font-size: 13px; color: #737373; }
.article-content p { font-size: 18px; line-height: 1.8; color: #cfcfcf; margin-bottom: 22px; }
.article-content a { color: var(--coral); text-decoration: none; border-bottom: 1px solid rgba(224,92,62,0.4); }
.article-content a:hover { border-bottom-color: var(--coral); }
.article-content .tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.article-content .tag {
  font-size: 13px; font-weight: 600; color: var(--amber);
  background: rgba(240,163,60,0.12); border: 1px solid rgba(240,163,60,0.28);
  padding: 6px 14px; border-radius: 30px;
}
.article-cta {
  margin-top: 44px; padding: 28px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(224,92,62,0.1), rgba(63,176,166,0.08));
  border: 1px solid rgba(224,92,62,0.2); text-align: center;
}
.article-cta p { font-size: 15px; color: #a3a3a3; margin-bottom: 16px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--coral), var(--amber)); color: #fff;
  padding: 12px 26px; border-radius: 40px; font-size: 15px; font-weight: 600; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(224,92,62,0.4); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(20px);
  background: #16181d; border: 1px solid rgba(255,255,255,0.14); color: #fff;
  padding: 12px 22px; border-radius: 40px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; z-index: 300;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Footer */
footer { padding: 52px 0; border-top: 1px solid rgba(255,255,255,0.06); margin-top: 40px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 28px; margin-bottom: 36px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 34px; width: auto; }
.footer-brand .fb-name { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -0.3px; }
.footer-brand .fb-tag { font-size: 13px; color: #737373; margin-top: 2px; }
.social-icons { display: flex; gap: 12px; flex-wrap: wrap; }
.social-icons a {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  color: #a3a3a3; transition: background 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
}
.social-icons a:hover { background: rgba(224,92,62,0.15); border-color: rgba(224,92,62,0.4); color: #fff; transform: translateY(-2px); }
.social-icons svg { width: 19px; height: 19px; fill: currentColor; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-bottom span { color: #525252; font-size: 13px; }
.footer-bottom .links { display: flex; gap: 20px; }
.footer-bottom .links a { color: #737373; font-size: 13px; text-decoration: none; }
.footer-bottom .links a:hover { color: #fff; }

/* Share menu */
.share-modal {
  position: fixed; inset: 0; z-index: 400; background: rgba(5,5,6,0.72);
  backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 20px;
}
.share-modal.open { display: flex; }
.share-sheet {
  width: 100%; max-width: 440px; background: #121216;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.share-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.share-head span { font-size: 18px; font-weight: 700; color: #fff; font-family: "Fraunces", serif; }
.share-x { background: none; border: none; color: #8f8f8f; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.share-x:hover { color: #fff; }
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share-opt {
  display: flex; align-items: center; gap: 11px; padding: 13px 16px; border-radius: 12px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  color: #e5e5e5; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s; font-family: inherit;
}
.share-opt:hover { background: rgba(224,92,62,0.14); border-color: rgba(224,92,62,0.4); color: #fff; }
.share-opt svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.share-opt.full { grid-column: 1 / -1; justify-content: center; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
}
