/* Island Alive: the same printed island, with a shared rhythm and a useful atlas.
   Controls: 120–220ms. Cards: 320ms. Scenes: unhurried, and asleep outside the viewport. */
:root {
  --motion-press: 120ms;
  --motion-state: 220ms;
  --motion-reveal: 360ms;
  --motion-travel: 440ms;
  --motion-ease: cubic-bezier(.22, .72, .18, 1);
  --motion-spring: linear(0, .42 13%, .83 30%, 1.035 49%, 1.012 68%, 1);
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
.top__nav a { position: relative; }
.top__nav a::after { content: ''; position: absolute; height: 2px; background: currentColor; left: 10px; right: 10px; bottom: 3px; transform: scaleX(0); transform-origin: left; transition: transform var(--motion-state) var(--motion-ease); }
.top__nav a:hover::after, .top__nav a:focus-visible::after, .top__nav a[aria-current]::after { transform: scaleX(1); }
.button, .chip, summary, .atlas__filters a { transition: background var(--motion-state), color var(--motion-state), border-color var(--motion-state), scale var(--motion-press) var(--motion-ease); }
.button:active, .chip:active, .atlas__filters a:active { scale: .975; }
.hero__explore { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 24px; margin-top: 24px; }
.hero__explore .button { flex-direction: row; gap: 28px; padding: 16px 22px; min-height: 58px; border-radius: 3px; }
.hero__explore .button > span, .atlas__more > span { transform: translate(var(--ink-x, 0px), var(--ink-y, 0px)); transition: transform var(--motion-state) var(--motion-spring); }
.hero__atlas-link { display: inline-flex; min-height: 48px; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; text-decoration: none; }
.hero__atlas-link span { display: inline-block; transition: translate var(--motion-state); }
.hero__atlas-link:hover span { translate: 0 4px; }
.hero .channels { margin-top: 22px; gap: 12px; }
.hero .channels .button { background: transparent; border-color: var(--color-line); color: var(--color-ink); min-height: 46px; font-size: 13px; }
.hero .channels .button small { font-size: 11px; color: var(--color-muted); }
.hero .web { font-size: 12px; margin-top: 6px; }
.kinetic-title { scale: var(--type-width, 1) 1; transform-origin: left; transition: scale 300ms var(--motion-ease); }
.island-now { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block: 1px solid var(--color-ink); margin-block: 6px 40px; background: var(--color-surface); }
.island-now > * { display: flex; align-items: center; gap: 12px; padding: 16px 14px; min-height: 96px; color: var(--color-ink); text-decoration: none; }
.island-now > :nth-child(even) { border-left: 1px solid var(--color-line); }
.island-now > :nth-child(n+3) { border-top: 1px solid var(--color-line); }
.island-now > :last-child:nth-child(3) { grid-column: 1 / -1; }
.island-now small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--color-muted); margin-bottom: 5px; }
.island-now strong, .island-now time { font: 500 21px/1.15 var(--font-display); font-variant-numeric: tabular-nums; }
.island-now__clock { font-variant-numeric: tabular-nums; }
.island-now__light { width: 8px; height: 8px; background: var(--color-palm); border-radius: 50%; flex-shrink: 0; }
.island-now__icon { font-size: 34px; color: var(--color-action); line-height: 1; }
.island-now__arrow { margin-left: auto; transition: translate var(--motion-state); }
.island-now a:hover .island-now__arrow { translate: 2px -2px; }

