:root {
  --purple: #5d3754; /* primary purple */
  --purple-dark: #5d3754; /* darker shade for hover/headers */
  --ink: #5d3754; /* body text */
  --line: #e9e6ea; /* dividers */
  --bg: #ffffff; /* page */
  --focus: #1d4289; /* focus ring (blue) */
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Raleway", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 18px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: var(--purple);
  padding: 8px 12px;
  border: 2px solid var(--purple);
  border-radius: 8px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 1000;
}

.highlight {
  font-weight: 600;
  color: var(--purple);
}

/* Containers & Sections */
.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}
.narrow {
  width: min(900px, 100%);
  margin-inline: auto;
}

.section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}
.section.alt {
  background: #fff;
}

h1,
h2,
h3 {
  color: var(--purple-dark);
  margin: 0 0 14px;
  font-weight: 650;
  letter-spacing: 0.2px;
}
h2 {
  font-size: clamp(26px, 2.5vw, 34px);
}
h3 {
  font-size: clamp(20px, 2vw, 24px);
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
}
.brand h1 {
  font-size: clamp(28px, 3vw, 36px);
  margin-bottom: 4px;
  text-decoration: underline;
  text-underline-offset: 5px;
  color: var(--purple);
}
.subtitle {
  margin: 0;
  color: var(--purple-dark);
  font-weight: 600;
  font-size: 14px;
}

/* Nav */
.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  color: var(--purple);
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid var(--purple);
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.nav a:hover,
.nav a:focus {
  background: var(--purple);
  color: #fff;
  outline: none;
}

/* Key points */
.key-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 22px 0 8px;
  padding-left: 0; /* remove list indent */
}
.key-points li {
  list-style: none;
}
.kp {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.kp-icon {
  font-size: 20px;
  line-height: 1.2;
  color: var(--purple);
  margin-top: 3px;
}

/* Pull quote */
.pullquote {
  border-left: 6px solid var(--purple);
  padding: 12px 16px;
  margin: 24px 0 8px;
  background: #fff;
  font-style: italic;
  color: var(--purple-dark);
}
.pullquote footer {
  margin-top: 6px;
  font-style: normal;
  font-size: 0.95em;
  color: #7b6775;
}

/* Generic grid */
.grid {
  display: grid;
  gap: 18px;
}

/* Goals list (list-based but styled as cards) */
.goals-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 18px;
  padding-left: 0; /* remove default <ol> indent */
  counter-reset: dg; /* for optional auto-numbering if desired */
}
.goals-list > li {
  list-style: none;
}

/* Card */
.card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.card:hover {
  box-shadow: 0 8px 26px rgba(93, 55, 84, 0.12);
  transform: translateY(-2px);
}
.card-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 4px 10px;
  font-weight: 800;
  color: #fff;
  background: var(--purple);
  border-radius: 999px;
  font-size: 14px;
}

/* Sketches & Figures */
figure {
  margin: 0;
}
figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--line);
}
figcaption {
  text-align: center;
  font-size: 14px;
  margin-top: 8px;
  color: var(--purple-dark);
}
.wide {
  width: min(1000px, 100%);
  margin: 18px auto 26px;
}
.sketches-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 10px;
}
.sketches-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 18px;
}

/* Prototype features (as list items) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 16px;
  padding-left: 0; /* remove <ol> indent */
}
.feature-grid > li {
  list-style: none;
}

.feature {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: #fff;
}
.feature h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

/* Feature bullets inside cards */
.bullets {
  margin: 10px 0 0;
  padding-left: 1.2rem;
}
.bullets li {
  margin: 0.15rem 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 20px 0 40px;
  color: var(--purple-dark);
}
.footer-inner {
  text-align: center;
}
.small {
  font-size: 14px;
}

/* Links: underlined by default (except nav chips above) */
a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover {
  color: var(--purple-dark);
}

/* Inline code */
code {
  background: #f7f5f8;
  border: 1px solid var(--line);
  padding: 0 6px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
}

/* Focus styles */
a:focus,
button:focus,
[tabindex]:focus {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 720px) {
  .header-inner {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .nav {
    justify-content: center;
  }
  .key-points {
    grid-template-columns: 1fr;
  }
}

/* Current nav chip (outlined) vs hover (filled)
.nav a[aria-current="page"] {
  background: #fff;
  color: var(--purple);
  box-shadow: inset 0 0 0 2px var(--purple);
} */

/* Force two-column image grids where used */
.gallery-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* Make sure .grid provides the layout for gallery-2 containers */
.grid.gallery-2 {
  display: grid; /* already set by .grid, kept for clarity */
  gap: 18px; /* already from .grid */
}

/* Figures look tidy in grids */
.gallery-2 figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--line);
}

/* Responsive: stack images on small screens */
@media (max-width: 720px) {
  .gallery-2 {
    grid-template-columns: 1fr;
  }
}
