/*
Theme Name: Hip Hop For Good
Theme URI: https://www.hiphopforgood.com/
Author: Hip Hop For Good
Description: One-page landing theme for Hip Hop For Good. Black and white by default with a light mode toggle, artist submission pop-up, and Instagram link.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hiphopforgood
*/

  :root {
    --bg: linear-gradient(160deg, #0B0B0B 0%, #000000 100%);
    --ink: #FFFFFF;
    --btn-text: #000000;
    --panel: rgba(255, 255, 255, .08);
    --line: rgba(255, 255, 255, .85);
    --h1-fill: linear-gradient(#FFFFFF, #FFFFFF);
    --display: "Michroma", "Arial", system-ui, sans-serif;
    --body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    box-sizing: border-box;
  }
  :root[data-theme="light"] {
    --bg: #FFFFFF;
    --ink: #000000;
    --btn-text: #FFFFFF;
    --panel: rgba(0, 0, 0, .06);
    --line: #000000;
    --h1-fill: linear-gradient(#000000, #000000);
  }
  *, *::before, *::after { box-sizing: inherit; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  body {
    margin: 0;
    background: var(--bg);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--ink);
    font-family: var(--body);
    font-size: 1.125rem;
    line-height: 1.6;
  }
  .wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }
  header { padding: 1.75rem 0; font-family: var(--display); font-size: 1.05rem; }
  .bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
  .toggle { background: transparent; color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: .4rem 1rem; font-family: var(--body); font-size: 1rem; font-weight: 600; cursor: pointer; }
  .toggle:hover { background: var(--ink); color: var(--btn-text); }
  .toggle:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
  .hero { padding: 3rem 0 4.5rem; }
  h1 {
    font-family: var(--display);
    font-weight: 500;
    font-size: clamp(2.5rem, 8.5vw, 6rem);
    line-height: 1.08;
    letter-spacing: 0;
    padding-bottom: .08em;
    margin: 0 0 1.75rem;
    background: var(--h1-fill);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  @supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    h1 { background: none; color: var(--ink); }
  }
  .lede { max-width: 40rem; font-size: 1.35rem; margin: 0 0 2.25rem; }
  .btn {
    font-family: var(--body);
    font-size: 1.125rem;
    cursor: pointer;
    display: inline-block;
    background: var(--ink);
    color: var(--btn-text);
    font-weight: 600;
    text-decoration: none;
    padding: .95rem 1.75rem;
    border-radius: 999px;
    border: 2px solid var(--ink);
  }
  .btn:hover { background: transparent; color: var(--ink); }
  a:focus-visible, .btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
  .pillars { border-top: 3px solid var(--line); }
  .pillars .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2.5rem; padding-top: 3rem; padding-bottom: 3.5rem; }
  h2 { font-family: var(--display); font-weight: 500; font-size: 1.4rem; margin: 0 0 .5rem; line-height: 1.1; }
  .pillars p { margin: 0; max-width: 24rem; }
  .social { border-top: 3px solid var(--line); }
  .social .wrap { padding-top: 3rem; padding-bottom: 3.5rem; }
  .social h2 { font-size: clamp(1.5rem, 4.5vw, 2.25rem); }
  .social p { max-width: 34rem; margin: 0 0 1.75rem; }
  dialog {
    background: var(--bg);
    color: var(--ink);
    border: 3px solid var(--line);
    border-radius: 1rem;
    padding: 1.25rem;
    width: min(44rem, calc(100% - 2rem));
    max-height: calc(100% - 2rem);
    overflow: auto;
  }
  dialog::backdrop { background: rgba(4, 8, 40, .75); }
  .dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .5rem; }
  .dialog-head h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); margin: 0; }
  dialog > p { margin: 0 0 1rem; }
  .close { background: transparent; color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: .4rem 1rem; font-family: var(--body); font-size: 1rem; font-weight: 600; cursor: pointer; }
  .close:hover { background: var(--ink); color: var(--btn-text); }
  .close:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
  dialog iframe { display: block; width: 100%; height: min(70vh, 720px); border: 0; border-radius: .6rem; background: #fff; }
  .fallback { margin: 1rem 0 0; font-size: 1rem; }
  .fallback a { color: var(--ink); font-weight: 600; }
  footer { border-top: 3px solid var(--line); padding: 1.75rem 0 2.5rem; font-size: 1rem; }
