/* Zero Effort Platform - Shared Theme Stylesheet
 * Used by homepage (index.html) and bio page (bio/index.php)
 * Extracted: 2025-11-20
 */

/* ========================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ======================================== */

:root {
  /* Color Palette */
  --bg: #000;
  --fg: #f5f5f5;
  --veil: #2a2a2a;
  --accent: #bdbdbd;

  /* Layout Constraints */
  --maxw: 1100px;

  /* Visual Effects */
  --radius: 10px;
  --shadow: 0 0 0 1px rgba(255,255,255,.04), 0 10px 40px rgba(0,0,0,.6);

  /* Animation Timing */
  --speed: 420ms;
  --easing: cubic-bezier(.22,.61,.36,1);
}

/* ========================================
   GLOBAL BASE STYLES
   ======================================== */

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;

  /* Intro fade animation (subtle) */
  opacity: 0;
  transform: translateY(6px);
  animation: reveal 800ms var(--easing) forwards;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Veil effect for interactive elements */
.veil {
  filter: brightness(15%);
  transition: filter var(--speed) var(--easing),
              opacity var(--speed) var(--easing),
              border-color var(--speed) var(--easing);
}

.veil:hover,
.veil:focus-visible {
  filter: none;
  outline: none;
}

/* Visually hidden (screen reader only) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   BUTTON COMPONENTS
   ======================================== */

.btn {
  appearance: none;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--fg);
  font-weight: 600;
  letter-spacing: .02em;
  padding: 14px 22px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow);
  text-transform: uppercase;
  font-size: .95rem;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.btn--header {
  padding: 12px 22px;
  border-radius: 999px;
}

/* ========================================
   SITE HEADER COMPONENT
   ======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(6,6,6,.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
}

.site-header__inner {
  margin: 0 auto;
  width: 100%;
  max-width: var(--maxw);
  padding: clamp(18px,3vw,28px) clamp(16px,3vw,32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--fg);
}

.site-header__glyph {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .08em;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
}

.site-header__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-header__title {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-header__subtitle {
  margin: 0;
  color: var(--veil);
  font-size: .85rem;
  letter-spacing: .04em;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-header__auth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
}

/* ========================================
   FOOTER COMPONENT
   ======================================== */

