/* ==========================================================================
   UAE Startup Story - Global Design System (Phase 1, locked)
   --------------------------------------------------------------------------
   Premium editorial system, in the spirit of BBC and Arabian Business:
   restrained, black and white first, one accent used sparingly,
   strong headline hierarchy, thin rules, generous whitespace.
   No gradients, no rounded startup pills, no loud CTA colours.

   Safety rule: typography and component rules below are scoped to
   .uss-custom, so existing Elementor pages are NOT restyled by
   Phase 1. Only the :root variables are global, and variables alone
   change nothing visually. Future custom templates must wrap their
   markup in .uss-custom.
   ========================================================================== */

:root {
  /* Fonts, updated 2026-11-02: Playfair Display was too bold, so
     headings are now Newsreader, a serif designed for news, used
     at medium weights below, not 800/900. Nav uses Archivo again,
     the initial Phase 1 font, restored for the nav row. */
  --uss-font-heading: "Newsreader", Georgia, "Times New Roman", serif;
  --uss-font-nav: "Archivo", "Inter", Arial, sans-serif;
  --uss-font-body: "Inter", Arial, sans-serif;

  /* Colour. Ink first, paper second, accent only for kickers,
     breaking labels, and small highlights. Change a colour here
     and every custom section follows. */
  --uss-ink: #0f0f0f;
  --uss-ink-soft: #1f1f1f;
  --uss-paper: #ffffff;
  --uss-paper-soft: #f7f7f5;
  --uss-muted: #5a5a5a;
  --uss-muted-light: #8a8a8a;
  --uss-line: #e5e5e0;
  --uss-line-strong: #0f0f0f;
  --uss-accent: #c8102e;
  --uss-accent-dark: #9a0c24;
  --uss-gold: #b9975b;

  /* Type scale. Headlines are tight and bold, body is calm. */
  --uss-display: clamp(2.5rem, 5vw, 4rem);
  --uss-h1: clamp(2rem, 4vw, 3rem);
  --uss-h2: clamp(1.5rem, 3vw, 2rem);
  --uss-h3: clamp(1.25rem, 2vw, 1.5rem);
  --uss-h4: 1.125rem;
  --uss-body: 1.0625rem;
  --uss-small: 0.875rem;
  --uss-kicker: 0.75rem;

  /* Spacing scale. Use these, never one-off pixel values. */
  --uss-space-1: 0.25rem;
  --uss-space-2: 0.5rem;
  --uss-space-3: 0.75rem;
  --uss-space-4: 1rem;
  --uss-space-6: 1.5rem;
  --uss-space-8: 2rem;
  --uss-space-12: 3rem;
  --uss-space-16: 4rem;
  --uss-space-24: 6rem;

  /* Layout. Editorial container, plus a narrow article measure.
     Page width set to 1250px on 2026-11-02, for header, hero, and
     all custom sections, so they all align. */
  --uss-container: 1250px;
  --uss-container-narrow: 45rem;
  --uss-gutter: 1.5rem;
  --uss-radius: 2px;

  /* Breakpoints, for reference in media queries below. */
  --uss-bp-sm: 40rem;
  --uss-bp-md: 48rem;
  --uss-bp-lg: 64rem;
  --uss-bp-xl: 80rem;
}

/* --------------------------------------------------------------------------
   Custom-template base. Only inside .uss-custom.
   -------------------------------------------------------------------------- */

.uss-custom {
  font-family: var(--uss-font-body);
  font-size: var(--uss-body);
  line-height: 1.65;
  color: var(--uss-ink);
  background: var(--uss-paper);
  -webkit-font-smoothing: antialiased;
}

.uss-custom h1,
.uss-custom h2,
.uss-custom h3,
.uss-custom h4,
.uss-custom .uss-headline {
  font-family: var(--uss-font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--uss-ink);
  margin: 0 0 var(--uss-space-4);
}

