/* Gustavo Cadena — personal home base
   Warm ink + cream, calm and personal (not generic "AI purple") */

:root {
  --bg: #f6f0e8;
  --bg-deep: #efe6d9;
  --ink: #1a1410;
  --ink-soft: #4a4038;
  --muted: #7a6f64;
  --line: rgba(26, 20, 16, 0.12);
  --card: #fffaf4;
  --accent: #c45c26;
  --accent-deep: #9a4014;
  --accent-soft: rgba(196, 92, 38, 0.12);
  --shadow: 0 18px 50px rgba(26, 20, 16, 0.08);
  --radius: 18px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --max: 1080px;
  --narrow: 680px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(196, 92, 38, 0.08), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(26, 20, 16, 0.05), transparent 50%),
    var(--bg);
  min-height: 100vh;
}

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

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.75rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  left: 0.75rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.narrow {
  width: min(var(--narrow), calc(100% - 2.5rem));
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(246, 240, 232, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.logo:hover {
  color: var(--ink);
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.65rem;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.logo-text {
  font-size: 0.98rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  font-size: 0.92rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}

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

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 2.5rem;
  align-items: stretch;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4.1rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.name-accent {
  font-style: italic;
  color: var(--accent-deep);
}

.one-liner {
  margin: 0.85rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.3;
}

.lede {
  margin: 1.35rem 0 0;
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.lede strong {
  color: var(--ink);
  font-weight: 600;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
}

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

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-deep);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.45);
}

.btn-lg {
  padding: 1rem 1.45rem;
  font-size: 1.02rem;
}

.btn-icon {
  font-size: 0.95em;
  opacity: 0.9;
}

.hero-visual {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.hero-photo {
  margin: 0;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 1;
  background: var(--bg-deep);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
}

/* About with photo */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.about-copy .section-lede {
  margin-top: 0.75rem;
}

.about-photo {
  margin: 0;
}

.about-photo img {
  width: 100%;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
}

.about-photo figcaption {
  margin-top: 0.75rem;
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 1.02rem;
  text-align: center;
}

.quote-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-card blockquote {
  margin: 0;
}

.hero-card blockquote p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  line-height: 1.35;
  color: var(--ink);
}

.quote-attr {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Sections */
.section {
  padding: 3.75rem 0;
}

.section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.section-lede {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  max-width: 38rem;
  font-size: 1.08rem;
}

.about {
  background: var(--bg-deep);
  border-block: 1px solid var(--line);
}

.prose {
  margin-top: 1.75rem;
  display: grid;
  gap: 1rem;
}

.prose p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.prose em {
  color: var(--ink);
  font-style: italic;
}

/* Interests */
.interest-grid {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.interest-grid li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.interest-grid li:hover {
  border-color: rgba(196, 92, 38, 0.35);
  transform: translateY(-2px);
}

.interest-grid h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
}

.interest-grid p {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Watch / funnel */
.watch {
  padding-bottom: 4.5rem;
}

.watch-panel {
  background: var(--ink);
  color: var(--bg);
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: grid;
  gap: 1.5rem;
  box-shadow: var(--shadow);
}

.watch-panel h2 {
  color: #fff;
}

.watch-panel p {
  margin: 0.65rem 0 0;
  color: rgba(246, 240, 232, 0.78);
  max-width: 36rem;
}

.watch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.watch .btn-primary {
  background: var(--accent);
  color: #fff;
}

.watch .btn-primary:hover {
  background: #d96a30;
  color: #fff;
}

.watch .btn-secondary {
  color: var(--bg);
  border-color: rgba(246, 240, 232, 0.28);
}

.watch .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(246, 240, 232, 0.55);
  color: #fff;
}

.social-row {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.social-row a {
  color: rgba(246, 240, 232, 0.72);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.social-row a:hover {
  color: #fff;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
}

.footer-inner {
  text-align: center;
}

.footer-smile {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink-soft);
}

.footer-meta {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-meta a {
  color: var(--muted);
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .hero-visual {
    max-width: 420px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .about-photo {
    order: -1;
    max-width: 420px;
  }

  .interest-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding-top: 3rem;
  }
}

@media (max-width: 560px) {
  .logo-text {
    display: none;
  }

  .nav {
    font-size: 0.85rem;
    gap: 0.3rem 0.85rem;
  }

  .interest-grid {
    grid-template-columns: 1fr;
  }

  .cta-row,
  .watch-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .interest-grid li {
    transition: none;
  }
}
