@import url("https://fonts.googleapis.com/css2?family=Bree+Serif&family=Gelasio:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --green: #00563b;
  --green-deep: #003f2d;
  --green-soft: #0c7555;
  --accent-rgb: 0, 86, 59;
  --accent-deep-rgb: 0, 63, 45;
  --accent-soft-rgb: 12, 117, 85;
  --font-body: "Gelasio", Georgia, "Times New Roman", serif;
  --font-heading: "Bree Serif", Georgia, "Times New Roman", serif;
  --pink: #ff4fa3;
  --pink-deep: #d8277f;
  --snow: #f9fcff;
  --snow-shadow: #dcecf1;
  --ink: #17372f;
  --muted: #526861;
  --sky: #d8f1ff;
  --blue-shadow: #97c8de;
  --line: rgba(var(--accent-rgb), 0.24);
  --paper: rgba(255, 255, 255, 0.96);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  background:
    linear-gradient(164deg, transparent 0 47%, rgba(244, 250, 252, 0.94) 47.2% 63%, transparent 63.2%),
    linear-gradient(150deg, transparent 0 38%, rgba(235, 246, 250, 0.88) 38.2% 56%, transparent 56.2%),
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.85) 0 2px, transparent 3px),
    radial-gradient(circle at 74% 13%, rgba(255, 255, 255, 0.8) 0 2px, transparent 3px),
    linear-gradient(180deg, var(--sky) 0%, #edf8ff 46%, #f8fbfc 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body:not(.home-page) {
  --green: #c51f2c;
  --green-deep: #8f1720;
  --green-soft: #db4d58;
  --accent-rgb: 197, 31, 44;
  --accent-deep-rgb: 143, 23, 32;
  --accent-soft-rgb: 219, 77, 88;
  --ink: #5f2026;
  --muted: #7d5055;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto 0 0 0;
  z-index: -1;
  height: 42vh;
  pointer-events: none;
  background-repeat: repeat-x;
  background-size: 180px 210px, 240px 230px, 140px 180px;
  background-position: 12px bottom, 86px bottom, 154px bottom;
  opacity: 0.78;
}

body::before {
  background-image:
    linear-gradient(150deg, transparent 0 38%, rgba(var(--accent-rgb), 0.98) 38% 52%, transparent 52%),
    linear-gradient(150deg, transparent 0 38%, rgba(var(--accent-deep-rgb), 0.92) 38% 52%, transparent 52%),
    linear-gradient(150deg, transparent 0 38%, rgba(var(--accent-soft-rgb), 0.8) 38% 52%, transparent 52%);
}

body::after {
  height: 35vh;
  background-image:
    linear-gradient(30deg, transparent 0 38%, rgba(var(--accent-rgb), 0.72) 38% 52%, transparent 52%),
    linear-gradient(30deg, transparent 0 38%, rgba(var(--accent-deep-rgb), 0.64) 38% 52%, transparent 52%),
    linear-gradient(30deg, transparent 0 38%, rgba(var(--accent-soft-rgb), 0.56) 38% 52%, transparent 52%);
  opacity: 0.58;
}

.home-page {
  background: #fff;
}

.home-page::before,
.home-page::after {
  display: none;
}

a {
  color: var(--green);
  font-weight: 800;
}

img {
  display: block;
  max-width: 100%;
}

