@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Inter:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --nude: #F5F0E8; --nude-md: #EFEBE3; --nude-dk: #E8E2D8;
  --nude-bd: #D8D0C4; --nude-dp: #C8C0B4;
  --sage: #6B7A5E; --sage-dk: #556048; --sage-lt: #B8C8A8;
  --ink: #1a1a1a; --muted: #5a5550; --ghost: #8a8578;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
}

body { font-family: var(--sans); background: var(--nude); color: var(--ink); font-size: 16px; line-height: 1.6; overflow-x: hidden; }

/* TOPBAR */
.topbar { background: var(--sage); color: #fff; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; text-align: center; padding: 9px 1rem; font-weight: 500; }
.topbar a { color: #fff; text-decoration: underline; margin-left: 6px; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 200; background: var(--nude); border-bottom: 1px solid var(--nude-bd); padding: 0 2.5rem; height: 62px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-weight: 700; font-size: 21px; letter-spacing: -.5px; color: var(--ink); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav-links a { font-size: 11.5px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); text-decoration: none; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); border-bottom: 1.5px solid var(--sage); padding-bottom: 2px; }
.nav-cta { background: var(--sage) !important; color: #fff !important; padding: 8px 18px; border-radius: 2px; font-size: 10.5px !important; }
.nav-cta:hover { background: var(--sage-dk) !important; }

/* TICKER */
.ticker { background: var(--ink); color: #fff; overflow: hidden; white-space: nowrap; padding: 10px 0; }
.ticker-track { display: inline-flex; animation: tickerScroll 32s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500; padding: 0 2rem; }
.ticker-dot { color: var(--sage); font-size: 14px; line-height: 1; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; padding: 12px 24px; border-radius: 2px; border: none; cursor: pointer; text-decoration: none; transition: all .2s; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #333; }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sage { background: var(--sage); color: #fff; }
.btn-sage:hover { background: var(--sage-dk); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--nude-dk); }

/* BADGES */
.badge { display: inline-block; font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; padding: 3px 9px; border-radius: 2px; }
.badge-sage { background: var(--sage); color: #fff; }
.badge-nude { background: var(--nude-dk); color: var(--sage); border: 1px solid var(--nude-bd); }
.badge-dark { background: var(--ink); color: #fff; }
.badge-soon { background: var(--nude-dk); color: var(--ghost); }

/* UTILITIES */
.divider { width: 100%; height: 1px; background: var(--nude-bd); }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.sec-link { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--sage); text-decoration: none; font-weight: 500; display: flex; align-items: center; gap: 4px; transition: color .2s; }
.sec-link:hover { color: var(--ink); }

/* FOOTER */
.footer { background: var(--nude); padding: 3rem 2.5rem; border-top: 1px solid var(--nude-bd); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand { font-weight: 700; font-size: 20px; color: var(--ink); margin-bottom: .5rem; }
.footer-tagline { font-size: 12px; color: var(--ghost); line-height: 1.65; margin-bottom: 1.25rem; max-width: 200px; }
.footer-socials { display: flex; gap: 8px; }
.footer-social { width: 34px; height: 34px; border: 1px solid var(--nude-bd); border-radius: 2px; display: flex; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; transition: all .2s; font-size: 16px; text-decoration: none; }
.footer-social:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.footer-col-title { font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; color: var(--ink); margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 7px; }
.footer-links a { font-size: 13px; color: var(--ghost); text-decoration: none; display: flex; align-items: center; gap: 5px; transition: color .2s; }
.footer-links a:hover { color: var(--ink); }
.cs-badge { font-size: 8px; letter-spacing: 1px; text-transform: uppercase; background: var(--nude-dk); color: var(--ghost); padding: 1px 5px; border-radius: 2px; font-weight: 600; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; margin-top: 1.5rem; border-top: 1px solid var(--nude-bd); font-size: 11.5px; color: var(--ghost); }

/* PAGE HERO */
.page-hero { padding: 3rem 2.5rem; border-bottom: 1px solid var(--nude-bd); }
.page-hero-eyebrow { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--sage); font-weight: 600; margin-bottom: .75rem; }
.page-hero-h { font-family: var(--serif); font-size: 48px; font-weight: 900; line-height: 1.02; color: var(--ink); margin-bottom: .75rem; letter-spacing: -1px; }
.page-hero-sub { font-size: 15px; color: var(--muted); line-height: 1.75; max-width: 500px; }

/* STORY CARDS */
.stories-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.5px; background: var(--nude-bd); border: 1px solid var(--nude-bd); }
.story-card { background: var(--nude); padding: 1.5rem; cursor: pointer; transition: background .2s; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.story-card:hover { background: var(--nude-md); }
.story-card-img { width: 100%; object-fit: cover; object-position: center 10%; border-radius: 2px; margin-bottom: 1rem; display: block; }
.story-card-img-placeholder { background: var(--nude-dk); border-radius: 2px; margin-bottom: 1rem; display: flex; align-items: center; justify-content: center; color: var(--nude-dp); }
.story-card-title { font-family: var(--serif); font-weight: 700; color: var(--ink); line-height: 1.2; margin: .5rem 0 .4rem; }
.story-card-excerpt { font-size: 13px; color: var(--muted); line-height: 1.65; margin-bottom: 8px; }
.story-card-meta { font-size: 11px; color: var(--ghost); margin-top: auto; padding-top: 6px; }

/* SINGLE STORY */
.story-hero-img { width: 100%; max-height: 480px; object-fit: cover; display: block; }
.story-body { max-width: 700px; margin: 0 auto; padding: 3rem 2.5rem; }
.story-body h1 { font-family: var(--serif); font-size: 44px; font-weight: 900; line-height: 1.05; color: var(--ink); margin-bottom: 1rem; letter-spacing: -1px; }
.story-body h2 { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--ink); margin: 2.5rem 0 1rem; line-height: 1.2; }
.story-body p { font-size: 17px; color: var(--muted); line-height: 1.85; margin-bottom: 1.5rem; }
.story-body blockquote { border-left: 3px solid var(--sage); padding-left: 1.5rem; margin: 2rem 0; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ink); line-height: 1.4; }
.story-byline { display: flex; align-items: center; gap: 12px; padding: 1.5rem 0; border-top: 1px solid var(--nude-bd); border-bottom: 1px solid var(--nude-bd); margin-bottom: 2rem; }
.story-byline-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--nude-dk); object-fit: cover; }
.story-byline-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.story-byline-meta { font-size: 12px; color: var(--ghost); margin-top: 2px; }

/* FILTERS */
.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter-pill { background: var(--nude-dk); border: 1px solid var(--nude-bd); padding: 6px 16px; border-radius: 40px; font-size: 11px; color: var(--muted); cursor: pointer; font-weight: 500; transition: all .2s; user-select: none; }
.filter-pill:hover { background: var(--nude-bd); }
.filter-pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* SKELETON LOADING */
.skeleton { background: var(--nude); padding: 1.5rem; }
.skeleton-img { background: var(--nude-dk); border-radius: 2px; margin-bottom: 1rem; animation: shimmer 1.5s infinite; }
.skeleton-line { background: var(--nude-dk); border-radius: 2px; margin-bottom: 8px; height: 14px; animation: shimmer 1.5s infinite; }
.skeleton-line.short { width: 60%; }
.skeleton-line.xshort { width: 40%; }
@keyframes shimmer { 0%,100%{opacity:1} 50%{opacity:.5} }

/* EMPTY / ERROR STATES */
.state-box { text-align: center; padding: 4rem 2rem; grid-column: 1/-1; background: var(--nude); }
.state-box h3 { font-family: var(--serif); font-size: 24px; color: var(--ink); margin-bottom: .5rem; }
.state-box p { font-size: 14px; color: var(--ghost); margin-bottom: 1.5rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav { padding: 0 1rem; }
  .nav-links { display: none; }
  .stories-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .page-hero { padding: 2rem 1rem; }
  .page-hero-h { font-size: 34px; }
  .story-body { padding: 2rem 1rem; }
  .story-body h1 { font-size: 32px; }
}
