.island-home {
  --ink: #102447;
  --parchment: #fff4d9;
  --island-display: Georgia, "Times New Roman", serif;
  --bg: #fff8e9;
  --text: #102447;
  color-scheme: light;
  background: var(--bg);
  color: var(--ink);
  margin: 0;
}

.island-home .skip-link { background: var(--ink); color: white; }

.island-home main {
  width: 100%;
  max-width: none;
}

.island-masthead {
  background: #fff7e7;
  color: var(--ink);
  border-bottom: 1px solid #bfaa78;
}

.masthead-inner {
  width: min(100% - 5vw, 110rem);
  margin: auto;
  min-height: clamp(4rem, 5.3vw, 5.8rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.island-brand,
.island-masthead nav a,
.map-sign {
  font-family: var(--island-display);
  font-weight: 700;
  text-decoration: none;
}

.island-brand {
  display: inline-flex;
  align-items: center;
  gap: .32em;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.8vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.055em;
  min-height: 44px;
}

.island-flag {
  position: relative;
  display: inline-block;
  width: 1.2em;
  height: 1.07em;
  flex-shrink: 0;
  transform: rotate(-6deg);
}

.island-flag::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 .04em;
  width: .1em;
  background: #754723;
  border-radius: 1em;
}

.island-flag span {
  position: absolute;
  inset: .06em 0 auto .11em;
  height: 1.15em;
  background: #b93d27;
  clip-path: polygon(0 0, 48% 7%, 100% 0, 82% 48%, 100% 94%, 47% 100%, 0 93%);
  color: #fff2cf;
  text-align: left;
  padding-left: .28em;
  font: bold .55em/1.15 Georgia, serif;
}

.island-masthead nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3.3vw, 4rem);
}

.island-masthead nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: clamp(.98rem, 1.5vw, 1.55rem);
}

.island-masthead a:hover {
  color: #11546b;
  text-decoration: underline;
  text-underline-offset: .22em;
}

.island-atlas {
  width: min(100% - clamp(1rem, 4vw, 4rem), 96rem);
  margin-inline: auto;
  padding-top: clamp(1.25rem, 2.8vw, 3rem);
}

.island-atlas h1 {
  margin: 0 0 clamp(.75rem, 1.3vw, 1.4rem);
  color: var(--ink);
  font: bold clamp(2.1rem, 4.5vw, 4.5rem)/1.05 var(--island-display);
  letter-spacing: -.055em;
}

.island-map {
  position: relative;
  aspect-ratio: 1672 / 941;
  container-type: inline-size;
  overflow: hidden;
  border: 1px solid #bba273;
  border-radius: 1rem;
  background: #79cbed;
  box-shadow: 0 3px 0 #d7c8a6;
}

.island-scenery,
.island-scenery img {
  display: block;
  width: 100%;
  height: 100%;
}

.island-scenery img { object-fit: cover; }

.map-sign {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35em;
  min-height: 44px;
  padding: .35em .58em;
  color: var(--ink);
  background: linear-gradient(#fff9e8, #ffebb9);
  border: 2px solid #e9cf91;
  border-radius: .43em;
  box-shadow: 0 .11em 0 #8b693f, 0 .22em .45em #14281764;
  font-size: clamp(1rem, 2.05cqw, 1.85rem);
  line-height: 1.1;
  letter-spacing: -.035em;
  white-space: nowrap;
}

.map-sign::before {
  content: "";
  width: .65em;
  height: .7em;
  flex: none;
  background: currentColor;
  clip-path: polygon(7% 0, 100% 50%, 7% 100%);
}

.flight-sign { left: 22%; top: 34%; }
.ruins-sign { left: 55%; top: 30%; }
.field-sign { left: 18%; top: 70%; }
.rounding-sign { left: 83%; top: 61%; }
.race-sign { left: 55%; top: 77%; }

.map-sign:hover {
  color: var(--ink);
  background: #fffaf0;
  box-shadow: 0 .14em 0 #8b693f, 0 .25em .6em #14281788;
}

.island-masthead a:focus-visible,
.island-atlas :focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 8px white;
}

@media (max-width: 640px) {
  .masthead-inner { width: 100%; padding: .3rem 4%; gap: .6rem; min-height: 3.75rem; }
  .island-brand { font-size: clamp(1.17rem, 4.7vw, 1.8rem); }
  .island-masthead nav { gap: clamp(.65rem, 3.2vw, 1.2rem); }
  .island-masthead nav a { font-size: clamp(.875rem, 3.45vw, 1rem); }
  .island-map { aspect-ratio: 3 / 5; }
  .map-sign { font-size: clamp(1rem, 3.9cqw, 1.45rem); }
  .flight-sign { left: 28%; top: 17.5%; }
  .ruins-sign { left: 69%; top: 31.5%; }
  .field-sign { left: 29.5%; top: 50%; }
  .rounding-sign { left: 68%; top: 64%; }
  .race-sign { left: 50%; top: 85.5%; }
}

@media (forced-colors: active) {
  .map-sign { border: 2px solid LinkText; }
  .map-sign::before { forced-color-adjust: none; background: LinkText; }
}