/* A printed field map, with a fixed interaction surface and a gently approaching island. */
.atlas { container-type: inline-size; margin-block: 44px 60px; border-top: 2px solid var(--color-ink); }
.atlas__head { display: grid; gap: 16px; padding-block: 26px 24px; }
.atlas__head h2 { font-size: clamp(30px, 6vw, 52px); line-height: 1.08; max-width: 13em; }
.atlas__head > p { font-size: 14px; line-height: 1.7; max-width: 34em; color: var(--color-muted); }
.atlas__tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.atlas__search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--color-control-border); background: var(--color-surface); padding: 0 13px; min-width: 0; }
.atlas__search svg { flex-shrink: 0; }
.atlas__search:focus-within { outline: 2px solid var(--color-ocean); outline-offset: 2px; }
.atlas__search input { width: 100%; min-width: 0; border: 0; padding: 14px 0; background: transparent; font: 14px/1.4 var(--font-sans); color: var(--color-ink); outline: 0; }
.atlas__area { grid-row: 2; grid-column: 1 / -1; position: relative; }
.atlas__area::after { content: "⌄"; position: absolute; right: 14px; top: 13px; pointer-events: none; }
.atlas__area select { appearance: none; width: 100%; min-height: 46px; padding: 10px 32px 10px 12px; font: 14px var(--font-sans); color: var(--color-ink); background: var(--color-surface); border: 1px solid var(--color-control-border); border-radius: 0; }
.atlas__submit { min-height: 48px; padding: 10px 15px; border: 1px solid var(--color-ink); background: var(--color-ink); color: var(--color-sand); font: 600 13px var(--font-sans); cursor: pointer; }
.atlas__submit span { margin-left: 5px; }
.atlas__filters { display: flex; flex-wrap: wrap; column-gap: 20px; margin-block: 14px 20px; }
.atlas__filters a { min-height: 44px; display: inline-flex; align-items: center; padding: 7px 0; color: var(--color-muted); text-decoration: none; font-size: 13px; font-weight: 600; border-bottom: 2px solid transparent; }
.atlas__filters a[aria-current] { color: var(--color-action); border-color: var(--color-action); }
.atlas__body { display: grid; gap: 24px; }
.atlas__chart { position: relative; min-width: 0; }
.atlas__map { position: relative; aspect-ratio: 6 / 5; overflow: hidden; border: 1px solid var(--color-line); background-color: var(--color-surface); background-image: linear-gradient(var(--color-line) 1px, transparent 1px), linear-gradient(90deg, var(--color-line) 1px, transparent 1px); background-size: 60px 60px; isolation: isolate; }
.atlas__map::after { content: ''; position: absolute; inset: 8px; border: 1px solid var(--color-line); pointer-events: none; z-index: -1; }
.atlas__drawing { position: absolute; inset: 0; transition: transform 650ms var(--motion-ease), transform-origin 650ms var(--motion-ease); }
.atlas__drawing.is-focused { transform: scale(1.2); }
.atlas__fallback, .atlas__scene, .atlas__pins { position: absolute; inset: 0; width: 100%; height: 100%; }
.atlas__leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; fill: none; stroke: var(--color-ink); stroke-width: 1; opacity: .5; }
.atlas__scene { opacity: 0; pointer-events: none; transition: opacity 400ms; }
.atlas.is-playing .atlas__scene { opacity: 1; }
.atlas.is-playing .atlas__fallback { opacity: 0; }
.atlas__pins { z-index: 2; }
.atlas__pin { position: absolute; left: var(--pin-x); top: var(--pin-y); width: 44px; height: 44px; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; text-decoration: none; color: var(--color-ink); z-index: 1; }
.atlas__dot { display: grid; place-items: center; min-width: 25px; height: 25px; padding-inline: 5px; background: var(--color-surface); border: 1.5px solid var(--color-ink); border-radius: 50%; font: 700 11px var(--font-sans); box-shadow: 0 2px 0 var(--color-ink); transition: scale var(--motion-state) var(--motion-spring), background var(--motion-state); }
.atlas__pin:hover, .atlas__pin:focus-visible, .atlas__pin[aria-current] { z-index: 4; }
.atlas__pin:hover .atlas__dot, .atlas__pin:focus-visible .atlas__dot { scale: 1.16; background: var(--color-mango); }
.atlas__pin[aria-current] .atlas__dot { background: var(--color-action); color: white; border-color: var(--color-action); scale: 1.13; }
.atlas__pin.is-muted .atlas__dot { opacity: .4; }
.atlas__pin-label { position: absolute; top: 39px; left: 50%; transform: translate(-50%, -4px); max-width: 165px; width: max-content; padding: 5px 9px; font-size: 11px; font-weight: 600; line-height: 1.35; text-align: center; background: var(--color-ink); color: var(--color-surface); border-radius: 3px; opacity: 0; pointer-events: none; transition: opacity var(--motion-state), transform var(--motion-state); }
.atlas__pin:hover .atlas__pin-label, .atlas__pin:focus-visible .atlas__pin-label, .atlas__pin[aria-current] .atlas__pin-label { opacity: 1; transform: translate(-50%, 0); }
.atlas__compass { position: absolute; top: 20px; right: 18px; display: grid; justify-items: center; gap: 4px; font: 12px var(--font-display); pointer-events: none; }
.atlas__compass svg { height: 30px; }
.atlas__sea { position: absolute; bottom: 18%; left: 8%; font: 13px var(--font-display); color: var(--color-muted); letter-spacing: .08em; text-transform: uppercase; max-width: 75px; pointer-events: none; }
.atlas__coordinates { position: absolute; top: 18px; left: 18px; font-size: 9px; line-height: 1.6; letter-spacing: .12em; color: var(--color-muted); pointer-events: none; }
.atlas__reset { position: absolute; bottom: 16px; left: 16px; display: flex; align-items: center; gap: 8px; min-height: 44px; background: var(--color-surface); color: var(--color-ink); border: 1px solid var(--color-control-border); text-decoration: none; padding: 9px 12px; font-size: 11px; font-weight: 600; z-index: 4; }
.atlas__caption { font-size: 12px; padding: 12px 0 4px; }
.atlas__caption small { display: block; color: var(--color-muted); font-size: 10px; margin-top: 5px; max-width: 52em; }
.atlas__credit { font-size: 9px; }
.atlas__credit a { color: var(--color-muted); }
.atlas__directory { min-width: 0; }
.atlas__result-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; border-bottom: 1px solid var(--color-ink); padding-bottom: 14px; }
.atlas__result-head h3 { font: 500 25px/1.2 var(--font-display); text-transform: uppercase; }
.atlas__result-head p { font-size: 11px; color: var(--color-muted); flex-shrink: 0; }
.atlas__places { display: grid; }
.atlas-place { padding: 21px 4px; border-bottom: 1px solid var(--color-line); position: relative; transition: background var(--motion-state), opacity var(--motion-state), translate var(--motion-state); }
.atlas-place__top { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--color-muted); margin-bottom: 8px; }
.atlas-place__type { color: var(--color-palm); }
.atlas-place__name { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--color-ink); text-decoration: none; font: 500 25px/1.15 var(--font-display); min-height: 44px; }
.atlas-place__name span { font: 400 20px var(--font-sans); color: var(--color-action); transition: translate var(--motion-state); }
.atlas-place__name:hover span { translate: 3px -3px; }
.atlas-place__name:hover { color: var(--color-action); }
.atlas-place__sunset, .atlas-place__kind, .atlas-place__quiet { font-size: 12px; color: var(--color-muted); margin-top: 5px; }
.atlas-place__sunset { color: var(--color-action); }
.atlas-place__sunset span { display: inline-block; font-size: 18px; margin-right: 5px; }
.atlas-place__event { display: block; margin-top: 12px; padding-left: 12px; border-left: 2px solid var(--color-mango); text-decoration: none; color: var(--color-ink); min-height: 44px; }
.atlas-place__event small { display: block; color: var(--color-muted); font-size: 10px; margin-bottom: 4px; }
.atlas-place__event span { font-size: 12px; line-height: 1.5; display: block; }
.atlas-place__event:hover span { text-decoration: underline; }
.atlas-place__count { font-size: 10px; color: var(--color-muted); display: block; margin-top: 8px; }
.atlas__empty { padding: 32px 0; font-size: 14px; color: var(--color-muted); }
.atlas__empty a { display: block; padding-block: 12px; }
.atlas__more { display: flex; justify-content: space-between; gap: 24px; padding: 18px 16px; min-height: 56px; margin-top: 20px; background: var(--color-ink); color: var(--color-sand); text-decoration: none; font-size: 13px; font-weight: 600; }
.atlas--home .atlas__places { max-height: 430px; overflow-y: auto; scrollbar-width: thin; overscroll-behavior: auto; padding-right: 8px; }