.top-ribbon {
  position: sticky;
  top: 0;
  z-index: 5;
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(90deg, #a81420, #d7212c, #a81420);
  color: #fff;
  font-family: "Segoe Print", "Comic Sans MS", "Trebuchet MS", cursive;
  font-size: clamp(1rem, 2.7vw, 1.55rem);
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  text-shadow: 0 1px 3px rgba(66, 0, 7, 0.38);
  box-shadow: 0 8px 22px rgba(215, 33, 44, 0.28);
}

.snow-shell {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(22px, 4vw, 56px) 0 72px;
}

.home-shell {
  padding-top: clamp(28px, 5vw, 66px);
}

.home-page .home-shell {
  width: 100%;
  padding: 0;
}

.content-shell {
  min-height: 100vh;
}

.hero {
  display: grid;
  grid-template-columns: minmax(260px, 430px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 5vw, 64px);
}

.hero-copy {
  max-width: 610px;
  padding: clamp(8px, 2vw, 16px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 14px;
  color: var(--green);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(2.5rem, 8vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  font-family: var(--font-heading);
  font-weight: 400;
}

.page-heading h1 {
  font-size: clamp(2.3rem, 6vw, 4.8rem);
}

.hero-copy p,
.wide-copy,
.text-panel,
.section-list p {
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
}

.photo-frame {
  margin: 0;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.92);
  outline: 2px solid var(--line);
  border-radius: 28px 8px 28px 8px;
  background: #fff;
  box-shadow:
    0 18px 42px rgba(var(--accent-deep-rgb), 0.18),
    0 4px 0 rgba(var(--accent-rgb), 0.1);
}

.hero-photo {
  transform: rotate(-1.5deg);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.mountain-links {
  position: relative;
  min-height: clamp(500px, 48vw, 620px);
  margin-top: clamp(26px, 5vw, 58px);
  overflow: visible;
}

.mountain-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.snow-island {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 6%;
  height: 24%;
  border-radius: 48% 52% 42% 38% / 54% 56% 34% 36%;
  background:
    radial-gradient(ellipse at 30% 28%, rgba(255, 255, 255, 0.95) 0 34%, transparent 35%),
    radial-gradient(ellipse at 70% 36%, rgba(220, 236, 241, 0.66) 0 18%, transparent 19%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(237, 248, 255, 0.92));
  box-shadow:
    0 12px 0 rgba(79, 142, 166, 0.24),
    0 20px 26px rgba(38, 100, 127, 0.18);
}

.snow-island::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -28%;
  height: 46%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 30% 42%, rgba(101, 173, 204, 0.72) 0 28%, transparent 29%),
    linear-gradient(180deg, rgba(68, 145, 179, 0.72), rgba(31, 111, 151, 0.58));
  filter: blur(0.2px);
}

.peak,
.ridge {
  position: absolute;
  bottom: 20%;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 12px 18px rgba(75, 48, 29, 0.14));
}

.peak::before,
.peak::after,
.ridge::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0, 69% 30%, 58% 24%, 48% 42%, 39% 25%, 29% 35%);
  background: linear-gradient(180deg, #ffffff 0 54%, rgba(215, 234, 242, 0.92));
}

.peak::after {
  clip-path: polygon(50% 0, 100% 100%, 64% 100%, 50% 0);
  background: linear-gradient(140deg, rgba(88, 52, 42, 0.72), rgba(195, 105, 38, 0.88) 62%, rgba(124, 70, 51, 0.72));
  mix-blend-mode: multiply;
  opacity: 0.88;
}

.peak-left {
  left: 15%;
  width: 26%;
  height: 48%;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(255, 179, 67, 0.85) 43% 48%, transparent 49%),
    linear-gradient(138deg, #8f4f32 0 42%, #cc7430 43% 58%, #6a504b 59% 100%);
}

