/* =====================================================
   Sóstenes Crisley — Editorial bio page
   ===================================================== */

:root {
  /* Warm off-black, cream paper, terracota accent */
  --ink:        #0E0D0C;
  --ink-soft:   #14120F;
  --paper:      #F2EDE3;
  --paper-dim:  rgba(242, 237, 227, 0.65);
  --paper-faint:rgba(242, 237, 227, 0.4);
  --rule:       rgba(242, 237, 227, 0.12);
  --rule-strong:rgba(242, 237, 227, 0.22);

  --accent:     #D96846;          /* Terracota */
  --accent-soft:rgba(217, 104, 70, 0.18);

  --whatsapp:   #25D366;
  --whatsapp-deep: #1BA84F;

  --available:  #22C55E;

  --serif: 'Instrument Serif', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;

  --container-w: 30rem;            /* Linktree-friendly width */
  --container-pad: 1.25rem;
}

/* ------- Reset ------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100dvh;

  /* Subtle warm radial wash — breaks the "flat black" template look */
  background-image:
    radial-gradient(120% 80% at 50% 0%, rgba(217, 104, 70, 0.08), transparent 60%),
    radial-gradient(80% 60% at 0% 100%, rgba(217, 104, 70, 0.04), transparent 60%);
  background-attachment: fixed;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: transparent; cursor: pointer; color: inherit; border: 0; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 { font-family: var(--serif); font-weight: 400; line-height: 1.05; }
em { font-style: italic; }

/* ------- Page shell ------- */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 2.5rem var(--container-pad) 2rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  flex: 1;
}
@media (min-width: 480px) {
  :root { --container-w: 32rem; --container-pad: 1.5rem; }
  .container { padding-top: 3.25rem; gap: 4.5rem; }
}
@media (min-width: 640px) {
  .container { padding-top: 4rem; gap: 5rem; }
  .hero { gap: 2rem; }
  .hero-bio { font-size: 1rem; max-width: 24rem; }
}
@media (min-width: 768px) {
  :root { --container-w: 34rem; --container-pad: 2rem; }
  .container { padding-top: 4.5rem; gap: 5.5rem; padding-bottom: 2.5rem; }
  .hero { gap: 2.25rem; }
  .hero-portrait { width: clamp(13rem, 28vw, 15.5rem); border-radius: 1.75rem; }
  .hero-bio { font-size: 1.02rem; max-width: 26rem; }
  .cta-whatsapp { padding: 1.2rem 1.75rem; font-size: 1.05rem; min-height: 60px; }
  .hero-meta { font-size: 0.78rem; gap: 0.85rem 1.25rem; }
  .section-head { margin-bottom: 2.25rem; }
  .project-card a { padding: 1.15rem 1.35rem; gap: 1.15rem; }
  .project-num { font-size: 1.85rem; min-width: 1.75rem; }
  .project-thumb { width: 3.75rem; height: 3.75rem; border-radius: 0.85rem; }
  .project-info h3 { font-size: 1.1rem; }
  .project-info p { font-size: 0.9rem; }
  .logo-grid { padding: 0.75rem; gap: 0.6rem; }
  .cta-bottom { padding: 2.5rem 1.75rem 2.75rem; }
}
@media (min-width: 1024px) {
  :root { --container-w: 38rem; }
  .container { padding-top: 5.5rem; gap: 6.5rem; padding-bottom: 3rem; }
  .hero-portrait { width: 16rem; }
  .hero-bio { font-size: 1.05rem; max-width: 28rem; }
  .logo-grid { gap: 0.75rem; padding: 0.85rem; }
  .project-thumb { width: 4rem; height: 4rem; }
  .site-footer { padding: 2rem var(--container-pad) 2.5rem; font-size: 0.75rem; }
}
@media (min-width: 1280px) {
  :root { --container-w: 40rem; }
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}

/* Portrait — large, square-with-soft-corners, no decorative ring */
.hero-portrait {
  position: relative;
  width: clamp(11rem, 60vw, 14rem);
  aspect-ratio: 1 / 1;
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--ink-soft);
  box-shadow:
    0 30px 40px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px var(--rule);
}
.hero-portrait::after {
  /* Subtle gloss to lift photo from flat-ness */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(255,255,255,0.04), transparent 50%);
  pointer-events: none;
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  width: 100%;
}

/* Availability badge — quiet pulsing green dot */
.badge-availability {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--paper-dim);
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 9999px;
  background: rgba(34, 197, 94, 0.06);
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--available);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: badge-pulse 2.4s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero-name {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--paper-dim);
  text-transform: lowercase;
}
.hero-name::before { content: "@"; opacity: 0.5; }

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(2.35rem, 11vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-top: 0.25rem;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.hero-bio {
  max-width: 22rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--paper-dim);
}

.hero-meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--paper-faint);
}
.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 9999px;
  background: var(--paper-faint);
  display: inline-block;
}

