:root {
  --page: #ffffff;
  --soft: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --green: #1769d2;
  --green-light: #e8f2ff;
  --gold: #d4a84e;
  --blue: #dfeaf1;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

button {
  color: inherit;
  font: inherit;
}

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

.container {
  width: min(1060px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.narrow {
  max-width: 790px;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 20;
  padding: 0.6rem 0.9rem;
  transform: translateY(-160%);
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
}

.nav-wrap,
.footer-inner {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
}

.profile-nav a {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  color: var(--muted);
  white-space: nowrap;
}

.profile-nav a:hover,
.profile-nav a[aria-current="page"] {
  background: var(--soft);
  color: var(--ink);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--ink);
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  max-width: 15ch;
  margin-bottom: 1rem;
  font-size: clamp(2.4rem, 6vw, 4.3rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.eyebrow,
.card-kicker {
  margin-bottom: 0.55rem;
  color: var(--green);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lead {
  max-width: 650px;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.home-hero,
.page-hero {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  background: var(--page);
}

.home-hero h1 {
  max-width: 13ch;
}

.home-hero .narrow {
  text-align: center;
}

.home-hero h1,
.home-hero .lead {
  margin-right: auto;
  margin-left: auto;
}

.home-hero h1 {
  font-size: clamp(3rem, 8vw, 5.6rem);
}

.page-hero {
  padding-bottom: 0;
  text-align: center;
}

.page-hero-copy {
  max-width: 800px;
  margin: 0 auto;
}

.page-hero-copy .back-link {
  display: block;
  margin-bottom: 2rem;
}

.page-hero-copy h1 {
  max-width: 12ch;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(3.3rem, 8vw, 6.25rem);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.page-hero-copy .lead {
  max-width: 620px;
  margin-right: auto;
  margin-left: auto;
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.hero-art {
  position: relative;
  display: flex;
  width: min(100%, 980px);
  min-height: 330px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 4.5rem auto 0;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(135deg, #1d1d1f, #252b35 62%, #36465a);
  color: #fff;
  text-align: left;
}

.hero-art::before {
  position: absolute;
  top: -34%;
  right: 7%;
  width: 43%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 50%;
  content: "";
}

.hero-art::after {
  position: absolute;
  right: 17%;
  bottom: -72%;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #cad9f0, #7d92b4 44%, #536379 70%);
  content: "";
}

.hero-art-label,
.hero-art-title,
.hero-art-caption {
  position: absolute;
  z-index: 1;
  left: clamp(1.5rem, 7vw, 5.5rem);
}

.hero-art-label {
  top: 2rem;
  color: #cbd4e4;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.hero-art-title {
  top: 50%;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.98;
  transform: translateY(-50%);
}

.hero-art-caption {
  bottom: 1.7rem;
  color: #d3dae6;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.11em;
}

.hero-art-orbit,
.hero-art-sun {
  position: absolute;
  z-index: 1;
  right: 20%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}

.hero-art-orbit-one {
  width: 25%;
  aspect-ratio: 1;
}

.hero-art-orbit-two {
  width: 34%;
  aspect-ratio: 1;
  transform: rotate(45deg) scaleY(0.55);
}

.hero-art-sun {
  right: 28%;
  width: 10%;
  aspect-ratio: 1;
  border: 0;
  background: linear-gradient(135deg, #e6d5bd, #7c93b4);
  box-shadow: 0 12px 40px rgba(173, 194, 231, 0.3);
}

.activity-shortcuts {
  display: flex;
  justify-content: center;
  gap: 2rem;
  overflow-x: auto;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.activity-shortcuts a {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
}

.activity-shortcuts a span {
  margin-right: 0.35rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 400;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
}

.button:hover,
.button:focus-visible {
  background: #244b36;
  color: white;
  text-decoration: none;
}

.button-outline {
  background: transparent;
  color: var(--green);
}

.button-outline:hover,
.button-outline:focus-visible {
  background: var(--green-light);
  color: var(--green);
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
}

.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.blog-article {
  max-width: 760px;
  margin: 0 auto;
}

.blog-article-header {
  margin-bottom: 2rem;
}

.blog-article-header h1 {
  max-width: none;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.blog-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.blog-content p {
  margin-bottom: 1.25rem;
}

.blog-source {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.section-heading h2 {
  margin-bottom: 0.5rem;
}

.section-intro {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.family-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.profile-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: var(--shadow);
}

.profile-art {
  display: grid;
  min-height: 150px;
  place-items: center;
  color: var(--green);
  font-size: 3rem;
  font-weight: 300;
}

.profile-art-riddhima {
  background: #edf2e8;
}

.profile-art-swim {
  background: #e5eef5;
}

.profile-card-copy {
  padding: 1.3rem;
}

.profile-card-copy p:not(.card-kicker) {
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 650;
}

.about-section {
  padding: 2.5rem 0;
  background: var(--soft);
}

.about-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

.about-inner h2 {
  margin-bottom: 0.4rem;
}

.about-inner p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  min-height: 70px;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-inner p {
  margin: 0;
}

/* Shared horizontal timelines */
.story-timeline-section {
  overflow: hidden;
  background: var(--soft);
}

.timeline-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.timeline-heading .section-heading {
  margin-bottom: 0;
}

.timeline-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 0.5rem;
  padding-bottom: 0.2rem;
}

.timeline-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--green);
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 160ms ease, color 160ms ease;
}

.timeline-arrow:hover,
.timeline-arrow:focus-visible {
  background: var(--ink);
  color: white;
}

.story-timeline {
  position: relative;
  margin: 1.5rem -1.25rem 0;
}

.story-timeline::before {
  position: absolute;
  top: 2rem;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--line);
  content: "";
}

.story-timeline-track {
  position: relative;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem max(1.25rem, calc((100vw - 1060px) / 2)) 1.5rem;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-color: #aeb8c7 transparent;
  scrollbar-width: thin;
}

.story-milestone {
  position: relative;
  display: flex;
  min-height: 270px;
  flex: 0 0 min(36vw, 350px);
  min-width: 260px;
  flex-direction: column;
  align-items: flex-start;
  padding: 4rem 1.5rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  scroll-snap-align: start;
}

.milestone-point {
  position: absolute;
  top: 0.55rem;
  left: 1.4rem;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: white;
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 700;
}

.story-milestone h3 {
  margin-bottom: 0.65rem;
  font-size: 1.55rem;
  letter-spacing: -0.035em;
}

.story-milestone > p:not(.card-kicker) {
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.milestone-note,
.milestone-link {
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 600;
}

.milestone-note {
  color: var(--muted);
}

.milestone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.milestone-family {
  background: #f0f3f8;
}

.milestone-creative {
  background: #edf2e8;
}

.milestone-swim {
  background: #e6f0f5;
}

.timeline-scroll-hint {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

/* Riddhima's activity timeline */
.timeline-section {
  padding-top: 5rem;
  background: var(--soft);
}

.timeline {
  position: relative;
  margin-top: 1.5rem;
}

.timeline::before {
  position: absolute;
  top: 2rem;
  right: 0;
  left: 0;
  width: auto;
  height: 2px;
  background: var(--line);
  content: "";
}

.timeline-event {
  position: relative;
  flex: 0 0 min(78vw, 760px);
  padding-top: 0.5rem;
  scroll-margin-top: 6rem;
  scroll-snap-align: start;
}

.timeline-event:nth-child(odd) .event-content {
  border: 1px solid var(--line);
}

.swim-timeline-section {
  background: #f0f5f8;
}

.swim-milestone-practice {
  background: #e8f0f6;
}

.swim-milestone-meet {
  background: #edf2e8;
}

.swim-milestone-best {
  background: #f1eef7;
}

.swim-milestone-next {
  background: #f8f1e4;
}

.timeline-number {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 1.5rem;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: white;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
}

.event-content {
  min-width: 0;
  min-height: 100%;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 0;
  border-radius: 22px;
  background: white;
  box-shadow: none;
}

.timeline-event:nth-child(even) .event-content {
  background: #1d1d1f;
  color: #f5f5f7;
}

.timeline-event:nth-child(even) .card-kicker {
  color: #8ab4f8;
}

.timeline-event:nth-child(even) .event-description {
  color: #b6b6bd;
}

.timeline-event:nth-child(even) .carousel-heading > p {
  color: #f5f5f7;
}

.timeline-event:nth-child(even) .next-event {
  color: #8ab4f8;
}

.event-content h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.event-description {
  margin-bottom: 1.15rem;
  color: var(--muted);
}

.carousel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.carousel-heading > p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 650;
}

.carousel-controls {
  display: flex;
  gap: 0.45rem;
}

.carousel-button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--green);
  cursor: pointer;
  font-size: 1.1rem;
}

.carousel-button:hover,
.carousel-button:focus-visible {
  background: var(--green-light);
}

.media-track {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding: 0.1rem 0 0.85rem;
  scroll-behavior: auto;
  scroll-snap-type: x mandatory;
  scrollbar-color: #b7c8bb transparent;
  scrollbar-width: thin;
}

.media-card {
  flex: 0 0 42%;
  min-width: 230px;
  overflow: hidden;
  scroll-snap-align: start;
  border: 0;
  border-radius: 14px;
  background: white;
  color: var(--ink);
}

.media-card figcaption,
.video-caption {
  display: block;
  padding: 0.7rem 0.8rem;
  font-size: 0.81rem;
  font-weight: 650;
}

.media-card figcaption span,
.video-caption span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 400;
}

.sample-image,
.video-thumbnail {
  position: relative;
  display: grid;
  height: 160px;
  place-items: center;
  overflow: hidden;
}

.trophy-image {
  background: linear-gradient(145deg, #f8efd9, #e8d8ae);
}

.trophy-cup {
  position: relative;
  width: 62px;
  height: 57px;
  border: 5px solid #aa7a22;
  border-top: 0;
  border-radius: 0 0 28px 28px;
  background: linear-gradient(135deg, #f1d878, #bd8a29);
}

.trophy-cup::before,
.trophy-cup::after {
  position: absolute;
  top: 3px;
  width: 20px;
  height: 28px;
  border: 4px solid #aa7a22;
  content: "";
}

.trophy-cup::before {
  right: 100%;
  border-right: 0;
  border-radius: 18px 0 0 18px;
}

.trophy-cup::after {
  left: 100%;
  border-left: 0;
  border-radius: 0 18px 18px 0;
}

.certificate-image {
  margin: 12px;
  height: 136px;
  border: 7px double #b89a5c;
  background: #fffdf6;
}

.certificate-title {
  color: #806932;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.certificate-seal {
  position: absolute;
  right: 14%;
  bottom: 14%;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid #b89a5c;
  border-radius: 50%;
  color: #b89a5c;
}

.sample-stamp {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 1;
  padding: 0.2rem 0.4rem;
  border: 1px solid rgba(32, 40, 32, 0.25);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.88);
  color: #505850;
  font-size: 0.58rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.video-card:hover,
.video-card:focus-visible {
  text-decoration: none;
}

.video-thumbnail {
  display: flex;
  justify-content: center;
  background: #dce7dc;
}

.tennis-thumbnail {
  background: linear-gradient(135deg, #cbdaa9 0 48%, #869e75 48% 100%);
}

.piano-thumbnail {
  background: linear-gradient(135deg, #d6c6b8, #97877d);
}

.debate-thumbnail {
  background: linear-gradient(135deg, #c9d9e3, #839aa6);
}

.pottery-thumbnail {
  background: linear-gradient(135deg, #d9c0ad, #a7775f);
}

.play-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding-left: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--green);
  font-size: 0.9rem;
}

.next-event {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  font-weight: 650;
}

/* Swim journal */
.soft-section {
  background: var(--soft);
}

.timesheet-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.timesheet {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.timesheet caption {
  padding: 0.75rem 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: left;
}

.timesheet th,
.timesheet td {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--line);
}

.timesheet th {
  background: var(--soft);
  color: var(--green);
  font-size: 0.75rem;
}

.timesheet td {
  color: var(--muted);
  font-size: 0.84rem;
}

.empty-row td {
  height: 90px;
  text-align: center;
}

.simple-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.simple-photo-slot,
.simple-video-slot {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #e5eff2;
  text-align: center;
}

.simple-photo-slot > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  font-size: 1.5rem;
}

.simple-photo-slot p {
  margin: 0;
  color: var(--muted);
}

.simple-video-slot a {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 2rem, 620px);
  }

  .nav-wrap {
    position: relative;
    min-height: 62px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 1rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
    flex-direction: column;
  }

  .site-nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .page-hero-copy h1 {
    font-size: clamp(3.1rem, 14vw, 5rem);
  }

  .hero-art {
    min-height: 270px;
    margin-top: 3rem;
    border-radius: 16px 16px 0 0;
  }

  .hero-art::after {
    right: -14%;
    width: 72%;
  }

  .hero-art-orbit,
  .hero-art-sun {
    right: 12%;
  }

  .activity-shortcuts {
    justify-content: flex-start;
    gap: 1.2rem;
  }

  .story-milestone {
    flex-basis: 78vw;
    min-width: 0;
  }

  .timeline-section {
    padding-top: 3.5rem;
  }

  .family-grid,
  .simple-media-grid {
    grid-template-columns: 1fr;
  }

  .about-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.2rem;
  }

  .event-content {
    padding: 1rem;
  }

  .media-card {
    flex-basis: 78%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0;
  }

  .timesheet {
    min-width: 600px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  .media-track {
    scroll-behavior: auto;
  }
}
