/* maybuildswithai.com home preview
   Cool near-white + soft lavender, to sit with the purple buttons,
   navy playbook card and dark footer. */

:root {
  --paper: #f6f5fb;
  --paper-2: #eceaf3;
  --band: #eeedf6;
  --ink: #1a1528;
  --ink-soft: #4a4558;
  --muted: #5a5568;
  --rule: #d8d2e8;
  --card: #ffffff;
  --accent: #5d10b8;
  --accent-hover: #431397;
  --accent-soft: #ece7f6;
  --teal: #005884;
  --teal-hover: #024673;
  --ink-band: #231769;
  --shadow: 0 18px 40px -24px rgba(35, 23, 105, 0.4);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  --wide: 68rem;
  --content: 42rem;
  --side: 1.25rem;
  --radius: 1rem;
  --preview: #3d2a6e;
  --preview-bg: #eae6f6;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(ellipse 70% 50% at 8% -8%, rgba(93, 16, 184, 0.12), transparent 58%),
    radial-gradient(ellipse 70% 50% at 96% 0%, rgba(0, 88, 132, 0.12), transparent 58%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 20;
  background: var(--card);
  color: var(--ink);
  padding: 0.4rem 0.7rem;
  border-radius: 0.4rem;
}

.skip:focus { top: 0.75rem; }

/* Preview chrome — not for the eventual live site */
.preview-banner {
  background: var(--preview-bg);
  color: var(--preview);
  font-size: 0.85rem;
  text-align: center;
  padding: 0.55rem var(--side);
  border-bottom: 1px solid rgba(74, 53, 20, 0.15);
}

.preview-banner strong { font-weight: 650; }

.wrap {
  width: min(var(--wide), 100% - 2 * var(--side));
  margin-inline: auto;
}

.narrow { width: min(var(--content), 100% - 2 * var(--side)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
}

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

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.wordmark-logo {
  width: 2rem;
  height: 2rem;
  border-radius: 0.4rem;
  flex: none;
  display: block;
}

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

.wordmark-text {
  min-width: 0;
}

.wordmark-text span {
  font-weight: 500;
  font-style: italic;
  color: var(--accent);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
  font-size: 0.98rem;
}

.nav-links a { color: var(--ink-soft); text-decoration: none; }
.nav-links a:hover { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}

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

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

.btn-teal {
  background: var(--teal);
  color: #fff;
}

.btn-teal:hover {
  background: var(--teal-hover);
  color: #fff;
}

.btn-ghost {
  background: var(--card);
  color: var(--ink);
  border-color: var(--rule);
}

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

.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.95rem; }

.header-cta { display: none; }

@media (min-width: 720px) {
  :root { --side: 2rem; }
  .header-cta { display: inline-flex; }
}

/* Hero */
.hero {
  padding: 2.4rem 0 2.2rem;
}

.eyebrow {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 650;
  margin: 0 0 0.7rem;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}

h1 {
  font-size: clamp(2rem, 6.4vw, 3.6rem);
  margin: 0 0 1rem;
  max-width: 18ch;
}

h2 { font-size: clamp(1.6rem, 3.4vw, 2.15rem); margin: 0 0 0.7rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.45rem; }

.standfirst {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 0 0 1.1rem;
}

.text-link {
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1.6rem;
}

.hero-paths {
  display: grid;
  gap: 1rem;
}

@media (min-width: 840px) {
  .hero-paths {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: stretch;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.3rem 1.4rem;
}

.hero-paths .card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.4rem;
}

.card p { margin: 0 0 1rem; color: var(--ink-soft); }

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

.follow-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: auto;
}

@media (min-width: 520px) {
  .follow-actions { flex-direction: row; flex-wrap: wrap; }
  .follow-actions .btn { flex: 1 1 7.5rem; }
}

.handle { font-weight: 650; color: var(--ink); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.newsletter-form {
  margin-top: auto;
}

.newsletter-fields {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.newsletter-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 1.15rem;
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.2;
}

.newsletter-input::placeholder {
  color: var(--muted);
}

.newsletter-input:hover {
  border-color: var(--accent);
}

.newsletter-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}

.newsletter-submit {
  width: 100%;
}

.newsletter-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.newsletter-status {
  margin: 0.85rem 0 0;
}

.newsletter-status.is-success {
  color: var(--ink);
  font-weight: 600;
}

.newsletter-status.is-error {
  color: #8a1c2e;
  font-weight: 600;
}

.section {
  padding: 2.4rem 0;
}

.section-band {
  background: var(--band);
  border-block: 1px solid var(--rule);
}

.lede {
  color: var(--ink-soft);
  max-width: 36rem;
  margin: 0 0 1.5rem;
}

