/* Autumn in the Swiss mountains: warm paper, pine forest, pumpkin, mustard and berry. Light only. */
:root {
  --paper: #fff4e4;
  --peach: #fbe3c6;
  --sage-light: #e6ecd9;
  --card: #fffaf2;
  --ink: #2b2420;
  --ink-2: #4f4238;
  --muted: #72645a; /* passes 4.5:1 contrast on paper, cards and peach */
  --line: #ead7bd;

  --pine: #2f4b3a;
  --pine-2: #3b5d46;
  --moss: #5e7d4f;
  --pumpkin: #e2702a;
  --mustard: #e9b44c;
  --rust: #c2412b;
  --berry: #9c3b52;
  --bark: #b89a74;
  --green: #4f9a5f;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --radius: 18px;
  --shadow: 0 2px 4px rgba(60, 40, 20, 0.08), 0 14px 34px rgba(60, 40, 20, 0.14);
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 {
  font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; position: relative; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- top bar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.3) blur(10px);
  -webkit-backdrop-filter: saturate(1.3) blur(10px);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.mark {
  font-family: var(--serif); font-weight: 700; font-size: 1.05rem; text-decoration: none;
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  background: var(--rust); color: #fff; font-variation-settings: "SOFT" 100, "WONK" 1;
}
.topbar nav { display: flex; gap: 24px; }
.topbar nav a { text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--ink-2); padding: 12px 4px; } /* ~44px tall tap target */
.topbar nav a:hover { color: var(--rust); }
@media (max-width: 520px) { .topbar nav { gap: 10px; } .topbar nav a { font-size: 0.875rem; } }

/* ---------- buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  border: 2px solid var(--pine); color: var(--pine); text-decoration: none; font-weight: 700; font-size: 0.98rem;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px) rotate(-1deg); background: var(--pine); color: #fff; }
.btn-primary { background: var(--rust); border-color: var(--rust); color: #fff; box-shadow: 0 6px 16px rgba(194, 65, 43, 0.28); }
.btn-primary:hover { background: var(--pine); border-color: var(--pine); }
a:focus-visible, .btn:focus-visible, .robin:focus-visible { outline: 3px solid var(--pumpkin); outline-offset: 3px; }

/* ---------- hero ---------- */

.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fff6e8 0%, #fdeedb 60%, #fbe6cc 100%);
  padding: 72px 0 clamp(170px, 22vw, 300px);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; position: relative; z-index: 3; }
.eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--rust); margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.9rem, 7.4vw, 5.6rem); letter-spacing: -0.025em; line-height: 0.98;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.headline {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.3; color: var(--pine);
  margin: 22px 0 26px; max-width: 30ch; font-variation-settings: "SOFT" 100;
}
.intro { color: var(--ink-2); max-width: 54ch; }
.status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 26px; font-size: 0.95rem; }
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; border-radius: 999px; background: #fff; font-weight: 600; color: var(--pine);
  box-shadow: 0 2px 8px rgba(60, 40, 20, 0.08);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 25%, transparent); }
.place { color: var(--muted); }

.landscape { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(150px, 20vw, 280px); z-index: 1; display: block; }

