/* ==========================================================================
   drygit — site layer
   Loaded on every page via templates/custom/header.tmpl.
   Global rules are deliberately few; everything for the landing page is
   scoped under .drygit-home so it cannot leak into the forge UI.
   ========================================================================== */

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tighten tracking on large headings — at display sizes the default spacing
   reads loose. Small text is left alone, where tracking aids legibility. */
h1, h2, .ui.header {
  letter-spacing: -0.011em;
}

/* --------------------------------------------------------------------------
   Landing page
   -------------------------------------------------------------------------- */

.page-content.drygit-home {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: clamp(520px, 76vh, 760px);
  padding: clamp(3rem, 9vh, 7rem) 1.5rem clamp(3.5rem, 10vh, 6rem);
}

/* A single soft wash of the accent behind the mark. The only decoration on
   the page — it gives the composition a light source without adding noise. */
.page-content.drygit-home::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  width: min(900px, 130%);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 50%,
    rgba(144, 180, 223, 0.13) 0%,
    rgba(144, 180, 223, 0.055) 32%,
    transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.page-content.drygit-home > * {
  position: relative;
  z-index: 1;
}

/* ---- mark ---- */
.dg-mark {
  width: clamp(56px, 8vw, 72px);
  height: auto;
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.75));
}

/* ---- wordmark ---- */
.dg-wordmark {
  margin: 1.6rem 0 0;
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  color: #f2f4f7;
}

.dg-wordmark span {
  color: #8d99a8;
}

/* ---- hostname ---- */
.dg-host {
  margin: 0.85rem 0 0;
  font-family: var(--fonts-monospace);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  color: #697381;
}

/* ---- tagline ---- */
.dg-tagline {
  margin: 1.75rem auto 0;
  max-width: 33ch;
  font-size: clamp(1rem, 2.1vw, 1.1875rem);
  line-height: 1.55;
  color: #bcc4ce;
}

/* ---- actions ---- */
.dg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2.25rem;
}

.page-content.drygit-home a.dg-btn {
  display: inline-flex;
  align-items: center;
  height: 2.75rem;
  padding: 0 1.4rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, transform 0.15s ease;
}

.page-content.drygit-home a.dg-btn:hover {
  transform: translateY(-1px);
}

/* Near-white call to action — the one high-contrast element on the page,
   so the eye lands on it without anything else competing. */
.page-content.drygit-home a.dg-btn-solid {
  background: #f2f4f7;
  color: #0f1115;
}

.page-content.drygit-home a.dg-btn-solid:hover,
.page-content.drygit-home a.dg-btn-solid:focus {
  background: #ffffff;
  color: #0f1115;
}

.page-content.drygit-home a.dg-btn-ghost {
  border-color: rgba(255, 255, 255, 0.13);
  color: #d7dce2;
}

.page-content.drygit-home a.dg-btn-ghost:hover,
.page-content.drygit-home a.dg-btn-ghost:focus {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.035);
  color: #f2f4f7;
}

/* ---- meta row ---- */
.dg-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0;
  justify-content: center;
  margin: 3.25rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--fonts-monospace);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #525b69;
}

.dg-meta li {
  display: flex;
  align-items: center;
}

/* Separators between items rather than after the last one. */
.dg-meta li + li::before {
  content: "";
  flex: none;
  width: 3px;
  height: 3px;
  margin: 0 1.4rem;
  border-radius: 50%;
  background: currentcolor;
  opacity: 0.55;
}

/* Narrow phones: the meta row is one line of monospace and would otherwise
   wrap, stranding a separator dot at the start of the second line. */
@media (max-width: 26rem) {
  .dg-meta {
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
  }

  .dg-meta li + li::before {
    margin: 0 0.9rem;
  }
}

/* --------------------------------------------------------------------------
   Entrance — a short stagger so the page assembles rather than snapping in.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .drygit-home .dg-rise {
    opacity: 0;
    animation: dg-rise 0.62s cubic-bezier(0.22, 0.68, 0.36, 1) forwards;
  }

  .drygit-home .dg-mark      { animation-delay: 0.02s; }
  .drygit-home .dg-wordmark  { animation-delay: 0.09s; }
  .drygit-home .dg-host      { animation-delay: 0.15s; }
  .drygit-home .dg-tagline   { animation-delay: 0.21s; }
  .drygit-home .dg-actions   { animation-delay: 0.27s; }
  .drygit-home .dg-meta      { animation-delay: 0.34s; }
}

@keyframes dg-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

