/* Jake Spear — personal site v1
   Warm sunset palette · playful but credible */

:root {
  --bg: #fdf8f1;
  --bg-alt: #faf0e2;
  --ink: #2b2118;
  --ink-soft: #6b5d4f;
  --coral: #ff6b4a;
  --coral-deep: #e5522f;
  --amber: #ffb347;
  --teal: #0e7c7b;
  --card: #ffffff;
  --line: #eadfd0;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(43, 33, 24, 0.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.12; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; margin-bottom: 0.6em; }
h2 em { color: var(--coral); font-style: italic; }
h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 0.4em; }

a { color: var(--coral-deep); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 5vw;
  background: rgba(253, 248, 241, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-name { font-family: "Fraunces", serif; font-weight: 900; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.nav-links { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--coral-deep); }
.nav-cta {
  background: var(--coral); color: #fff !important;
  padding: 8px 18px; border-radius: 999px; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--coral-deep); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 5vw;
  align-items: center;
  padding: 9vh 6vw 7vh;
  max-width: 1250px; margin: 0 auto;
}
.wave { display: inline-block; }
.hero-sub {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 600; color: var(--coral-deep);
  margin: 18px 0 14px;
}
.hero-body { color: var(--ink-soft); max-width: 56ch; }
.hero-ctas { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transform: rotate(2deg);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 13px 26px; border-radius: 999px; transition: all 0.15s ease;
}
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 4px 14px rgba(255, 107, 74, 0.35); }
.btn-primary:hover { background: var(--coral-deep); transform: translateY(-2px); }
.btn-ghost { border: 2px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--coral); color: var(--coral-deep); }
.btn-big { font-size: 1.2rem; padding: 16px 34px; }

/* ---------- Stat band ---------- */
.stat-band {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4vw;
  padding: 34px 6vw;
  background: linear-gradient(100deg, var(--coral) 0%, var(--amber) 100%);
  color: #fff;
}
.stat { text-align: center; min-width: 130px; }
.stat-num { display: block; font-family: "Fraunces", serif; font-size: 2rem; font-weight: 900; }
.stat-label { font-size: 0.85rem; opacity: 0.92; max-width: 180px; display: inline-block; }

/* ---------- Sections ---------- */
.section { padding: 10vh 6vw; max-width: 1250px; margin: 0 auto; }
.section-alt {
  background: var(--bg-alt);
  max-width: none;
}
.section-alt > * { max-width: 1130px; margin-left: auto; margin-right: auto; }
.section-alt h2, .section-alt .kicker, .section-alt .section-intro { max-width: 1130px; }
.kicker {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem;
  font-weight: 700; color: var(--teal); margin-bottom: 10px;
}
.section-intro { color: var(--ink-soft); max-width: 68ch; margin-bottom: 34px; }

/* ---------- Cards ---------- */
.card-grid, .exit-grid {
  display: grid; gap: 22px; margin-top: 30px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow);
}
.card p { color: var(--ink-soft); font-size: 0.97rem; }
.card-feature { grid-column: 1 / -1; }
.card-link { font-weight: 600; text-decoration: none; display: inline-block; margin-top: 10px; }
.case-study { margin-top: 26px; border-left: 6px solid var(--coral); }

.badge {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.badge-now { background: #fff1ec; color: var(--coral-deep); border: 1px solid #ffd3c6; }
.badge-built { background: #ecf7f4; color: var(--teal); border: 1px solid #c8e8e2; }
.badge-scaled { background: #fff6e5; color: #b0731d; border: 1px solid #ffe2ae; }
.badge-exit { background: var(--ink); color: var(--amber); }

.also-scaled { margin-top: 30px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chip {
  background: var(--card); border: 1px solid var(--line);
  padding: 6px 14px; border-radius: 999px; font-size: 0.88rem;
}

/* ---------- Community photos ---------- */
.photo-grid {
  display: grid; gap: 16px; margin-top: 30px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.photo-grid .ph { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo-grid .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.photo-grid .ph:hover img { transform: scale(1.04); }

/* ---------- Image placeholders ---------- */
.ph { position: relative; background: var(--bg-alt); }
.ph .ph-label { display: none; }
.ph.missing { border: 2px dashed #d9b98f; display: flex; align-items: center; justify-content: center; }
.ph.missing img { display: none; }
.ph.missing .ph-label {
  display: block; padding: 20px; text-align: center;
  color: var(--ink-soft); font-size: 0.9rem;
}

/* ---------- TODO markers ---------- */
.todo {
  background: #fff8dc; border: 1.5px dashed #e0b93f; color: #7a5f10 !important;
  border-radius: 10px; padding: 10px 14px; font-size: 0.88rem !important;
  margin-top: 10px;
}
.map-placeholder { padding: 60px 30px; text-align: center; font-size: 1rem !important; }

/* ---------- Beliefs ---------- */
.beliefs { list-style: none; max-width: 720px; }
.beliefs li {
  padding: 18px 0; border-bottom: 1px solid var(--line);
  font-size: 1.15rem; color: var(--ink-soft);
}
.beliefs li strong { color: var(--ink); font-family: "Fraunces", serif; font-size: 1.2em; display: block; }

/* ---------- Timeline ---------- */
.timeline { margin: 26px 0 30px; max-width: 640px; }
.tl-item {
  display: flex; gap: 24px; padding: 13px 0;
  border-bottom: 1px solid var(--line); align-items: baseline;
}
.tl-when { min-width: 110px; font-weight: 700; color: var(--coral-deep); font-size: 0.9rem; }

/* ---------- Contact ---------- */
.contact { text-align: center; padding-bottom: 8vh; }
.contact p { color: var(--ink-soft); max-width: 46ch; margin: 0 auto 30px; }
.socials { margin-top: 26px; display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; }
.socials a { font-weight: 600; }

.footer {
  text-align: center; padding: 30px; color: var(--ink-soft);
  font-size: 0.9rem; border-top: 1px solid var(--line);
}

/* ---------- Mobile ---------- */
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding-top: 5vh; }
  .hero-photo { max-width: 340px; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.nav-cta) { display: none; }
}