/* Polaroid frames */
.polaroid { background: #fff; padding: 12px 12px 46px; border-radius: 4px; box-shadow: var(--shadow); }
.polaroid img, .polaroid video { border-radius: 2px; width: 100%; }

.hero-photo { position: relative; margin: 120px 0 0; max-width: 420px; width: 100%; justify-self: end; transform: rotate(2deg); }

/* ---------- robin ---------- */

.robin {
  position: absolute; z-index: 2; right: 26px; top: -126px; width: 170px;
  background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transform: rotate(-2deg);
}
.robin svg { display: block; width: 100%; height: auto; overflow: visible; }
.robin .head { transform-box: fill-box; transform-origin: 25% 85%; animation: bob 7s ease-in-out infinite; }
/* Idle, the robin only looks around and hops. Beak and notes move only while the song plays (.burst). */
.robin svg { animation: hop 7s ease-in-out infinite; }
.robin .beak-low { transform-box: fill-box; transform-origin: 0 0; }
.robin .note { font-family: var(--sans); font-size: 24px; opacity: 0; transform-box: fill-box; }
.robin .n2 { animation-delay: 0.45s; fill: var(--rust); }
.robin .n3 { animation-delay: 0.9s; fill: var(--pumpkin); }
.robin:hover .head { animation-play-state: running; }

@keyframes bob {
  0%, 32%, 100% { transform: rotate(0); }
  6% { transform: rotate(-8deg); }
  14% { transform: rotate(4deg); }
  22% { transform: rotate(-7deg); }
  45% { transform: rotate(10deg); }
  55% { transform: rotate(0); }
}
@keyframes hop {
  0%, 60%, 100% { transform: translateY(0); }
  63% { transform: translateY(-9px); }
  66% { transform: translateY(0); }
  69% { transform: translateY(-5px); }
  72% { transform: translateY(0); }
}

/* Singing (only while the song plays) */
.robin.burst svg { animation: none; }
.robin.burst .head { animation: bob-fast 0.8s ease-in-out infinite; }
.robin.burst .beak-low { animation: chirp-fast 0.4s linear infinite; }
.robin.burst .note { animation: note-fast 1.1s ease-out infinite; }
.robin.burst .n2 { animation-delay: 0.35s; }
.robin.burst .n3 { animation-delay: 0.7s; }
@keyframes bob-fast { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(5deg); } }
@keyframes chirp-fast { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(26deg); } }
@keyframes note-fast {
  0% { opacity: 0; transform: translate(0, 0); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(26px, -48px) rotate(16deg); }
}

@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-photo { justify-self: center; max-width: 290px; margin-top: 96px; }
  .robin { width: 118px; top: -88px; right: 16px; }
}
@media (max-width: 520px) {
  .hero-photo { max-width: 230px; margin-top: 84px; }
  .robin { width: 104px; top: -77px; }
}

/* ---------- falling leaves ---------- */

.leaves { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.leaf { position: absolute; left: var(--x); top: -6%; width: var(--s); opacity: 0; animation: fall var(--d) linear var(--delay) infinite; }
.leaf svg { display: block; width: 100%; height: auto; animation: sway 3.2s ease-in-out infinite alternate; }
.leaf:nth-child(even) svg { animation-duration: 4.1s; animation-direction: alternate-reverse; }
@keyframes fall {
  0% { top: -6%; opacity: 0; }
  6% { opacity: 0.9; }
  88% { opacity: 0.9; }
  100% { top: 96%; opacity: 0; }
}
@keyframes sway {
  from { transform: translateX(-26px) rotate(-35deg); }
  to { transform: translateX(26px) rotate(45deg); }
}
@media (max-width: 600px) { .leaf:nth-child(n + 7) { display: none; } }

/* ---------- sections ---------- */

.section { padding: 88px 0; position: relative; }
.section-title {
  font-size: clamp(2.1rem, 4.4vw, 3rem); margin-bottom: 44px; letter-spacing: -0.02em; color: var(--pine);
}
.section-title.small { font-size: 1.6rem; margin-bottom: 18px; }
@media (max-width: 600px) { .section { padding: 64px 0; } .section-title { margin-bottom: 30px; } }

/* where I can help */

.help { background: var(--peach); padding-top: 40px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  --c: var(--pumpkin); --c-ink: #fff;
  background: var(--card); border-radius: var(--radius); padding: 30px 28px 32px;
  border-top: 8px solid var(--c); box-shadow: 0 2px 10px rgba(60, 40, 20, 0.07);
  display: flex; flex-direction: column; transition: transform 0.2s ease;
}
.card:nth-child(2) { --c: var(--moss); }
.card:nth-child(3) { --c: var(--mustard); --c-ink: var(--ink); }
.card:hover { transform: translateY(-4px) rotate(-0.5deg); }
.card .num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c); color: var(--c-ink); font-family: var(--serif); font-weight: 700; font-size: 1.15rem;
}
.card h3 { font-size: 1.6rem; margin: 16px 0 14px; }
.card p { color: var(--ink-2); font-size: 1rem; }
/* margin-top: auto pushes the lists to the bottom, so the dividers line up across the three cards */
.card > p:last-of-type { margin-bottom: 20px; }
.ticks { list-style: none; padding: 18px 0 0; margin: auto 0 0; border-top: 2px dotted var(--line); font-size: 0.95rem; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.45em; width: 11px; height: 6px;
  border-left: 2.5px solid var(--c); border-bottom: 2.5px solid var(--c); transform: rotate(-45deg);
}
@media (max-width: 920px) { .cards { grid-template-columns: 1fr; max-width: 620px; } }

