:root {
  --purple: #6B4EFF;
  --charcoal: #2B2B2B;
  --cream: #FAF7F2;
  --soft-gray: #E6E6EA;

  --radius-sm: 12px;
  --radius-md: 16px;

  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;

  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 17px;
}

a {
  color: var(--purple);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease;
}
a:hover { border-bottom-color: var(--purple); }

/* Focus indicator for keyboard users (WCAG 2.4.7) */
a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Underline links in body text so color isn't the only signal (WCAG 1.4.1) */
main a:not(.button) {
  text-decoration: underline;
  text-underline-offset: 2px;
}
main a:not(.button):hover { text-decoration-thickness: 2px; }

/* Skip link for keyboard users (WCAG 2.4.1) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--purple);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Visually hidden text for screen readers (used for "opens in new tab") */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--s-5) var(--s-3);
}

/* Blog post specific layout */
.post {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--s-5) var(--s-3);
}

.post .post-tags {
  margin-bottom: var(--s-2);
}

.post h1 {
  font-size: 2.4rem;
  margin-bottom: var(--s-3);
  letter-spacing: -0.01em;
}

.post .lead {
  font-size: 1.2rem;
  line-height: 1.5;
  color: #555;
  font-style: normal;
  margin: 0 0 var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--soft-gray);
}

.post h2 {
  border-left: 4px solid var(--purple);
  padding-left: var(--s-2);
  margin-top: var(--s-5);
}

.post p,
.post li {
  font-size: 1.05rem;
  line-height: 1.7;
}

.post ul,
.post ol {
  padding-left: var(--s-3);
  margin-bottom: var(--s-3);
}

.post li {
  margin-bottom: var(--s-2);
}

.post code {
  background: var(--soft-gray);
  color: var(--charcoal);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.92em;
  font-family: ui-monospace, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

.post .pullquote {
  margin: var(--s-4) 0;
  padding: var(--s-3) var(--s-3);
  background: var(--cream);
  border-left: 4px solid var(--purple);
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--charcoal);
}
.post .pullquote p { margin: 0; font-size: 1.25rem; }

/* Screenshots inside blog posts */
.post .post-figure {
  margin: var(--s-4) auto;
  text-align: center;
}

.post .post-screenshot {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--soft-gray);
  box-shadow: 0 2px 8px rgba(43, 43, 43, 0.06);
  background: #fff;
}

.post .post-screenshot--narrow {
  max-width: min(360px, 100%);
}

.post .post-screenshot--wide {
  max-width: 100%;
}

.post .post-figure figcaption {
  margin-top: var(--s-1);
  font-size: 0.9rem;
  color: #555;
  font-style: italic;
  line-height: 1.5;
}

.post-footer {
  margin-top: var(--s-5);
  padding-top: var(--s-3);
  border-top: 1px solid var(--soft-gray);
}
.post-footer a {
  display: inline-block;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--soft-gray);
  border-radius: var(--radius-sm);
  color: var(--charcoal);
  text-decoration: none !important;
  font-weight: 500;
}
.post-footer a:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.hero-logo {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 0 auto var(--s-4);
  border-radius: var(--radius-md);
}

.mascots {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 0 auto var(--s-3);
  border-radius: var(--radius-md);
}

.mascot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}
.mascot-card h3 { color: var(--purple); }

.promise {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--purple);
  text-align: center;
  margin: 0 auto var(--s-3);
  max-width: 560px;
}

.badge {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.disclaimer {
  font-size: 0.8rem;
  color: #6B6B6B;
  margin-top: var(--s-1);
}

@media (max-width: 540px) {
  .mascot-grid { grid-template-columns: 1fr; }
}

header.site {
  padding: var(--s-3);
  border-bottom: 1px solid var(--soft-gray);
  background: var(--cream);
}
header.site .inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.brand {
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--charcoal);
}
.brand a { color: inherit; border-bottom: none; }
nav a {
  margin-left: var(--s-2);
  color: var(--charcoal);
  padding: 8px 4px;
  display: inline-block;
}
nav a:hover { color: var(--purple); }

/* Indicate current page to screen readers and visually */
nav a[aria-current="page"] {
  color: var(--purple);
  font-weight: 600;
}

h1, h2, h3 {
  color: var(--charcoal);
  line-height: 1.25;
  margin: 0 0 var(--s-2);
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.5rem; margin-top: var(--s-4); }
h3 { font-size: 1.15rem; margin-top: var(--s-3); }

p { margin: 0 0 var(--s-2); }

.card {
  background: #fff;
  border: 1px solid var(--soft-gray);
  border-radius: var(--radius-md);
  padding: var(--s-3);
  margin-bottom: var(--s-3);
}
.card h3 { margin-top: 0; }

.button {
  display: inline-block;
  background: var(--purple);
  color: #fff !important;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border-bottom: none;
  margin: var(--s-2) 0 var(--s-3);
}
.button:hover { opacity: 0.92; border-bottom: none; }

.tag {
  display: inline-block;
  background: var(--soft-gray);
  color: var(--charcoal);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-right: 8px;
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tag-list li { display: inline; }
.card > .tag-list { margin-bottom: var(--s-1); }

.post-list { list-style: none; padding: 0; }
.post-list .tag-list { display: block; margin-bottom: 4px; }
.post-date {
  font-size: 0.85rem;
  color: #555;
  margin: 4px 0 0;
}
.post-list li {
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--soft-gray);
}

.experiment {
  background: #fff;
  border: 1px solid var(--soft-gray);
  border-radius: var(--radius-md);
  padding: var(--s-3);
  margin: var(--s-3) 0;
}
.experiment h3 { margin-top: 0; color: var(--purple); }

footer.site {
  padding: var(--s-4) var(--s-3);
  color: #666;
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 540px) {
  header.site .inner { flex-direction: column; align-items: flex-start; }
  nav a {
    margin-left: 0;
    margin-right: var(--s-2);
    padding: 12px 4px;
    min-height: 44px;
  }
  h1 { font-size: 1.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
