@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;1,400&family=DM+Sans:wght@300;400;500&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

:root {
  --purple: #534AB7;
  --purple-dark: #3C3489;
  --purple-light: #EEEDFE;
  --purple-mid: #AFA9EC;
  --stumped: #4A1E8C;
  --stumped-light: #f0eafa;
  --teal: #1D9E75;
  --teal-dark: #0F6E56;
  --teal-light: #E1F5EE;
  --bg: #f9f8f5;
  --bg-card: #fff;
  --border: #e8e5de;
  --border-light: #ddd;
  --text: #1a1a1a;
  --text-muted: #777;
  --text-hint: #aaa;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  padding: 0 1.5rem 5rem;
}

.root { max-width: 720px; margin: 0 auto; }

/* HERO */
.hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 0.5px solid var(--border);
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.hero-location {
  font-size: 18px;
  font-weight: 300;
  color: var(--purple);
  letter-spacing: 0.03em;
}

/* TABS */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2.5rem;
}
.tab {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  padding: 7px 18px;
  border-radius: 20px;
  border: 0.5px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-hint);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.tab:hover { border-color: #bbb; color: var(--text); }
.tab.active {
  background: var(--purple);
  color: var(--purple-light);
  border-color: var(--purple);
  font-weight: 500;
}

/* PILLS */
.pill {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  display: inline-block;
}
.pill-purple { background: var(--purple); color: var(--purple-light); }
.pill-teal { background: var(--teal-light); color: var(--teal-dark); }
.pill-mute { background: #f2f1ee; color: var(--text-hint); border: 0.5px solid var(--border); }

/* FOOTER */
.footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 0.5px solid var(--border);
  font-size: 12px;
  color: var(--purple-mid);
}

/* WORK */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.app-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  transition: border-color 0.2s;
}
.app-card:hover { border-color: var(--purple-mid); }
.app-icon {
  width: 60px;
  height: 60px;
  border-radius: 13px;
  margin-bottom: 0.9rem;
  object-fit: cover;
  display: block;
}
.app-name { font-size: 15px; font-weight: 500; margin-bottom: 0.4rem; color: var(--text); }
.app-desc { font-size: 12px; font-weight: 300; line-height: 1.65; color: var(--text-muted); margin-bottom: 1rem; }

/* WRITING */
.writing-list { display: flex; flex-direction: column; }
.writing-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 0.5px solid var(--border);
  text-decoration: none;
  color: var(--text);
  gap: 0.75rem;
}
.writing-row:hover .writing-title { color: var(--purple); }
.writing-left { display: flex; gap: 0.75rem; align-items: baseline; min-width: 0; flex: 1; }
.writing-type {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  min-width: 34px;
  flex-shrink: 0;
}
.writing-title { font-size: 15px; font-weight: 400; transition: color 0.15s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.writing-date { font-size: 12px; color: var(--text-hint); flex-shrink: 0; white-space: nowrap; }

/* IDEAS */
.idea-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.idea-card:hover { border-color: var(--teal); }
.idea-eyebrow { font-size: 10px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.5rem; }
.idea-title { font-family: 'Lora', serif; font-size: 22px; font-weight: 400; margin-bottom: 0.75rem; line-height: 1.2; color: var(--text); }
.idea-body { font-size: 14px; font-weight: 300; line-height: 1.8; color: var(--text-muted); }

/* SERVICES */
.services-list { display: flex; flex-direction: column; gap: 12px; }
.service-card {
  background: var(--bg-card);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: border-color 0.2s;
}
.service-card:hover { border-color: var(--purple-mid); }
.service-name { font-size: 15px; font-weight: 500; margin-bottom: 0.25rem; color: var(--text); }
.service-desc { font-size: 13px; font-weight: 300; color: var(--text-muted); line-height: 1.5; }
.service-cta {
  font-size: 12px;
  font-weight: 500;
  color: var(--purple);
  text-decoration: none;
  padding: 7px 16px;
  border: 0.5px solid var(--purple-mid);
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.15s;
  flex-shrink: 0;
}
.service-cta:hover { background: var(--purple); color: var(--purple-light); border-color: var(--purple); }

/* CONTACT */
.contact-block { padding: 0.5rem 0; }
.contact-block p { font-size: 15px; font-weight: 300; line-height: 1.8; color: var(--text-muted); margin-bottom: 1.75rem; max-width: 460px; }
.contact-email {
  font-family: 'Lora', serif;
  font-size: clamp(18px, 5vw, 24px);
  font-weight: 400;
  color: var(--purple);
  text-decoration: none;
  border-bottom: 0.5px solid var(--purple-mid);
  padding-bottom: 3px;
  transition: color 0.15s;
}
.contact-email:hover { color: var(--purple-dark); }

/* STUMPED TRIVIA */
.stumped-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--stumped);
  border-radius: 16px;
  margin-bottom: 1.5rem;
}
.stumped-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}
.stumped-header-text h2 { font-family: 'Lora', serif; font-size: 22px; font-weight: 400; color: #fff; margin-bottom: 0.25rem; }
.stumped-header-text p { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.7); }
.stumped-tags { display: flex; gap: 8px; margin-top: 0.6rem; }
.stumped-tag { font-size: 10px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); }

