/*
Theme Name: Digital Narratives Theme
Text Domain: digital-narratives-theme
Version: 1.0.0
Description: Custom WordPress theme for Digital Narratives — a digital brutalist, documentary-style portfolio.
Author: [Your Name]
*/

/* ------------------------------------------------------------
   1. ROOT DESIGN TOKENS
   ------------------------------------------------------------ */
   :root {
    /* Colors */
    --color-bg: #F4F6F5;
    --color-primary: #002CA3;
    --color-text: #1C0E0D;
    --color-secondary: #5B9279;
    --color-border: #E2E5E4;
    --color-subtle-bg: #ECEFED;
  
    /* Typography */
    --font-sans: "Switzer", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: "Oswald", sans-serif;
  
    /* Font sizes */
    --fs-body: 20px;
    --fs-h3: 28px;
    --fs-h2: 36px;
    --fs-h1: 48px;
    --fs-h0: 72px;
  
    /* Line heights */
    --lh-body: 1.6;
    --lh-heading: 1.2;
  
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
  }
  
  /* ------------------------------------------------------------
     2. BASE GLOBAL STYLES
     ------------------------------------------------------------ */
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    margin: 0;
    padding: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    -webkit-font-smoothing: antialiased;
  }
  
  /* Selection color */
  ::selection {
    background: var(--color-primary);
    color: #fff;
  }
  
  /* Links */
  a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
  }
  a:hover,
  a:focus {
    color: var(--color-secondary);
    text-decoration: underline;
  }
  
  /* Headings */
  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    color: var(--color-text);
    font-weight: 700;
    line-height: var(--lh-heading);
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
  }
  
  h1 { font-size: var(--fs-h1); }
  h2 { font-size: var(--fs-h2); }
  h3 { font-size: var(--fs-h3); }
  
  /* Display Heading (H0) */
  .h0,
  .display-h0 {
    font-family: var(--font-display);
    font-size: var(--fs-h0);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
  }
  
  /* Paragraphs */
  p {
    margin-top: 0;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
  }
  
  /* Lists */
  ul, ol {
    margin-top: 0;
    margin-bottom: var(--space-sm);
    padding-left: var(--space-md);
  }
  
  /* Blockquotes */
  blockquote {
    margin: var(--space-md) 0;
    padding: var(--space-sm) var(--space-md);
    border-left: 4px solid var(--color-primary);
    background: var(--color-subtle-bg);
    color: var(--color-text);
    font-style: italic;
  }
  
  /* Images */
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  /* Buttons */
  button,
  input[type="submit"],
  input[type="button"] {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.6em 1.2em;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: background 0.2s ease;
  }
  button:hover,
  input[type="submit"]:hover {
    background: var(--color-secondary);
  }
  
  /* Forms */
  input, textarea, select {
    font-family: var(--font-sans);
    font-size: 1rem;
    border: 1px solid var(--color-border);
    padding: 0.5em 0.75em;
    border-radius: 4px;
    background: #fff;
    color: var(--color-text);
  }
  input:focus, textarea:focus, select:focus {
    outline: 2px solid var(--color-primary);
  }
  
  /* ------------------------------------------------------------
     3. LAYOUT ELEMENTS
     ------------------------------------------------------------ */
  
  header.site-header {
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  header .branding a {
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: 1.25rem;
    color: var(--color-text);
  }
  header .menu {
    display: flex;
    gap: var(--space-sm);
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  main.site-main {
    padding: var(--space-md);
    max-width: 960px;
    margin: 0 auto;
  }
  
  footer.site-footer {
    padding: var(--space-md);
    border-top: 1px solid var(--color-border);
    background: var(--color-subtle-bg);
    color: var(--color-text);
    text-align: center;
    font-size: 0.9rem;
  }
  
  /* ------------------------------------------------------------
     4. UTILITIES
     ------------------------------------------------------------ */
  
  .text-center { text-align: center; }
  .text-right { text-align: right; }
  .mt-0 { margin-top: 0 !important; }
  .mb-0 { margin-bottom: 0 !important; }
  .uppercase { text-transform: uppercase; }
  
  /* ------------------------------------------------------------
     5. RESPONSIVE BASICS
     ------------------------------------------------------------ */
  @media (max-width: 768px) {
    body { font-size: 18px; }
    header.site-header {
      flex-direction: column;
      gap: var(--space-sm);
      text-align: center;
    }
    .h0, .display-h0 { font-size: 56px; }
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    h3 { font-size: 22px; }
  }
  
  /* ------------------------------------------------------------
     6. PAGE SPECIFIC (OPTIONAL HOOK)
     ------------------------------------------------------------ */
  
  /* Style Tile Page Adjustments (if you ever want to override tile styles here) */
  .page-template-style-tile main {
    background: var(--color-subtle-bg);
  }