:root {
  color-scheme: light;
  --canvas: #f3f6fa;
  --paper: #fff;
  --ink: #17263a;
  --muted: #486079;
  --navy: #22416a;
  --navy-hover: #193353;
  --on-navy-muted: #deebf7;
  --line: #d5dfeb;
  --green: #e7f1eb;
  --green-hover: #d8eade;
  --warm: #f4d58e;
  --warm-hover: #f1ca74;
  --radius: 12px;
  --gutter: clamp(1rem, 4vw, 1.75rem);
}

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 1rem/1.55 Roboto, system-ui, sans-serif;
}

h1, h2, p {
  margin: 0;
}

h1, h2 {
  line-height: 1.18;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(1.625rem, 5.5vw, 2.125rem);
}

h2 {
  font-size: clamp(1.25rem, 4vw, 1.5rem);
}

a:focus-visible, button:focus-visible {
  outline: 2px solid #1f62bd;
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.icon {
  display: block;
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page {
  width: min(100%, 40rem);
  margin-inline: auto;
  padding: var(--gutter) var(--gutter) 2.5rem;
}

.hero {
  padding: clamp(1rem, 4vw, 1.75rem);
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--paper);
}

.hero a:focus-visible {
  outline-color: var(--paper);
}

.profile {
  display: grid;
  justify-items: center;
  gap: 0.625rem;
  padding: 0.375rem 0 1.375rem;
  text-align: center;
}

.portrait-link {
  display: inline-block;
  border-radius: 50%;
}

.portrait {
  display: block;
  width: 5.25rem;
  height: 5.25rem;
  border-radius: inherit;
  object-fit: cover;
}

.profile .portrait-link {
  margin-bottom: 0.25rem;
}

.profile-role {
  line-height: 1.4;
}

.profile-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.875rem;
  color: var(--on-navy-muted);
  font-size: 0.875rem;
}

.profile-intro {
  max-width: 32ch;
}

.actions {
  display: grid;
  gap: 0.625rem;
}

.action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.375rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--navy);
  line-height: 1.3;
  text-decoration: none;
}

.action:hover {
  background: #eaf1f9;
}

.action--green {
  border-color: transparent;
  background: var(--green);
  color: #23483d;
}

.action--green:hover {
  background: var(--green-hover);
}

.action--warm {
  border-color: transparent;
  background: var(--warm);
  color: #392c19;
}

.action--warm:hover {
  background: var(--warm-hover);
}

.action--navy {
  border-color: transparent;
  background: var(--navy);
  color: var(--paper);
}

.action--navy:hover {
  background: var(--navy-hover);
}

.action-label {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.action-title, .action-detail {
  display: block;
}

.action-title {
  font-weight: 700;
}

.action-detail {
  margin-top: 0.125rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.action--green .action-detail {
  color: #355747;
}

.action--warm .action-detail {
  color: #544121;
}

.action--navy .action-detail {
  color: var(--on-navy-muted);
}

.action-label + .icon {
  width: 1rem;
  height: 1rem;
}

.home-section {
  margin-top: 1.5rem;
}

.home-section h2 {
  margin-bottom: 0.625rem;
  color: var(--navy);
}

.review-gallery {
  max-width: 28rem;
  margin-inline: auto;
}

.gallery-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.gallery-track {
  display: flex;
  touch-action: pan-y pinch-zoom;
  user-select: none;
}

.review-gallery[data-ready] .gallery-track {
  transition: transform 240ms ease-out;
}

.review-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.review-slide img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.gallery-arrows {
  position: absolute;
  inset: 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.gallery-arrow, .gallery-dot {
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--navy);
  cursor: pointer;
}

.gallery-arrow {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  pointer-events: auto;
}

.gallery-arrow[aria-disabled="true"] {
  visibility: hidden;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  margin-top: 0.25rem;
}

.gallery-dot {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.gallery-dot::before {
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid var(--muted);
  border-radius: 50%;
  content: "";
}

.gallery-dot[aria-current="true"]::before {
  border-color: var(--navy);
  background: var(--navy);
}

.site-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

.page--detail {
  padding-top: clamp(1.5rem, 5vw, 3rem);
}

.detail-heading {
  display: grid;
  justify-items: center;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
  color: var(--navy);
  text-align: center;
}

.detail-heading--bio {
  padding: clamp(1rem, 5vw, 1.5rem);
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--paper);
}

.detail-heading--bio .icon {
  width: 1.75rem;
  height: 1.75rem;
}

.detail-subtitle {
  color: var(--muted);
}

.reading {
  display: grid;
  gap: 1rem;
  padding: clamp(0.875rem, 4vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow-wrap: anywhere;
}

.course {
  display: grid;
  gap: 0.5rem;
}

.course + .course {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.course h2 {
  color: var(--navy);
  font-size: 1.125rem;
}

.feature-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding-left: 1.25rem;
}

.feature-list li::marker {
  color: var(--navy);
}

.detail-note {
  color: var(--navy);
  font-weight: 700;
}

.callout {
  padding: 0.75rem;
  border-left: 3px solid var(--navy);
  background: var(--canvas);
  color: var(--navy);
  font-weight: 700;
}

.detail-actions {
  margin-top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .review-gallery[data-ready] .gallery-track {
    transition: none;
  }
}
