/* Photos are arranged like prints in a family album. Text stays on the page. */
.memory-frame {
  --photo-turn: -.7deg;
  --tape-color: #e7d9b9;
  position: relative;
  isolation: isolate;
  padding: 10px 10px 17px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 12px 28px -18px #37566188, 0 1px 5px #37566118;
  transform: rotate(var(--photo-turn));
  overflow: visible;
}
.memory-frame::before {
  content: '';
  position: absolute;
  z-index: 2;
  width: 82px;
  height: 24px;
  top: -12px;
  left: calc(50% - 41px);
  background: repeating-linear-gradient(90deg, #ffffff18 0 2px, transparent 2px 5px), var(--tape-color);
  opacity: .8;
  transform: rotate(-5deg);
  clip-path: polygon(1% 0, 100% 5%, 98% 100%, 0 92%);
}
.memory-frame .photo-window { overflow: hidden; border-radius: 3px; }
.memory-frame .photo-window img { display: block; width: 100%; height: auto; border-radius: 0; }
.memory-frame figcaption { margin: 12px 5px 0; font-size: 13px; line-height: 1.8; color: #58717a; }
.memory-handnote { display: block; color: #365969; font-size: 17px; font-weight: 700; margin-bottom: 5px; letter-spacing: .035em; }

/* A photograph beside the opening story, then before the body on a phone. */
.intro-layout {
  display: grid;
  grid-template-columns: .93fr 1.07fr;
  grid-template-areas: 'heading photo' 'copy photo';
  gap: 0 68px;
  text-align: left;
  align-items: start;
}
.intro-heading { grid-area: heading; }
.intro-heading h2 { font-size: clamp(28px, 2.65vw, 38px); line-height: 1.75; }
.intro-opening { font-size: 17px; line-height: 2; margin-top: 23px; }
.intro-layout .intro-copy { grid-area: copy; margin: 28px 0 0; max-width: none; }
.intro-layout .intro-copy br { display: none; }
.intro-daily-photo { grid-area: photo; align-self: center; margin: 12px 10px 12px 0; max-width: none; --photo-turn: 1.4deg; }
.intro-daily-photo::after, .staff-memory::after {
  content: '';
  position: absolute;
  inset: 22px -15px -16px 16px;
  z-index: -1;
  background: #e4eef1;
  transform: rotate(-3deg);
}
.intro-daily-photo figcaption { text-align: center; }
.intro-daily-photo::before { width: 104px; left: calc(50% - 52px); height: 28px; top: -14px; }

/* Six real experiences, with a light paper edge and a small piece of tape. */
.experience-grid { gap: 50px 32px; counter-reset: experience; padding: 7px 5px 0; }
.experience-card { counter-increment: experience; }
.experience-card .photo-slot { aspect-ratio: auto; padding: 8px 8px 14px; margin-bottom: 22px; }
.experience-card .photo-window { aspect-ratio: 4 / 3; }
.experience-card .photo-window img { width: 100%; height: 100%; object-fit: cover; }
.experience-card:nth-child(3n + 2) .memory-frame { --photo-turn: .9deg; --tape-color: #cde0e5; }
.experience-card:nth-child(3n) .memory-frame { --photo-turn: -.4deg; --tape-color: #ecd7d3; }
.experience-card:nth-child(n + 4) .memory-frame::before { left: 18px; transform: rotate(-13deg); }
.experience-category { display: flex; align-items: center; gap: 10px; margin: 0 0 7px; }
.experience-category::before { content: counter(experience, decimal-leading-zero); font: italic 20px/1 Georgia, serif; color: #8ba4ab; }
.experience-card h3 { font-size: 21px; }
.marche-card { position: relative; margin-top: 10px; padding-top: 55px; border-top: 1px dashed #b7cbd0; gap: 38px 58px; }
.photo-marche { aspect-ratio: auto; --photo-turn: -1deg; }
.photo-marche .photo-window { aspect-ratio: 4 / 3; }
.photo-marche .photo-window img { height: 100%; object-fit: cover; }
.marche-content .eyebrow { margin-bottom: 14px; }
.marche-gallery { width: 90%; margin: 3px auto 0; gap: 38px; align-items: start; }
.marche-gallery .memory-frame:first-child { --photo-turn: .8deg; --tape-color: #cde0e5; }
.marche-gallery .memory-frame:last-child { --photo-turn: -1.4deg; --tape-color: #ecd7d3; margin-top: 25px; }
.marche-gallery .memory-frame:last-child::before { left: auto; right: -14px; top: 8px; transform: rotate(35deg); width: 65px; }

/* Every day: one complete rhythm, one shared moment, and two equal lessons. */
.everyday { background: #fffefb; }
.everyday .section-heading { margin-bottom: 45px; }
#everyday-title { position: relative; padding-bottom: 23px; }
#everyday-title::after { content: ''; position: absolute; bottom: 0; left: calc(50% - 52px); width: 104px; height: 7px; border-bottom: 3px solid #cbdfe4; border-radius: 50%; transform: rotate(-2deg); }
.homework-note { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px 56px; padding: 38px 0 29px; border-top: 1px solid #e0e7e6; border-bottom: 1px solid #e0e7e6; align-items: center; }
.daily-heading h3, .story-heading h3, .lesson-copy h3 { font-size: 27px; line-height: 1.7; }
.daily-copy p, .story-copy p, .lesson-copy>p:not(.panel-kicker) { font-size: 16px; line-height: 1.95; text-wrap: pretty; }
.daily-copy p+p, .story-copy p+p, .lesson-copy p+p { margin-top: 16px; }
.routine-track { grid-column: 1 / -1; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; width: min(720px, 100%); padding: 26px 0 0; margin: 0 auto; }
.routine-track li { position: relative; display: grid; justify-items: center; gap: 7px; text-align: center; }
.routine-track li+li::before { content: '→'; position: absolute; left: -26px; top: 37px; color: #a5bcc4; font-size: 23px; }
.routine-track svg { width: 49px; height: 49px; stroke: #708e97; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: #f2f6f5; }
.routine-track li:nth-child(2) svg { fill: #f8f0d9; stroke: #a99a6d; }
.routine-track li:nth-child(3) svg { fill: #f6e9e5; stroke: #b2978a; }
.routine-track span { font-size: 17px; color: var(--deep); font-weight: 700; }
.routine-track small { font-size: 13px; color: #58717a; }
.staff-story { display: grid; grid-template-columns: 1.06fr 1fr; grid-template-areas: 'photo heading' 'photo copy'; gap: 17px 64px; margin: 83px 0 86px; align-items: start; }
.story-heading { grid-area: heading; }
.story-copy { grid-area: copy; }
.staff-memory { grid-area: photo; align-self: center; margin: 0 14px 12px 0; --photo-turn: -1.3deg; --tape-color: #ccdfe5; }
.staff-memory .photo-window { aspect-ratio: 4 / 3; }
.staff-memory .photo-window img { height: 100%; object-fit: cover; }
.staff-memory figcaption { text-align: center; }
.staff-memory::after { background: #f7ecd2; transform: rotate(3deg); }
.staff-quote { width: fit-content; padding: 4px 2px; background: linear-gradient(transparent 63%, #f4e7ba 63%, #f4e7ba 94%, transparent 94%); }
.lesson-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 58px; }
.lesson-story { min-width: 0; }
.lesson-memory { margin: 0 4px 31px; --photo-turn: .8deg; --tape-color: #dddccb; }
.lesson-memory .photo-window { aspect-ratio: 4 / 3; }
.lesson-memory .photo-window img { width: 100%; height: 100%; object-fit: cover; }
.digital .photo-window img { object-position: 50% 18%; }
.english .lesson-memory { --photo-turn: -.7deg; --tape-color: #d6e3db; }
.lesson-copy { padding: 0 8px; }
.lesson-copy h3 { margin: 0 0 20px; min-height: 92px; }
.lesson-copy .panel-kicker { margin: 0 0 10px; font-size: 13px; }
.lesson-copy>p:not(.panel-kicker) { margin: 0; }
.lesson-copy>p+p:not(.panel-kicker) { margin-top: 16px; }

@media(max-width: 1000px) {
  .intro-layout { gap: 0 42px; grid-template-columns: 1fr 1fr; }
  .intro-heading h2 { font-size: 29px; }
  .intro-opening { font-size: 16px; }
  .intro-opening br:last-child { display: none; }
  .staff-story { gap: 16px 38px; }
  .lesson-grid { gap: 35px; }
  .daily-heading h3, .story-heading h3, .lesson-copy h3 { font-size: 24px; }
  .homework-note { gap: 20px 35px; }
}
@media(max-width: 760px) {
  .intro-layout { grid-template-columns: 1fr; grid-template-areas: 'heading' 'photo' 'copy'; gap: 0; }
  .intro-heading { text-align: center; }
  .intro-heading h2 { font-size: clamp(27px, 6.4vw, 35px); }
  .intro-opening { font-size: 17px; }
  .intro-opening br:last-child { display: initial; }
  .intro-daily-photo { width: min(540px, calc(100% - 10px)); margin: 36px auto 21px; }
  .intro-layout .intro-copy { margin-top: 26px; }
  .memory-frame { transform: none; }
  .memory-handnote { font-size: 15px; }
  .experience-grid { gap: 43px 25px; padding: 7px 2px 0; }
  .experience-card .memory-frame { padding: 7px 7px 13px; }
  .experience-card .memory-frame::before { width: 65px; height: 21px; left: calc(50% - 32px); top: -10px; }
  .experience-card h3 { font-size: 20px; }
  .marche-card { padding-top: 42px; gap: 25px; }
  .photo-marche { margin-top: 4px; }
  .marche-content { padding: 4px 5px; }
  .marche-gallery { width: 96%; grid-template-columns: 16fr 9fr; gap: 20px; margin-top: 4px; }
  .marche-gallery .memory-frame { padding: 6px 6px 12px; }
  .marche-gallery figure:last-child { max-width: none; justify-self: stretch; }
  .marche-gallery figcaption { font-size: 12px; margin: 8px 1px 0; }
  .marche-gallery .memory-frame:first-child::before { width: 55px; height: 19px; left: calc(50% - 27px); top: -9px; }
  .marche-gallery .memory-frame:last-child::before { width: 48px; height: 18px; right: -11px; top: 4px; }
  .homework-note { grid-template-columns: 1fr; gap: 21px; padding: 29px 0 26px; }
  .daily-heading h3 br { display: none; }
  .daily-heading h3, .story-heading h3, .lesson-copy h3 { font-size: 24px; }
  .routine-track { gap: 12px; padding-top: 7px; }
  .routine-track span { font-size: 14px; letter-spacing: -.035em; }
  .routine-track small { font-size: 11px; }
  .routine-track li+li::before { left: -15px; font-size: 18px; top: 31px; }
  .routine-track svg { width: 44px; height: 44px; }
  .staff-story { grid-template-columns: 1fr; grid-template-areas: 'heading' 'photo' 'copy'; gap: 26px; margin: 51px 0 58px; }
  .staff-memory { margin: 0 8px 10px 2px; }
  .story-copy { margin-top: 0; }
  .staff-quote { font-size: 15px!important; }
  .lesson-grid { grid-template-columns: 1fr; gap: 50px; }
  .lesson-memory { margin: 0 2px 25px; }
  .lesson-copy { padding: 0 3px; }
  .lesson-copy h3 { min-height: 0; margin-bottom: 19px; }
  .everyday .section-heading { margin-bottom: 32px; }
  #everyday-title { font-size: clamp(25px, 6.1vw, 35px); letter-spacing: 0; }
}
@media(max-width: 600px) {
  .experience-grid { grid-template-columns: 1fr; gap: 42px; }
  .experience-card .photo-slot { margin-bottom: 21px; }
  .experience-card h3 { font-size: 22px; }
  .experience-card .memory-frame::before { width: 78px; left: calc(50% - 39px); }
  .marche-gallery { gap: 15px; }
}
@media(max-width: 360px) {
  .daily-heading h3 br { display: initial; }
  .intro-heading h2 { font-size: 26px; letter-spacing: 0; }
  .intro-opening { font-size: 15px; }
  .memory-handnote { font-size: 13px; }
  .memory-frame figcaption { font-size: 12px; }
  .routine-track span { font-size: 12px; }
  .routine-track small { font-size: 10px; }
  .daily-heading h3, .story-heading h3, .lesson-copy h3 { font-size: 22px; }
  #everyday-title { font-size: 23px; }
}