.peak-center {
  left: 35%;
  bottom: 28%;
  width: 31%;
  height: 62%;
  background:
    linear-gradient(103deg, transparent 0 39%, rgba(255, 185, 72, 0.9) 40% 44%, transparent 45%),
    linear-gradient(139deg, #7a584f 0 39%, #cf7a34 40% 58%, #5f4c4c 59% 100%);
}

.peak-right {
  right: 15%;
  width: 28%;
  height: 51%;
  background:
    linear-gradient(104deg, transparent 0 42%, rgba(255, 183, 76, 0.78) 43% 47%, transparent 48%),
    linear-gradient(136deg, #79584f 0 42%, #c87634 43% 58%, #5e4d4d 59% 100%);
}

.ridge {
  bottom: 20%;
  width: 18%;
  height: 31%;
  background: linear-gradient(140deg, #824a31, #d47b31 54%, #735044);
  opacity: 0.95;
}

.ridge-left {
  left: 24%;
}

.ridge-right {
  right: 23%;
}

.tree-links {
  position: relative;
  z-index: 2;
  min-height: clamp(500px, 48vw, 620px);
}

.tree-link {
  --tree-size: clamp(118px, 13vw, 168px);
  position: absolute;
  width: var(--tree-size);
  min-height: calc(var(--tree-size) + 52px);
  display: grid;
  justify-items: center;
  align-content: start;
  color: #fff;
  text-align: center;
  text-decoration: none;
  transform: translate(-50%, -50%);
}

.tree-art {
  position: relative;
  width: var(--tree-size);
  height: var(--tree-size);
  filter: drop-shadow(0 8px 7px rgba(0, 48, 42, 0.22));
}

.tree-tier,
.tree-trunk {
  position: absolute;
  display: block;
}

.tree-trunk {
  left: 50%;
  bottom: 2%;
  z-index: 0;
  width: 14%;
  height: 28%;
  transform: translateX(-50%);
  border-radius: 4px;
  background:
    linear-gradient(90deg, transparent 0 52%, rgba(104, 55, 19, 0.36) 53% 78%, transparent 79%),
    linear-gradient(180deg, #9c5d29, #7a411a);
}

.tree-tier {
  left: 50%;
  z-index: 1;
  transform: translateX(-50%);
  background: #448b32;
  filter: drop-shadow(0 5px 0 rgba(39, 103, 36, 0.78));
}

.tree-tier::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 2%;
  height: 16%;
  border-radius: 50%;
  background: rgba(42, 101, 34, 0.72);
}

.tier-top {
  top: 1%;
  width: 58%;
  height: 42%;
  clip-path: polygon(50% 0, 64% 29%, 72% 51%, 86% 74%, 98% 92%, 90% 98%, 73% 93%, 58% 100%, 43% 94%, 28% 99%, 10% 96%, 2% 91%, 17% 71%, 28% 50%, 37% 27%);
}

.tier-upper {
  top: 30%;
  width: 82%;
  height: 32%;
  clip-path: polygon(50% 0, 62% 21%, 76% 43%, 92% 67%, 100% 82%, 93% 91%, 76% 88%, 61% 98%, 44% 91%, 28% 99%, 11% 91%, 0 83%, 9% 67%, 25% 44%, 38% 21%);
}

.tier-middle {
  top: 52%;
  width: 98%;
  height: 29%;
  clip-path: polygon(50% 0, 64% 19%, 80% 42%, 96% 68%, 100% 84%, 93% 94%, 77% 89%, 62% 98%, 47% 91%, 31% 98%, 15% 89%, 3% 94%, 0 84%, 16% 59%, 31% 36%);
}

.tier-bottom {
  top: 72%;
  width: 112%;
  height: 25%;
  clip-path: polygon(50% 0, 64% 17%, 82% 39%, 98% 68%, 100% 83%, 94% 94%, 81% 88%, 66% 96%, 50% 91%, 34% 97%, 20% 88%, 6% 94%, 0 84%, 14% 60%, 30% 33%);
}

.tree-label {
  max-width: min(190px, 38vw);
  margin-top: -8px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  padding: 7px 12px 8px;
  background: rgba(var(--accent-rgb), 0.94);
  color: #fff;
  font-size: clamp(0.78rem, 1.5vw, 0.95rem);
  font-weight: 900;
  line-height: 1.16;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.38);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.88),
    0 9px 18px rgba(var(--accent-deep-rgb), 0.2);
}

.page-nav a:hover,
.page-nav a:focus-visible {
  outline: 3px solid rgba(255, 79, 163, 0.36);
  outline-offset: 4px;
}

.tree-link:focus-visible {
  outline: none;
}

.tree-link:hover .tree-label,
.tree-link:focus-visible .tree-label {
  background: var(--pink-deep);
}

.tree-one {
  left: 13%;
  top: 56%;
}

.tree-two {
  left: 28%;
  top: 31%;
}

.tree-three {
  left: 50%;
  top: 68%;
}

.tree-four {
  left: 73%;
  top: 36%;
}

.tree-five {
  left: 88%;
  top: 57%;
}

.slalom-map {
  position: relative;
  width: min(920px, 100%);
  margin: clamp(30px, 5vw, 58px) auto 0;
}

.home-page .slalom-map {
  width: 100%;
  margin: 0 auto;
  font-family: var(--font-body);
}

.slalom-map > .mountain-art {
  width: 100%;
  border-radius: 8px;
}

.home-page .slalom-map > .mountain-art {
  border-radius: 0;
}

.slalom-map > .mountain-skier {
  position: absolute;
  top: 5%;
  left: 49%;
  z-index: 1;
  width: clamp(105px, 23vw, 330px);
  max-width: none;
  border-radius: 0;
  filter: drop-shadow(0 8px 8px rgba(52, 92, 105, 0.22));
  transform: translateX(-50%);
  pointer-events: none;
}

.homepage-intro {
  position: absolute;
  top: clamp(18px, 5.2vw, 72px);
  left: clamp(14px, 4vw, 52px);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.7vw, 18px);
  max-width: min(58vw, 760px);
  pointer-events: none;
}

