/*
Theme Name: Random Facts
Author: You
Description: A typography-led archival theme for Random Facts.
Version: 1.0
*/

    :root {
      --ink: #1b1b1b;
      --cream: #f5f3ee;
      --muted: #5f5f5f;

      --red: #c73a2d;
      --blue: #2f5fd0;
      --blue-dark: #2c61e9;
      --green: #2f7d5c;
      --yellow: #f0c84b;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: 'Crimson Pro', serif;
      color: var(--ink);
      background: var(--cream);
      line-height: 1.5;
    }

	header {
  		padding: 1.5rem 2rem;
  		display: flex;
  		justify-content: flex-end;
  		align-items: center;
  		border-bottom: 1px solid #ddd;
  		background: hotpink !important;
  		position: relative;
  		z-index: 100;
		}

    /* Banner / wordmark */
    .banner {
      position: absolute;
      left: 2rem;
      bottom: -14px;
      top: auto;
      z-index: 200;
      transform: translateY(0);
      background: var(--blue);
      color: white;
      padding: 0.75rem 1rem 0.85rem;
      line-height: 1.05;
      font-weight: 650;
      letter-spacing: 0.02em;
      box-shadow: 0 6px 12px rgba(0,0,0,0.12);
    }

    .banner span {
      display: block;
      font-size: 1.15rem;
    }

    nav {
      display: flex;
      align-items: center;
      gap: 1.5rem;
      font-size: 0.95rem;
      font-weight: 500;
    }

    nav a {
      color: var(--ink);
      text-decoration: none;
      padding-bottom: 2px;
      border-bottom: 1px solid transparent;
      transition: border-color 0.2s ease;
    }

    /* Primary destination */
    nav a.primary {
      font-weight: 600;
      border-bottom-color: rgba(0,0,0,0.15);
    }

    /* Secondary links */
    nav a:not(.primary) {
      color: var(--muted);
    }

    /* Hover: restrained, confident */
    nav a:hover {
      border-bottom-color: var(--ink);
    }

    nav::before {
      content: "";
      display: inline-block;
      height: 12px;
      width: 12px;
      border-radius: 12px;
      background: #ccc;
      margin-right: 0.75rem;
    }


        header h1 {
          margin: 0;
          font-size: 1.4rem;
          font-weight: normal;
        }

        .hero {
      padding: 5rem 1.5rem;
      background: linear-gradient(135deg, var(--blue), var(--green));
      color: white;
    }

    .hero-header {
      display: flex;
      align-items: center;
      gap: 2rem;
      margin-bottom: 1rem; /* space between headline row and paragraph */
    }

    .hero .hero-logo {
      height: 148px;
      margin: 0;
    }

    .hero h2 {
      font-family: 'Crimson Pro', serif;
      font-size: 2.4rem;
      font-weight: 650;
      max-width: 18em;
      margin: 0;
    }

    .hero p {
      font-size: 1.1rem;
      font-weight: 500;
      max-width: 32em;
      opacity: 0.9;
    }



        .modules {
          max-width: 1100px;
          margin: -3rem auto 0;
          padding: 0 1.5rem;
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
          gap: 2rem;
        }

        .module {
          padding: 2rem;
          background: white;
          border-top: 6px solid;
          font-family: 'Crimson Pro', serif;
          font-weight: 500;
        }

        .module.red { border-color: var(--red); border-bottom-left-radius: 16px; border-bottom-right-radius: 16px; }
        .module.blue { border-color: var(--blue); border-bottom-left-radius: 16px; border-bottom-right-radius: 16px; }
        .module.green { border-color: var(--green); border-bottom-left-radius: 16px; border-bottom-right-radius: 16px; }
        .module.yellow { border-color: var(--yellow); border-bottom-left-radius: 16px; border-bottom-right-radius: 16px; }

        .module h3 {
          margin-top: 0;
          font-weight: 550;
          font-size: 1.2rem;
        }

        .module p {
          font-size: 0.95rem;
          color: var(--muted);
        }

        .featured {
      max-width: 760px;
      margin: 6rem auto;
      padding: 2rem 2rem 2.5rem;
      background: white;
      border-top: 6px solid var(--blue-dark); /* pick a colour that pops */
      border-bottom-left-radius: 16px;
      border-bottom-right-radius: 16px;
      box-shadow: 0 6px 12px rgba(0,0,0,0.08);
      font-family: 'Crimson Pro', serif;
    }

    .featured span {
      font-size: 0.8rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
      display: block;
      margin-bottom: 0.5rem;
    }

    .featured h4 {
      font-size: 1.8rem;
      font-weight: 650;
      margin: 0.25rem 0 1rem;
      line-height: 1.3;
      color: var(--ink);
    }

    .featured .meta {
      font-size: 0.9rem;
      color: var(--muted);
      margin-bottom: 1rem;
    }

    .featured p {
      font-size: 1rem;
      color: var(--ink);
      margin: 0.5rem 0 0;
      line-height: 1.45;
    }

        footer {
          padding: 3rem 1.5rem;
          background: #111;
          color: #ccc;
          font-size: 0.85rem;
        }

        .logo {
      display: block;
      height: 60px;
      width: auto;
    }