/* forest edge between sections */

.forest-edge { display: block; width: 100%; height: clamp(70px, 8vw, 110px); margin-bottom: -1px; }

/* survived */

.survived { background: var(--pine); color: #fff4e4; padding-top: 56px; }
.survived .section-title { color: #fff4e4; }
.survived-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 64px;
}
.survived-list li {
  padding: 24px 0 24px 62px; position: relative;
  border-top: 1px dashed rgba(255, 244, 228, 0.22);
}
.survived-list li::before {
  content: "✓"; position: absolute; left: 0; top: 22px;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--mustard); color: var(--pine); font-weight: 800;
}
.survived-list li:nth-child(2)::before { background: var(--pumpkin); color: #fff; }
.survived-list li:nth-child(3)::before { background: #f3d9b1; }
.survived-list li:nth-child(4)::before { background: var(--rust); color: #fff; }
.survived-list li:nth-child(5)::before { background: #a9bb8c; }
.survived-list h3 { font-size: 1.4rem; margin-bottom: 8px; }
.survived-list p { color: #cfdac6; }
/* The lesson: a big lead line and four ingredients as labels; the last is a strip of duct tape. */
.lesson { margin: 72px 0 0; padding: 0; text-align: center; }
.lesson-label {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mustard); margin-bottom: 14px;
}
.lesson-lead {
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 4.2vw, 2.9rem); line-height: 1.12; color: #fff4e4;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; letter-spacing: -0.02em; max-width: 26ch; margin: 0 auto 34px; text-wrap: balance;
}
.lesson-items {
  list-style: none; padding: 0; margin: 0 auto; max-width: 900px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 20px;
}
.lesson-items li {
  font-family: var(--hand); font-weight: 700; font-size: clamp(1.45rem, 2.8vw, 1.9rem); line-height: 1;
  padding: 14px 22px 16px; border-radius: 6px; color: var(--ink);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22); transition: transform 0.2s ease;
}
.lesson-items li:nth-child(1) { background: var(--mustard); transform: rotate(-3deg); }
.lesson-items li:nth-child(2) { background: var(--pumpkin); color: #fff; transform: rotate(2deg); }
.lesson-items li:nth-child(3) { background: #a9bb8c; transform: rotate(-1.5deg); }
.lesson-items li:hover { transform: rotate(0) scale(1.06); }

/* A strip of silver duct tape with torn ends */
.lesson-items li.tape-strip {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, #e3e6e8 0%, #c3c8cc 45%, #aeb4b9 100%);
  color: #2b2420; border-radius: 0; padding: 14px 34px 16px; transform: rotate(2.5deg);
  clip-path: polygon(0 8%, 3% 0, 6% 10%, 9% 2%, 91% 0, 94% 9%, 97% 1%, 100% 7%, 99% 30%, 100% 52%, 98% 74%, 100% 95%, 96% 100%, 93% 91%, 90% 100%, 10% 98%, 7% 90%, 4% 100%, 1% 93%, 2% 70%, 0 48%, 1% 26%);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.28)); box-shadow: none;
}
.lesson-items li.tape-strip:hover { transform: rotate(0) scale(1.06); }

@media (max-width: 760px) {
  .survived-list { grid-template-columns: 1fr; }
  .lesson { margin-top: 56px; }
  .lesson-items { gap: 14px; }
  .lesson-items li { padding: 12px 18px 14px; }
}

/* experience: a branch with a leaf for every job */

/* Desktop: dates on the left, the branch in the middle, the job on the right. */
.timeline { --date-col: 140px; --branch-col: 76px; list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 8px; bottom: 8px; width: 4px; border-radius: 4px; background: var(--bark);
  left: calc(var(--date-col) + var(--branch-col) / 2 - 2px);
}
.timeline li {
  position: relative; padding-bottom: 40px;
  display: grid; grid-template-columns: var(--date-col) var(--branch-col) minmax(0, 1fr); grid-template-areas: "period marker body";
}
.timeline li:last-child { padding-bottom: 0; }
.timeline .period { grid-area: period; text-align: right; padding-top: 5px; margin: 0; white-space: nowrap; }
.timeline .marker { grid-area: marker; justify-self: center; align-self: start; width: 30px; color: var(--leaf); transform: rotate(-28deg); position: relative; z-index: 1; }
.timeline .tl-body { grid-area: body; }
.marker svg { display: block; width: 100%; height: auto; }
.timeline li:nth-child(even) .marker { transform: rotate(24deg); }
.period { font-family: var(--hand); font-size: 1.45rem; font-weight: 700; line-height: 1; color: var(--rust); }
.timeline h3 { font-size: 1.5rem; }
.org { color: var(--pine); font-weight: 700; margin: 6px 0 10px; }
.org span { color: var(--muted); font-weight: 400; }
.tl-body p:not(.org) { color: var(--ink-2); max-width: 68ch; }

/* Pauses (e.g. parental leave): one quiet line with a seedling, not a full entry */
.timeline li.pause { padding-bottom: 32px; align-items: center; }
.timeline li.pause .period { padding-top: 0; font-size: 1.25rem; color: var(--moss); }
.timeline li.pause .marker { width: 24px; color: var(--moss); transform: none; align-self: center; }
.pause-line { margin: 0; color: var(--ink-2); font-size: 0.98rem; }
.pause-role { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.15rem; color: var(--ink-2); }
.pause-text { color: var(--muted); }

/* Phones: the branch on the left, dates above each job */
@media (max-width: 700px) {
  .timeline { --branch-col: 46px; }
  .timeline::before { left: calc(var(--branch-col) / 2 - 2px); }
  .timeline li { grid-template-columns: var(--branch-col) minmax(0, 1fr); grid-template-areas: "marker period" "marker body"; padding-bottom: 34px; }
  .timeline .period { text-align: left; padding-top: 0; margin-bottom: 6px; }
  .timeline .marker { align-self: start; }
  .timeline li.pause { align-items: start; }
  .timeline li.pause .period { margin-bottom: 2px; }
}

/* facts */

.facts { background: var(--sage-light); }
.facts-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; align-items: start; }
/* Same card as "Where I can help", with a forest-green top bar */
.fact-card { background: var(--card); border-radius: var(--radius); padding: 28px; border-top: 8px solid var(--pine-2); box-shadow: 0 2px 10px rgba(60, 40, 20, 0.07); }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 11px 0; border-top: 2px dotted var(--line); display: flex; flex-direction: column; gap: 2px; }
.plain li:first-child { border-top: 0; padding-top: 0; }
.plain li span { color: var(--ink-2); font-size: 0.97rem; }
.plain .muted { color: var(--muted); font-size: 0.9rem; }
.langs li { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 16px; }
.langs li span { text-align: right; }
.dashes li { color: var(--ink-2); font-size: 0.97rem; }
@media (max-width: 900px) { .facts-grid { grid-template-columns: 1fr; max-width: 620px; } }

