/* ==========================================================================
   Melrose Daycare & Preschool: static multi-page mock, one stylesheet for all pages
   1. Tokens   2. Reset   3. Typography   4. Layout utilities
   5. Components   6. Sections   7. Media queries   8. Motion
   Mobile first: base styles are for phones; 640px and 960px add layout.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Palette, taken from the painted sign */
  --paper: #F7F3EC;
  --paper-deep: #EFE8DC;
  --ink: #1E1B18;
  --ink-soft: #4A443D;
  --crimson: #A3262B;
  --crimson-deep: #7E1C21;
  --leaf: #3F8A3A;
  --olive: #2E4A1E;
  --olive-40: rgb(46 74 30 / .4);
  --rule: rgb(46 74 30 / .18);
  /* Wildflower accents: tiny dots and flowers only, never fills or text */
  --flower-blue: #3F7FD0;
  --flower-pink: #E0609A;
  --flower-violet: #8B4FB8;
  --flower-white: #FFFDF8;

  --font-display: "Amatic SC", "Arial Narrow", sans-serif;
  --font-body: "Alegreya Sans", "Gill Sans", "Trebuchet MS", sans-serif;

  /* Fluid type. Amatic SC never goes below 1.5rem. */
  --step-0: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  --step-1: clamp(1.2rem, 1.1rem + .45vw, 1.4rem);
  --h3: clamp(1.9rem, 1.65rem + 1vw, 2.4rem);
  --h2: clamp(2.75rem, 2rem + 3vw, 4.25rem);
  --h1: clamp(3.5rem, 2.2rem + 6vw, 6.75rem);

  --gutter: 16px;
  --max: 1100px;
  --section-y: clamp(3.5rem, 2rem + 6vw, 6.5rem);
  --radius-hand: 6px 10px 7px 9px / 9px 7px 10px 6px;

  /* Hand-drawn shapes used as CSS masks so they take any token color */
  --underline: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M3 8c16-5 32 1 52-2s42-5 62 0' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  --wavy-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 60'%3E%3Cpath d='M4 0C1 10 7 20 4 30S1 50 4 60' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E");
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Cpath d='M2 9c2 1.5 4 3.5 5 5C10 8 14 4 18 2' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  /* Paper grain: tiny SVG fractal noise at very low alpha */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .25 0 0 0 0 .2 0 0 0 0 .14 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 2. Reset ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
/* scroll-padding keeps deep links (index.html#learn, rooms.html#infants) clear of the sticky header */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
input, textarea, button { font: inherit; }
figure { margin: 0; }
:where(ul, ol)[role="list"] { list-style: none; margin: 0; padding: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* Paper grain sits over every surface so bands, dividers and fills stay matched */
body::before { content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none; background: var(--grain); }

/* 3. Typography ------------------------------------------------------------ */
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: .95;
  letter-spacing: .01em;
  text-wrap: balance;
}
h1 { font-size: var(--h1); color: var(--crimson); }
h2 { font-size: var(--h2); color: var(--crimson); }
h3 { font-size: var(--h3); color: var(--ink); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 700; }
a { color: var(--crimson); text-underline-offset: .18em; }
a:hover { color: var(--crimson-deep); }
:focus-visible { outline: 3px solid var(--crimson); outline-offset: 3px; border-radius: 2px; }

.eyebrow {
  margin: 0 0 .75rem;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--olive);
}
.lede { font-size: var(--step-1); line-height: 1.5; }

/* Hand-drawn underline under section headings */
.section-title { margin-bottom: 1.25rem; }
.section-title::after {
  content: "";
  display: block;
  width: 7rem;
  height: .75rem;
  margin-top: .55rem;
  background: var(--olive);
  -webkit-mask: var(--underline) no-repeat center / 100% 100%;
  mask: var(--underline) no-repeat center / 100% 100%;
}

/* 4. Layout utilities ------------------------------------------------------ */
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.band { background: var(--paper-deep); }
.section-intro { max-width: 42rem; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }

/* 5. Components ------------------------------------------------------------ */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  padding: .75rem 1rem; border-radius: 6px;
  background: var(--crimson); color: var(--paper); font-weight: 700;
}
.skip-link:focus { top: 1rem; color: var(--paper); }

.flower { color: var(--crimson); }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .7rem 1.4rem .75rem;
  border: 0; border-radius: var(--radius-hand);
  background: var(--crimson); color: var(--paper);
  font-size: 1.05rem; font-weight: 700; line-height: 1.1; letter-spacing: .02em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--crimson-deep); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn--small { min-height: 44px; padding: .5rem 1rem; font-size: .98rem; }