/* Prominence is a useful piece of information; its label always accompanies the colour. */
.event-spotlight { display: flex; align-items: center; gap: 6px; width: fit-content; color: var(--color-muted); font-size: 10px; line-height: 1.5; font-weight: 600; letter-spacing: .055em; text-transform: uppercase; margin-bottom: 8px; }
.event-spotlight > span { font-size: 16px; line-height: 1; }
.event-spotlight--main { color: var(--color-action); }
.event-spotlight--important { color: var(--color-ocean); }
.event:has(.event-spotlight--main) { border: 1px solid var(--color-action); border-left: 4px solid var(--color-action); background: var(--color-surface); padding: 22px 18px; }
.event:has(.event-spotlight--main) .event__title { font-size: clamp(23px, 4.5vw, 32px); line-height: 1.2; }
.event:has(.event-spotlight--important) { border-left: 3px solid var(--color-ocean); padding-left: 16px; }
.spotlight-explainer { margin-top: 20px; max-width: 38em; }
.spotlight-explainer summary { cursor: pointer; min-height: 44px; margin: 0; }
.spotlight-explainer p { padding: 12px 16px; border-left: 2px solid var(--color-mango); font-size: 13px; color: var(--color-muted); }
.calendar-action { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-block: 24px; }
.calendar-action .button { flex-direction: row; gap: 10px; }
.calendar-action small, [data-calendar-status] { font-size: 12px; color: var(--color-muted); }