.home-page .homepage-intro img {
  width: clamp(144px, 24vw, 296px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.95);
  outline: 2px solid rgba(215, 33, 44, 0.78);
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(36, 86, 102, 0.18);
}

.homepage-intro-copy {
  display: grid;
  align-content: center;
  gap: clamp(4px, 0.8vw, 10px);
}

.homepage-intro p {
  margin: 0;
  font-family: inherit;
  font-weight: 800;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.82),
    0 5px 12px rgba(255, 255, 255, 0.74);
}

.homepage-greeting {
  color: #d7212c;
  font-family: var(--font-heading);
  font-size: clamp(1.41rem, 3.45vw, 2.51rem);
  font-weight: 900;
  line-height: 1.18;
  -webkit-text-stroke: 0.35px currentColor;
}

.homepage-contact {
  color: rgba(178, 30, 39, 0.82);
  font-size: clamp(0.9rem, 1.78vw, 1.36rem);
  line-height: 1.12;
}

.homepage-intro span {
  display: block;
  white-space: nowrap;
}

.homepage-contact span:first-child {
  max-width: 18em;
  white-space: normal;
}

.slalom-links {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.slalom-link {
  --gate-red: #d7212c;
  --gate-blue: #1c8ed6;
  position: absolute;
  width: clamp(155px, 20.25vw, 236px);
  min-height: 50px;
  color: #fff;
  text-decoration: none;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.slalom-link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(27px, 4.5vw, 50px);
  height: clamp(38px, 6.19vw, 72px);
  background: url("assets/slalom-gate-red.svg") center / contain no-repeat;
  filter: drop-shadow(0 2px 2px rgba(87, 78, 70, 0.16));
  transform: translate(-50%, -50%);
  transition: background-image 160ms ease;
  pointer-events: auto;
}

.gate-label {
  position: absolute;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(119px, 16.875vw, 191px);
  height: 54px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  padding: 7px 7px 8px;
  background: rgba(215, 33, 44, 0.94);
  color: #fff;
  font-size: 1.09rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.36);
  box-shadow: 0 5px 12px rgba(39, 73, 91, 0.16);
  transform: translateY(-50%);
  transition: background-color 160ms ease;
  pointer-events: auto;
}

.home-page .gate-label {
  font-family: var(--font-heading);
}

.gate-right .gate-label {
  left: calc(50% + clamp(14px, 2.25vw, 25px));
}

.gate-left .gate-label {
  right: calc(50% + clamp(14px, 2.25vw, 25px));
}

.gate-one .gate-label {
  font-size: 0.9rem;
}

.gate-three .gate-label {
  font-size: 0.94rem;
}

.gate-five .gate-label,
.gate-six .gate-label {
  font-size: 1.15rem;
}

.gate-nine .gate-label {
  font-size: 1.01rem;
}

.slalom-link:hover .gate-label,
.slalom-link:focus-visible .gate-label {
  background: rgba(28, 142, 214, 0.96);
}

.slalom-link:hover::before,
.slalom-link:focus-visible::before {
  background-image: url("assets/slalom-gate-blue.svg");
}

.gate-one {
  left: 63.3%;
  top: 25.8%;
}

.gate-two {
  left: 70.1%;
  top: 32.1%;
}