.stumped-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 1.5rem; }
.stumped-card { background: var(--bg-card); border: 0.5px solid var(--border); border-radius: 16px; padding: 1.25rem; }
.stumped-card-label { font-size: 10px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stumped); margin-bottom: 0.75rem; }
.stumped-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.stumped-card ul li { font-size: 13px; font-weight: 300; color: var(--text-muted); line-height: 1.5; padding-left: 1rem; position: relative; }
.stumped-card ul li::before { content: ''; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: var(--stumped); }

.stumped-pricing {
  background: var(--stumped-light);
  border: 0.5px solid #d4bef5;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.pricing-item { text-align: center; flex: 1; }
.pricing-amount { font-family: 'Lora', serif; font-size: 28px; font-weight: 400; color: var(--stumped); line-height: 1; margin-bottom: 0.25rem; }
.pricing-label { font-size: 11px; font-weight: 400; color: var(--text-muted); letter-spacing: 0.03em; }
.pricing-divider { width: 0.5px; height: 48px; background: #d4bef5; flex-shrink: 0; }

.stumped-area { background: var(--bg-card); border: 0.5px solid var(--border); border-radius: 16px; padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.stumped-area-label { font-size: 10px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stumped); margin-bottom: 0.75rem; }
.area-zones { display: flex; flex-direction: column; gap: 0.4rem; }
.area-zone { font-size: 13px; font-weight: 300; color: var(--text-muted); }
.area-zone strong { font-weight: 500; color: var(--text); }

.stumped-cta { background: var(--stumped); border-radius: 16px; padding: 1.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.stumped-cta-text h3 { font-size: 16px; font-weight: 500; color: #fff; margin-bottom: 0.35rem; }
.stumped-cta-text p { font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.7); }
.stumped-cta-links { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.stumped-cta-btn { font-size: 13px; font-weight: 500; color: var(--stumped); background: #fff; text-decoration: none; padding: 8px 16px; border-radius: 8px; text-align: center; transition: opacity 0.15s; white-space: nowrap; }
.stumped-cta-btn:hover { opacity: 0.9; }
.stumped-cta-btn.secondary { background: rgba(255,255,255,0.15); color: #fff; }

/* ABOUT */
.about-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 580px;
}
.about-block p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-muted);
}
.about-block p:first-child {
  font-size: 17px;
  color: var(--text);
  font-weight: 400;
}
.inline-link {
  color: var(--purple);
  text-decoration: none;
  border-bottom: 0.5px solid var(--purple-mid);
  padding-bottom: 1px;
}
.inline-link:hover { color: var(--purple-dark); }

/* MOBILE */
@media (max-width: 600px) {
  body { padding: 0 1rem 4rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .app-grid { grid-template-columns: 1fr 1fr; }
  .stumped-grid { grid-template-columns: 1fr; }
  .service-card { flex-direction: column; align-items: flex-start; }
  .service-cta { width: 100%; text-align: center; }
  .writing-title { font-size: 14px; }
  .stumped-cta { flex-direction: column; align-items: flex-start; }
  .stumped-cta-links { width: 100%; }
  .stumped-cta-btn { width: 100%; }
  .stumped-pricing { flex-direction: column; gap: 1rem; }
  .pricing-divider { width: 100%; height: 0.5px; }
}
@media (max-width: 380px) {
  .app-grid { grid-template-columns: 1fr; }
}
