/* The outgoing map paper also colours the upper edge of the arrival photograph. */
:root { --field-ground:#252521; }
html[data-stay-season=summer] { --field-ground:#f6edcf; }
#okoli.outings {
  --out-ground:var(--field-ground);
  --out-text:#faf6e9;
  --out-soft:#d7d3c6;
  --out-rule:#5c5f53;
  --out-signal:#ffaf95;
  --out-paper:#f0eee0;
  --out-map-ink:#403c33;
  --out-map-line:#928c7c;
  --out-map-spot:#9d392d;
  color:var(--out-text); background:var(--out-ground);
  padding:clamp(51px,7.3vw,118px) 0 clamp(28px,2.8vw,54px);
  scroll-margin-top:60px;
}
html[data-stay-season=summer] #okoli.outings {
  --out-text:#463322; --out-soft:#66513d; --out-rule:#aa956f;
  --out-signal:#79450b; --out-paper:#fff7e3; --out-map-ink:#4c3e2b;
  --out-map-line:#a29373; --out-map-spot:#9d461b;
}
html:not([data-stay-season=summer]) [data-out-season=summer],
html[data-stay-season=summer] [data-out-season=winter] { display:none; }
.out-wrap { width:min(1312px,91%); margin-inline:auto; }
.out-heading { display:grid; align-items:end; gap:12px; padding-bottom:clamp(22px,3.4vw,55px); }
.out-section, .out-map figcaption small, .out-choices summary small {
  font:550 11px/1.4 var(--mono,monospace); letter-spacing:.03em;
}
.out-section { margin:0 0 9px; color:var(--out-soft); text-transform:uppercase; letter-spacing:.115em; }
#okoli.outings .out-heading h2 {
  margin:0; max-width:14ch; color:var(--out-text); font:400 clamp(48px,8vw,116px)/.95 "Postcard Serif",Georgia,serif; letter-spacing:-.053em;
}
.out-heading h2 em { display:block; font-family:"Instrument Serif","Postcard Serif",Georgia,serif; font-weight:400; }
.out-intro { color:var(--out-soft); margin:0; max-width:35ch; font:450 clamp(15px,1.23vw,19px)/1.5 var(--body,sans-serif); }
.out-spread { display:grid; align-items:start; gap:clamp(23px,4vw,68px); }
.out-map {
  position:relative; margin:0; padding:clamp(11px,1.6vw,23px) 0 0; isolation:isolate;
  transform:rotate(-1.1deg); background:var(--out-paper); color:var(--out-map-ink);
  box-shadow:2px 4px 1px #15140d1c,4px 10px 15px #15140d1f;
}
.out-map::before {
  position:absolute; z-index:1; inset:0; pointer-events:none; content:"";
  background:linear-gradient(90deg,transparent 0 32.5%,#635f4d16 33.24%,#fff9e399 33.4%,transparent 34.4% 65.75%,#635f4d17 66.55%,#fffbeb9c 66.7%,transparent 67.6%);
}
.out-map::after {
  content:""; position:absolute; inset:7px; pointer-events:none; border:1px solid color-mix(in srgb,var(--out-map-line) 60%,transparent);
}
.out-map-body { position:relative; margin:0 2.4%; aspect-ratio:556/309; }
.out-sketch { display:block; width:100%; height:100%; overflow:hidden; }
.out-contours,.out-water,.out-paths,.out-buildings,.out-lift-line { fill:none; stroke-linecap:round; stroke-linejoin:round; }
.out-contours { stroke:var(--out-map-line); stroke-width:.95; opacity:.57; }
.out-forest { color:var(--out-map-ink); opacity:.67; }
.out-water { fill:#c4d2c5; stroke:#647968; stroke-width:1.4; }
.out-water path+path { fill:none; stroke-width:.95; }
.out-paths { stroke:var(--out-map-line); stroke-width:2.8; stroke-dasharray:6 4; }
.out-paths [data-ink=ski] { stroke-dasharray:none; stroke-width:2; }
.out-buildings { stroke:var(--out-map-ink); stroke-width:1.6; fill:var(--out-paper); }
.out-lift-line { stroke:var(--out-map-ink); stroke-width:1.15; }
.out-map-labels { font:550 16.5px/1 var(--body,sans-serif); letter-spacing:-.02em; fill:var(--out-map-ink); paint-order:stroke; stroke:var(--out-paper); stroke-width:3.6px; stroke-linejoin:round; }
.out-map-labels .out-minor { font-size:13px; font-weight:500; }
.out-map-labels .out-base-label { fill:var(--out-map-spot); font-weight:750; }
.out-map figcaption { position:relative; display:flex; align-items:baseline; justify-content:space-between; gap:5px;
  margin:0 5.1%; padding:7px 0 13px; color:var(--out-map-ink); border-top:1px solid var(--out-map-line); }
.out-map figcaption span { font:400 clamp(24px,3.1vw,51px)/1 "Postcard Serif",Georgia,serif; letter-spacing:-.055em; }
.out-map figcaption small { font-size:clamp(9px,.8vw,12px); }
.out-pin {
  position:absolute; z-index:2; display:grid; place-items:center; width:clamp(44px,5vw,64px); aspect-ratio:1;
  transform:translate(-50%,-50%); border-radius:34%; text-decoration:none;
}
.out-sticker {
  display:block; max-width:none; object-fit:contain; pointer-events:none; user-select:none;
  rotate:var(--sticker-tilt,0deg); transform-origin:var(--sticker-pivot,50% 78%);
}
.out-pin .out-sticker {
  position:relative; width:100%; height:88%; scale:var(--sticker-scale,.89);
  filter:drop-shadow(0 1px .5px #36291551);
}
.out-pin::before {
  content:""; position:absolute; left:13%; right:13%; bottom:4%; height:3px;
  border-bottom:2px solid var(--out-map-spot); border-radius:50%; opacity:var(--sticker-picked,0); transform:rotate(-8deg);
}
:is([data-out-pin=ski],[data-outing=ski]) { --sticker-motion:out-chair-swing; --sticker-pivot:50% 9%; --sticker-tilt:-4deg; }
:is([data-out-pin=pond],[data-outing=pond]) { --sticker-motion:out-frog-hop; --sticker-pivot:50% 83%; --sticker-tilt:3deg; }
:is([data-out-pin=trail],[data-outing=trail]) { --sticker-motion:out-bee-flight; --sticker-pivot:50% 54%; --sticker-tilt:-6deg; }
:is([data-out-pin=ridge],[data-outing=ridge]) { --sticker-motion:out-pack-lift; --sticker-pivot:52% 85%; --sticker-tilt:4deg; }
.out-pin[data-out-pin=pond] { left:76.3%; top:71.2%; }
.out-pin[data-out-pin=ski] { left:43.1%; top:39.5%; }
.out-pin[data-out-pin=trail] { left:45.3%; top:71.7%; }
.out-pin[data-out-pin=ridge] { left:27.3%; top:20.5%; }
.outings:has([data-outing=pond][open]) [data-ink=pond],
.outings:has([data-outing=ski][open]) [data-ink=ski],
.outings:has([data-outing=trail][open]) [data-ink=trail],
.outings:has([data-outing=ridge][open]) [data-ink=ridge] {
  stroke:var(--out-map-spot); stroke-width:4.4; stroke-dasharray:none;
  filter:drop-shadow(0 1px 0 var(--out-paper));
}
.outings:has([data-outing=pond][open]) [data-out-pin=pond],
.outings:has([data-outing=ski][open]) [data-out-pin=ski],
.outings:has([data-outing=trail][open]) [data-out-pin=trail],
.outings:has([data-outing=ridge][open]) [data-out-pin=ridge] {
  --sticker-picked:1; --sticker-scale:1.09; --sticker-reaction:var(--sticker-motion); z-index:3;
}
.out-pin:is(:focus-visible,:hover) { --sticker-scale:1.11; }
.out-choices { min-width:0; }
#okoli .out-choices details { margin:0; padding:0; border:0; border-top:1px solid var(--out-rule); }
#okoli .out-choices details:last-child { border-bottom:1px solid var(--out-rule); }
#okoli .out-choices summary { display:grid; grid-template-columns:44px minmax(0,1fr) 18px; gap:11px; align-items:center;
  min-height:55px; padding:9px 0; list-style:none; cursor:pointer; color:var(--out-text); }
.out-choices summary::-webkit-details-marker { display:none; }
#okoli .out-choices summary::after { content:none; }
.out-choices summary>.out-sticker { width:100%; height:41px; }
.out-choices summary strong { display:block; font:400 clamp(22px,2.1vw,36px)/1.06 "Postcard Serif",Georgia,serif; letter-spacing:-.026em; }
.out-choices summary small { display:block; margin-top:3px; color:var(--out-soft); font-size:13px; }
.out-choices summary i { position:relative; width:13px; height:13px; justify-self:end; }
.out-choices summary i::before,.out-choices summary i::after { content:""; position:absolute; inset:calc(50% - .75px) 0 auto; height:1.5px; background:currentColor; }
.out-choices summary i::after { transform:rotate(90deg); }
.out-choices [open] summary i::after { display:none; }
.out-choices details[open] summary i, .out-choices details[open] summary strong { color:var(--out-signal); }
.out-leaf { padding:0 0 14px 55px; scroll-margin-top:90px; }
#okoli .out-leaf>p { margin:0 0 12px; color:var(--out-soft); font:450 clamp(14px,1.02vw,16px)/1.5 var(--body,sans-serif); max-width:57ch; }
.out-photo { margin:0 0 6px; }
.out-photo>div { position:relative; width:100%; height:clamp(108px,14vw,185px); overflow:hidden; }
.out-photo img { display:block; width:100%; height:100%; object-fit:cover; }
.out-photo-ski img { object-position:50% 52%; }
.out-photo-trail img { object-position:50% 57%; }
.out-photo-ridge img { object-position:50% 52%; }
.out-photo-pond img { position:absolute; right:0; bottom:-47%; width:220%; height:auto; max-width:none; }
.out-photo figcaption { color:var(--out-soft); margin-top:4px; font:500 10px/1.4 var(--body,sans-serif); }
.out-photo figcaption a { color:inherit; }
.out-route-link,.out-guides a { display:inline-flex; align-items:center; gap:8px; min-height:44px;
  text-decoration:underline; text-underline-offset:4px; font:650 14px/1.3 var(--body,sans-serif); }
#okoli .out-route-link { color:var(--out-signal); }
.out-guides { display:flex; flex-wrap:wrap; gap:7px 24px; padding-top:clamp(19px,2.6vw,38px); }
#okoli .out-guides a { color:var(--out-text); font-weight:540; }
#okoli :is(.out-choices summary,.out-route-link,.out-guides a,.out-pin):focus-visible { outline:2px solid var(--out-signal); outline-offset:3px; }
#okoli .out-pin:focus-visible {
  outline-color:var(--out-map-ink); outline-offset:0; box-shadow:0 0 0 2px var(--out-paper);
}
@media(min-width:760px) {
  .out-heading { grid-template-columns:minmax(0,1.45fr) minmax(190px,.72fr); gap:clamp(25px,5vw,90px); }
  #okoli.outings .out-heading h2 { max-width:14ch; }
  .out-spread { grid-template-columns:minmax(0,1.22fr) minmax(0,1fr); }
  .out-map { position:sticky; top:clamp(72px,9vh,132px); margin-top:6px; }
  .out-map figcaption { padding:12px 0 clamp(17px,2.1vw,30px); }
  #okoli .out-choices summary { grid-template-columns:54px minmax(0,1fr) 18px; padding:12px 0; gap:14px; }
  .out-choices summary>.out-sticker { height:47px; }
  .out-leaf { padding-left:68px; }
}
@media(max-width:420px) {
  .out-wrap { width:91%; }
  .out-map-labels { font-size:20px; }
  .out-minor { display:none; }
  .out-leaf { padding-left:0; }
  .out-photo>div { height:114px; }
}
@media(prefers-reduced-motion:no-preference) {
  .out-route-link,.out-choices summary i,.out-paths path { transition:color .18s,stroke .23s; }
  .out-pin .out-sticker { transition:scale .18s ease-out; }
  .out-choices details[open] .out-photo img { animation:out-photo-develop .32s ease-out; }
  @keyframes out-photo-develop { from { opacity:.65; } to { opacity:1; } }
  @keyframes out-chair-swing {
    22% { transform:rotate(-13deg); } 57% { transform:rotate(8deg); } 80% { transform:rotate(-3deg); }
  }
  @keyframes out-frog-hop {
    15% { transform:scale(1.08,.86); } 45% { transform:translate(2px,-8px) rotate(6deg); }
    72% { transform:translateY(1px) scale(1.07,.90); }
  }
  @keyframes out-bee-flight {
    23% { transform:translate(-3px,-3px) rotate(-10deg); } 53% { transform:translate(4px,-6px) rotate(8deg); }
    80% { transform:translate(2px,-1px) rotate(-3deg); }
  }
  @keyframes out-pack-lift {
    22% { transform:translateY(1px) rotate(-5deg); } 50% { transform:translate(1px,-5px) rotate(6deg); }
    78% { transform:translateY(1px) rotate(-2deg); }
  }
}
@media(min-width:760px) and (prefers-reduced-motion:no-preference) {
  .out-pin .out-sticker { animation:var(--sticker-reaction,none) .55s ease-in-out; }
}
@media(max-width:759px) and (prefers-reduced-motion:no-preference) {
  .out-choices details[open] summary>.out-sticker { animation:var(--sticker-motion) .55s ease-in-out; }
}
