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

   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__copy">
           <span>DESIGN + CARE</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 · min-height 24px
     label 8px / 800 / .14em uppercase · name 12px / 800 / .03em
     opacity 1 at rest, .9 on hover, translateY(-1px) on hover
   ========================================================================== */

/* --- 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 -------------------------------------------------------------- */
.hdc-credit{
  display:inline-flex;
  align-items:center;
  gap:11px;
  /* The type is 21px tall; 24px is the minimum for a tap target, and the
     extra sits above and below the words, so nothing moves. */
  min-height:24px;
  padding:0;
  background:none;
  border:0;
  border-radius:0;
  box-shadow:none;
  text-decoration:none;
  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 was retired from the lockup, so the credit is now type only and the
   heart carries the brand color instead. Kept as a rule (rather than removed
   from every page's markup) so existing pages need no edit. */
.hdc-credit__mark{
  display:none;
}

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

.hdc-credit__copy span{
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:8px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  line-height:1;
  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. The label keeps the same contrast
   step below the name that the color version has. */
.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 (optional) -----------------------------------------------
   The credit belongs in the BOTTOM-RIGHT of the footer, on the last rail,
   opposite the copyright line.

   These two helpers reproduce that rail. They are optional: if your footer
   already has a bottom row, just drop .hdc-credit into it and right-align it
   yourself. See README.md for the markup.

     <div class="hdc-credit-bar">
       <p>&copy; 2026 Your Company. All rights reserved.</p>
       <div class="hdc-credit-wrap"> ...the lockup... </div>
     </div>
*/
.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) auto;   /* legal | credit */
  gap:28px;
  align-items:center;
}
.hdc-credit-wrap{
  display:flex;
  justify-content:flex-end;                    /* pins it to the right */
  padding-top:13px;
}

/* On a dark footer the hairline needs to be light, not dark. */
.hdc-credit-bar--on-dark{border-top-color:rgba(255,255,255,.16)}

/* The credit stays pinned right at EVERY width. It never stacks under the
   legal line and never left-aligns. These breakpoints mirror the live rail on
   hannahdesignco.com: the columns just tighten as the screen narrows, and
   below 430px the credit takes a fixed 190px column so it keeps its place. */
@media (max-width:1024px){
  .hdc-credit-bar{gap:18px;align-items:start}
  .hdc-credit-wrap{align-self:start}
}
@media (max-width:700px){
  .hdc-credit-bar{gap:12px}
}
@media (max-width:430px){
  .hdc-credit-bar{grid-template-columns:minmax(0,1fr) 190px;gap:10px}
}

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

/* Forced-colors / high-contrast: gradient text has no color 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}
}
