/* 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; }

/* 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; } }

@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; }
}

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; }
