/* ==========================================================================
   Visudo — studio portfolio
   ========================================================================== */

:root {
  --bg: #f3f2ef;
  --ink: #17141c;
  --muted: #625d6b;
  --faint: #9a94a3;
  --accent: #14111a;
  --accent-2: #14111a;
  --card: rgba(255, 255, 255, 0.7);
  --card-line: rgba(23, 20, 28, 0.08);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-y: scroll; /* always reserve scrollbar so centered content never shifts */
  scrollbar-gutter: stable;
}

body {
  min-height: 100vh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(85% 60% at 50% -8%, rgba(255, 255, 255, 0.9), transparent 62%),
    radial-gradient(95% 70% at 50% 112%, rgba(203, 199, 192, 0.42), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

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

.page {
  min-height: 100vh;
  max-width: 660px;
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 3rem) clamp(1.25rem, 5vw, 2.5rem)
    clamp(2rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
}

/* Nav --------------------------------------------------------------------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  width: 130px;
  height: auto;
  display: block;
  filter: brightness(0); /* recolor blue wordmark to pure black */
  transition: opacity 0.2s ease;
}

.nav a:hover .logo,
.site-head a:hover .logo {
  opacity: 0.7;
}

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

.hero {
  margin: clamp(3.5rem, 12vh, 7rem) auto 0;
  max-width: 620px;
  text-align: center;
}

.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1.1rem;
}

.hero__title {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 9vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
  background: linear-gradient(180deg, #1a1620 30%, #4a4453);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  margin: 1.4rem auto 0;
  font-size: clamp(1.02rem, 2.4vw, 1.2rem);
  color: var(--muted);
  max-width: 34em;
}

/* Showcase card ----------------------------------------------------------- */

.showcase {
  margin-top: clamp(2.75rem, 8vh, 4.5rem);
}

.card {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -30px rgba(23, 20, 28, 0.22);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(24, 119, 189, 0.3);
  box-shadow: 0 38px 70px -30px rgba(23, 20, 28, 0.28);
}

.card__icon {
  flex: none;
  width: clamp(96px, 22vw, 132px);
  aspect-ratio: 1 / 1;
  border-radius: 24%;
  overflow: hidden;
  box-shadow: 0 18px 40px -14px rgba(23, 20, 28, 0.38),
    0 0 0 1px rgba(23, 20, 28, 0.06);
}

.card__icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.card__name {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(1.35rem, 3.5vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card__tag {
  margin-top: 0.2rem;
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.98rem;
}

.card__desc {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.97rem;
  max-width: 42ch;
}

.card__cta {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  border: 1px solid var(--card-line);
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(23, 20, 28, 0.04),
    rgba(23, 20, 28, 0.015)
  );
}

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

.foot {
  margin-top: auto;
  padding-top: clamp(3rem, 8vh, 5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--faint);
}

.foot__dot {
  color: var(--faint);
}

.foot a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.foot a:hover {
  color: var(--accent-2);
}

/* Entrance animation ------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 0.8s var(--ease) forwards;
}

.reveal--1 { animation-delay: 0.08s; }
.reveal--2 { animation-delay: 0.16s; }
.reveal--3 { animation-delay: 0.26s; }
.reveal--4 { animation-delay: 0.36s; }

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

/* Secondary-page masthead ------------------------------------------------- */

.site-head {
  max-width: 660px;
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 3rem) 1.5rem 0;
  display: flex;
  justify-content: center;
}

/* Content pages (privacy, posts) ------------------------------------------ */

#privacy,
.content {
  max-width: 660px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) 1.5rem;
}

#privacy h1,
.content h1 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

#privacy h2,
.content h2 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2.1rem 0 0.5rem;
}

#privacy p,
.content p {
  margin: 0.85rem 0;
  color: var(--muted);
}

#privacy em,
.content em {
  color: var(--faint);
  font-style: normal;
}

#privacy a,
.content a {
  color: var(--accent-2);
  text-decoration: none;
}

#privacy a:hover,
.content a:hover {
  text-decoration: underline;
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 620px) {
  .card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
  * {
    transition: none !important;
  }
}