footer {
  color: var(--veil);
  text-align: center;
  font-size: .9rem;
  padding: 24px 16px;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

/* ========================================
   MODAL COMPONENTS (Shared Base)
   ======================================== */

dialog {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  max-width: min(680px, 92vw);
  width: 100%;
  box-shadow: 0 30px 120px rgba(0,0,0,.85);
  background: #0b0b0b;
  color: var(--fg);
}

dialog::backdrop {
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(4px);
}

/* Contact Modal */
.contact-modal {
  border: none;
  border-radius: 20px;
  padding: 0;
  background: rgba(8,8,8,.95);
  color: #e0e0e0;
  border: 1px solid #2a2a2a;
  box-shadow: 0 40px 120px rgba(0,0,0,.8);
  width: min(640px, 90vw);
  max-height: calc(100vh - 4rem);
  overflow: hidden;
}

.contact-modal::backdrop {
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(8px);
}

.contact-modal__inner {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

.contact-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.contact-modal__identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-modal__logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 1px solid #333;
  background: rgba(30,30,30,.85);
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.contact-modal__logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.contact-modal__eyebrow {
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #555;
}

.contact-modal__title {
  font-size: 1.8rem;
  color: #fff;
  margin: 0;
}

.contact-modal__close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #333;
  background: rgba(20,20,20,.8);
  color: #fff;
  cursor: pointer;
  transition: all .2s ease;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-modal__close:hover {
  transform: scale(1.05);
  border-color: #555;
}

.contact-modal__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-modal__intro {
  color: #b5b5b5;
  font-size: .95rem;
}

.contact-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-modal__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-modal__field label {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #888;
}

.contact-modal__field input,
.contact-modal__field textarea {
  border-radius: 10px;
  border: 1px solid #2a2a2a;
  background: rgba(12,12,12,.8);
  color: #e0e0e0;
  padding: 8px 16px;
  transition: all .2s ease;
  font-family: inherit;
}

.contact-modal__field textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-modal__field input:focus,
.contact-modal__field textarea:focus {
  border-color: #555;
  background: rgba(18,18,18,.95);
  outline: none;
}

.contact-modal__note {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #555;
}

.contact-modal__turnstile {
  padding: 8px;
  border-radius: 10px;
  border: 1px solid #333;
  background: rgba(12,12,12,.7);
}

.contact-modal__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.contact-modal__status {
  flex: 1;
  min-height: 1.25rem;
  font-size: .85rem;
  color: #b5b5b5;
}

.contact-modal__status--ok {
  color: #7de8b0;
}

.contact-modal__status--bad {
  color: #ff9696;
}

/* Login Modal */
.login-modal {
  border: none;
  padding: 0;
  background: transparent;
  width: min(500px, 92vw);
  max-height: calc(100vh - 4rem);
}

.login-modal::backdrop {
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(8px);
}

.login-modal__inner {
  padding: 32px;
  border-radius: 20px;
  border: 1px solid #444;
  background: rgba(18,18,18,.95);
  box-shadow: 0 24px 48px rgba(0,0,0,.45);
  color: #e0e0e0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}

.login-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.login-modal__identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.login-modal__logo {
  inline-size: 44px;
  aspect-ratio: 1/1;
  border-radius: 10px;
  border: 1px solid #444;
  background: rgba(30,30,30,.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.login-modal__logo img {
  max-width: 70%;
  height: auto;
  object-fit: contain;
}

.login-modal__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.login-modal__eyebrow {
  font-size: .75rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #888;
}

.login-modal__title {
  font-size: 1.6rem;
  color: #fff;
  font-weight: 700;
  margin: 0;
}

.login-modal__close {
  inline-size: 40px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  border: 1px solid #333;
  background: rgba(20,20,20,.8);
  color: #fff;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
  transition: all .2s ease;
}

.login-modal__close:hover {
  transform: scale(1.05);
  border-color: #555;
}

.login-modal__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-modal__subtitle {
  color: #b5b5b5;
  font-size: .9rem;
  margin: 0;
}

.login-modal__providers {
  display: grid;
  gap: 8px;
}

.login-provider {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 48px;
  padding: 0 1.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.login-provider:hover {
  transform: translateY(-1px);
}

.login-provider:disabled {
  cursor: wait;
  opacity: .65;
}

.login-provider__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.login-provider__icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.login-provider--google {
  background: #fff;
  border-color: #dadce0;
  color: #3c4043;
}

.login-provider--google:hover {
  background: #f7f8f8;
  border-color: #c2c8ce;
  box-shadow: 0 1px 2px rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
}

.login-provider--apple {
  background: #000;
  border-color: #000;
  color: #fff;
}

.login-provider--apple:hover {
  background: #1c1c1e;
  border-color: #1c1c1e;
  box-shadow: 0 6px 12px rgba(0,0,0,.35);
}

.login-provider--github {
  background: #24292f;
  border-color: #1f2328;
  color: #fff;
}

.login-provider--github:hover {
  background: #1b1f24;
  border-color: #1b1f24;
  box-shadow: 0 8px 16px rgba(12,14,17,.28);
}

.login-provider--x {
  background: #000;
  border-color: #2f3336;
  color: #fff;
}

.login-provider--x:hover {
  background: #14171a;
  border-color: #1b1f24;
  box-shadow: 0 8px 16px rgba(0,0,0,.35);
}

.login-modal__status {
  min-height: 1.5rem;
  font-size: .85rem;
  color: #888;
}

.login-modal__status--error {
  color: #ff9c9c;
}

.login-modal__policy {
  font-size: .75rem;
  line-height: 1.5;
  color: #888;
  margin: 0;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

@media (max-width: 640px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .site-header__auth {
    min-width: 0;
  }

  .btn--header {
    width: 100%;
    justify-content: center;
  }

  .contact-modal__inner {
    padding: 24px;
  }

  .contact-modal__grid {
    grid-template-columns: 1fr;
  }

  .contact-modal__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-modal__status {
    text-align: left;
  }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .veil {
    transition: none;
  }

  dialog::backdrop {
    backdrop-filter: none;
  }
}
