/* The four chapters keep their colour and become useful signposts. */
.section-heading{gap:18px;padding-top:22px;margin-bottom:24px;min-height:92px;align-items:center}
.section-heading .section-number{width:62px;height:66px;flex-basis:62px;font:500 31px/1 var(--serif);box-shadow:var(--paper-shadow);border-radius:5px 14px 5px 14px}
.section-heading>h2{font:500 clamp(29px,3.2vw,43px)/1.12 var(--serif);letter-spacing:-.035em;max-width:100%;text-wrap:balance;color:var(--stop-ink)}
.section-heading>h2::after{content:"";display:block;margin-top:9px;width:56px;height:5px;background:var(--stop-paper);border-radius:80% 20%;transform:rotate(-3deg);transition:width .4s ease}
.sequence-section:focus-within>.section-heading>h2::after,.section-heading:hover>h2::after{width:100px}
.section-heading.is-in-view .section-number{animation:chapter-arrive .65s ease both}
.section-heading.is-in-view>h2{animation:title-arrive .55s ease both}
@keyframes chapter-arrive{from{opacity:.45;transform:translateY(9px) rotate(-12deg)}to{opacity:1;transform:translateY(0) rotate(-4deg)}}
@keyframes title-arrive{from{opacity:.4;transform:translateX(-8px)}to{opacity:1;transform:translateX(0)}}
#calendar-panel .calendar-context>summary{display:flex;margin-bottom:14px;font:500 20px/1.25 var(--serif);color:var(--ink)}
.exchange-calendar__choice strong{line-height:1.8!important}
.exchange-calendar__choice p>span{font-weight:600!important;color:var(--purple)!important}
#planned-day strong{font-size:12px;line-height:1.5}
@media(max-width:680px){.section-heading{gap:13px;min-height:77px;margin-bottom:18px;padding-top:17px}.section-heading .section-number{width:47px;height:51px;flex-basis:47px;font-size:25px}.section-heading>h2{font-size:30px}.section-heading>h2::after{margin-top:7px}.intro h1 em{white-space:normal}}
@media(max-width:355px){.section-heading>h2{font-size:26px}.section-heading .section-number{width:41px;height:47px;flex-basis:41px;font-size:23px}.section-heading{gap:11px}}
@media(prefers-reduced-motion:reduce){.section-heading *{animation:none!important;transition:none!important}}

/* All four chapter titles share the light calendar treatment and a brief wobble. */
.sequence-section .section-heading{gap:16px;min-height:98px}
.sequence-section .section-heading>h2{font-weight:300;font-size:clamp(36px,4.6vw,60px);letter-spacing:-.045em;transform-origin:18% 75%}
.sequence-section .section-heading .section-number{font-weight:300;font-size:42px;background:transparent;border-color:transparent;box-shadow:none;transform-origin:50% 70%}
.sequence-section .section-heading>h2::after{height:3px}
.sequence-section .section-heading.is-wiggling>h2{animation:calendar-title-wiggle .6s ease-in-out both}
.sequence-section .section-heading.is-wiggling .section-number{animation:calendar-number-wiggle .6s ease-in-out both}
@keyframes calendar-title-wiggle{0%,100%{transform:rotate(0)}22%{transform:rotate(-1.8deg)}45%{transform:rotate(1.5deg)}68%{transform:rotate(-.8deg)}85%{transform:rotate(.4deg)}}
@keyframes calendar-number-wiggle{0%,100%{transform:rotate(-4deg)}22%{transform:rotate(5deg)}45%{transform:rotate(-8deg)}68%{transform:rotate(1deg)}85%{transform:rotate(-5deg)}}
@media(max-width:680px){.sequence-section .section-heading{gap:10px;min-height:82px}.sequence-section .section-heading>h2{font-size:39px}.sequence-section .section-heading .section-number{font-size:32px}}
@media(max-width:355px){.sequence-section .section-heading>h2{font-size:34px}.sequence-section .section-heading .section-number{font-size:28px}}
@media(prefers-reduced-motion:reduce){.sequence-section .section-heading.is-wiggling>*{animation:none!important}}