/* off the clock: a wall of polaroids */

.personal-intro { max-width: 640px; margin-bottom: 48px; }
.personal-intro .section-title { margin-bottom: 20px; }
.personal-intro p { font-size: 1.15rem; color: var(--ink-2); }

.collage { display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; }
.collage-item {
  position: relative; margin: 0; background: #fff; padding: 10px 10px 40px; border-radius: 4px; box-shadow: var(--shadow);
  transform: rotate(-2deg); transition: transform 0.2s ease;
}
.collage-item:nth-child(2) { transform: rotate(1.6deg); }
.collage-item:nth-child(3) { transform: rotate(-1deg); }
.collage-item:nth-child(4) { transform: rotate(2.2deg); }
.collage-item:nth-child(5) { transform: rotate(-1.6deg); }
.collage-item:nth-child(6) { transform: rotate(1deg); }
.collage-item:hover { transform: rotate(0) scale(1.03); z-index: 2; }
.collage-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.collage-item:first-child { grid-column: span 2; grid-row: span 2; }
.collage-item figcaption {
  position: absolute; left: 10px; right: 10px; bottom: 6px; text-align: center;
  font-family: var(--hand); font-size: 1.3rem; line-height: 1.2; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.collage.count-1 { grid-template-columns: 1fr; grid-auto-rows: auto; max-width: 360px; }
.collage.count-1 .collage-item img { height: auto; aspect-ratio: 3 / 4; }
.collage.count-2 { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 360px; }
.collage.count-2 .collage-item:first-child { grid-column: span 1; grid-row: span 1; }
.collage.count-3 { grid-template-columns: repeat(3, 1fr); }
.collage.count-3 .collage-item:first-child { grid-column: span 1; }
.collage.count-3 .collage-item { grid-row: span 2; }
.collage.count-4 { grid-template-columns: repeat(4, 1fr); grid-auto-rows: auto; gap: 26px; }
.collage.count-4 .collage-item:first-child { grid-column: span 1; grid-row: span 1; }
.collage.count-4 .collage-item img { height: auto; aspect-ratio: 3 / 4; }
/* Rows that size to their content can let captions wrap instead of cutting them off. */
.collage.count-1 .collage-item, .collage.count-4 .collage-item { padding-bottom: 12px; }
.collage.count-1 figcaption, .collage.count-4 figcaption { position: static; white-space: normal; margin-top: 8px; }
@media (max-width: 760px) {
  .collage.count-4 { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .collage, .collage.count-3 { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; gap: 16px; }
  .collage.count-3 .collage-item:first-child { grid-column: span 2; }
  .collage.count-3 .collage-item:not(:first-child) { grid-row: span 1; }
  .collage.count-2 { grid-auto-rows: 230px; }
  .collage.count-1 { max-width: 280px; margin: 0 auto; }
  .collage-item figcaption { font-size: 1.1rem; }
}

/* contact */

.contact { text-align: center; padding: 24px 0 72px; background: var(--paper); } /* follows "Off the clock" on the same background */
.flock { display: block; width: 170px; margin: 0 auto 6px; animation: drift 9s ease-in-out infinite alternate; }
.flock .bird { fill: none; stroke: var(--pine); stroke-width: 2.4; stroke-linecap: round; transform-box: fill-box; transform-origin: center; animation: flap 0.7s ease-in-out infinite alternate; }
.flock .b2 { animation-delay: 0.25s; stroke: var(--rust); }
.flock .b3 { animation-delay: 0.45s; }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(0.35) translateY(3px); } }
@keyframes drift { from { transform: translate(-40px, 6px); } to { transform: translate(40px, -6px); } }
.big { font-size: clamp(3rem, 9vw, 6rem); letter-spacing: -0.03em; color: var(--rust); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.contact-text { max-width: 48ch; margin: 22px auto 18px; color: var(--ink-2); }
.email {
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.15rem, 3.4vw, 1.7rem); color: var(--pine);
  text-decoration: underline; text-decoration-color: var(--mustard); text-decoration-thickness: 3px; text-underline-offset: 6px;
  overflow-wrap: anywhere;
}
.contact-de { font-family: var(--hand); font-size: 1.6rem; font-weight: 700; color: var(--moss); margin: -4px 0 22px; transform: rotate(-1.5deg); }
.contact .actions { justify-content: center; }