.gate-three {
  left: 64.9%;
  top: 41.3%;
}

.gate-four {
  left: 54.1%;
  top: 46.4%;
}

.gate-five {
  left: 62.8%;
  top: 53%;
}

.gate-six {
  left: 65.4%;
  top: 62.9%;
}

.gate-seven {
  left: 52%;
  top: 72.9%;
}

.gate-eight {
  left: 74%;
  top: 80.2%;
}

.gate-nine {
  left: 51.2%;
  top: 89.7%;
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(22px, 4vw, 40px);
}

.page-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--green);
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(var(--accent-deep-rgb), 0.08);
}

.page-heading {
  max-width: 880px;
  margin-bottom: clamp(24px, 4vw, 46px);
}

.subpage-heading {
  max-width: 900px;
  margin: 0 auto clamp(18px, 3vw, 32px);
  text-align: center;
}

.subpage-heading h1 {
  margin-bottom: 0;
  color: var(--green);
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 4vw, 3.35rem);
  font-weight: 800;
  line-height: 1;
}

.subpage-content {
  display: grid;
  justify-items: center;
  gap: clamp(18px, 3vw, 30px);
  max-width: 940px;
  margin: 0 auto;
}

.subpage-copy {
  width: min(780px, 100%);
  margin: 0;
  padding: clamp(8px, 1.3vw, 12px) clamp(12px, 2vw, 18px);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: rgba(var(--accent-deep-rgb), 0.88);
  font-family: var(--font-body);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.5;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.96),
    0 0 8px rgba(255, 255, 255, 0.96),
    0 0 16px rgba(255, 255, 255, 0.76);
}

.subpage-stack {
  display: grid;
  gap: clamp(12px, 2.5vw, 22px);
  justify-items: center;
  width: 100%;
}

.subpage-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(14px, 3vw, 28px);
  width: min(760px, 100%);
}

.subpage-image-grid.three-up {
  width: min(900px, 100%);
}

.subpage-placeholder {
  width: 100%;
  min-height: clamp(150px, 25vw, 240px);
  border: 3px solid rgba(255, 255, 255, 0.95);
  outline: 2px solid rgba(var(--accent-rgb), 0.48);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.28)),
    rgba(249, 252, 255, 0.66);
  box-shadow: 0 10px 22px rgba(36, 86, 102, 0.14);
}

.childhood-content,
.first-car-content {
  max-width: 1000px;
}

.childhood-gallery {
  width: min(940px, 100%);
  columns: 3 240px;
  column-gap: clamp(16px, 3vw, 28px);
}

.childhood-photo,
.first-car-photo {
  margin: 0;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.96);
  outline: 2px solid rgba(var(--accent-rgb), 0.42);
  border-radius: 8px;
  background: #fff;
  box-shadow:
    0 14px 30px rgba(var(--accent-deep-rgb), 0.16),
    0 3px 0 rgba(var(--accent-rgb), 0.08);
}

.childhood-photo {
  break-inside: avoid;
  margin-bottom: clamp(16px, 3vw, 28px);
}

.childhood-photo img,
.first-car-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.first-car-photo {
  width: min(820px, 100%);
}

.vincenti-content {
  max-width: 900px;
}

.vincenti-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 220px));
  justify-content: center;
  align-items: start;
  gap: clamp(16px, 3vw, 28px);
  width: 100%;
}

.vincenti-photo {
  margin: 0;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.96);
  outline: 2px solid rgba(var(--accent-rgb), 0.42);
  border-radius: 8px;
  background: #fff;
  box-shadow:
    0 14px 30px rgba(var(--accent-deep-rgb), 0.16),
    0 3px 0 rgba(var(--accent-rgb), 0.08);
}

.vincenti-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.vincenti-portrait-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  justify-content: center;
  gap: clamp(16px, 3vw, 28px);
  width: 100%;
}

.vincenti-portrait {
  width: 100%;
}

@media (max-width: 700px) {
  .vincenti-gallery {
    grid-template-columns: minmax(0, 260px);
  }

  .vincenti-portrait-row {
    grid-template-columns: minmax(0, 260px);
  }
}