.uss-custom h1,
.uss-custom .uss-h1 { font-size: var(--uss-h1); }
.uss-custom h2,
.uss-custom .uss-h2 { font-size: var(--uss-h2); }
.uss-custom h3,
.uss-custom .uss-h3 { font-size: var(--uss-h3); line-height: 1.2; }
.uss-custom h4,
.uss-custom .uss-h4 { font-size: var(--uss-h4); line-height: 1.3; }

.uss-custom .uss-display {
  font-family: var(--uss-font-heading);
  font-size: var(--uss-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.uss-custom p { margin: 0 0 var(--uss-space-4); }

.uss-custom a {
  color: var(--uss-ink);
  text-decoration: none;
}

.uss-custom a:hover { color: var(--uss-accent); }

/* Kicker: section label, category, breaking tag. Accent, uppercase,
   tracked out. This is the only place accent is used at small size. */
.uss-custom .uss-kicker {
  font-family: var(--uss-font-heading);
  font-size: var(--uss-kicker);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--uss-accent);
  margin: 0 0 var(--uss-space-2);
}

.uss-custom .uss-meta {
  font-size: var(--uss-small);
  color: var(--uss-muted);
}

.uss-custom .uss-meta a { color: var(--uss-muted); }
.uss-custom .uss-meta a:hover { color: var(--uss-ink); }

/* Layout helpers for custom templates. */
.uss-custom .uss-container {
  width: 100%;
  max-width: var(--uss-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--uss-gutter);
  padding-right: var(--uss-gutter);
}

.uss-custom .uss-container-narrow {
  max-width: var(--uss-container-narrow);
}

.uss-custom .uss-section {
  padding-top: var(--uss-space-12);
  padding-bottom: var(--uss-space-12);
}

.uss-custom .uss-section + .uss-section {
  border-top: 1px solid var(--uss-line);
}

.uss-custom .uss-rule {
  border: 0;
  border-top: 2px solid var(--uss-line-strong);
  margin: var(--uss-space-4) 0;
}

.uss-custom .uss-rule-thin {
  border: 0;
  border-top: 1px solid var(--uss-line);
  margin: var(--uss-space-4) 0;
}

/* Buttons. Editorial, square-ish, black first. No pills, no gradients. */
.uss-custom .uss-button {
  display: inline-block;
  font-family: var(--uss-font-heading);
  font-size: var(--uss-small);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 0.875rem 1.5rem;
  border-radius: var(--uss-radius);
  border: 1px solid var(--uss-ink);
  background: var(--uss-ink);
  color: var(--uss-paper);
  cursor: pointer;
}

.uss-custom .uss-button:hover {
  background: var(--uss-ink-soft);
  border-color: var(--uss-ink-soft);
  color: var(--uss-paper);
}

.uss-custom .uss-button-outline {
  background: transparent;
  color: var(--uss-ink);
}

.uss-custom .uss-button-outline:hover {
  background: var(--uss-ink);
  color: var(--uss-paper);
}

.uss-custom .uss-button-accent {
  background: var(--uss-accent);
  border-color: var(--uss-accent);
}

.uss-custom .uss-button-accent:hover {
  background: var(--uss-accent-dark);
  border-color: var(--uss-accent-dark);
  color: var(--uss-paper);
}

/* Cards. Image on top, thin rule, headline, meta. No shadows,
   no rounded corners, no colour blocks. */
.uss-custom .uss-card { margin: 0; }

.uss-custom .uss-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--uss-paper-soft);
  margin-bottom: var(--uss-space-3);
}

.uss-custom .uss-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.uss-custom .uss-card-title {
  font-family: var(--uss-font-heading);
  font-size: var(--uss-h3);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  margin: 0 0 var(--uss-space-2);
}

.uss-custom .uss-card-title a:hover { color: var(--uss-accent); }

/* Grids used by custom listings. */
.uss-custom .uss-grid {
  display: grid;
  gap: var(--uss-space-8);
}

@media (min-width: 48rem) {
  .uss-custom .uss-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .uss-custom .uss-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 64rem) {
  .uss-custom .uss-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 48rem) {
  .uss-custom .uss-section {
    padding-top: var(--uss-space-8);
    padding-bottom: var(--uss-space-8);
  }
}