.text-link {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px;
  font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px;
  text-decoration-color: rgb(163 38 43 / .35);
}
.text-link:hover { text-decoration-color: currentColor; }
.arrow { width: 26px; height: 16px; flex: none; transition: transform .2s ease; }
a:hover .arrow { transform: translateX(3px); }

/* Photo placeholders: find them all with [data-photo] */
.photo {
  position: relative;
  display: grid; place-items: end start;
  aspect-ratio: 4 / 3;
  padding: 1.1rem 1.25rem;
  background: var(--paper-deep);
  border-radius: 4px;
  outline: 1px dashed var(--olive-40);
  outline-offset: -10px;
  box-shadow: 0 1px 2px rgb(30 27 24 / .1);
}
.band .photo { background: var(--paper); }
.photo figcaption { max-width: 34ch; text-wrap: pretty; font-size: .95rem; font-style: italic; line-height: 1.35; color: var(--ink-soft); }
.photo--portrait { aspect-ratio: 4 / 3; }
.photo--landscape { aspect-ratio: 3 / 2; }
.photo--map { aspect-ratio: 16 / 10; place-items: center; text-align: center; }
.photo--round {
  width: 190px; aspect-ratio: 1; padding: 1.5rem;
  place-items: center; text-align: center;
  border-radius: 47% 53% 50% 50% / 52% 48% 52% 48%;
  outline-offset: -8px;
}
.tilt-l { transform: rotate(-1deg); }
.tilt-r { transform: rotate(1.1deg); }

/* Hand-lettered tags (room names) */
.tags { display: flex; flex-wrap: wrap; gap: .55rem .6rem; margin: 0 0 1.25rem; }
.tag {
  padding: .3rem .8rem .15rem;
  border: 1.5px solid currentColor;
  border-radius: 12px 5px 10px 4px / 5px 10px 4px 12px;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1;
  color: var(--crimson);
}
.tag:nth-child(2) { transform: rotate(-1.5deg); }
.tag:nth-child(3) { transform: rotate(1deg); }

/* Hill divider with wildflowers */
/* explicit width stops min-height from transferring a 960px min-width through aspect-ratio */
.hill { width: 100%; min-width: 0; aspect-ratio: 15 / 1; min-height: 64px; overflow: hidden; background: var(--above, transparent); }
.hill svg { width: 100%; height: 100%; }
.hill__ground { fill: var(--below, var(--paper-deep)); }
.hill__line { fill: none; stroke: var(--olive); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hill__stem { fill: none; stroke: var(--olive); stroke-width: 1.2; stroke-linecap: round; }
.wf--blue { color: var(--flower-blue); }
.wf--pink { color: var(--flower-pink); }
.wf--violet { color: var(--flower-violet); }
.wf--red { color: var(--crimson); }
.wf--white { color: var(--flower-white); stroke: var(--olive); stroke-width: .6; }

/* Ink wind and leaves */
.ink-line { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; opacity: .7; }
.leaf { color: var(--leaf); }

/* 6. Sections -------------------------------------------------------------- */

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; min-height: 68px; padding-block: .5rem; }
.brand { display: flex; align-items: center; gap: .6rem; margin-right: auto; color: var(--crimson); text-decoration: none; }
.brand:hover { color: var(--crimson); }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: .95; letter-spacing: .04em; text-transform: uppercase; }
.brand__line2 { display: block; }
.brand__est { display: none; margin-top: .3rem; font-size: .68rem; font-weight: 300; letter-spacing: .42em; text-transform: uppercase; }