.school-content {
  max-width: 1000px;
  gap: clamp(28px, 5vw, 48px);
}

.school-section {
  gap: clamp(18px, 3vw, 28px);
}

.school-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(16px, 3vw, 28px);
  width: min(900px, 100%);
}

.school-photo {
  margin: 0;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.96);
  outline: 2px solid rgba(var(--accent-rgb), 0.42);
  border-radius: 8px;
  background: #fff;
  box-shadow:
    0 14px 30px rgba(var(--accent-deep-rgb), 0.16),
    0 3px 0 rgba(var(--accent-rgb), 0.08);
}

.school-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.school-wide-photo {
  grid-column: 1 / -1;
}

.school-friend-photo {
  width: min(520px, 100%);
}

.school-memory-photo {
  width: min(440px, 100%);
}

.school-interest-photo {
  width: min(360px, 100%);
}

.val-family-photo {
  width: min(360px, 100%);
  margin: 0;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.96);
  outline: 2px solid rgba(var(--accent-rgb), 0.42);
  border-radius: 8px;
  background: #fff;
  box-shadow:
    0 14px 30px rgba(var(--accent-deep-rgb), 0.16),
    0 3px 0 rgba(var(--accent-rgb), 0.08);
}

.val-family-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.val-family-gallery {
  display: grid;
  grid-template-columns: minmax(0, 0.99fr) minmax(0, 1.01fr);
  align-items: start;
  gap: clamp(18px, 3vw, 30px);
  width: min(760px, 100%);
}

.val-family-gallery .val-family-photo {
  width: 100%;
}

.val-cropped-photo {
  position: relative;
  aspect-ratio: 1465 / 1440;
}

.val-cropped-photo img {
  position: absolute;
  top: -12.5%;
  left: 0;
  height: 125%;
  object-fit: cover;
}

.val-large-family-photo {
  width: min(920px, 100%);
}

.val-memory-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(18px, 3vw, 30px);
  width: min(760px, 100%);
}

.val-memory-gallery .val-family-photo {
  width: 100%;
  aspect-ratio: 526 / 699;
}

.val-memory-gallery .val-family-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.val-extra-gallery {
  width: min(820px, 100%);
  columns: 2 260px;
  column-gap: clamp(18px, 3vw, 30px);
}

.val-extra-gallery .val-family-photo,
.val-video-frame {
  width: 100%;
  break-inside: avoid;
  margin-bottom: clamp(18px, 3vw, 30px);
}

.val-scan-photo {
  aspect-ratio: 4 / 5;
}

.val-scan-photo img {
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.val-video-frame {
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.96);
  outline: 2px solid rgba(var(--accent-rgb), 0.42);
  border-radius: 8px;
  background: #111;
  box-shadow:
    0 14px 30px rgba(var(--accent-deep-rgb), 0.16),
    0 3px 0 rgba(var(--accent-rgb), 0.08);
}

.val-video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.grandchildren-gallery {
  display: grid;
  gap: clamp(20px, 4vw, 34px);
  width: min(920px, 100%);
}

.grandchildren-new-grid {
  columns: 2 300px;
  column-gap: clamp(18px, 3vw, 28px);
  width: 100%;
}

.grandchildren-new-grid .grandchildren-photo {
  break-inside: avoid;
  margin-bottom: clamp(18px, 3vw, 28px);
}

.grandchildren-photo {
  margin: 0;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.96);
  outline: 2px solid rgba(var(--accent-rgb), 0.42);
  border-radius: 8px;
  background: #fff;
  box-shadow:
    0 14px 30px rgba(var(--accent-deep-rgb), 0.16),
    0 3px 0 rgba(var(--accent-rgb), 0.08);
}

.grandchildren-photo img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 640px) {
  .school-gallery {
    grid-template-columns: 1fr;
    width: min(520px, 100%);
  }

  .val-family-gallery {
    grid-template-columns: 1fr;
    width: min(420px, 100%);
  }

  .val-memory-gallery {
    grid-template-columns: 1fr;
    width: min(420px, 100%);
  }
}

.skiing-content {
  max-width: 1000px;
  gap: clamp(22px, 4vw, 38px);
}