/* footer: mountains at the end of the trail */

.footer { color: #dfe7d6; font-size: 0.88rem; text-align: center; }
.footer-mountains { display: block; width: 100%; height: clamp(80px, 10vw, 140px); margin-bottom: -1px; }
.footer-text { background: var(--pine); padding: 18px 0 32px; }

/* ---------- birthday page ---------- */

.bday { min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(180deg, #fff6e8, #fbe3c6); }
.bday .bday-main { flex: 1; }
.bday .leaves { position: fixed; z-index: 1; }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }
.bday-main { position: relative; z-index: 3; max-width: 900px; padding-top: 64px; padding-bottom: 72px; text-align: center; }
.bday h1 {
  font-size: clamp(2.6rem, 8vw, 5rem); letter-spacing: -0.03em; color: var(--rust); margin-bottom: 36px;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
/* A straight white frame: Safari draws its video controls wrongly inside rotated elements,
   and a tilted frame around a straight video looks off. */
.bday-video { padding: 14px; margin: 0 auto 44px; max-width: 860px; }
.bday-video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #222; border-radius: 2px; }
.bday-card { max-width: 640px; margin: 0 auto; }
.bday-message { font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.4rem); line-height: 1.55; color: var(--ink-2); font-variation-settings: "SOFT" 100; }
.signature { font-family: var(--hand); font-size: 2.1rem; font-weight: 700; color: var(--pine); margin: 22px 0 32px; }
.signature::before { content: "— "; }
.bday .footer-mountains { height: clamp(70px, 9vw, 120px); }
.bday .footer { background: var(--pine); }
.bday .footer-mountains { background: #fbe3c6; }

/* ---------- seasons ----------
   The page picks the season from the date in Zürich (see seasonScript in build.js).
   Autumn is the default; the other seasons override colours and what falls from the sky. */

.mtn-far { fill: #c9d4e4; }
.hill-mid { fill: #a9bb8c; }
.hill-front { fill: #e9b44c; opacity: 0.55; }
.crown.k0 { fill: #e2702a; }
.crown.k1 { fill: #e9b44c; }
.crown.k2 { fill: #c2412b; }
.crown.k3 { fill: #f09a3e; }
.snowcap { fill: #fff; display: none; }

.leaf > svg, .leaf > .p-firefly { display: none; }
.leaf > .p-leaf { display: block; }

/* Winter: snow on the trees, snowflakes, a scarf for the robin */
[data-season="winter"] .hero { background: linear-gradient(180deg, #edf2f8 0%, #f6efe6 62%, #fbe6cc 100%); }
[data-season="winter"] .mtn-far { fill: #dbe3ee; }
[data-season="winter"] .hill-mid { fill: #e6ecf3; }
[data-season="winter"] .hill-front { fill: #ffffff; opacity: 0.85; }
[data-season="winter"] .crown.k0 { fill: #eef3f8; }
[data-season="winter"] .crown.k1 { fill: #ffffff; }
[data-season="winter"] .crown.k2 { fill: #dde6ef; }
[data-season="winter"] .crown.k3 { fill: #f4f7fb; }
[data-season="winter"] .snowcap { display: inline; }
[data-season="winter"] .leaf > .p-leaf { display: none; }
[data-season="winter"] .leaf > .p-snow { display: block; color: #9db8d6; animation-name: sway-soft; }
[data-season="winter"] .robin .scarf { display: inline; }

/* Spring: blossom and fresh green, falling petals */
[data-season="spring"] .hero { background: linear-gradient(180deg, #fff3f1 0%, #fdeee2 62%, #fbe6cc 100%); }
[data-season="spring"] .hill-mid { fill: #b7d78f; }
[data-season="spring"] .hill-front { fill: #d6eb9c; opacity: 0.8; }
[data-season="spring"] .crown.k0 { fill: #f4b6c6; }
[data-season="spring"] .crown.k1 { fill: #a8d08d; }
[data-season="spring"] .crown.k2 { fill: #f7cdd8; }
[data-season="spring"] .crown.k3 { fill: #8cc07a; }
[data-season="spring"] .leaf > .p-leaf { display: none; }
[data-season="spring"] .leaf > .p-petal { display: block; }

/* Summer: deep greens, warm light, fireflies drifting up */
[data-season="summer"] .hero { background: linear-gradient(180deg, #fff6d9 0%, #fdedcf 62%, #fbe6cc 100%); }
[data-season="summer"] .hill-mid { fill: #8fbf6a; }
[data-season="summer"] .hill-front { fill: #c9df78; opacity: 0.75; }
[data-season="summer"] .crown.k0 { fill: #5e9a4f; }
[data-season="summer"] .crown.k1 { fill: #7cb35a; }
[data-season="summer"] .crown.k2 { fill: #4b8442; }
[data-season="summer"] .crown.k3 { fill: #6aa84f; }
[data-season="summer"] .leaf > .p-leaf { display: none; }
[data-season="summer"] .leaf > .p-firefly {
  display: block; width: calc(var(--s) * 0.4); aspect-ratio: 1; border-radius: 50%; margin: 0 auto;
  background: #ffd25e; box-shadow: 0 0 10px 4px rgba(255, 196, 70, 0.55);
  animation: glow 1.8s ease-in-out infinite alternate;
}
[data-season="summer"] .leaf { animation-name: rise; animation-duration: calc(var(--d) * 1.4); }

@keyframes sway-soft {
  from { transform: translateX(-14px) rotate(-20deg); }
  to { transform: translateX(14px) rotate(20deg); }
}
@keyframes rise {
  0% { top: 96%; opacity: 0; }
  10% { opacity: 1; }
  85% { opacity: 0.9; }
  100% { top: 8%; opacity: 0; }
}
@keyframes glow {
  from { opacity: 0.45; transform: translateX(-10px) scale(0.85); }
  to { opacity: 1; transform: translateX(10px) scale(1.1); }
}

/* ---------- catch the leaves (see robin.js) ---------- */

.hero .leaves { z-index: 4; }
.hero .leaf { pointer-events: auto; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.hero .leaf::before { content: ""; position: absolute; inset: -14px; } /* a bigger target than the leaf itself */
.hero .leaf.caught { opacity: 1; pointer-events: none; }
.hero .leaf.caught > * { animation: pop 0.6s ease-out forwards !important; }
@keyframes pop {
  0% { transform: scale(1) rotate(0); opacity: 1; }
  35% { transform: scale(1.8) rotate(90deg); opacity: 1; }
  100% { transform: scale(0.2) rotate(320deg) translateY(-30px); opacity: 0; }
}

.robin-bubble {
  position: absolute; z-index: 3; right: 196px; top: -112px; margin: 0;
  padding: 6px 14px; border-radius: 16px; background: #fff; box-shadow: var(--shadow);
  font-family: var(--hand); font-size: 1.45rem; font-weight: 700; color: var(--pine); white-space: nowrap;
  opacity: 0; transform: translateY(6px) scale(0.9); transform-origin: right bottom; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.robin-bubble::after {
  content: ""; position: absolute; right: -7px; bottom: 10px; width: 14px; height: 14px;
  background: #fff; transform: rotate(45deg); border-radius: 2px;
}
.robin-bubble.show { opacity: 1; transform: none; }
.robin-bubble:empty { display: none; }
@media (max-width: 860px) {
  .robin-bubble { right: 140px; top: -84px; font-size: 1.25rem; }
}
@media (max-width: 520px) {
  .robin-bubble { right: 124px; top: -74px; }
}

/* Her birthday (23 October): a party hat, and the robin is livelier */
.robin .party-hat, .robin .scarf { display: none; }
[data-birthday] .robin .party-hat { display: inline; }
[data-birthday] .robin:not(.burst) .head,
[data-birthday] .robin:not(.burst) svg { animation-duration: 3.5s; }

/* Birthday page: a beating heart for "<3", and the party-hat robin perched on the video */
.heart { display: inline-block; width: 0.8em; height: 0.74em; margin-left: 0.14em; vertical-align: -0.04em; color: var(--rust); animation: beat 1.6s ease-in-out infinite; }
.heart svg { display: block; width: 100%; height: 100%; }
.bday-message .heart, .signature .heart { width: 0.9em; height: 0.82em; }
@keyframes beat {
  0%, 40%, 100% { transform: scale(1); }
  12% { transform: scale(1.18); }
  24% { transform: scale(0.96); }
  32% { transform: scale(1.1); }
}
/* The birthday note: paragraphs, with a short last one ("Love you!") as a handwritten closing */
.bday-message p { margin: 0 auto 0.9em; max-width: 34em; text-wrap: pretty; }
.bday-message .closing { font-family: var(--hand); font-weight: 700; font-size: clamp(1.9rem, 5vw, 2.5rem); line-height: 1.1; color: var(--rust); margin: 1em auto 0; }
.bday-message .closing + * { margin-top: 0; }
.signature { margin-top: 10px; }

/* Typed emoticons drawn as small faces (see prettify in build.js) */
.emoji { display: inline-block; width: 1.05em; height: 1.05em; margin: 0 0.06em; vertical-align: -0.2em; }
.emoji svg { display: block; width: 100%; height: 100%; overflow: visible; }
.emoji-angel { height: 1.3em; vertical-align: -0.2em; }

/* The flying robin above the birthday title */
.bday-flyer { width: 172px; margin: -8px auto 0; animation: drift-air 7s ease-in-out infinite; }
.bday-flyer .robin { position: relative; top: auto; right: auto; width: 100%; display: block; transform: rotate(-6deg); }
.robin.flying .leg { display: none; }
.robin.flying svg { animation: flutter 0.56s ease-in-out infinite alternate; }
.robin.flying .wing { transform-box: fill-box; transform-origin: 85% 35%; animation: flap-wing 0.28s ease-in-out infinite alternate; }
@keyframes flap-wing {
  from { transform: rotate(-80deg) scale(1.25, 1.1); }
  to { transform: rotate(22deg) scale(1.1, 0.7); }
}
/* the far wing, behind the body, beats with the near one */
.robin .wing-far { display: none; }
.robin.flying .wing-far { display: inline; transform-box: fill-box; transform-origin: 80% 90%; animation: flap-far 0.28s ease-in-out infinite alternate; }
@keyframes flap-far {
  from { transform: rotate(38deg) translate(-4px, -14px) scaleY(1.3); }
  to { transform: rotate(-6deg) translate(0, 6px) scaleY(0.6); }
}
@keyframes flutter { from { transform: translateY(0); } to { transform: translateY(-7px); } }
@keyframes drift-air {
  0%, 100% { transform: translate(-46px, 6px); }
  50% { transform: translate(46px, -8px); }
}
@media (max-width: 520px) { .bday-flyer { width: 128px; } }

@media (prefers-reduced-motion: reduce) {
  .heart, .bday-flyer, .robin.flying svg, .robin.flying .wing, .robin.flying .wing-far { animation: none; }
  html { scroll-behavior: auto; }
  .leaves { display: none; }
  .robin svg, .robin .head, .robin .beak-low, .flock, .flock .bird { animation: none; }
  .robin .note { animation: none; opacity: 0; }
  .btn, .card, .collage-item { transition: none; }
}

@media print {
  .topbar, .actions, .personal, .leaves, .robin, .landscape, .forest-edge, .footer-mountains, #confetti { display: none !important; }
  body, .hero, .help, .facts, .survived { background: #fff; color: #000; }
  .survived .section-title, .survived-list p { color: #000; }
  .section { padding: 24px 0; }
}

.footer-text p { margin: 0; }
.footer .credit { margin-top: 6px; font-size: 0.78rem; color: #a9bb9c; }
.footer .credit a { color: inherit; text-decoration-color: rgba(169, 187, 156, 0.5); text-underline-offset: 2px; }

/* rolling-hill edges between flat sections (see hillEdge in build.js) */
.hill-edge { display: block; width: 100%; height: clamp(44px, 6vw, 90px); margin: -1px 0; }
.hill-edge + .section { padding-top: 48px; }

/* "What I've lived through": an odd last item sits centred across both columns, not alone on the left */
.survived-list li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 32px); }
@media (max-width: 760px) { .survived-list li:last-child:nth-child(odd) { grid-column: auto; justify-self: stretch; width: auto; } }

/* "Also": small leaf bullets, like the other lists have ticks */
.dashes li { position: relative; padding-left: 22px; }
.dashes li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 11px; height: 13px; transform: rotate(-30deg);
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28'%3E%3Cpath d='M12 1C20 7 22 17 12 25C2 17 4 7 12 1Z' fill='%23e2702a'/%3E%3C/svg%3E");
}
.dashes li:first-child::before { top: 4px; }

/* The birthday slow-down is for the perched robin's hop; the flying robin keeps its quick flutter. */
[data-birthday] .robin.flying:not(.burst) svg { animation-duration: 0.56s; }
