/* Reusable surfaces: header, navigation, buttons, cards, notices, footer.
 *
 * Interactive surfaces follow the ALYSSIUN design laws: frosted glass material,
 * sharp industrial radius (2–4px), a thin hairline border, and a physical lift
 * on hover. No pills, no solid blue/red primaries, no bevels or embossing.
 */

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 0.2rem + 2vw, 2.4rem);
  padding: 0.85rem var(--gutter);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--hair);
  backdrop-filter: blur(var(--blur-strong)) saturate(1.3);
  -webkit-backdrop-filter: blur(var(--blur-strong)) saturate(1.3);
}

.brand { display: inline-flex; align-items: baseline; gap: 0.6rem; flex: none; }

/* ALYSSIUN is always all-caps. */
.brand-mark {
  font-size: 0.83rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.brand-sub {
  font-size: 0.72rem;
  font-weight: var(--weight-regular);
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav { display: none; gap: clamp(0.9rem, 1.4vw, 1.7rem); margin-inline-start: auto; }

.site-nav a {
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  color: var(--muted);
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--hair-2); }

.header-actions { display: flex; align-items: center; gap: 0.6rem; margin-inline-start: auto; }
.site-nav ~ .header-actions { margin-inline-start: 0; }

/* Below the desktop breakpoint the header carries only the brand, the
   atmosphere control and the menu button — a fourth control does not fit at
   390px. The sign-in action lives in the mobile menu instead. */
.header-actions .btn { display: none; }

/* --- Buttons: kinetic glass ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;                    /* usable touch target */
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius);        /* sharp industrial radius */
  border: 1px solid var(--hair-2);
  background: var(--glass-2);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  color: var(--text);
  font-family: inherit;
  font-size: var(--step--1);
  font-weight: var(--weight-bold);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease),
    border-color var(--fast) var(--ease),
    background-color var(--fast) var(--ease);
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--lift-shadow); border-color: var(--text); }
.btn:active { transform: translateY(0); box-shadow: none; }

.btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
  border-color: var(--primary);
}

.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }

.btn-quiet { background: transparent; border-color: var(--hair); color: var(--muted); }
.btn-quiet:hover { color: var(--text); }

.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

/* --- Atmosphere + menu controls ------------------------------------------ */
.atmosphere-toggle,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.7rem;
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  color: var(--muted);
  font-family: inherit;
  cursor: pointer;
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.atmosphere-toggle:hover,
.nav-toggle:hover { color: var(--text); border-color: var(--hair-2); }

.atmosphere-label {
  font-size: 0.66rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.20em;
}

.nav-toggle-bars { display: flex; flex-direction: column; gap: 4px; width: 17px; }
.nav-toggle-bars i { display: block; height: 1.5px; background: currentColor; }
.nav-toggle-bars i:nth-child(2) { width: 62%; }

.site-nav-mobile {
  display: flex;
  flex-direction: column;
  padding: 0.5rem var(--gutter) 1.25rem;
  border-bottom: 1px solid var(--hair);
  background: var(--nav-bg);
  backdrop-filter: blur(var(--blur-strong));
  -webkit-backdrop-filter: blur(var(--blur-strong));
}

.site-nav-mobile[hidden] { display: none; }
.site-nav-mobile a { padding: 0.85rem 0; border-bottom: 1px solid var(--hair); }
.site-nav-mobile a:last-child { border-bottom: 0; }

/* --- Cards --------------------------------------------------------------- */
.card {
  padding: clamp(1.35rem, 1rem + 1.1vw, 2rem);
  background: var(--glass);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}

.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--muted); font-size: var(--step--1); line-height: 1.6; }

.card-step { display: flex; flex-direction: column; gap: 0.35rem; }

.card-step .step-index {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* --- Empty states: honest by design -------------------------------------- */
.empty-state {
  padding: clamp(2rem, 1.5rem + 2vw, 3.25rem);
  border: 1px dashed var(--hair-2);
  border-radius: var(--radius-lg);
  background: var(--glass);
  text-align: center;
}

.empty-state p { margin-inline: auto; color: var(--muted); }

/* --- Notices ------------------------------------------------------------- */
.notice {
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--hair);
  border-left: 3px solid var(--muted);
  border-radius: var(--radius);
  background: var(--glass);
  font-size: var(--step--1);
  color: var(--muted);
}

.notice strong { color: var(--text); }

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  margin-top: var(--section-gap);
  padding: var(--section-gap) var(--gutter) 2.5rem;
  border-top: 1px solid var(--hair);
  background: var(--glass);
}

.footer-grid {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  display: grid;
  gap: 2.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}

.footer-tagline { margin-top: 0.75rem; font-size: var(--step--1); color: var(--muted); }
.footer-grid h2 { font-size: var(--step--1); font-weight: var(--weight-bold);
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.5rem; font-size: var(--step--1); }
.footer-grid a:hover { text-decoration: underline; text-underline-offset: 0.22em; }
.footer-note { margin-top: 0.9rem; font-size: 0.75rem; color: var(--muted); }

.legal-status {
  width: 100%;
  max-width: var(--shell);
  margin: 2.75rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hair);
  font-size: 0.78rem;
  color: var(--muted);
  max-width: none;
}

.site-nav-mobile .mobile-signin { margin-top: 1rem; align-self: flex-start; }

@media (min-width: 60rem) {
  .site-nav { display: flex; }
  .header-actions .btn { display: inline-flex; }
  .nav-toggle { display: none; }
  .site-nav-mobile { display: none !important; }
}