.ski-photo {
  margin: 0;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.96);
  outline: 2px solid rgba(var(--accent-rgb), 0.42);
  border-radius: 8px;
  background: #fff;
  box-shadow:
    0 14px 30px rgba(var(--accent-deep-rgb), 0.16),
    0 3px 0 rgba(var(--accent-rgb), 0.08);
}

.ski-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ski-feature {
  width: min(920px, 100%);
  aspect-ratio: 3 / 2;
}

.ski-action-grid,
.ski-awards-grid,
.ski-memory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 28px);
  width: 100%;
}

.ski-action-grid {
  width: min(760px, 100%);
}

.ski-action-grid .ski-photo {
  aspect-ratio: 3 / 4;
}

.ski-slalom-photo img {
  object-position: center top;
}

.ski-awards-grid {
  width: min(920px, 100%);
}

.ski-awards-grid .ski-photo,
.ski-memory-grid .ski-photo {
  aspect-ratio: 4 / 3;
}

.ski-memory-grid {
  width: min(920px, 100%);
}

.ski-race-print-photo img {
  object-position: top center;
}

@media (max-width: 640px) {
  .ski-action-grid,
  .ski-awards-grid,
  .ski-memory-grid {
    grid-template-columns: 1fr;
    width: min(460px, 100%);
  }
}

.judy-gallery {
  display: grid;
  justify-items: center;
  gap: clamp(18px, 3vw, 30px);
  width: min(920px, 100%);
}

.judy-couple-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 28px);
  width: min(760px, 100%);
}

.judy-photo {
  margin: 0;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.96);
  outline: 2px solid rgba(var(--accent-rgb), 0.42);
  border-radius: 8px;
  background: #fff;
  box-shadow:
    0 14px 30px rgba(var(--accent-deep-rgb), 0.16),
    0 3px 0 rgba(var(--accent-rgb), 0.08);
}

.judy-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.judy-couple-grid .judy-photo {
  aspect-ratio: 4 / 5;
}

.judy-party-photo img {
  object-position: center;
}

.judy-kids-photo {
  width: min(920px, 100%);
  aspect-ratio: 4 / 3;
}

.judy-extra-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(16px, 3vw, 28px);
  width: min(920px, 100%);
}

.judy-extra-grid .judy-photo {
  width: 100%;
}

.judy-portrait-photo {
  aspect-ratio: 4 / 5;
}

.judy-portrait-photo img {
  object-fit: contain;
  background: #fff;
}

.judy-wide-photo {
  aspect-ratio: 4 / 3;
}

@media (max-width: 640px) {
  .judy-couple-grid,
  .judy-extra-grid {
    grid-template-columns: 1fr;
    width: min(460px, 100%);
  }
}

.scuba-content {
  max-width: 1000px;
}

.scuba-video-frame {
  width: min(920px, 100%);
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.96);
  outline: 2px solid rgba(var(--accent-rgb), 0.42);
  border-radius: 8px;
  background: #061418;
  box-shadow:
    0 14px 30px rgba(var(--accent-deep-rgb), 0.16),
    0 3px 0 rgba(var(--accent-rgb), 0.08);
}

.scuba-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scuba-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 28px);
  width: min(920px, 100%);
}

.scuba-media-grid .scuba-video-frame {
  width: 100%;
}

.scuba-photo-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.96);
  outline: 2px solid rgba(var(--accent-rgb), 0.42);
  border-radius: 8px;
  background: #061418;
  box-shadow:
    0 14px 30px rgba(var(--accent-deep-rgb), 0.16),
    0 3px 0 rgba(var(--accent-rgb), 0.08);
}

.scuba-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scuba-scan-photo img {
  object-position: left top;
}

@media (max-width: 640px) {
  .scuba-media-grid {
    grid-template-columns: 1fr;
    width: min(460px, 100%);
  }
}

.centered-heading {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(22px, 4vw, 46px);
}

.contact-photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.text-panel {
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 38px);
  background: var(--paper);
  box-shadow: 0 16px 42px rgba(var(--accent-deep-rgb), 0.12);
}

