:root {
  color-scheme: dark;
  --bg: #071720;
  --text: #f2f6f5;
  --muted: #9db0b7;
  --line: rgba(206, 232, 236, 0.13);
  --accent: #83e1d5;
  --sand: #e7d6ad;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: #071720;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 12%, rgba(53, 143, 158, 0.14), transparent 30rem),
    linear-gradient(180deg, #081a24 0%, var(--bg) 65%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.shell {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

.header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas: 'brand navigation language';
  align-items: center;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  grid-area: brand;
  min-width: 0;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(131, 225, 213, 0.28);
  border-radius: 13px;
  background: rgba(131, 225, 213, 0.07);
}

.brand-name {
  display: block;
  font-size: 24px;
  font-weight: 720;
  line-height: 1;
  letter-spacing: -0.045em;
}

.brand-name span {
  color: var(--accent);
}

.brand-subtitle {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav {
  grid-area: navigation;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: flex-end;
}

.nav a {
  white-space: nowrap;
  padding: 8px 0;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.header-side {
  grid-area: language;
  justify-self: end;
  display: flex;
  gap: 22px;
  align-items: center;
}

.lang {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.lang a {
  padding: 6px 9px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.lang a:hover {
  color: var(--text);
}

.lang a[aria-current="page"] {
  background: rgba(131, 225, 213, 0.12);
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.95fr);
  gap: 68px;
  align-items: center;
  padding: 54px 0 72px;
}

.eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 1px;
  background: var(--accent);
  content: "";
}

h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(48px, 5.4vw, 76px);
  font-weight: 590;
  line-height: 1.04;
  letter-spacing: -0.055em;
}

h1 span {
  color: var(--muted);
}

.lead {
  max-width: 570px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: #d4dfe1;
  font-size: 12px;
}

.featured {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 460px;
  border: 1px solid rgba(206, 232, 236, 0.17);
  border-radius: 25px;
  background:
    linear-gradient(180deg, rgba(5, 20, 29, 0.02) 35%, rgba(5, 20, 29, 0.92) 100%),
    linear-gradient(145deg, #244a57 0%, #143542 48%, #0b2633 100%);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.3);
  color: inherit;
}

.featured::before {
  position: absolute;
  top: -90px;
  right: -50px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(174, 224, 218, 0.1);
  content: "";
  filter: blur(1px);
}

.featured-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  color: #d7e5e6;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quality {
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  background: rgba(4, 19, 26, 0.24);
}

.ship-scene {
  position: absolute;
  top: 54px;
  right: 0;
  left: 0;
  width: 100%;
  height: 290px;
}

.play-mark {
  position: absolute;
  top: 176px;
  left: 50%;
  z-index: 3;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(7, 23, 32, 0.48);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
}

.play-mark svg {
  margin-left: 4px;
}

.featured-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 28px;
}

.featured-caption p {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.featured-caption h2 {
  max-width: 420px;
  margin: 0;
  font-size: 25px;
  font-weight: 560;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.archive,
.band {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  gap: 30px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 34px;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading h2,
.page-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 43px);
  font-weight: 580;
  letter-spacing: -0.045em;
}

.section-heading > p,
.page-intro {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.page-intro {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.7;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.category,
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(12, 32, 43, 0.65);
  color: inherit;
}

.category:hover,
.card:hover,
a.featured:hover {
  border-color: rgba(131, 225, 213, 0.45);
}

.category-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(160deg, #173b49, #0e2936);
}

.scene-yachts {
  background: linear-gradient(160deg, #29424c, #142d38);
}

.scene-boats {
  background: linear-gradient(160deg, #243f43, #102d34);
}

.category-art.has-photo::after {
  display: none;
}

.category-art .photo,
.featured .photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured .photo-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5, 20, 29, 0.12) 18%, rgba(5, 20, 29, 0.9) 100%);
}

.category-art.has-photo .category-number {
  z-index: 2;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(7, 23, 32, 0.55);
  color: #f2f6f5;
}

.credit {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.credit a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.category-art::after {
  position: absolute;
  right: -10%;
  bottom: 24px;
  left: -10%;
  height: 1px;
  background: rgba(177, 222, 225, 0.22);
  box-shadow: 0 12px 0 rgba(177, 222, 225, 0.12), 0 24px 0 rgba(177, 222, 225, 0.07);
  content: "";
  transform: rotate(-2deg);
}

.category-art svg {
  position: relative;
  z-index: 1;
  width: 80%;
  height: 130px;
}

.category-number {
  position: absolute;
  top: 15px;
  left: 17px;
  color: rgba(224, 239, 239, 0.55);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.category-copy {
  padding: 23px 24px 26px;
}

.category-copy h3,
.card h3 {
  margin: 0 0 11px;
  font-size: 20px;
  font-weight: 580;
  letter-spacing: -0.025em;
}

.category-copy p,
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.meta {
  margin: 0 0 8px;
  color: var(--sand);
  font-size: 12px;
}

.format {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 60px;
  align-items: center;
  margin: 0 0 72px;
  padding: 42px 44px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(120deg, rgba(131, 225, 213, 0.06), rgba(255, 255, 255, 0.015));
}

.format h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 570;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.format p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.format-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.format-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #d6e0e1;
  font-size: 12px;
}

.format-list li::before {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.page {
  padding: 36px 0 72px;
}

.page h1 {
  font-size: clamp(40px, 5vw, 64px);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr);
  gap: 36px;
  align-items: start;
  margin-top: 36px;
}

.prose h2 {
  margin: 32px 0 10px;
  font-size: 22px;
  font-weight: 580;
  letter-spacing: -0.03em;
}

.prose p {
  margin: 0 0 14px;
  color: #d5e1e2;
  font-size: 16px;
  line-height: 1.7;
}

.specs {
  position: sticky;
  top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(12, 32, 43, 0.72);
}

.specs h2 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
}

.specs dl {
  margin: 0;
}

.specs div {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.specs dt {
  color: var(--muted);
  font-size: 12px;
}

.specs dd {
  margin: 4px 0 0;
  font-size: 15px;
}

.chapters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.chapter-btn {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: #d6e0e1;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.chapter-btn[aria-current="true"] {
  border-color: rgba(131, 225, 213, 0.5);
  color: var(--accent);
}

.stage {
  margin-top: 28px;
}

.stage .featured {
  min-height: 380px;
}

.related {
  margin-top: 48px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.footer strong {
  color: #dce7e7;
  font-weight: 600;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer a:hover {
  color: var(--text);
}


/* Keep image, description and the independent licence link inside one grid item. */
.card-main {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
}

.card-main:focus-visible {
  outline-offset: -3px;
  border-radius: inherit;
}

.card-credit {
  margin-top: auto;
  padding: 0 24px 22px;
}

.card .credit,
.category .credit {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.category-copy h3,
.card h3 {
  line-height: 1.3;
}

.category-copy .meta {
  margin: 0 0 12px;
  color: var(--sand);
  font-size: 11px;
  line-height: 1.5;
}

.category-copy > p + .meta {
  margin-top: 16px;
  margin-bottom: 0;
}

.category-copy,
.hero-copy,
.prose,
.specs,
.layout > *,
.header > * {
  min-width: 0;
}

.prose {
  max-width: 72ch;
}

.prose a,
.credit a,
.specs dd {
  overflow-wrap: anywhere;
}

.related > h2 {
  margin-bottom: 24px;
}

@media (max-width: 1100px) {
  .header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'brand language' 'navigation navigation';
    gap: 14px 24px;
    padding: 20px 0 16px;
  }

  .nav {
    justify-content: flex-start;
    gap: 4px 24px;
  }

  .hero {
    gap: 32px;
  }
}

@media (max-width: 980px) {
  .hero,
  .layout,
  .format {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    gap: 32px;
    padding: 40px 0 48px;
  }

  .hero-copy,
  .hero > div,
  .featured {
    width: 100%;
    max-width: none;
  }

  .hero .featured {
    min-height: 400px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .specs {
    position: static;
  }

  .format {
    gap: 24px;
    padding: 32px;
  }

  .archive,
  .band {
    padding: 44px 0;
  }
}

@media (max-width: 680px) {
  .shell {
    width: calc(100% - 36px);
  }

  .header {
    gap: 14px 12px;
    padding-top: 18px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 11px;
  }

  .brand-name {
    font-size: 22px;
  }

  .brand-subtitle {
    max-width: 140px;
    font-size: 8px;
    line-height: 1.5;
    letter-spacing: 0.1em;
  }

  .lang a {
    padding: 8px 7px;
    font-size: 10px;
  }

  .nav {
    gap: 4px 18px;
  }

  .nav a {
    font-size: 13px;
  }

  h1,
  .page h1 {
    font-size: clamp(34px, 8.5vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.045em;
  }

  .hero {
    padding-top: 28px;
  }

  .eyebrow {
    margin-bottom: 18px;
  }

  .lead,
  .page-intro {
    margin-top: 20px;
    font-size: 15px;
  }

  .tags {
    margin-top: 22px;
    gap: 8px;
  }

  .tags li {
    padding: 8px 10px;
    font-size: 11px;
  }

  .hero .featured,
  .stage .featured {
    min-height: 320px;
    border-radius: 18px;
  }

  .featured-top {
    padding: 18px;
  }

  .featured-caption {
    padding: 22px;
  }

  .featured-caption h2 {
    font-size: 24px;
  }

  .ship-scene {
    top: 40px;
    height: 230px;
  }

  .play-mark {
    top: 140px;
  }

  .section-heading {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
  }

  .section-heading h2 {
    font-size: 30px;
    line-height: 1.15;
  }

  .catalog {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .category-art {
    aspect-ratio: 16 / 9;
  }

  .category-copy {
    padding: 20px;
  }

  .card-credit {
    padding: 0 20px 20px;
  }

  .format {
    gap: 22px;
    margin-bottom: 40px;
    padding: 26px 22px;
  }

  .format h2 {
    font-size: 27px;
  }

  .format-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .page {
    padding: 28px 0 48px;
  }

  .layout {
    gap: 28px;
    margin-top: 28px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    line-height: 1.7;
  }
}

@media (max-width: 360px) {
  .brand-subtitle {
    max-width: 104px;
    font-size: 7px;
  }

  .nav {
    gap: 4px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
