/* ==========================================================================
   Hannah Design Co. — design credit lockup
   Drop-in stylesheet. Self-contained: no dependencies, no build step.

   v2 — FIXED PLACEMENT
   The lockup now occupies the same place on every screen. Nothing about it
   is responsive: it never reflows, never re-aligns, never resizes. Only the
   colour changes — gradient on light grounds, white on dark ones.

   USAGE
     <link rel="stylesheet" href="hdco-credit/hdco-credit.css">

     Light background (default):
       <a class="hdc-credit" href="https://hannahdesignco.com"
          target="_blank" rel="noopener" aria-label="Visit Hannah Design Co.">
         <span class="hdc-credit__mark" aria-hidden="true"></span>
         <span class="hdc-credit__copy">
           <span>DESIGN + MANAGEMENT</span>
           <strong>HANNAH DESIGN CO.</strong>
         </span>
       </a>

     Dark background — add one class:
       <a class="hdc-credit hdc-credit--on-dark" ...>

   PATHS
     The url() references below are relative to THIS file. Keep the folder
     intact (hdco-credit.css beside fonts/ and logo/) and it works anywhere.

   SPEC — these numbers are the lockup. Don't round them.
     gap 11px · mark 20x25 · copy gap 0 · line-height 1.12
     label 8px / 800 / .14em uppercase · name 12px / 800 / .03em
     opacity 1 at rest, .9 on hover, translateY(-1px) on hover
     bottom rail: margin-top 26px · padding-top 13px · hairline 1px
   ========================================================================== */

/* --- Manrope ------------------------------------------------------------
   Namespaced to HDCManrope so it can never collide with a host site's own
   Manrope declaration or get overridden by one. */
@font-face{
  font-family:"HDCManrope";
  font-style:normal;
  font-weight:200 800;
  font-display:swap;
  src:url("fonts/manrope-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,
    U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:"HDCManrope";
  font-style:normal;
  font-weight:200 800;
  font-display:swap;
  src:url("fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,
    U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,
    U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* --- Lockup --------------------------------------------------------------
   Fixed size at every viewport. No clamp(), no vw units, no breakpoints.
   The whole lockup measures 20 + 11 + copy wide and 25px tall, always. */
.hdc-credit{
  display:inline-flex;
  align-items:center;
  gap:11px;
  height:25px;
  padding:0;
  margin:0;
  background:none;
  border:0;
  border-radius:0;
  box-shadow:none;
  text-decoration:none;
  white-space:nowrap;
  font-family:"HDCManrope","Helvetica Neue",Arial,sans-serif;
  font-style:normal;
  transition:transform .18s ease,opacity .2s ease;
}
.hdc-credit:hover,
.hdc-credit:focus-visible{
  transform:translateY(-1px);
  opacity:.9;
  text-decoration:none;
}

/* The mark is a background image so a single modifier class can swap the
   colour version for the white one without touching the markup. */
.hdc-credit__mark{
  flex:0 0 20px;
  width:20px;
  height:25px;
  background:center/contain no-repeat url("logo/hdc-mark-gradient.svg");
}

.hdc-credit__copy{
  display:flex;
  flex-direction:column;
  gap:0;
  line-height:1.12;
}

.hdc-credit__copy span{
  font-size:8px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#71767A;
}

.hdc-credit__copy strong{
  font-size:12px;
  font-weight:800;
  letter-spacing:.03em;
  background:linear-gradient(110deg,
    #8914BC 0%,#8B1BC0 20%,#0043AA 46%,
    #26859C 66%,#41B492 81%,#52D18C 92%,#59DC8A 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  color:transparent;
}

/* --- Dark grounds -------------------------------------------------------
   Knocks the whole lockup out in white. Same geometry, different ink — the
   only thing that may ever change between one page and the next.

   Rule of thumb: gradient version on white / near-white / pale tints,
   white version on anything darker than roughly #6b7280. */
.hdc-credit--on-dark .hdc-credit__mark{
  background-image:url("logo/hdc-mark-white.svg");
}
.hdc-credit--on-dark .hdc-credit__copy span{
  color:rgba(255,255,255,.76);
}
.hdc-credit--on-dark .hdc-credit__copy strong{
  background:none;
  -webkit-text-fill-color:#fff;
  color:#fff;
}

/* --- Placement -----------------------------------------------------------
   The credit belongs in the BOTTOM-RIGHT of the footer, on the last rail,
   opposite the copyright line — in exactly that spot on every screen size.

     <div class="hdc-credit-bar">          <!-- add --on-dark on dark footers -->
       <p class="hdc-credit-bar__legal">&copy; 2026 Your Company. All rights reserved.</p>
       <div class="hdc-credit-wrap"> ...the lockup... </div>
     </div>

   The rail is a two-column grid at EVERY width: legal left, credit right,
   both centred on the same axis. It does not stack, wrap, or re-align — a
   visitor moving from desktop to phone sees the lockup in the same corner,
   the same size, the same distance from the edge of the content column. */
.hdc-credit-bar{
  margin-top:26px;
  padding-top:13px;
  border-top:1px solid rgba(20,24,31,.10);
  display:grid;
  grid-template-columns:minmax(0,1fr) 190px;  /* legal | credit — fixed */
  gap:16px;
  align-items:center;
}
.hdc-credit-wrap{
  grid-column:2;
  display:flex;
  justify-content:flex-end;   /* pinned right, always */
  align-items:center;
  padding:0;
}

/* Optional: the legal line that sits opposite. Wraps under itself rather
   than pushing the credit around. */
.hdc-credit-bar__legal{
  margin:0;
  min-width:0;
  font-size:12px;
  line-height:1.55;
  font-weight:600;
  color:rgba(20,24,31,.55);
  text-wrap:pretty;
}

/* On a dark footer the hairline and the legal line need light ink. */
.hdc-credit-bar--on-dark{border-top-color:rgba(255,255,255,.16)}
.hdc-credit-bar--on-dark .hdc-credit-bar__legal{color:rgba(255,255,255,.55)}

/* Very narrow phones: the legal line gets the space it needs by shortening
   itself, never by moving the credit. The 190px credit column is fixed. */
@media (max-width:360px){
  .hdc-credit-bar{gap:12px}
  .hdc-credit-bar__legal{font-size:11px}
}

/* --- Accessibility ------------------------------------------------------- */
@media (prefers-reduced-motion:reduce){
  .hdc-credit{transition:none}
  .hdc-credit:hover,
  .hdc-credit:focus-visible{transform:none}
}

/* Forced-colours / high-contrast: gradient text has no colour of its own, so
   hand it back a real one or it disappears. */
@media (forced-colors:active){
  .hdc-credit__copy strong{
    background:none;
    -webkit-text-fill-color:LinkText;
    color:LinkText;
  }
  .hdc-credit__copy span{color:CanvasText}
}