.contact-text {
  display: grid;
  align-content: center;
}

.lead-sentence {
  font-size: 1.12em;
  font-weight: 700;
}

.contact-text p:last-child,
.section-list article:last-child p,
.sobriety-copy p,
.wide-copy:last-of-type {
  margin-bottom: 0;
}

.centered-page {
  text-align: center;
}

.centered-page .page-heading {
  margin-left: auto;
  margin-right: auto;
}

.family-stack {
  display: grid;
  justify-items: center;
  gap: clamp(20px, 4vw, 38px);
}

.wide-copy {
  max-width: 930px;
  margin-bottom: 0;
  padding: clamp(14px, 3vw, 24px);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 32px rgba(var(--accent-deep-rgb), 0.08);
}

.family-photo {
  width: min(760px, 100%);
  border-radius: 8px 30px 8px 30px;
}

.family-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.blank-placeholder {
  width: min(720px, 100%);
  min-height: clamp(220px, 36vw, 390px);
  border: 3px dashed rgba(var(--accent-rgb), 0.26);
  outline: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 26px 8px 26px 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.28)),
    rgba(249, 252, 255, 0.65);
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.24), 0 16px 38px rgba(var(--accent-deep-rgb), 0.1);
}

.parents-placeholder {
  width: min(560px, 100%);
}

.section-list {
  display: grid;
  gap: 18px;
}

.section-list article {
  border-left: 8px solid var(--green);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(var(--accent-deep-rgb), 0.11);
}

.section-list h2 {
  margin-bottom: 8px;
  color: var(--green);
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  line-height: 1.15;
}

.section-list p {
  margin-bottom: 0;
}

.centered-copy {
  max-width: 880px;
  margin: 0 auto;
}

.sobriety-copy {
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.small-parenthetical {
  font-size: 0.86em;
  color: var(--muted);
}

@media (max-width: 860px) {
  body::before,
  body::after {
    display: none;
  }

  .hero,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    width: min(420px, 100%);
    margin: 0 auto;
  }

  .contact-photo {
    width: min(360px, 100%);
  }

  .contact-photo img {
    min-height: 0;
    aspect-ratio: 3 / 4;
  }

  .mountain-links,
  .tree-links {
    min-height: 700px;
  }

  .peak-left {
    left: 6%;
    width: 35%;
    height: 40%;
  }

  .peak-center {
    left: 28%;
    width: 44%;
    height: 54%;
  }

  .peak-right {
    right: 6%;
    width: 38%;
    height: 43%;
  }

  .ridge-left {
    left: 16%;
    width: 24%;
  }

  .ridge-right {
    right: 15%;
    width: 24%;
  }

  .tree-link {
    --tree-size: 108px;
  }

  .tree-one {
    left: 15%;
    top: 57%;
  }

  .tree-two {
    left: 31%;
    top: 33%;
  }

  .tree-three {
    left: 50%;
    top: 70%;
  }

  .tree-four {
    left: 70%;
    top: 36%;
  }

  .tree-five {
    left: 86%;
    top: 58%;
  }
}

@media (max-width: 560px) {
  .snow-shell {
    width: min(100% - 18px, 500px);
  }

  .top-ribbon {
    position: relative;
  }

  h1 {
    font-size: clamp(2.35rem, 17vw, 4.1rem);
  }

  .page-nav {
    justify-content: center;
  }

  .homepage-intro {
    top: 12px;
    left: 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    max-width: 136px;
  }

  .home-page .homepage-intro img {
    width: clamp(108px, 32vw, 144px);
    border-width: 2px;
    outline-width: 1px;
  }

  .homepage-greeting {
    font-size: clamp(0.83rem, 4.43vw, 1.13rem);
  }

  .homepage-contact {
    font-size: clamp(0.53rem, 3.05vw, 0.76rem);
  }

  .slalom-map > .mountain-skier {
    top: 5%;
    left: 45%;
    width: clamp(82px, 23vw, 104px);
  }

  .gate-three .gate-label,
  .gate-five .gate-label {
    right: calc(50% + clamp(14px, 2.25vw, 25px));
    left: auto;
  }
}