.header-cta { display: none; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 44px; min-width: 44px; padding: 0 .75rem;
  border: 1.5px solid var(--ink); border-radius: var(--radius-hand);
  background: transparent; color: var(--ink); font-weight: 500; cursor: pointer;
}
.nav-toggle__icon, .nav-toggle__icon::before, .nav-toggle__icon::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle__icon { position: relative; }
.nav-toggle__icon::before, .nav-toggle__icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after { top: 6px; width: 13px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { width: 18px; transform: translateY(-6px) rotate(-45deg); }
html:not(.js) .nav-toggle { display: none; }

.site-nav { width: 100%; order: 3; }
.js .site-nav {
  position: absolute; top: 100%; left: 0; right: 0;
  padding: .25rem var(--gutter) 1.5rem;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  visibility: hidden; opacity: 0; transform: translateY(-10px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.js .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .2s ease; }
.site-nav__list { margin: 0; padding: 0; list-style: none; }
.site-nav__list a:not(.btn) {
  display: flex; align-items: center; min-height: 48px;
  border-bottom: 1px dashed var(--rule);
  color: var(--ink); font-size: 1.125rem; font-weight: 500; text-decoration: none;
}
.site-nav__list a:not(.btn):hover, .site-nav__list a[aria-current="page"] { color: var(--crimson); }
.site-nav__tour .btn { width: 100%; margin-top: 1.25rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: 5.75rem clamp(1.5rem, 3vw, 2.5rem); }
.hero__inner { position: relative; z-index: 1; display: grid; gap: 2.75rem; }
.hero h1 { margin-bottom: 1.25rem; }
.hero .lede { max-width: 36ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.75rem; margin-top: 2rem; }
.hero__wind { position: absolute; z-index: 0; pointer-events: none; }
.hero__wind--top { top: -1.25rem; right: -56px; width: 230px; }
.hero__wind--low { display: none; }
.drift { position: absolute; z-index: 0; width: 26px; height: 12px; pointer-events: none; }
.drift--one { top: 2.25rem; left: 14%; transform: rotate(18deg); }
.drift--two { display: none; }

/* Subpage header: a quieter hero. The swirl and drifting leaf are the hero's own decorations. */
.page-header { position: relative; overflow: hidden; padding-block: 5rem clamp(2.5rem, 1.75rem + 3vw, 3.5rem); }
.page-header .wrap { position: relative; z-index: 1; }
.page-header .wrap > * { max-width: 44rem; }
.page-header .hero__wind { top: -1.25rem; right: -56px; width: 230px; }
.page-header .drift--one { top: auto; bottom: 1.25rem; left: auto; right: 8%; }
/* A paper section straight after the header continues it; the header's bottom padding is the gap */
.page-header + .section:not(.band) { padding-top: 0; }

/* How we learn */
.learn__intro { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.learn__list { display: grid; gap: 2rem 3.5rem; }
.learn__item { display: grid; grid-template-columns: 2.1rem 1fr; gap: 1rem; align-items: start; }
.learn__item h3 { margin-bottom: .35rem; }
.learn__item p { max-width: 44ch; }
.bullet { width: 2.1rem; height: 2.1rem; margin-top: .15rem; }
.learn__item:nth-child(even) .bullet { transform: rotate(14deg); }

/* Rooms page */
.room { display: grid; gap: 1.75rem; align-items: center; }
.room + .room { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.room__body p { max-width: 52ch; }
.room__body h2 { font-size: clamp(2.25rem, 1.9rem + 1.4vw, 3rem); color: var(--ink); }
.room__facts { margin: .4rem 0 1rem; font-weight: 500; color: var(--olive); }

/* Home: rooms at a glance (the full rooms live on rooms.html) */
.room-teaser { display: grid; gap: 0 3rem; }
.room-teaser > li { padding-block: 1.25rem 1.5rem; border-top: 1.5px dashed var(--olive-40); }
.room-teaser h3 a { color: inherit; text-decoration: none; }
.room-teaser h3 a:hover { color: var(--crimson); text-decoration: underline; text-decoration-thickness: 2px; }
.room-teaser .room__facts { margin: .3rem 0 .85rem; }
.room-teaser .tags { margin: 0; }
.section-more { margin: clamp(1.5rem, 3vw, 2.25rem) 0 0; }

/* A day with us: dotted timeline with tiny wildflower-colored dots */
.day { display: grid; }
.day li { position: relative; margin-left: .4rem; padding: 0 0 1.6rem 1.75rem; border-left: 2px dotted var(--olive-40); }
.day li:last-child { padding-bottom: 0; }
.day li::before {
  content: ""; position: absolute; left: -7px; top: .5rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--dot, var(--crimson)); border: 1.5px solid var(--olive);
}
.day li:nth-child(5n+1) { --dot: var(--flower-blue); }
.day li:nth-child(5n+2) { --dot: var(--flower-pink); }
.day li:nth-child(5n+3) { --dot: var(--flower-white); }
.day li:nth-child(5n+4) { --dot: var(--crimson); }
.day li:nth-child(5n+5) { --dot: var(--flower-violet); }
.day__when { display: block; margin-bottom: .2rem; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; line-height: 1; color: var(--crimson); }
.day strong { display: block; }

/* About page: Since 1971 */
.about { display: grid; gap: 3.5rem; }
.about__story > p { max-width: 60ch; }
.mission {
  position: relative; padding: 1.75rem 1.5rem 1.5rem;
  border: 1.5px solid var(--olive);
  border-radius: 16px 6px 18px 5px / 6px 16px 5px 18px;
}
.mission h2 { margin-bottom: .6rem; font-size: var(--h3); color: var(--ink); }
.mission p { max-width: 70ch; }
.mission__flower {
  position: absolute; top: -24px; right: -10px; width: 50px; height: 50px;
  padding: 3px; border-radius: 50%; background: var(--paper); transform: rotate(12deg);
}
.timeline__title { margin-bottom: 1.5rem; font-size: var(--h3); color: var(--ink); }
.timeline { position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 10px; top: 12px; bottom: 24px; width: 8px;
  background: var(--olive);
  -webkit-mask: var(--wavy-v) repeat-y center top / 8px 60px;
  mask: var(--wavy-v) repeat-y center top / 8px 60px;
}
.timeline li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 1rem; padding-bottom: 1.4rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline__mark { width: 28px; height: 28px; padding: 2px; border-radius: 50%; background: var(--paper); }
.timeline li:nth-child(even) .timeline__mark { transform: rotate(20deg); }
.timeline p { margin: 0; padding-top: .1rem; }
.about__learn { max-width: 60ch; }
.timeline__year { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1; color: var(--crimson); }

/* Educators page */
.people { display: grid; gap: 3.5rem; }
.person { display: grid; gap: 1.5rem; align-items: start; }
.person h2 { font-size: clamp(2.1rem, 1.8rem + 1vw, 2.6rem); color: var(--ink); }
.person__role { margin: .35rem 0 .9rem; font-weight: 500; color: var(--olive); }
.person__edu { font-size: .95rem; font-style: italic; }

/* Announcements: index cards pinned to paper (home teaser, news page) */
.placeholder-note { font-style: italic; }
.notes { display: grid; gap: 2.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.note {
  position: relative; padding: 1.9rem 1.5rem 1.5rem;
  background: var(--paper-deep); border-radius: 3px;
  box-shadow: 0 1px 2px rgb(30 27 24 / .14);
  transform: rotate(-1deg);
}
.note:nth-child(2) { transform: rotate(.8deg); }
.note:nth-child(3) { transform: rotate(-.4deg); }
.note::before { /* the pin */
  content: ""; position: absolute; top: .55rem; left: 50%;
  width: 13px; height: 13px; margin-left: -6px; border-radius: 50%;
  background: var(--crimson); border: 1.5px solid var(--crimson-deep);
}
.note[data-placeholder]::after {
  content: "sample"; position: absolute; top: .45rem; right: .75rem;
  font-size: .78rem; font-style: italic; color: var(--ink-soft);
}
.note__date { margin-bottom: .35rem; font-size: .85rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--olive); }
.note :is(h2, h3) { margin-bottom: .75rem; padding-bottom: .35rem; border-bottom: 1.5px solid var(--crimson); font-size: 2rem; color: var(--ink); }
.band .note { background: var(--paper); }

/* Resources page */
.links { max-width: 48rem; }
.links li { padding-block: 1rem; border-bottom: 1.5px dashed var(--olive-40); }
.links li:first-child { border-top: 1.5px dashed var(--olive-40); }
.links a { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; font-size: 1.35rem; font-weight: 700; text-decoration: none; }
.links a:hover { text-decoration: underline; }
.links p { margin: 0; }
.links p + p { margin-top: .6rem; }

/* Get involved page */
.give { max-width: 44rem; }
.ways { margin: 1.5rem 0 2rem; display: grid; gap: .9rem; }
.ways li { position: relative; padding-left: 2rem; }
.ways li::before {
  content: ""; position: absolute; left: 0; top: .3rem; width: 20px; height: 16px;
  background: var(--leaf);
  -webkit-mask: var(--check) no-repeat center / contain;
  mask: var(--check) no-repeat center / contain;
}

/* Contact page */
.contact { display: grid; gap: 3rem; }
.contact address { font-size: var(--step-1); font-style: normal; line-height: 1.45; color: var(--ink); }
.contact__phone { display: inline-flex; align-items: center; min-height: 44px; margin-top: .35rem; font-size: 1.5rem; font-weight: 700; text-decoration: none; }
.contact__phone:hover { text-decoration: underline; }
.hours { display: grid; gap: .8rem; margin: 1.75rem 0 2.25rem; }
.hours dt { font-weight: 700; color: var(--ink); }
.hours dd { margin: 0; }
.form { display: grid; gap: 1.15rem; align-content: start; }
.form h2 { margin-bottom: .25rem; font-size: var(--h3); color: var(--ink); }
.field label { display: block; margin-bottom: .35rem; font-weight: 500; color: var(--ink); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: .65rem .85rem;
  border: 1.5px solid var(--ink-soft);
  border-radius: 6px 9px 7px 8px / 8px 6px 9px 7px;
  background: transparent; color: var(--ink);
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--crimson); outline-offset: 2px; }
.form .btn { justify-self: start; min-width: 9rem; }

/* Home: slim closing call to action */
.cta { padding-block: clamp(2.75rem, 2rem + 3vw, 4rem) clamp(1.75rem, 1.25rem + 2vw, 2.75rem); }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 2.5rem; }
.cta__where { margin: 0; font-size: var(--step-1); color: var(--ink); }
.cta__where a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; }
.cta__where a:hover { text-decoration: underline; }