/* News has the spacing of a journal. Only the photograph and link respond; the story
   itself stays still and readable, including urgent or sensitive reporting. */
.news-item__link { position: relative; }
.news-item__link::after, .post::after { content: '↗'; font-size: 18px; color: var(--color-ocean); opacity: 0; transition: opacity var(--motion-state), translate var(--motion-state); }
.news-item__link:hover::after, .news-item__link:focus-visible::after, .post:hover::after { opacity: 1; translate: 2px -2px; }
.news-item__link img, .post img { clip-path: inset(0); transition: clip-path 350ms var(--motion-ease), transform 350ms var(--motion-ease); }
.news-item__link:hover img, .post:hover img { transform: scale(1.035); clip-path: inset(1.691%); }
.story__body { text-wrap: pretty; }
.motion-toggle { display: inline-flex; gap: 9px; align-items: center; margin-top: 18px; padding: 10px 0; min-height: 44px; background: transparent; border: 0; color: inherit; font: 12px var(--font-sans); cursor: pointer; }
.motion-toggle:disabled { cursor: default; opacity: .7; }
::view-transition-group(*) { animation-duration: var(--motion-travel); animation-timing-function: var(--motion-ease); }
@starting-style { .atlas-place:not([hidden]) { opacity: .4; translate: 0 5px; } }

