/* Geppetto AI — cream & brown palette aligned with brand mark */

:root {
  --bg: #f4efe6;
  --bg-elevated: #ebe4d7;
  --text: #2c1f16;
  --text-muted: #5c4d42;
  --accent: #5c3d2e;
  --accent-hover: #7a523d;
  --accent-soft: rgba(92, 61, 46, 0.12);
  --border: rgba(44, 31, 22, 0.12);
  --radius: 12px;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --max: 68rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #f4efe6;
  text-decoration: none;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 239, 230, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

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

.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(44, 31, 22, 0.12);
}

.logo-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.logo-ai {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

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

/* Hero */
.hero {
  padding: clamp(2.5rem, 8vw, 5rem) 0 clamp(3rem, 6vw, 4rem);
  background:
    radial-gradient(ellipse 80% 55% at 50% -15%, var(--accent-soft), transparent 55%),
    var(--bg);
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  max-width: 22ch;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 55ch;
  margin: 0 0 1rem;
}

.lead strong {
  color: var(--text);
}

.hero-meta {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 58ch;
  margin: 0 0 1.75rem;
}

.hero-meta strong {
  color: var(--text);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

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

/* Sections */
.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section-intro {
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 0 2rem;
}

.h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--text);
}

/* Cards */
.cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
}

.section-alt .card {
  background: var(--bg);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--accent);
}

.card > p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.card li {
  margin-bottom: 0.35rem;
}

.card li:last-child {
  margin-bottom: 0;
}

/* Two column */
.two-col {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.timeline {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.timeline li {
  margin-bottom: 0.75rem;
}

.timeline strong {
  color: var(--text);
}

.plain-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.plain-list li {
  margin-bottom: 0.6rem;
}

.cred-note {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Expertise */
.expertise-grid {
  display: grid;
  gap: 1.25rem;
  margin: 0;
}

@media (min-width: 600px) {
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.expertise-grid div {
  margin: 0;
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.expertise-grid dt {
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.expertise-grid dd {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* CTA */
.cta-section {
  background: linear-gradient(160deg, var(--accent-soft) 0%, transparent 50%);
  border-top: 1px solid var(--border);
}

.cta-inner {
  text-align: center;
  padding: 1rem 0 2rem;
}

.cta-inner h2 {
  font-family: var(--font-display);
  margin-bottom: 0.75rem;
}

.cta-inner p {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  max-width: 42ch;
  margin-inline: auto;
}

.cta-linkedin {
  margin-top: 0.75rem !important;
}

.cta-linkedin a {
  color: var(--accent);
  font-weight: 600;
}

.cta-inner a {
  color: var(--accent);
  font-weight: 600;
}

.cta-sub {
  font-size: 0.9rem !important;
}

.cta-sub a {
  font-weight: 500;
  word-break: break-all;
}

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

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

.footer-inner p {
  margin: 0.25rem 0;
}

.footer-links {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-small {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Focus */
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media print {
  .site-header,
  .hero-cta .btn-ghost,
  .nav {
    display: none;
  }

  body {
    background: #fff;
    color: #111;
  }

  .card,
  .expertise-grid div {
    break-inside: avoid;
  }
}
