/* Rafael Piazenski — site pessoal */

:root {
  --bg: #0e141c;
  --bg-mid: #16202c;
  --ink: #e8eef4;
  --muted: #9aabbc;
  --accent: #5eb3c4;
  --accent-deep: #3a8a9a;
  --line: rgba(232, 238, 244, 0.14);
  --hero-overlay: linear-gradient(
    105deg,
    rgba(8, 12, 18, 0.92) 0%,
    rgba(8, 12, 18, 0.62) 46%,
    rgba(8, 12, 18, 0.28) 100%
  );
  --font-display: "Literata", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --max: 64rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(720px 380px at 88% 8%, rgba(94, 179, 196, 0.14), transparent 55%),
    radial-gradient(560px 320px at 6% 88%, rgba(58, 138, 154, 0.1), transparent 50%),
    linear-gradient(168deg, var(--bg) 0%, var(--bg-mid) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #8fd0dc;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 50;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 1rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(100vh, 54rem);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    var(--hero-overlay),
    url("assets/rafael.jpg") center 22% / cover no-repeat;
  transform: scale(1.02);
  animation: hero-settle 1.4s ease-out both;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2 * var(--space), var(--max));
  margin: 0 auto;
  padding: clamp(4rem, 12vh, 7rem) 0 clamp(2.5rem, 6vh, 4rem);
  animation: rise 0.9s ease-out 0.15s both;
}

.hero-brand {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 4.25rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #f4f8fb;
}

.hero h1 {
  margin: 0 0 0.85rem;
  max-width: 18ch;
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}

.hero-lead {
  margin: 0 0 1.6rem;
  max-width: 36ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.2rem;
  border-radius: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #071015;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: #8fd0dc;
  color: #071015;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* —— Sections —— */
.section {
  width: min(100% - 2 * var(--space), var(--max));
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5rem) 0;
  border-top: 1px solid var(--line);
  animation: rise 0.8s ease-out both;
}

.section h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 650;
  letter-spacing: -0.015em;
}

.section-lead {
  margin: 0 0 1.75rem;
  max-width: 42rem;
  color: var(--muted);
}

.points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.points li {
  display: grid;
  gap: 0.25rem;
  max-width: 40rem;
}

.points strong {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.points span {
  color: var(--ink);
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.link-list a {
  font-size: 1.1rem;
  font-weight: 550;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.link-list a:hover {
  border-bottom-color: currentColor;
}

.site-footer {
  width: min(100% - 2 * var(--space), var(--max));
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

@keyframes hero-settle {
  from {
    transform: scale(1.06);
    opacity: 0.7;
  }
  to {
    transform: scale(1.02);
    opacity: 1;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.85rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 92vh;
  }

  .hero-media {
    background-position: center 18%;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