@container (min-width: 700px) {
  .atlas__head { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 40px; }
  .atlas__body { grid-template-columns: minmax(0, 1.45fr) minmax(250px, 1fr); gap: 32px; }
  .atlas__tools { grid-template-columns: minmax(0, 1fr) minmax(180px, .65fr) auto; }
  .atlas__area { grid-row: auto; grid-column: auto; }
  .atlas__chart { align-self: start; position: sticky; top: 24px; }
  .atlas__sea { font-size: 16px; max-width: 110px; }
  .atlas__compass { top: 24px; right: 24px; }
  .atlas__compass svg { height: 40px; }
  .atlas--home .atlas__places { max-height: 420px; }
  .atlas-place { padding-block: 18px; }
}
@media (min-width: 960px) {
  .hero { padding-bottom: 10px; }
  .hero h1 { font-size: clamp(56px, 5.4vw, 72px); letter-spacing: -.015em; }
  .hero .greeter-spot { bottom: -2px; }
  .island-now { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 44px; }
  .island-now:has(> :last-child:nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .island-now > :last-child:nth-child(3) { grid-column: auto; }
  .island-now > * { padding-inline: 24px; }
  .island-now > :nth-child(n+2) { border-left: 1px solid var(--color-line); }
  .island-now > :nth-child(n+3) { border-top: 0; }
  .island-now strong, .island-now time { font-size: 25px; }
  .blocks { grid-template-columns: 1.15fr 1fr; gap: 56px; }
  .news__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .news__list > li:first-child { grid-column: 1 / -1; }
  .news__list > li:first-child .news-item__link:has(img) { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; padding-block: 22px 30px; }
  .news__list > li:first-child .news-item__link img { width: 100%; height: 290px; object-fit: cover; border-radius: 2px; }
  .news__list > li:first-child .news-item__text strong { font: 500 36px/1.2 var(--font-display); }
  .news__list > li:first-child .news-item__text { align-self: center; }
  .news__list > li:first-child .news-item__text > span { font-size: 16px; }
  .news-item__link::after { position: absolute; right: 0; bottom: 20px; }
}
@media (max-width: 420px) {
  .hero__explore { gap: 8px 14px; }
  .hero__explore .button { padding: 14px 15px; gap: 12px; font-size: 14px; }
  .hero__atlas-link { font-size: 12px; gap: 6px; }
  .atlas__filters { column-gap: 14px; }
  .atlas__filters a { font-size: 12px; }
  .atlas__sea { font-size: 10px; max-width: 65px; }
  .atlas__reset { bottom: 12px; left: 12px; padding: 8px; font-size: 10px; }
}
html[data-party] .atlas__map { background-color: var(--color-surface); }
html[data-party] .atlas__dot { box-shadow: none; }
html[data-motion='reduce'] { scroll-behavior: auto; }
html[data-motion='reduce'] *, html[data-motion='reduce'] *::before, html[data-motion='reduce'] *::after { animation: none !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
html[data-motion='reduce'] .atlas__drawing { transform: none; }
html[data-motion='reduce'] .will-reveal { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .atlas__drawing, .atlas__drawing.is-focused { transform: none; }
  .atlas *, .island-now *, .hero__explore *, .kinetic-title { transition: none !important; animation: none !important; }
}

@media (min-width: 900px) {
  .hero__copy:has(.greeter-spot) { padding-bottom: 170px; }
  .hero .greeter-spot { bottom: -2px; }
  .day .events:has(> :nth-child(3)) { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
  .day .events:has(> :nth-child(3)) > .event:has(.event-spotlight--main) { grid-column: 1 / -1; }
}
html[data-sky='night'] .atlas__map { background-color: color-mix(in srgb, var(--color-ocean) 7%, var(--color-surface)); }

html[data-motion="reduce"]::view-transition-group(*), html[data-motion="reduce"]::view-transition-old(*), html[data-motion="reduce"]::view-transition-new(*) { animation: none !important; }

/* A transition snapshot must not swallow a second tap on the live controls. */
::view-transition { pointer-events: none; }

html[data-motion="reduce"] :is(.news-item__link, .post):hover img { transform: none; clip-path: none; }
.place__atlas-link a { display: inline-flex; align-items: center; min-height: 44px; gap: 12px; font-size: 13px; }
