/* contact.css
   Clean contact page with the same accents as your posts:
   - color-mix borders/backgrounds
   - rounded cards
   - same hover feel
   Desktop layout fixes:
   - uses more horizontal space
   - right column gets real width
   - cards never become tiny (auto-fit + min card width)
*/

/* page */
.contact-page{
  color: inherit;
}

/* if your global .wrap constrains width too much, unlock it ONLY for contact */
.contact-page .wrap{
  width: 100%;
  max-width: none;
}

/* topbar */
.contact-topbar{
  width: min(1600px, 100%);
  margin: 0 auto;
  padding: 16px clamp(1rem, 4vw, 3rem) 0;
}

.contact-back{
  text-decoration: none;
  font-weight: 800;
  color: color-mix(in srgb, currentColor 78%, transparent);
}
.contact-back:hover{ text-decoration: underline; }

/* main layout */
.contact-container{
  width: min(1600px, 100%);
  margin: 0 auto;
  padding: 18px clamp(1rem, 4vw, 3rem) 3rem;

  display: grid;
  /* left column stays readable, right column gets the rest */
  grid-template-columns: minmax(360px, 460px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

/* left hero */
.contact-hero{
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, currentColor 4%, transparent);
  padding: 20px;
  height: fit-content;

  position: sticky;
  top: 18px;
}

.contact-kicker{
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: .18em;
  font-weight: 900;
  color: color-mix(in srgb, currentColor 58%, transparent);
}

.contact-title{
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 2.4vw, 2.35rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: color-mix(in srgb, currentColor 92%, transparent);
}

.contact-subtitle{
  margin: 0 0 14px;
  max-width: 70ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: color-mix(in srgb, currentColor 74%, transparent);
}

/* chips */
.contact-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
}

.contact-chip{
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;

  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  background: color-mix(in srgb, currentColor 6%, transparent);
  color: color-mix(in srgb, currentColor 82%, transparent);
  text-decoration: none;

  font-weight: 900;
  font-size: 12px;
}
.contact-chip:hover{
  border-color: color-mix(in srgb, currentColor 22%, transparent);
  background: color-mix(in srgb, currentColor 9%, transparent);
}

/* note */
.contact-note{
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}

.contact-note__label{
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  color: color-mix(in srgb, currentColor 58%, transparent);
}
.contact-note__text{
  font-weight: 800;
  color: color-mix(in srgb, currentColor 78%, transparent);
}

/* right side sections wrapper */
.contact-sections{
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  border-radius: 18px;
  overflow: hidden;
  background: color-mix(in srgb, currentColor 3%, transparent);
}

.contact-section{
  padding: 22px;
}

.contact-section + .contact-section{
  border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}

.contact-h2{
  margin: 0 0 12px;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: color-mix(in srgb, currentColor 92%, transparent);
}

/* cards grid: never tiny cards */
.contact-grid{
  display: grid;
  gap: 12px;

  /* key: cards keep a minimum width; grid chooses 1/2/3 cols automatically */
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* card */
.contact-card{
  display: block;
  padding: 14px 14px 12px;
  border-radius: 16px;

  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  background: color-mix(in srgb, currentColor 6%, transparent);
  text-decoration: none;

  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;

  height: 100%;
}

.contact-card:hover{
  transform: translateY(-1px);
  border-color: color-mix(in srgb, currentColor 22%, transparent);
  background: color-mix(in srgb, currentColor 8%, transparent);
}

.contact-card__top{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;

  /* prevents ugly squishing if a handle is long */
  flex-wrap: wrap;
}

.contact-card__title{
  font-weight: 900;
  letter-spacing: -0.01em;
  color: color-mix(in srgb, currentColor 92%, transparent);
}

.contact-card__handle{
  font-weight: 900;
  font-size: 0.95rem;
  color: color-mix(in srgb, currentColor 62%, transparent);
  overflow-wrap: anywhere;
}

.contact-card__desc{
  margin: 0 0 10px;
  line-height: 1.6;
  color: color-mix(in srgb, currentColor 78%, transparent);

  /* keeps CTA placement consistent across cards */
  min-height: 2.6em;
}

.contact-card__cta{
  display: inline-flex;
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--clr4);
}

.contact-card--static{
  cursor: default;
}
.contact-card--static:hover{
  transform: none;
}

/* callout */
.contact-callout{
  border: 1px dashed color-mix(in srgb, currentColor 18%, transparent);
  background: color-mix(in srgb, currentColor 5%, transparent);
  border-radius: 16px;
  padding: 14px;
}

.contact-callout__p{
  margin: 0;
  line-height: 1.7;
  color: color-mix(in srgb, currentColor 78%, transparent);
  max-width: 78ch;
}

.contact-callout__p + .contact-callout__p{
  margin-top: 10px;
}

.contact-callout__muted{
  color: color-mix(in srgb, currentColor 64%, transparent);
}

.contact-callout a{
  color: var(--clr4);
  text-decoration: none;
  font-weight: 900;
}
.contact-callout a:hover{ text-decoration: underline; }

/* responsive */
@media (max-width: 980px){
  .contact-container{
    grid-template-columns: 1fr;
  }
  .contact-hero{
    position: static;
  }
}

@media (max-width: 760px){
  .contact-topbar{
    padding: 12px 1rem 0;
  }
  .contact-container{
    padding: 12px 1rem 2rem;
  }
  .contact-hero,
  .contact-section{
    padding: 16px;
  }
}