/* Footer */
.site-footer { padding: 1.5rem 0 2.5rem; background: var(--paper-deep); font-size: 1rem; }
.site-footer__inner { display: grid; gap: 2rem; }
.site-footer .flower { width: 40px; height: 40px; margin-bottom: .75rem; }
.site-footer a[href^="tel:"] { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer__name { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; line-height: 1.1; color: var(--crimson); }
.site-footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
.site-footer__nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.site-footer__nav a:hover { color: var(--crimson); text-decoration: underline; }
.site-footer__legal { padding-top: 1.25rem; border-top: 1px dashed var(--olive-40); font-size: .9rem; }

/* 7. Media queries --------------------------------------------------------- */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .brand__mark { width: 44px; height: 44px; }
  .brand__line2 { display: inline; }
  .brand__est { display: block; }
  .header-cta { display: inline-flex; }
  .site-nav__tour { display: none; }

  .hero__wind--top { top: -1.5rem; right: -20px; width: 320px; }
  .page-header .hero__wind { top: -1.5rem; right: -20px; width: 320px; }
  .drift--two { display: block; bottom: 14%; left: 52%; transform: rotate(-30deg); }

  .learn__list { grid-template-columns: 1fr 1fr; }
  .person { grid-template-columns: 190px 1fr; gap: 2rem; }
  .site-footer__nav { grid-template-columns: repeat(3, auto); justify-content: start; }
}