.columns {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .columns-3 { grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
}

.point {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.25rem;
}

.point h3 { font-size: 1.2rem; }
.point p { margin: 0; color: var(--ink-soft); }

.playbook-panel {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

@media (min-width: 840px) {
  .playbook-panel { grid-template-columns: 1.4fr 0.8fr; gap: 2rem; align-items: center; }
}

.meta-line {
  font-weight: 650;
  color: var(--ink);
  margin: 1rem 0;
}

.smallprint {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0.85rem 0 0;
}

.price-card {
  background: var(--ink-band);
  color: #f4f2fb;
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
  box-shadow: var(--shadow);
}

.price-card h3 { color: inherit; }
.price-card p { color: rgba(244, 242, 251, 0.86); margin: 0 0 1rem; }
.price-card .btn-primary {
  background: #fff;
  color: var(--ink-band);
}
.price-card .btn-primary:hover {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

/* Watch cards */
.watch-grid, .writing-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .watch-grid { grid-template-columns: repeat(3, 1fr); }
}

.watch-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
}

.watch-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--rule));
  color: inherit;
}

.watch-card strong { font-size: 1.15rem; }
.watch-card .handle { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.watch-card p { margin: 0.3rem 0 0.8rem; color: var(--ink-soft); flex: 1; }
.watch-card .open { font-weight: 650; color: var(--accent); }

.about-links, .also-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  padding: 0;
  margin: 1rem 0 0;
  list-style: none;
}

/* Empty blog state */
.empty-note {
  border: 1px dashed color-mix(in srgb, var(--accent) 35%, var(--rule));
  background: color-mix(in srgb, var(--card) 80%, var(--accent-soft));
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
}

.empty-note p { margin: 0; color: var(--ink-soft); }

.hidden-flag {
  display: none;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--preview);
  background: var(--preview-bg);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
  width: fit-content;
}

body.show-blog-preview .hidden-flag { display: inline-block; }
body.show-blog-preview [data-blog] { display: revert; }
[data-blog][hidden] { display: none !important; }
body.show-blog-preview [data-blog][hidden] { display: revert !important; }

/* Contact + footer */
#contact a { font-weight: 650; }

.site-footer {
  margin-top: auto;
  background: var(--ink);
  color: #ece6f6;
  padding: 2rem 0 1.6rem;
}

.site-footer a { color: #d4c8e8; }
.site-footer a:hover { color: #fff; }

.footer-inner { display: grid; gap: 1.1rem; }

.footer-links, .footer-also {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.footer-social a {
  display: inline-flex;
  width: 2.3rem;
  height: 2.3rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  text-decoration: none;
}

.footer-social a:hover { background: var(--accent); color: #fff; }

.footer-copy {
  margin: 0.4rem 0 0;
  color: rgba(236, 230, 246, 0.7);
  font-size: 0.92rem;
}

/* 404 / blog empty */
.page-main { padding: 3rem 0 4rem; flex: 1; }
.page-main h1 { max-width: 20ch; }

/* Post template chrome */
.template-label {
  background: var(--preview-bg);
  color: var(--preview);
  border-radius: 0.6rem;
  padding: 0.8rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.template-field {
  color: var(--muted);
  font-style: italic;
}

article.post header { margin-bottom: 1.5rem; }
article.post .excerpt { font-size: 1.15rem; color: var(--ink-soft); }
.cover-slot {
  background: var(--paper-2);
  border: 1px dashed var(--rule);
  border-radius: var(--radius);
  min-height: 12rem;
  display: grid;
  place-items: center;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

/* Portrait and product imagery */
.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
  margin-bottom: 2rem;
}

.hero-copy { width: 100%; }

.hero-copy .text-link { margin-bottom: 0; }

.hero-portrait {
  order: -1; /* above the headline on mobile */
  flex-shrink: 0;
}

.hero-portrait img {
  width: 12.5rem; /* 200px */
  height: 12.5rem;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

@media (min-width: 840px) {
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: 2.5rem 2.75rem;
    align-items: center;
    margin-bottom: 2.4rem;
  }
  .hero-portrait {
    order: 0;
    justify-self: end;
  }
  .hero-portrait img {
    width: 20rem; /* 320px */
    height: 20rem;
  }
  .hero-copy h1 { max-width: 16ch; }
}

.about-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
}

.about-photo { line-height: 0; }

.about-photo img {
  width: 12.5rem; /* 200px on small screens */
  height: 12.5rem;
  max-width: 70vw;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.about-copy { width: 100%; }

@media (min-width: 720px) {
  .about-grid {
    grid-template-columns: 17.5rem 1fr;
    gap: 2.25rem;
    max-width: 56rem;
    margin-inline: auto;
    justify-items: start;
  }
  .about-photo img {
    width: 17.5rem; /* 280px */
    height: 17.5rem;
    max-width: none;
  }
}

.cover-link {
  display: block;
  border-radius: 0.7rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  line-height: 0;
}

.cover-link img {
  width: 100%;
  height: auto;
  display: block;
}

.cover-link:hover { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (min-width: 840px) {
  .playbook-panel {
    grid-template-columns: 1fr 16rem 0.85fr;
    gap: 1.6rem;
    align-items: center;
  }
}
