.bosphorus-hero {
  --focus: #fff;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--blue);
  color: #fff;
}

/* Keep the chart visible edge to edge, with less ink behind the words. */
.bosphorus-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--blue) 74%, transparent),
    color-mix(in srgb, var(--blue) 80%, transparent) 31%,
    color-mix(in srgb, var(--blue) 48%, transparent) 49%,
    transparent 69%
  );
}

.bosphorus-layout {
  display: grid;
  grid-template-columns: minmax(0, .97fr) minmax(0, 1.13fr);
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3.3rem);
  width: min(89rem, 100% - clamp(1.25rem, 4.7vw, 5.25rem) * 2);
  margin-inline: auto;
  padding-block: clamp(4rem, 6.25vw, 6.7rem) clamp(3.65rem, 5.9vw, 6.4rem);
}

.bosphorus-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.bosphorus-hero h2 {
  font-size: clamp(3.15rem, 5.03vw, 5.45rem);
  font-weight: 530;
  line-height: 1.065;
  letter-spacing: -.04em;
}

.bosphorus-hero h2 span,
.bosphorus-hero h2 em {
  display: block;
}

.bosphorus-hero h2 em {
  margin-top: .015em;
  color: #e2f1f8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.055em;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.037em;
}

:lang(en) .bosphorus-hero h2 {
  font-size: clamp(2.85rem, 4.12vw, 4.65rem);
}

.bosphorus-copy > p {
  max-width: 39ch;
  margin-top: clamp(1.25rem, 1.85vw, 2rem);
  color: #f1f8fb;
  font-size: clamp(1rem, 1.21vw, 1.24rem);
  font-weight: 450;
  line-height: 1.6;
}

.bosphorus-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem clamp(1rem, 2vw, 2.1rem);
  margin-top: clamp(1.5rem, 2.4vw, 2.6rem);
}

.bosphorus-button,
.bosphorus-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  min-height: 44px;
  font-size: .93rem;
  font-weight: 725;
  line-height: 1.35;
}

.bosphorus-button {
  padding: .93rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 3px;
  background: #fff;
  color: var(--blue-hover);
}

.bosphorus-button:hover {
  background: #eef3fb;
}

.bosphorus-link {
  gap: .58rem;
  color: #fff;
  font-size: .91rem;
  text-decoration: underline;
  text-decoration-color: #b1d6e9;
  text-underline-offset: .35em;
}

.bosphorus-link:hover {
  text-decoration-color: currentColor;
}

.bosphorus-hero .icon {
  width: 1.35rem;
  height: 1.35rem;
}

.bosphorus-link .icon {
  width: 1.03rem;
  height: 1.03rem;
}

.bosphorus-hero a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.bosphorus-hero .pilot-chart {
  position: relative;
  min-width: 0;
  aspect-ratio: 740 / 420;
  border-block: 1px solid transparent;
}

.bosphorus-hero .harbour-ground,
.bosphorus-hero .voyage-map {
  z-index: -2;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.bosphorus-hero .harbour-ground {
  position: absolute;
  inset: 0;
}

.bosphorus-hero .voyage-map {
  position: relative;
  display: block;
}

.bosphorus-hero .course-line {
  fill: none;
  stroke: #bfdeef;
  stroke-width: 1.25;
  stroke-dasharray: 6 5;
  opacity: .67;
}

.bosphorus-hero .approach-line {
  stroke-width: 1;
  stroke-dasharray: 2 5;
}

.bosphorus-hero .charted-wake {
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .88;
}

.bosphorus-hero .route-points circle {
  fill: var(--blue);
  stroke: #eff8fc;
  stroke-width: 1.5;
}

.bosphorus-hero .towline {
  fill: none;
  stroke: #fff;
  stroke-width: 1.9;
  stroke-linecap: round;
}

.bosphorus-hero .stern-wash {
  fill: none;
  stroke: #e9f6fb;
  stroke-width: 1.25;
  stroke-linecap: round;
  opacity: .75;
}

.bosphorus-hero .chart-compass {
  fill: none;
  stroke: #cce4f1;
  stroke-width: .9;
  opacity: .76;
}

.bosphorus-hero .chart-compass text {
  fill: #e6f3fa;
  stroke: none;
  font: 12px Georgia, serif;
}

.bosphorus-hero .compass-needle {
  fill: #cce4f1;
}

.bosphorus-credit-link {
  text-decoration: underline;
  text-underline-offset: .2em;
}

.bosphorus-credits {
  width: min(45rem, 100% - 2.5rem);
  margin-inline: auto;
  padding-block: 4rem;
}

.bosphorus-credits h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.bosphorus-credits p {
  margin-top: 1.25rem;
}

.bosphorus-credits a {
  color: var(--blue-hover);
  text-decoration: underline;
}

.bosphorus-credits #tr {
  display: none;
}

.bosphorus-credits #tr:target {
  display: block;
}

.bosphorus-credits #tr:target ~ #en {
  display: none;
}

@media (min-width: 100rem) {
  .bosphorus-layout {
    grid-template-columns: 1fr 1.13fr;
  }
}

@media (max-width: 70rem) {
  .bosphorus-actions {
    column-gap: 1rem;
  }
}

@media (max-width: 47rem) {
  .bosphorus-hero::before {
    background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--blue) 68%, transparent),
      color-mix(in srgb, var(--blue) 78%, transparent) 40%,
      color-mix(in srgb, var(--blue) 45%, transparent) 61%,
      transparent 78%
    );
  }

  .bosphorus-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-block: clamp(2.15rem, 7.8vw, 3.45rem) 1.45rem;
  }

  .bosphorus-hero h2 {
    font-size: clamp(2.45rem, 10.4vw, 4.05rem);
  }

  :lang(en) .bosphorus-hero h2 {
    font-size: clamp(2.05rem, 8.75vw, 4rem);
  }

  .bosphorus-copy > p {
    max-width: 47ch;
    margin-top: 1.05rem;
  }

  .bosphorus-actions {
    margin-top: 1.15rem;
  }

  .bosphorus-button {
    padding: .74rem 1rem;
  }
}

@media (max-width: 22rem) {
  .bosphorus-link {
    font-size: .8rem;
  }

  .bosphorus-actions {
    gap: .2rem .8rem;
  }
}
