/* ─────────────────────────────────────────────────────────────────
   TK Calendar Button
   Lives at: /scripts/tk-cal-button.css
   Used on:  /dates and anywhere else linking to the calendar.

   Markup needed in the page:
     <a href="https://teamkilimanjaro.com/tk-calendar.html" class="tk-cal-button">
       <span class="compass">N · 03°04'33"S</span>
       <span class="eyebrow">Live availability</span>
       <span class="title">Browse <em>scheduled</em> expeditions<span class="arrow">→</span></span>
       <span class="sub">Join an existing climb · Tanzania &amp; Nepal</span>
     </a>
   ───────────────────────────────────────────────────────────────── */

.tk-cal-button {
  display: block;
  position: relative;
  text-decoration: none;
  color: #1c1a17;
  background: #ede6d6;
  border: 1px solid #1c1a17;
  border-radius: 4px;
  padding: 44px 56px 38px;
  width: 100%;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
  isolation: isolate;
  font-family: 'IBM Plex Mono', monospace;
  text-align: center;
  box-sizing: border-box;
}

/* Engraved double-rule border that floats inside the button */
.tk-cal-button::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid #1c1a17;
  border-radius: 2px;
  pointer-events: none;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

/* Soft warm depth at the bottom-right corner — kept subtle so text stays legible */
.tk-cal-button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at bottom right,
    rgba(28, 26, 23, 0.18) 0%,
    transparent 65%);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: -1;
  pointer-events: none;
}

.tk-cal-button:hover {
  color: #f5f0e6;
  background: #1c1a17;
  border-color: #b8451f;
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -20px rgba(28, 26, 23, 0.4);
}
.tk-cal-button:hover::after { opacity: 1; }
.tk-cal-button:hover::before { opacity: 0.55; border-color: #c5a056; }
.tk-cal-button:active { transform: translateY(0); transition-duration: 0.1s; }

/* Eyebrow */
.tk-cal-button .eyebrow {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  margin-bottom: 18px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}
.tk-cal-button:hover .eyebrow { opacity: 1; }

/* Main title — serif italic, the moment of luxury */
.tk-cal-button .title {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.tk-cal-button .title em {
  font-style: italic;
  color: #b8451f;
  transition: color 0.5s ease;
}
.tk-cal-button:hover .title em { color: #c5a056; }
.tk-cal-button .title em::after {
  content: '';
  display: block;
  height: 1px;
  width: 0;
  background: #c5a056;
  margin: 4px auto 0;
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tk-cal-button:hover .title em::after { width: 60%; }

/* Sub label — quiet, factual, watch-dial subtitle feel */
.tk-cal-button .sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-top: 22px;
  opacity: 0.65;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.tk-cal-button .sub::before,
.tk-cal-button .sub::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
  max-width: 60px;
}

/* Compass mark in the top-right corner */
.tk-cal-button .compass {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 9px;
  letter-spacing: 0.15em;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}
.tk-cal-button:hover .compass { opacity: 0.85; }

/* Arrow that travels on hover */
.tk-cal-button .arrow {
  display: inline-block;
  margin-left: 12px;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tk-cal-button:hover .arrow { transform: translateX(8px); }

/* Mobile */
@media (max-width: 600px) {
  .tk-cal-button { padding: 32px 24px 28px; }
  .tk-cal-button .title { font-size: 30px; }
  .tk-cal-button .eyebrow { font-size: 9px; letter-spacing: 0.3em; }
  .tk-cal-button .compass { font-size: 8px; top: 12px; right: 12px; }
  .tk-cal-button .sub { font-size: 10px; letter-spacing: 0.18em; margin-top: 18px; }
  .tk-cal-button .sub::before, .tk-cal-button .sub::after { max-width: 30px; }
}