@media (min-width: 960px) {
  :root { --gutter: 32px; }

  /* Header: full nav, no toggle */
  .nav-toggle { display: none; }
  .site-header__inner { flex-wrap: nowrap; gap: 1.5rem; }
  .site-nav, .js .site-nav {
    position: static; order: 0; width: auto; padding: 0;
    visibility: visible; opacity: 1; transform: none;
    background: none; border: 0; transition: none;
  }
  .brand__line2 { display: block; }
  .site-nav__list { display: flex; gap: clamp(.85rem, 1.6vw, 1.6rem); }
  .site-nav__list a:not(.btn) { min-height: 44px; border: 0; font-size: 1rem; white-space: nowrap; }
  .site-nav__list a[aria-current="page"] { text-decoration: underline wavy var(--olive-40) 1.5px; text-underline-offset: .4em; }

  /* Hero: text left, photo right */
  .hero__inner { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 4rem; }
  .photo--portrait { aspect-ratio: 4 / 5; }
  .hero { padding-top: 6.5rem; }
  .hero__inner { align-items: start; }
  .hero__text { padding-top: 4rem; }
  .hero__wind--top { top: .5rem; right: auto; left: calc(50% - 470px); width: 330px; }
  .hero__wind--low { display: block; bottom: 1rem; left: -30px; width: 300px; }
  .drift--one { top: 4.5rem; left: auto; right: 6%; }

  .page-header { padding-top: 6rem; }
  .page-header .hero__wind { top: .75rem; right: calc(50% - 600px); width: 360px; }
  .page-header .drift--one { bottom: 2.5rem; right: calc(50% - 330px); }

  .room-teaser { grid-template-columns: repeat(3, 1fr); }

  .room { grid-template-columns: 1fr 1fr; gap: 4.5rem; }
  .room--flip .photo { order: 2; }

  .day { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, auto); grid-auto-flow: column; column-gap: 4rem; }
  .day li:nth-child(4) { padding-bottom: 0; }

  .about { grid-template-columns: 1.35fr 1fr; gap: 5rem; align-items: start; }
  .about > .mission, .about__learn { grid-column: 1 / -1; }

  .people { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .person { grid-template-columns: 1fr; }

  .contact { grid-template-columns: 1fr 1.15fr; gap: 5rem; }

  .cta .btn { margin-left: auto; }

  .site-footer__inner { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .site-footer__legal { grid-column: 1 / -1; }
}

/* 8. Motion ---------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .drift--one { animation: drift 9s ease-in-out infinite; }
  .drift--two { animation: drift 11s ease-in-out -4s infinite reverse; }
}
@keyframes drift {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 10px -6px; rotate: 14deg; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