/* WhatsApp big primary CTA */
.cta-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  max-width: 22rem;
  padding: 1.1rem 1.5rem;
  margin-top: 0.75rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  background: var(--whatsapp);
  border-radius: 9999px;
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease, background .25s ease;
  box-shadow: 0 10px 30px -12px rgba(37, 211, 102, 0.6);
  min-height: 56px;
}
.cta-whatsapp:hover,
.cta-whatsapp:focus-visible {
  background: var(--whatsapp-deep);
  transform: translateY(-1px);
  box-shadow: 0 14px 38px -10px rgba(37, 211, 102, 0.7);
}
.cta-whatsapp:active { transform: translateY(0); }
.ic-wa { width: 1.25rem; height: 1.25rem; }
.ic-arrow { width: 1.05rem; height: 1.05rem; transition: transform .25s ease; }
.cta-whatsapp:hover .ic-arrow { transform: translateX(3px); }

/* Social row — small icons, low-key, below CTA */
.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
}
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--paper-faint);
  border-radius: 9999px;
  transition: color .2s ease, background .2s ease;
}
.socials a:hover,
.socials a:focus-visible {
  color: var(--paper);
  background: var(--rule);
}
.social-icon { width: 1.05rem; height: 1.05rem; }

/* =====================================================
   SECTION HEAD — shared
   ===================================================== */
.section-head {
  text-align: center;
  margin-bottom: 1.75rem;
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-faint);
  margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.65rem, 6.5vw, 2.15rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--paper);
}
.section-title em { font-style: italic; color: var(--accent); }

/* =====================================================
   PROJECTS — numbered editorial list
   ===================================================== */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.project-card a {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  background: var(--ink-soft);
  border: 1px solid var(--rule);
  border-radius: 1rem;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.project-card a:hover,
.project-card a:focus-visible {
  border-color: var(--rule-strong);
  background: rgba(255, 255, 255, 0.025);
}
.project-card a:active { transform: scale(0.99); }

.project-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.65rem;
  line-height: 1;
  color: var(--accent);
  min-width: 1.5rem;
}
.project-info { min-width: 0; }
.project-info h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--paper);
  margin-bottom: 2px;
}
.project-info p {
  font-size: 0.82rem;
  color: var(--paper-dim);
  line-height: 1.4;
}
.project-thumb {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--ink);
  flex-shrink: 0;
  border: 1px solid var(--rule);
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--paper-faint);
  width: 1.5rem;
  height: 1.5rem;
  transition: color .2s ease, transform .25s ease;
}
.project-card a:hover .project-arrow {
  color: var(--paper);
  transform: translateX(2px);
}
.project-arrow svg { width: 1.05rem; height: 1.05rem; }

/* =====================================================
   BRANDS — monochrome grid (no carousel)
   ===================================================== */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  border: 1px solid var(--rule);
  border-radius: 1rem;
  padding: 0.5rem;
  background: rgba(255,255,255,0.015);
}
.logo-tile {
  aspect-ratio: 1 / 1;
  border-radius: 0.75rem;
  background: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  transition: background .25s ease;
}
.logo-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1) brightness(0.95) contrast(1.05);
  opacity: 0.55;
  transition: filter .35s ease, opacity .35s ease, transform .35s ease;
}
.logo-tile:hover,
.logo-tile:active {
  background: rgba(255, 255, 255, 0.04);
}
.logo-tile:hover img,
.logo-tile:active img {
  filter: none;
  opacity: 1;
  transform: scale(1.04);
}

/* =====================================================
   CTA BOTTOM
   ===================================================== */
.cta-bottom {
  text-align: center;
  padding: 2rem 1.25rem 2.25rem;
  border: 1px solid var(--rule);
  border-radius: 1.25rem;
  background:
    radial-gradient(80% 60% at 50% 0%, var(--accent-soft), transparent 70%),
    var(--ink-soft);
}
.cta-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-faint);
  margin-bottom: 0.5rem;
}
.cta-title {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 8vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 1.25rem;
}
.cta-title em { font-style: italic; color: var(--accent); }
.cta-whatsapp-bottom { margin-top: 0; max-width: 100%; }
.cta-fineprint {
  font-size: 0.72rem;
  color: var(--paper-faint);
  margin-top: 0.75rem;
  letter-spacing: 0.02em;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  padding: 1.5rem var(--container-pad) 2rem;
  text-align: center;
  font-size: 0.7rem;
  color: var(--paper-faint);
  letter-spacing: 0.02em;
}

/* =====================================================
   REVEAL (subtle)
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1);
}
.is-visible { opacity: 1; transform: none; }

/* =====================================================
   FOCUS / A11Y
   ===================================================== */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    transition-duration: .001s !important;
  }
  .badge-dot { animation: none; }
}

/* =====================================================
   TINY PHONES
   ===================================================== */
@media (max-width: 360px) {
  :root { --container-pad: 1rem; }
  .container { gap: 3rem; padding-top: 2rem; }
  .hero { gap: 1.25rem; }
  .hero-portrait { width: 9.5rem; border-radius: 1.25rem; }
  .hero-headline { font-size: 2.1rem; }
  .project-num { font-size: 1.5rem; }
  .project-thumb { width: 2.75rem; height: 2.75rem; }
  .logo-grid { gap: 0.4rem; padding: 0.4rem; }
}
