@font-face {
  font-family: Instrument;
  src: url(fonts/instrument-regular.ttf) format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Instrument;
  src: url(fonts/instrument-italic.ttf) format("truetype");
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url(fonts/dm-sans.ttf) format("truetype");
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url(fonts/dm-sans-medium.ttf) format("truetype");
  font-weight: 550 850;
  font-display: swap;
}
@font-face {
  font-family: AtlasSinhala;
  src: url(fonts/noto-sinhala.ttf) format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: AtlasTamil;
  src: url(fonts/noto-tamil.ttf) format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --paper: #f8f7f1;
  --surface: #fcfbf7;
  --ink: #182e26;
  --forest: #244c3b;
  --accent: #be701c;
  --amber: #e6a23c;
  --muted: #5e695f;
  --line: #d7d9cb;
  --tint: #edf0e5;
  --map: #254f3d;
  --land: #e5eadb;
  --rings: #c4cfba;
  --dot: #b9c2b1;
  --display: Instrument, Georgia, AtlasSinhala, AtlasTamil, serif;
  --body: DM, AtlasSinhala, AtlasTamil, system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #17251f;
  --surface: #203129;
  --ink: #edf2df;
  --forest: #c7dbc5;
  --accent: #f4b756;
  --amber: #f4b756;
  --muted: #b1beae;
  --line: #405147;
  --tint: #2b4033;
  --map: #ccdec0;
  --land: #304738;
  --rings: #4b604f;
  --dot: #637562;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
select {
  cursor: pointer;
}
button,
input,
select,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  background: none;
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
button:disabled {
  cursor: default;
}
button svg,
a svg {
  pointer-events: none;
}
[hidden] {
  display: none !important;
}
.ui-library,
.sr,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip:focus {
  position: fixed;
  background: var(--surface);
  z-index: 20;
  padding: 12px;
}
.ui {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.shell {
  width: min(90%, 1440px);
  margin-inline: auto;
}
.mast {
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
  background: var(--paper);
}
.mast-inner {
  height: 73px;
  display: flex;
  align-items: center;
  gap: clamp(22px, 4vw, 65px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 650;
  letter-spacing: -0.055em;
  font-size: 1.28rem;
  line-height: 1.2;
  white-space: nowrap;
}
.mast .brand {
  margin-right: auto;
}
.brand img {
  flex: none;
}
.primary,
.utilities,
.language-picker,
.size-group,
.head-group,
.quick,
.map-plate figcaption,
.icon-button,
.outlined,
.solid,
.catalog-search {
  display: flex;
  align-items: center;
}
.primary {
  gap: clamp(16px, 2.6vw, 40px);
  font-size: 0.88rem;
  font-weight: 550;
}
.primary a {
  position: relative;
}
.primary a:hover {
  color: var(--accent);
}
.utilities {
  gap: 13px;
}
.divider {
  height: 18px;
  border-left: 1px solid var(--line);
}
.language-picker {
  position: relative;
  gap: 7px;
}
.language-picker select {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 7px 16px 7px 0;
  font-size: 0.86rem;
  max-width: 150px;
}
.language-picker select:focus-visible {
  outline-offset: 0;
}
.language-picker > .ui:first-child {
  width: 17px;
  height: 17px;
}
.caret {
  position: absolute;
  right: 0;
  pointer-events: none;
  width: 14px;
  height: 14px;
}
option {
  background: var(--surface);
  color: var(--ink);
}
.icon-button {
  justify-content: center;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  padding: 0;
}
.icon-button:hover {
  background: var(--tint);
}
#menu {
  display: none;
}
.hero {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.03fr);
  align-items: center;
  column-gap: 4%;
  min-height: 570px;
}
.hero-copy {
  padding: 42px 0 48px;
  max-width: 540px;
}
.island-name {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--forest);
  font-size: 0.92rem;
  font-weight: 550;
  line-height: 1.9;
}
.mini-line {
  display: inline-block;
  width: 30px;
  height: 2px;
  background: var(--accent);
}
.interpunct {
  opacity: 0.5;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.047em;
  font-size: clamp(4.65rem, 7.8vw, 8rem);
  line-height: 0.87;
  margin: 18px 0 23px;
}
.hero h1 span,
.hero h1 em {
  display: block;
}
.hero h1 em {
  font-weight: 400;
  color: var(--forest);
}
.lede {
  color: var(--muted);
  font-size: clamp(1rem, 1.24vw, 1.16rem);
  line-height: 1.55;
  max-width: 405px;
}
.search-box {
  margin-top: 23px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 425px);
  border: 1px solid #a6afa1;
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 2px 1px #243a2510;
  height: 47px;
  padding: 0 12px;
}
.search-box:focus-within,
.catalog-search:focus-within {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
}
.search-box button {
  display: grid;
  place-items: center;
  width: 24px;
  padding: 0;
}
.search-box input,
.catalog-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: none;
  outline: none !important;
}
.search-box input::placeholder,
.catalog-search input::placeholder {
  color: var(--muted);
  opacity: 1;
}
kbd {
  font:
    13px/1.3 ui-monospace,
    monospace;
  padding: 1px 6px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.quick {
  gap: 13px;
  margin-top: 10px;
  flex-wrap: wrap;
  font-size: 0.81rem;
}
.quick > span {
  color: var(--muted);
}
.quick > a {
  padding: 2px 0;
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
}
.quick > a:hover {
  color: var(--accent);
}
.map-plate {
  position: relative;
  isolation: isolate;
  justify-self: stretch;
  align-self: stretch;
  display: grid;
  place-content: center;
  grid-template-columns: 100%;
  align-items: center;
  padding: 12px 0 6px;
}
.map-plate:before {
  content: "";
  position: absolute;
  inset: 0 -5%;
  z-index: -1;
  background-image: radial-gradient(var(--dot) 0.8px, transparent 0.8px);
  background-size: 15px 15px;
  opacity: 0.52;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 77%);
}
.map-stage {
  position: relative;
  width: min(100%, 476px);
  margin: auto;
  aspect-ratio: 382/432;
  isolation: isolate;
  container-type: inline-size;
}
.atlas-map {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.chart-marks {
  fill: none;
  stroke: var(--muted);
  stroke-width: 0.8;
}
.chart-marks text {
  font: 9px monospace;
  fill: var(--muted);
  stroke: none;
  text-anchor: middle;
}
.shore-rings {
  fill: none;
  stroke: var(--rings);
  stroke-width: 0.75;
  opacity: 0.75;
}
.shore-rings path:first-child {
  stroke-dasharray: 1.5 3;
}
.land,
.islets {
  fill: var(--land);
  stroke: var(--rings);
  stroke-width: 0.9;
}
.island-point {
  color: var(--map);
  cursor: pointer;
  outline: none !important;
}
.island-point .point-ink {
  transition:
    translate 300ms cubic-bezier(0.22, 0.72, 0.2, 1),
    scale 140ms ease-out,
    color 100ms ease-out;
  translate: var(--dx, 0px) var(--dy, 0px);
  pointer-events: none;
}
.island-point.in-ripple .point-ink {
  transition-duration: 85ms, 140ms, 100ms;
}
.island-point.is-active {
  color: var(--accent);
}
.island-point.is-active .point-ink {
  scale: 1.13;
  translate: none;
  transition-duration: 0ms, 140ms, 100ms;
}
.island-point:focus-visible rect {
  stroke: var(--accent);
  stroke-width: 1;
  rx: 4;
}
.island-point .point-ink use {
  stroke-width: 5;
}
.map-place-ring {
  fill: color-mix(in srgb, var(--surface) 72%, transparent);
  stroke: color-mix(in srgb, var(--accent) 38%, var(--land));
  stroke-width: 0.8;
  pointer-events: none;
}
.island-point.is-active .map-place-ring {
  stroke: var(--accent);
}
.mobile {
  display: none !important;
}
#map-annotation {
  pointer-events: none;
  color: var(--accent);
}
#map-annotation,
.map-tag {
  transition: opacity 130ms ease-out, visibility 0s;
}
.map-stage[data-label-visible="false"] :is(#map-annotation, .map-tag) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 140ms ease-out, visibility 0s 140ms;
}
#leader {
  stroke: currentColor;
  stroke-width: 1;
  fill: none;
}
#leader-dot {
  fill: currentColor;
}
.map-tag {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--paper));
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 0 2px 5px #2033210c;
  left: var(--tag-x, 67%);
  top: 59%;
  transform: translateY(-50%);
  color: var(--ink);
  font-size: 0.72rem;
  line-height: 1.4;
  white-space: normal;
  width: max-content;
  max-width: min(46%, calc(104% - var(--tag-x, 67%)));
  overflow-wrap: anywhere;
  pointer-events: auto;
}
.map-tag i {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--amber);
}
.map-tag .tag-train,
.map-tag .map-tag-place {
  display: none;
}
.map-tag[data-subject="hill-country-train"] {
  --tag-x: 73.82%;
  --train-size: clamp(3.75rem, 22cqi, 7.1rem);
  top: 52.315%;
  transform: translateY(calc(-0.5 * var(--train-size)));
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 29%;
  max-width: calc(101% - var(--tag-x));
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: center;
}
.map-tag[data-subject="hill-country-train"] i {
  display: none;
}
.map-tag[data-subject="hill-country-train"] .tag-train {
  display: block;
  width: var(--train-size);
  height: var(--train-size);
  color: var(--accent);
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 48%, var(--paper));
  background: color-mix(in srgb, var(--accent) 7%, var(--paper));
}
.map-tag[data-subject="hill-country-train"] .map-tag-name {
  margin-top: 7px;
  font-size: clamp(0.72rem, 3.2cqi, 1rem);
  font-weight: 650;
  line-height: 1.4;
  text-wrap: balance;
}
.map-tag[data-subject="hill-country-train"] .map-tag-place {
  display: block;
  margin-top: 2px;
  font-size: clamp(0.65rem, 2.45cqi, 0.8rem);
  line-height: 1.5;
  color: var(--muted);
}
html:not([lang="en"]) .map-tag[data-subject="hill-country-train"] .map-tag-name {
  line-height: 1.6;
}
.map-plate figcaption {
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 16px;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.74rem;
}
.map-hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.map-plate figcaption .ui {
  width: 13px;
  height: 13px;
}
#map-motion-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 4px;
  color: var(--forest);
  font-weight: 550;
  line-height: 1.6;
}
#map-motion-toggle:hover,
#map-motion-toggle:focus-visible {
  background: var(--tint);
}
#map-motion-toggle::before {
  content: "";
  width: 8px;
  height: 10px;
  border-inline: 2.5px solid currentColor;
  box-sizing: border-box;
  flex: none;
}
#map-motion-toggle[data-t="resumeIslandMotion"]::before {
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-left: 8px solid currentColor;
  border-right: 0;
}
.section {
  padding-block: 44px 49px;
}
.section-head,
.head-group,
.catalog-bar,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.section-head {
  margin-bottom: 21px;
}
.head-group {
  justify-content: flex-start;
  gap: 13px;
  flex-wrap: wrap;
}
.section h2 {
  font: 400 clamp(2.4rem, 3.5vw, 4rem) / 1 var(--display);
  letter-spacing: -0.037em;
}
.count {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3px 10px;
  color: var(--muted);
  font-size: 0.74rem;
  white-space: nowrap;
}
.size-group {
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  gap: 1px;
}
.size-group button {
  width: 30px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  color: var(--muted);
}
.size-group .ui {
  width: 15px;
  height: 15px;
  stroke-width: 1.35;
}
.size-group [aria-pressed="true"] {
  background: var(--forest);
  color: var(--paper);
}
.catalog-bar {
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 19px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.filters button {
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 6px 12px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
  transition: background 0.14s;
}
.filters button:hover,
.outlined:hover {
  background: var(--tint);
  color: var(--ink);
}
.filters button[aria-pressed="true"] {
  background: var(--forest);
  color: var(--paper);
  border-color: var(--forest);
}
#search-toggle {
  width: 32px;
  height: 32px;
  flex: none;
  border: 1px solid var(--line);
}
#search-toggle .ui {
  width: 15px;
}
.catalog-search {
  width: min(100%, 520px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  margin: 0 0 18px;
  padding: 1px 6px 1px 12px;
  gap: 9px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.grid[data-size="small"] {
  grid-template-columns: repeat(11, minmax(0, 1fr));
}
.grid[data-size="large"] {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.icon-card {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  min-height: 108px;
  aspect-ratio: 1.13;
  padding: 13px 5px 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--forest);
  text-align: center;
  transition: background 0.15s;
}
.icon-card svg {
  width: clamp(34px, 4.25vw, 70px);
  aspect-ratio: 1;
  transition: transform 0.18s ease;
}
.icon-card span {
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.36;
  overflow-wrap: anywhere;
}
.icon-card:hover,
.icon-card:focus-visible {
  background: var(--tint);
  z-index: 1;
}
.icon-card:hover svg,
.icon-card:focus-visible svg {
  transform: translateY(-2px) scale(1.12);
}
.icon-card:hover span,
.icon-card:focus-visible span {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.grid[data-size="small"] .icon-card {
  min-height: 85px;
}
.grid[data-size="small"] svg {
  width: 32px;
}
.grid[data-size="large"] .icon-card {
  min-height: 155px;
}
.grid[data-size="large"] svg {
  width: 76px;
}
.more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 23px;
}
.outlined,
.solid,
.text-button {
  width: fit-content;
  gap: 9px;
  border-radius: 5px;
  padding: 9px 16px;
  font-size: 0.88rem;
  font-weight: 550;
}
.outlined {
  border: 1px solid var(--line);
  background: var(--surface);
}
.solid {
  background: var(--forest);
  color: var(--paper);
}
.solid:hover {
  filter: brightness(1.12);
}
.outlined .ui,
.solid .ui {
  width: 16px;
}
.text-button {
  padding: 4px 0;
  color: var(--forest);
  text-decoration: underline;
}
#empty {
  display: grid;
  place-items: center;
  padding: 30px 10px;
  border: 1px dashed var(--line);
  gap: 9px;
}
.photographs {
  border-top: 1px solid var(--line);
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
}
.photo-card, .detail-photo {
  margin: 0;
  min-width: 0;
}
.atlas-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  background: var(--land);
}
.photo-card .atlas-photo {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: var(--photo-position, center);
}
.photo-story {
  display: block;
  color: var(--ink);
}
.photo-card[data-subject="hoppers"] { --photo-position: 50% 72%; }
.photo-name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font: 400 clamp(1.45rem, 2.4vw, 2.2rem)/1.15 var(--display);
}
.photo-name svg {
  width: 38px;
  height: 38px;
  flex: none;
  color: var(--forest);
}
.photo-arrow {
  margin-left: auto;
  color: var(--forest);
  font: 1.15rem/1 var(--body);
}
.photo-story:is(:hover, :focus-visible) .photo-name > span:first-of-type {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.photo-card figcaption p, .detail-photo figcaption p {
  font-size: .93rem;
  line-height: 1.6;
  margin: 7px 0 0;
  color: var(--muted);
}
.photo-credit {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 14px;
  row-gap: 3px;
  margin-top: 10px;
  font-size: .8rem;
  color: var(--muted);
}
.photo-credit a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.detail-photo {
  padding: clamp(16px, 3vw, 28px);
  border-top: 1px solid var(--line);
}
.detail-photo .atlas-photo {
  max-height: 65vh;
  object-fit: contain;
  background: var(--tint);
}
html:not([lang="en"]) .photo-name {
  font: 550 clamp(1.12rem, 1.8vw, 1.5rem)/1.55 var(--body);
}
@media (max-width: 680px) {
  .photo-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .photo-name { margin-top: 9px; }
}
.notes {
  border-block: 1px solid var(--line);
  background: var(--tint);
}
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.note-card {
  display: block;
}
.note-art {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 1.96;
  background: var(--land);
}
.note-art img,
.note-art > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s;
}
.note-card:hover .note-art > * {
  transform: scale(1.025);
}
.note-card h3 {
  font: 400 clamp(1.45rem, 2.4vw, 2.2rem) / 1.15 var(--display);
  margin-top: 11px;
}
.note-card p {
  font-size: 0.89rem;
  color: var(--muted);
  margin-top: 6px;
}
.downloads {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 9%;
  align-items: start;
}
.downloads p {
  color: var(--muted);
  max-width: 420px;
  margin: 17px 0 19px;
}
.downloads {
  row-gap: 28px;
}
.usage-note {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 17px;
}
.usage-note h3 {
  font-size: 1.05rem;
}
.usage-note p {
  max-width: 78ch;
  margin-block: 6px 12px;
  overflow-wrap: anywhere;
}
.usage-note .usage-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.usage-note a, .usage-note summary {
  width: fit-content;
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.pack-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}
.pack-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  gap: 9px;
  font-size: 0.86rem;
}
.pack-list a:hover {
  text-decoration: underline;
}
.pack-list .ui {
  width: 14px;
}
footer {
  border-top: 1px solid var(--line);
}
.footer-inner {
  min-height: 74px;
  font-size: 0.78rem;
  color: var(--muted);
}
.footer-inner .brand {
  font-size: 1.04rem;
  color: var(--ink);
}
dialog {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
  width: min(850px, calc(100% - 32px));
  max-height: 88dvh;
  padding: 0;
  border-radius: 8px;
  box-shadow: 0 22px 80px #0c1c2840;
}
dialog::backdrop {
  background: #10221bbb;
  backdrop-filter: blur(3px);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.dialog-inner {
  position: relative;
}
.dialog-close {
  position: absolute;
  z-index: 2;
  right: 12px;
  top: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.detail-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 375px;
}
.art-preview {
  display: grid;
  place-items: center;
  background: var(--tint);
  color: var(--forest);
}
.art-preview svg {
  width: 58%;
  max-width: 220px;
  aspect-ratio: 1;
}
.detail-copy,
.note-body {
  padding: 44px 28px 26px;
}
.detail-copy h2,
.note-body h2 {
  font: 400 clamp(2.25rem, 4vw, 3.7rem) / 1.1 var(--display);
  letter-spacing: -0.035em;
  margin: 9px 0 15px;
}
.cat-name {
  color: var(--muted);
  font-size: 0.8rem;
}
.detail-names {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 15px;
  border-block: 1px solid var(--line);
  padding: 9px 0;
  margin-bottom: 15px;
  font-size: 0.98rem;
  line-height: 1.8;
}
.detail-copy p,
.note-body p {
  color: var(--muted);
  line-height: 1.65;
}
.detail-actions,
.note-related {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.art-preview .ui {
  width: auto;
}
.share {
  padding: 6px 0;
  font-size: 0.8rem;
  margin-top: 8px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.share .ui {
  width: 14px;
}
.note-body {
  max-width: 680px;
  margin: auto;
}
.story-art {
  max-height: 275px;
  overflow: hidden;
  background: var(--tint);
  display: grid;
  place-items: center;
}
.story-art > svg,
.story-art img {
  width: 100%;
  max-height: 275px;
  object-fit: cover;
}
.note-body p + p {
  margin-top: 12px;
}
.note-related a {
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rolling {
  animation: train-roll 8s ease-in-out infinite alternate;
}
.paused .rolling {
  animation-play-state: paused;
}
@keyframes train-roll {
  from {
    transform: translateX(-96px);
  }
  to {
    transform: translateX(100px);
  }
}
:lang(si),
:lang(ta) {
  text-rendering: optimizeLegibility;
}
/* Use the sign's font for the whole name, including spaces and joiners. */
.icon-name:lang(si) {
  font-family: AtlasSinhala, sans-serif;
}
.icon-name:lang(ta) {
  font-family: AtlasTamil, sans-serif;
}
html:not([lang="en"]) h1 {
  font: 550 clamp(2.65rem, 5.2vw, 5rem) / 1.32 var(--body);
  letter-spacing: -0.045em;
  margin: 15px 0 16px;
}
html:not([lang="en"]) h1 em {
  font-style: normal;
}
html:not([lang="en"]) h2,
html:not([lang="en"]) h3 {
  font-family: var(--body);
  line-height: 1.5;
  font-size: clamp(1.5rem, 2.6vw, 2.6rem);
  font-weight: 550;
  letter-spacing: -0.028em;
}
html:not([lang="en"]) .note-card h3 {
  font-size: 1.2rem;
}
html:not([lang="en"]) .hero-copy {
  max-width: 600px;
}
.icon-card:lang(si),
.icon-card:lang(ta) {
  aspect-ratio: auto;
}
.icon-card span:lang(si),
.icon-card span:lang(ta) {
  line-height: 1.7;
}
@media (min-width: 1600px) {
  .hero-layout {
    min-height: 650px;
  }
  .map-stage {
    width: 530px;
  }
}
@media (max-width: 1050px) {
  .shell {
    width: 92%;
  }
  .hero-layout {
    min-height: 490px;
    gap: 1%;
  }
  .map-stage {
    width: min(100%, 426px);
  }
  .hero h1 {
    font-size: clamp(4.6rem, 9vw, 6.2rem);
  }
  .grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .grid[data-size="small"] {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
  .grid[data-size="large"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .mast-inner {
    gap: 22px;
  }
  .primary {
    gap: 19px;
  }
}
@media (max-width: 960px) {
  .primary {
    display: none;
  }
  .primary.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 16px 5%;
    border-bottom: 1px solid var(--line);
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 24px;
  }
  .primary.open a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  #menu {
    display: grid;
  }
}
@media (max-width: 760px) {
  .shell {
    width: 91%;
  }
  .mast-inner {
    height: 59px;
    gap: 12px;
  }
  .brand {
    font-size: 1.12rem;
    gap: 8px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .utilities {
    gap: 4px;
  }
  .divider {
    display: none;
  }
  .icon-button {
    width: 33px;
    height: 33px;
  }
  .language-picker {
    gap: 4px;
  }
  .language-picker > .ui:first-child {
    width: 15px;
  }
  .language-picker select {
    font-size: 0.8rem;
  }
  .hero-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    min-height: 402px;
    gap: 0;
  }
  .hero-copy {
    padding: 34px 0;
  }
  .hero h1 {
    font-size: clamp(3.8rem, 9vw, 5rem);
    margin: 16px 0;
  }
  .lede {
    font-size: 0.95rem;
  }
  .map-plate .map-hint {
    display: none;
  }
  .map-stage {
    min-width: 0;
    width: 100%;
  }
  .chart-marks {
    opacity: 0.7;
  }
  .map-plate {
    padding: 0;
  }
  .island-name {
    font-size: 0.8rem;
  }
  .quick {
    gap: 8px;
    font-size: 0.76rem;
  }
  .section {
    padding-block: 30px 34px;
  }
  .section h2 {
    font-size: 2.65rem;
  }
  .section-head {
    margin-bottom: 16px;
  }
  .notes-grid {
    gap: 12px;
  }
  .note-card h3 {
    font-size: 1.5rem;
  }
  .downloads {
    gap: 5%;
  }
  .pack-list {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 561px) and (max-width: 680px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-copy {
    padding: 30px 0 0;
  }
  .map-stage {
    width: min(100%, 390px);
  }
  .map-plate {
    padding: 4px 0 16px;
  }
}
@media (max-width: 560px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .hero-copy {
    padding: 26px 0 0;
    z-index: 1;
  }
  .hero h1 {
    font-size: clamp(3.95rem, 15vw, 5.2rem);
    line-height: 0.89;
    margin: 14px 0;
  }
  .hero h1 span,
  .hero h1 em {
    display: inline;
  }
  .hero h1 span:after {
    content: " ";
  }
  .lede {
    max-width: 30em;
  }
  .search-box {
    margin-top: 15px;
    width: 100%;
    height: 44px;
  }
  .search-box kbd {
    display: none;
  }
  .map-plate {
    margin-top: 8px;
    padding: 4px 0 12px;
  }
  .map-stage {
    width: min(100%, 330px);
  }
  .map-tag[data-subject="hill-country-train"] {
    --train-size: clamp(5rem, 32cqi, 6.65rem);
  }
  .map-plate:before {
    inset: 0 0 1%;
    background-size: 12px 12px;
  }
  .map-tag {
    font-size: 0.66rem;
    padding: 3px 6px;
  }
  .desktop {
    display: none !important;
  }
  .mobile {
    display: initial !important;
  }
  .section h2 {
    font-size: 2.22rem;
  }
  .head-group {
    gap: 7px;
  }
  .count {
    padding: 2px 6px;
    font-size: 0.67rem;
  }
  .section-head {
    gap: 8px;
    flex-wrap: wrap;
  }
  .size-group button {
    width: 24px;
    height: 24px;
  }
  .size-group {
    margin-left: auto;
    padding: 2px;
  }
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
    padding: 3px 2px 7px;
  }
  .catalog-bar {
    gap: 5px;
    align-items: center;
    margin-bottom: 10px;
  }
  .filters button {
    font-size: 0.77rem;
    padding: 5px 10px;
  }
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid[data-size="small"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .grid[data-size="large"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .icon-card {
    min-height: 91px;
    gap: 6px;
  }
  .icon-card svg {
    width: 42px;
  }
  .grid[data-size="large"] .icon-card {
    min-height: 120px;
  }
  .grid[data-size="large"] svg {
    width: 57px;
  }
  .grid[data-size="small"] .icon-card {
    min-height: 82px;
  }
  .notes-grid {
    grid-template-columns: 1fr;
  }
  .note-card {
    display: grid;
    grid-template-columns: 37% 1fr;
    gap: 12px;
    align-items: center;
  }
  .note-card h3 {
    margin: 0;
  }
  .note-card p {
    font-size: 0.82rem;
  }
  .downloads {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .pack-list {
    grid-template-columns: 1fr 1fr;
  }
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 15px 0;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .art-preview {
    min-height: 150px;
  }
  .art-preview svg {
    width: 110px;
  }
  .detail-copy,
  .note-body {
    padding: 20px;
  }
  .map-plate .chart-marks {
    display: none;
  }
  html:not([lang="en"]) h1 {
    font-size: 2.5rem;
  }
  html:not([lang="en"]) h1 span,
  html:not([lang="en"]) h1 em {
    display: block;
  }
}
@media (max-width: 360px) {
  .mast-inner {
    width: calc(100% - 16px);
    gap: 4px;
  }
  .utilities {
    gap: 2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .point-ink,
  .island-point.is-active .point-ink,
  .icon-card:hover svg,
  .icon-card:focus-visible svg {
    transform: none !important;
  }
  .island-point .point-ink {
    translate: none !important;
    scale: none !important;
  }
}
.search-box {
  position: relative;
}
.suggestions {
  position: absolute;
  left: -1px;
  right: -1px;
  top: calc(100% + 4px);
  z-index: 6;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px;
  box-shadow: 0 5px 25px #18392a20;
}
.suggestions > [role="option"],
.suggestions > .no-matches {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: auto;
  min-height: 37px;
  text-align: left;
  padding: 5px 9px;
  border-radius: 3px;
  font-size: 0.86rem;
}
.suggestions > [role="option"] {
  cursor: pointer;
}
.suggestions > [role="option"] > svg {
  width: 25px;
  height: 25px;
  color: var(--forest);
}
.suggestions small {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.72rem;
}
.suggestions > .all-results {
  color: var(--muted);
  font-size: 0.76rem;
  border-top: 1px solid var(--line);
}
.suggestions [role="option"]:hover,
.suggestions [role="option"][aria-selected="true"] {
  background: var(--tint);
}
.hero:has(.suggestions:not([hidden])) {
  overflow: visible;
  position: relative;
  z-index: 3;
}
.dialog-language {
  display: flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  color: var(--muted);
  margin-bottom: 14px;
}
.dialog-language select {
  font: inherit;
  font-size: 0.82rem;
  border: 0;
  color: inherit;
  background: var(--paper);
}
.dialog-language .ui {
  width: 14px;
  height: 14px;
}
.note-body #pause {
  margin-top: 10px;
}
@media (prefers-reduced-motion: no-preference) {
  .map-stage[data-opening="playing"] .arrival {
    animation: arrive 0.65s cubic-bezier(0.25, 0.75, 0.3, 1) backwards;
  }
  @keyframes arrive {
    from {
      opacity: 0.72;
      transform: translateY(2px) scale(0.89);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
@media (max-width: 560px) {
  .hero h1 span,
  .hero h1 em {
    display: block;
  }
  .hero h1 span:after {
    content: none;
  }
  .map-tag {
    max-width: min(56%, calc(108% - var(--tag-x, 67%)));
  }
}
