/* custom.css — a thin layer over Bootstrap 5.
   Everything here is either an accent colour or the hero block field.
   If you delete this file the site still works, just plainer. */

   :root {
    --amber: #DE9420;
    --block: #DDE1D9;
    --block-ink: #14161A;
  }
  
  @media (prefers-color-scheme: dark) {
    :root {
      --amber: #F0B043;
      --block: #2E333B;
      --block-ink: #E9EBE6;

      /* Flip Bootstrap into dark colours without JavaScript.
         Hex AND -rgb forms are required — utilities like .text-body
         use rgba(var(--bs-*-color-rgb), …) and ignore the hex alone. */
      color-scheme: dark;
      --bs-body-bg: #14161A;
      --bs-body-bg-rgb: 20, 22, 26;
      --bs-body-color: #E9EBE6;
      --bs-body-color-rgb: 233, 235, 230;
      --bs-heading-color: #E9EBE6;
      --bs-emphasis-color: #FFFFFF;
      --bs-emphasis-color-rgb: 255, 255, 255;
      --bs-secondary-color: #969DA6;
      --bs-secondary-color-rgb: 150, 157, 166;
      --bs-tertiary-bg: #1D2026;
      --bs-tertiary-bg-rgb: 29, 32, 38;
      --bs-border-color: #2B2F36;
      --bs-border-color-translucent: rgba(255, 255, 255, 0.12);
      --bs-link-color: #8AA0F5;
      --bs-link-color-rgb: 138, 160, 245;
      --bs-link-hover-color: #A8BAFF;
      --bs-link-hover-color-rgb: 168, 186, 255;
    }
    .btn-dark {
      --bs-btn-bg: #E9EBE6;
      --bs-btn-color: #14161A;
      --bs-btn-border-color: #E9EBE6;
      --bs-btn-hover-bg: #FFFFFF;
      --bs-btn-hover-color: #14161A;
      --bs-btn-hover-border-color: #FFFFFF;
    }
  }
  
  body { font-size: 1.0625rem; }
  
  /* Keep prose readable — Bootstrap containers alone run too wide. */
  .measure { max-width: 38rem; }
  
  .eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }
  
  /* ── Hero block field ──────────────────────────────────────────
     Each rectangle is sized in proportion to the number inside it.
     This is the app's own premise, used to explain it at a glance. */
  
  .field {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(0, 1fr);
    aspect-ratio: 16 / 9;
    gap: 3px;
    padding: 3px;
    max-width: 46rem;
    border: 1px solid var(--bs-border-color);
    background: var(--bs-tertiary-bg);
  }
  
  .blk {
    background: var(--block);
    color: var(--block-ink);
    padding: 0.5rem 0.65rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
  }
  
  .blk.hot { background: var(--amber); color: #14161A; }
  
  .blk .name {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .blk .size {
    font-family: var(--bs-font-monospace);
    font-size: 0.68rem;
    opacity: 0.72;
  }
  
  .blk.hot .name { font-size: 0.95rem; }
  .blk.hot .size { font-size: 0.8rem; opacity: 0.8; }
  
  @keyframes rise {
    from { opacity: 0; transform: scale(0.94); }
    to   { opacity: 1; transform: scale(1); }
  }
  
  @media (prefers-reduced-motion: reduce) {
    .blk { animation: none; }
  }
  
  @media (max-width: 34rem) {
    .field { aspect-ratio: 4 / 3; }
    .blk:not(.hot) .size { display: none; }
    .blk:not(.hot) .name { font-size: 0.62rem; }
  }