/* ============================================================
   WriteALine — Maintenance
   style.css · base, tokens, layout, components
   Everything Begins With a Line.
   ============================================================ */

:root {
  --bg: #0a0e1a;
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.78);
  --text-faint: rgba(255, 255, 255, 0.6);

  --accent-1: #8b7cff;
  --accent-2: #4ae3c4;

  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.14);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: var(--accent-1);
  color: #fff;
}

/* ---- Background & overlay ---- */

.stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: translateZ(0);
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

/* ---- Layout ---- */

.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  width: min(100%, 1100px);
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 5vw, 3rem);
  text-align: center;
  gap: clamp(1.5rem, 4vh, 2.5rem);
}

/* ---- Main (centra brand + hero no espaço livre) ---- */

.content__main {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  gap: 24px;
}

/* ---- Brand ---- */

.brand__logo {
  display: block;
  width: auto;
  height: clamp(2.25rem, 6vw, 2.75rem);
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.35));
}

/* ---- Hero ---- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 46rem;
}

.hero__eyebrow {
  font-size: clamp(0.72rem, 1.5vw, 0.8rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-2);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  margin-bottom: 1.4rem;
}

.hero__title {
  font-size: clamp(2rem, 6.5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.hero__typewriter {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: min(100%, 36rem);
  padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1.25rem, 3.5vw, 2.5rem);
  background: rgba(10, 14, 26, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.typewriter-card__icon {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  width: clamp(2.6rem, 5vw, 3.25rem);
  height: clamp(2.6rem, 5vw, 3.25rem);
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.18;
  z-index: -1;
  filter: drop-shadow(0 0 10px rgba(74, 227, 196, 0.3));
  pointer-events: none;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-soft);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
  min-height: 1.7em;
}

.typewriter__cursor {
  display: inline-block;
  width: 0.5ch;
  height: 1.1em;
  margin-left: 0.12em;
  vertical-align: text-bottom;
  background: var(--accent-2);
  box-shadow: 0 0 10px rgba(74, 227, 196, 0.6);
}

/* ---- Social ---- */

.social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1rem);
}

.social__link {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(2.9rem, 6vw, 3.4rem);
  height: clamp(2.9rem, 6vw, 3.4rem);
  border-radius: 50%;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: color 0.35s var(--ease-out),
    transform 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out),
    background 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}

.social__link svg {
  width: clamp(1.15rem, 2.5vw, 1.3rem);
  height: clamp(1.15rem, 2.5vw, 1.3rem);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ease-out);
}

.social__link svg[data-fill] {
  fill: currentColor;
  stroke: none;
}

.social__link:hover {
  color: var(--accent-2);
  border-color: rgba(74, 227, 196, 0.55);
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.12);
  box-shadow: 0 0 26px rgba(74, 227, 196, 0.35),
    0 6px 24px rgba(0, 0, 0, 0.3);
}

.social__link:active {
  transform: scale(1.04);
}

/* ---- Footer ---- */

.footer {
  margin-top: 0.25rem;
}

.footer__text {
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* ---- Screen-reader only ---- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Focus states (WCAG) ---- */

a:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
  border-radius: 4px;
}

.social__link:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  color: var(--accent-2);
}