/* Suggested, selected and held days remain distinct even without colour. */
.exchange-calendar .exchange-calendar__day{min-height:52px;align-content:center;gap:3px}
.exchange-calendar .exchange-calendar__day.is-suggested:not(.is-selected):not(.is-booked){background:var(--paper-ochre);border-color:var(--edge-ochre);color:#5b482b}
.exchange-calendar .exchange-calendar__day.is-selected:not(.is-booked){background:var(--purple);border-color:var(--purple);color:white}
.exchange-calendar .exchange-calendar__day.is-booked:disabled{background:var(--paper-sage);border-color:#879a6b;color:#30462b;opacity:1;box-shadow:none}
.exchange-calendar .calendar-person{display:block;width:100%;min-width:0;padding-inline:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:500 8px/1.3 var(--sans)}
.exchange-calendar .legend-suggested i{background:var(--paper-ochre);border:1px solid var(--edge-ochre)}
.exchange-calendar .legend-selected i{background:var(--purple)}
.exchange-calendar .legend-booked i{background:var(--paper-sage);border:1px solid #879a6b}
.exchange-calendar .exchange-calendar__legend>span{display:inline-flex;align-items:center;gap:4px}
.exchange-calendar .exchange-calendar__legend i{width:8px;height:8px}
.calendar-live-status{font:10px/1.5 var(--sans);color:var(--muted);margin:10px 0 12px}
.calendar-live-status button{display:inline;background:none;border:0;padding:0;color:var(--purple);text-decoration:underline;font:inherit;cursor:pointer}
#calendar-panel .calendar-layout .exchange-calendar__day{min-height:52px}
@media(max-width:355px){.exchange-calendar .calendar-person{font-size:7px}.exchange-calendar .exchange-calendar__legend{font-size:8px;gap:5px}}

.intro-copy>.intro-lead{font-size:23px;line-height:1.55;max-width:580px}
.sequence-section .section-heading>h2{min-width:0}
@media(max-width:680px){.intro-copy>.intro-lead{font-size:21px;line-height:1.5}}
@media(max-width:355px){.intro-copy>.intro-lead{font-size:19px}}

/* Just a little extra give on the notebook and primary next-step buttons. */
.notebook-nav.is-playful{animation:notebook-nudge .46s ease-in-out both}
@keyframes notebook-nudge{0%,100%{transform:rotate(-1deg)}25%{transform:translateY(-2px) rotate(-2.8deg)}55%{transform:rotate(1.2deg)}80%{transform:rotate(-1.6deg)}}
.card-bottom>.button.purple{transition:transform .15s ease,box-shadow .15s ease}
.card-bottom>.button.purple:active{transform:translateY(2px) rotate(-.6deg) scale(.985);box-shadow:0 1px 0 #5e407629}
.notebook-nav:active{transform:translateY(2px) rotate(-1deg) scale(.985)}
@media(prefers-reduced-motion:reduce){.notebook-nav.is-playful{animation:none!important}.card-bottom>.button.purple,.notebook-nav{transition:none!important}.card-bottom>.button.purple:active,.notebook-nav:active{transform:none}}

/* A diagonal newspaper-style label at the opening's left corner. */
.intro.wrap{position:relative;padding-top:90px}
.exchange-corner{position:absolute;top:20px;left:34px;display:inline-block;padding:10px 20px;border:1px solid var(--edge-lime);border-radius:3px 7px 3px 7px;background:var(--paper-lime);color:var(--ink);box-shadow:3px 4px 0 #a8ae7930;font:700 13px/1.1 var(--sans);letter-spacing:.12em;transform:rotate(-14deg);transform-origin:center;white-space:nowrap}
.intro h1 em{white-space:normal}
@media(max-width:680px){.intro.wrap{padding-top:77px}.exchange-corner{top:21px;left:20px;font-size:11px;padding:9px 16px;transform:rotate(-12deg)}}
.site-footer{flex-wrap:wrap}.nexus-credit{font:400 10px/1.5 var(--sans);letter-spacing:0;opacity:.7}.nexus-credit a{text-decoration:none;text-underline-offset:3px}.nexus-credit a:hover{text-decoration:underline}
.quiz-editorial .activity-notice{font-size:10px;line-height:1.5;opacity:.75}

/* Small handwritten name slips, positioned under each person in the photo. */
.family-portrait{position:relative;margin:0;min-width:0;width:100%}
.family-portrait figcaption{position:absolute;inset:0;pointer-events:none;margin:0;color:var(--ink);font:400 10px/1.35 'Kalam','Comic Sans MS',cursive;letter-spacing:0}
.family-portrait figcaption span{position:absolute;bottom:7%;left:29.2%;transform:translateX(-50%) rotate(-5deg);white-space:nowrap;padding:3px 9px 2px;background:#fffdf2ed;border-radius:2px 4px 2px 3px;box-shadow:1px 2px 3px #16291b25;text-align:center}
.family-portrait figcaption span:nth-child(2){left:50%;transform:translateX(-50%) rotate(3deg)}
.family-portrait figcaption span:last-child{left:70%;transform:translateX(-50%) rotate(-3deg)}
.exchange-profile>.family-portrait{margin-bottom:25px}
.exchange-profile>.family-portrait>img{margin-bottom:0}

.exchange-contact{display:grid;grid-template-columns:1fr 1fr;gap:24px;border-top:1px solid var(--line);margin-top:24px;padding-top:19px}
.exchange-contact address{display:flex;flex-direction:column;align-items:flex-start;gap:6px;font:400 11px/1.65 var(--sans);font-style:normal;color:var(--muted)}
.exchange-contact strong{font-size:12px;font-weight:600;color:var(--ink)}
.exchange-contact .contact-location{margin-top:-4px;margin-bottom:4px}
.exchange-contact a,.profile-contact a{font-size:11px;text-decoration:none;text-underline-offset:3px}
.exchange-contact a:hover,.profile-contact a:hover{text-decoration:underline}
.exchange-contact a[href^="tel:"]{white-space:nowrap}
.profile-contact{margin:20px 0;display:flex;gap:12px;flex-wrap:wrap}
@media(max-width:380px){.exchange-contact{grid-template-columns:1fr;gap:20px}}

/* Personal introduction and companion editorial column. */
.intro-person{display:grid;grid-template-columns:minmax(0,1fr) 65px;column-gap:20px;row-gap:10px;max-width:480px;margin-top:24px}
.intro-person h2{grid-column:1;font:600 12px/1.5 var(--sans);letter-spacing:.08em;text-transform:uppercase;margin:0}
.intro-person p{grid-column:1;font:400 14px/1.75 var(--sans);color:var(--muted);margin:0}
.intro-person .intro-label-art{grid-column:2;grid-row:1 / span 2;position:relative;left:auto;top:auto;align-self:center;width:65px;height:66px}
.intro-person .intro-label-art img{width:54px;height:54px}
.intro-person .intro-label-art::before{display:none}
.intro-person .intro-label-art i{right:-10px;width:25px;height:25px}
.intro-article-title{font:400 clamp(25px,2.6vw,34px)/1.2 var(--serif);letter-spacing:-.025em;margin:0 0 18px}
.intro-article-title em{color:var(--purple)}
.intro-copy>p{font-size:14px;line-height:1.75}
.intro-copy>.intro-date-caption{font-size:12px;margin:9px 0 0;color:var(--muted)}
@media(max-width:680px){.intro-person{margin-top:20px;margin-bottom:28px;column-gap:17px}.intro-person p{font-size:13px}.intro-article-title{font-size:28px}.intro-copy>p{font-size:13px}.intro-copy>.intro-date-caption{font-size:12px}}

/* Quiet colour sits behind each chapter, leaving the type light and airy. */
#calendar-section{--chapter-wash:#eee5d2}
#cards-section{--chapter-wash:#eae3ef}
#quiz-section{--chapter-wash:#e6ecda}
#insight-section{--chapter-wash:#f0e1d9}
.sequence-section{position:relative;isolation:isolate}
.sequence-section::before{content:"";position:absolute;inset:0 -18px -20px;z-index:-1;background:var(--chapter-wash);border-radius:18px 6px 18px 6px;pointer-events:none}
.sequence-section .section-heading{border-top:0;padding-top:22px}
.sequence-section .section-heading>h2{color:var(--ink)}
.sequence-section .section-heading>h2::after{background:var(--stop-edge);opacity:.55}
@media(max-width:680px){.sequence-section::before{inset:0 -10px -16px;border-radius:12px 4px 12px 4px}}

/* A restrained Roman-capital accent echoes the label lettering. */
#cards-section>.section-heading>h2,#insight-section>.section-heading>h2{
 font-family:'Cinzel',Georgia,serif;font-size:clamp(28px,3.1vw,41px);font-weight:400;
 line-height:1.24;letter-spacing:.025em;text-transform:uppercase;text-wrap:balance;
}
@media(max-width:680px){#cards-section>.section-heading>h2,#insight-section>.section-heading>h2{font-size:clamp(25px,6vw,33px);letter-spacing:.015em}}
@media(max-width:355px){#cards-section>.section-heading>h2,#insight-section>.section-heading>h2{font-size:23px}}
