/* ===========================================================================
   FONTS — Inter
   The entire frame uses Inter (Regular 400, Medium 500, Semi Bold 600,
   Bold 700). Loaded from the Google Fonts CDN.
   =========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");
/* ===========================================================================
   COLORS — RSS Reader
   Derived from the rssReader Figma frame (node 1:2).
   A cool, neutral gray scale with an indigo accent and a "live" red dot.
   =========================================================================== */

:root {
  /* --- Brand / accent (indigo) --- */
  --indigo-500: #615fff;   /* primary accent — links, "Read full article" */
  --indigo-600: #6366f1;   /* selection / focus border on active items   */
  --indigo-50:  #eef0ff;   /* faint accent wash (tints, hovers)           */

  /* --- Neutral gray scale (cool) --- */
  --gray-950: #101828;     /* strongest text — article H1                 */
  --gray-900: #1e2939;     /* strong text — list item titles              */
  --gray-700: #364153;     /* body copy                                   */
  --gray-600: #6a7282;     /* secondary text                              */
  --gray-400: #99a1af;     /* muted / meta / placeholders                 */
  --gray-300: #d1d5dc;     /* disabled text, faint dividers               */
  --gray-200: #e5e7eb;     /* borders                                     */
  --gray-100: #f3f4f6;     /* hairline borders, image fill                */
  --gray-50:  #f9fafb;     /* subtle surface (toolbar, sidebar)           */
  --gray-25:  #f8f8fa;     /* list-column surface                         */
  --black:    #111111;     /* solid feed dot                              */
  --white:    #ffffff;

  /* --- Semantic feed colors --- */
  --red-500:  #d72b2b;     /* "live" / unread indicator dot               */
  --red-700:  #bb1919;     /* deep red (e.g. BBC-style sources)           */

  /* =========================================================================
     SEMANTIC ALIASES — prefer these in components
     ========================================================================= */

  /* Text */
  --text-strong:    var(--gray-950);
  --text-primary:   var(--gray-900);
  --text-body:      var(--gray-700);
  --text-secondary: var(--gray-600);
  --text-muted:     var(--gray-400);
  --text-disabled:  var(--gray-300);
  --text-accent:    var(--indigo-500);
  --text-on-accent: var(--white);

  /* Surfaces */
  --surface:        var(--white);   /* primary content surface, cards     */
  --surface-subtle: var(--gray-50); /* toolbar / sidebar                  */
  --surface-list:   var(--gray-25); /* article list column                */
  --surface-sunken: var(--gray-100);/* image placeholder, wells           */

  /* Borders */
  --border:         var(--gray-100); /* default hairline                  */
  --border-strong:  var(--gray-200); /* emphasised divider                */
  --border-selected:var(--indigo-600);

  /* Accent */
  --accent:         var(--indigo-500);
  --accent-strong:  var(--indigo-600);
  --accent-wash:    var(--indigo-50);

  /* Status / feed dots */
  --dot-default:    var(--black);
  --dot-unread:     var(--red-500);
  --dot-source-red: var(--red-700);

  /* Focus ring */
  --focus-ring:     var(--indigo-600);
}
/* ===========================================================================
   TYPOGRAPHY — RSS Reader
   One family (Inter), four weights, a compact UI-density scale.
   Sizes & line-heights read directly from the Figma frame.
   =========================================================================== */

:root {
  /* Family */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* Weights */
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* Sizes (px — this is a dense desktop UI) */
  --text-h1:      18px;   /* article heading            */
  --text-base:    13px;   /* body copy, feed title      */
  --text-sm:      12px;   /* list titles, meta, buttons */
  --text-xs:      11px;   /* section headers, captions  */
  --text-2xs:     10px;   /* eyebrow labels (FEEDS)     */

  /* Line heights */
  --leading-h1:    1.375;  /* 24.75 / 18 */
  --leading-body:  1.625;  /* 21.13 / 13 */
  --leading-snug:  1.375;  /* 16.5 / 12  */
  --leading-flat:  1.5;    /* 18 / 12    */

  /* Letter spacing — used on uppercase labels */
  --tracking-label: 0.05em;
}

/* ---------------------------------------------------------------------------
   Type role classes — apply directly or copy the declarations
   --------------------------------------------------------------------------- */

.type-h1 {
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
  font-size: var(--text-h1);
  line-height: var(--leading-h1);
  color: var(--text-strong);
  letter-spacing: -0.01em;
}

.type-title {
  font-family: var(--font-sans);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  color: var(--text-primary);
}

.type-body {
  font-family: var(--font-sans);
  font-weight: var(--weight-regular);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--text-body);
}

.type-meta {
  font-family: var(--font-sans);
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  line-height: var(--leading-flat);
  color: var(--text-muted);
}

.type-section {
  font-family: var(--font-sans);
  font-weight: var(--weight-semibold);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  color: var(--text-muted);
}

.type-eyebrow {
  font-family: var(--font-sans);
  font-weight: var(--weight-semibold);
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--text-muted);
}
/* ===========================================================================
   SPACING, RADII, SHADOWS — RSS Reader
   A 4px base grid; radii and the signature window shadow from the frame.
   =========================================================================== */

:root {
  /* --- Spacing (4px grid) --- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-7:  28px;

  /* Common composite paddings seen in the frame */
  --pad-toolbar: 12px 16px;
  --pad-pane:    20px 28px;
  --pad-item:    8px 12px;

  /* --- Radii --- */
  --radius-sm:   8px;   /* small controls            */
  --radius-md:  10px;   /* buttons, list items       */
  --radius-lg:  14px;   /* media / image wells       */
  --radius-xl:  16px;   /* the app window itself      */
  --radius-full: 9999px;/* dots, pills               */

  /* --- Borders --- */
  --border-width: 1px;
  --border-accent-width: 3px; /* selected article left rail */

  /* --- Shadows --- */
  /* Signature floating-window elevation */
  --shadow-window: 0 16px 48px rgba(0, 0, 0, 0.18),
                   0 4px 12px rgba(0, 0, 0, 0.08);
  /* Resting card lift */
  --shadow-card:   0 1px 2px rgba(0, 0, 0, 0.06),
                   0 1px 3px rgba(0, 0, 0, 0.10);
  /* Subtle hover lift */
  --shadow-hover:  0 4px 12px rgba(0, 0, 0, 0.08);

  /* --- Motion --- */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1); /* @kind other */
  --duration-fast: 120ms; /* @kind other */
  --duration-base: 180ms; /* @kind other */
}
