/* Thisispaper Intelligence — global styles.
   Mirrors the brand stack from the existing search server (Favorit + warm off-white).

   Font files are reused from the live Thisispaper main-site CDN so the
   Webflow DevLink components (DesktopMenu, Footer2024, NewsletterSignup)
   render with the correct typography and icons. Material Design Iconic
   + FA Brands are required for the menu icons to render at all. Without
   these, the menu items show as empty squares / missing glyphs.
*/

/* — Favorit family (self-hosted + main-site CDN fallback) — */
@font-face {
  font-family: "Favorit";
  src: url("/intelligence/fonts/Favorit-Regular.otf") format("opentype"),
       url("https://cdn.prod.website-files.com/5d70caf362d15d3604edadff/5dc84574d6571ed644c548a2_Favorit-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Favorit";
  src: url("https://cdn.prod.website-files.com/5d70caf362d15d3604edadff/5dc8457452f69f571f90f5bc_Favorit-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Favorit";
  src: url("https://cdn.prod.website-files.com/5d70caf362d15d3604edadff/5fb4dfad2d0e046e4e9ac09d_Favorit-LightIta.woff") format("woff");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Favorit";
  src: url("/intelligence/fonts/Favorit-BoldExtended.otf") format("opentype"),
       url("https://cdn.prod.website-files.com/5d70caf362d15d3604edadff/5f802e4a152353746774436f_Favorit-BoldExtended.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* — Material Design Iconic Font (Thisispaper main-site legacy) —
   Kept only as an alias for `font-family: "Material Design"` classes
   that still reference it. DevLink icons that use "Material Icons" get
   the real Google Material Icons font via <link> in Base.astro — the
   MDIF file doesn't support ligature rendering, so "power_settings_new"
   etc. would just render as literal text. */
@font-face {
  font-family: "Material Design";
  src: url("https://cdn.prod.website-files.com/5d70caf362d15d3604edadff/5d70ed2c6d5a383a5edd00e7_Material-Design-Iconic-Font.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* — Font Awesome brands + regular (social icons, etc.) — */
@font-face {
  font-family: "Fa brands 400";
  src: url("https://cdn.prod.website-files.com/5d70caf362d15d3604edadff/5d7363e07149d575c7ffa651_fa-brands-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fa 400";
  src: url("https://cdn.prod.website-files.com/5d70caf362d15d3604edadff/5d7363e034bd361ea8df6b84_fa-regular-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* — Thisispaper Dots (custom display font used in the nav) — */
@font-face {
  font-family: "Thisispaper Dots";
  src: url("https://cdn.prod.website-files.com/5d70caf362d15d3604edadff/66acbf33c3fd8712b550ca5f_thisispaper-dots-light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Thisispaper Dots";
  src: url("https://cdn.prod.website-files.com/5d70caf362d15d3604edadff/66acbf46f02828475f1edd1a_thisispaper-dots-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* DevLink-required vars (used by the Thisispaper components' own CSS).
     Pulled verbatim from the live thisispaper.webflow.shared.css so the
     imported menu + footer render with the exact same palette. */
  --white: white;
  --black: black;
  --off-white-grey: #efeeef;
  --silver: silver;
  --white-smoke-ccc: #ccc;

  --bg: #fafaf9;
  --bg-soft: #f3f3f1;
  --bg-card: #ffffff;
  --border: #e8e6e1;
  --border-strong: #d4d2cd;
  --text: #1a1a1a;
  --text-soft: #6e6e6e;
  --text-muted: #999795;
  --accent: #1a1a1a;
  --accent-hover: #2a2a2a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --radius: 3px;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: "Favorit", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

/* ── TOPBAR ────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 249, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo .wordmark {
  font-family: "Favorit", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.logo .label {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  border-left: 1px solid var(--border-strong);
  padding-left: 12px;
  white-space: nowrap;
}

.topbar nav {
  margin-left: auto;
  display: flex;
  gap: 4px;
  align-items: center;
}

.topbar nav a {
  color: var(--text-soft);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color 0.12s ease, background 0.12s ease;
}

.topbar nav a:hover {
  color: var(--text);
  background: var(--bg-soft);
}

/* ── WEBFLOW UTILITY CLASSES ───────────────────────────
   DevLink components emit unhashed Webflow utility classes
   (`w-layout-grid`, `w-inline-block`, `w-nav-*`…). On the live
   Thisispaper site these come from webflow.css, which we
   deliberately don't import (avoid the full 200KB reset). But
   a few are load-bearing — without `.w-layout-grid { display: grid }`
   the sticky hamburger drawer collapses to a block and the menu
   items render off-canvas on a dark scrim. */
.w-layout-grid { display: grid; grid-auto-columns: 1fr; }
.w-inline-block { max-width: 100%; display: inline-block; }

