:root {
  color-scheme: light;
  --navy: #052f6f;
  --blue: #0c63ce;
  --blue-bright: #1f7ee8;
  --blue-light: #e8f2ff;
  --red: #d7193f;
  --red-dark: #9f1232;
  --cream: #f3f8ff;
  --paper: #ffffff;
  --ink: #0f172a;
  --muted: #526276;
  --line: rgba(5, 47, 111, 0.16);
  --shadow: 0 22px 48px rgba(5, 47, 111, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 28px;
  color: #ffffff;
  background: rgba(5, 47, 111, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 850;
}

.brand img {
  width: 42px;
  height: 42px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.92rem;
  font-weight: 760;
}

.site-header nav a {
  text-decoration: none;
  opacity: 0.88;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 82svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  color: #ffffff;
  background: var(--navy);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("/assets/dyc-hero.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.01);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(3, 33, 78, 0.95), rgba(5, 47, 111, 0.7) 38%, rgba(12, 99, 206, 0.16) 72%),
    linear-gradient(180deg, rgba(3, 33, 78, 0.32), rgba(5, 47, 111, 0.2) 60%, rgba(3, 33, 78, 0.84));
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 48px));
  margin-left: max(24px, calc((100% - 1180px) / 2));
  padding-top: 92px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 680px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5.4rem;
  line-height: 0.94;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: 1.22rem;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 850;
}

.button.primary {
  color: #ffffff;
  background: var(--red);
  box-shadow: 0 16px 30px rgba(215, 25, 63, 0.3);
}

.button.ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.signal-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--blue);
  color: #ffffff;
  border-top: 4px solid #ffffff;
  border-bottom: 4px solid var(--red);
}

.signal-item {
  display: grid;
  gap: 2px;
  padding: 20px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
}

.signal-item:last-child {
  border-right: 0;
}

.signal-value {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 900;
}

.signal-label {
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.intro-section,
.fleet-section,
.ledger-section,
.regatta-section {
  padding: 82px max(24px, calc((100% - 1180px) / 2));
}

.intro-section {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 48px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(232, 242, 255, 0.94)),
    repeating-linear-gradient(135deg, rgba(215, 25, 63, 0.08) 0 12px, rgba(12, 99, 206, 0.1) 12px 24px);
}

.section-copy h2,
.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  line-height: 1.02;
}

.section-copy p:not(.eyebrow) {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.72;
}

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

.intro-grid article,
.schedule article {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  padding: 22px;
}

.intro-grid h3,
.schedule h3 {
  margin: 0 0 10px;
  font-size: 1.04rem;
}

.intro-grid p,
.schedule p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.fleet-section {
  background: #ffffff;
}

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

.refresh-stamp {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 740;
}

.toolbar {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) minmax(180px, 240px);
  gap: 14px;
  align-items: end;
  margin-bottom: 24px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--blue-light);
}

.segmented {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(68px, 1fr));
  padding: 4px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(5, 47, 111, 0.14);
}

.segment {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  color: var(--navy);
  background: transparent;
  font: inherit;
  font-weight: 820;
  cursor: pointer;
}

.segment.active {
  color: #ffffff;
  background: var(--blue);
}

.search-field,
.select-field {
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  color: var(--muted);
}

.search-field input,
.select-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(5, 47, 111, 0.22);
  border-radius: 8px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  text-transform: none;
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.listing-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 476px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(5, 47, 111, 0.14);
  background: #fff;
  box-shadow: 0 14px 30px rgba(5, 47, 111, 0.08);
}

.listing-card.mythic {
  border-color: rgba(215, 25, 63, 0.42);
  box-shadow: 0 18px 36px rgba(159, 18, 50, 0.15);
}

.listing-art {
  position: relative;
  min-height: 172px;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, var(--navy), var(--blue-bright));
  overflow: hidden;
}

.listing-card.mythic .listing-art {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.24), rgba(215, 25, 63, 0.08)),
    linear-gradient(135deg, var(--red-dark), var(--navy) 72%);
}

.listing-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-art.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 47, 111, 0.06), rgba(5, 47, 111, 0.34));
}

.listing-art:not(.has-photo)::before {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 35px;
  height: 36px;
  border-radius: 30px 30px 12px 12px;
  background: #ffffff;
  box-shadow: inset 0 -12px 0 rgba(5, 47, 111, 0.16);
}

.listing-art:not(.has-photo)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0 36px, rgba(31, 126, 232, 0.56) 36px 70px);
  clip-path: polygon(0 22%, 8% 48%, 18% 20%, 30% 52%, 43% 22%, 58% 50%, 74% 18%, 88% 46%, 100% 24%, 100% 100%, 0 100%);
}

.card-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  color: #ffffff;
  background: rgba(5, 47, 111, 0.9);
  font-size: 0.75rem;
  font-weight: 900;
}

.listing-card.mythic .card-badge {
  background: var(--red);
}

.listing-body {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
}

.listing-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 820;
}

.listing-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.12rem;
  line-height: 1.28;
}

.price {
  color: var(--red-dark);
  font-size: 1.34rem;
  font-weight: 920;
}

.listing-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.54;
}

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

.feature-list li {
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--navy);
  background: var(--blue-light);
  font-size: 0.78rem;
  font-weight: 820;
}

.listing-card.mythic .feature-list li {
  color: #ffffff;
  background: var(--red-dark);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(5, 47, 111, 0.12);
}

.source-link {
  color: var(--blue);
  font-weight: 880;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.berth-number {
  color: var(--muted);
  font-weight: 900;
}

.ledger-section {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 44px;
  color: #ffffff;
  background:
    linear-gradient(120deg, rgba(5, 47, 111, 0.98), rgba(12, 99, 206, 0.94)),
    linear-gradient(90deg, var(--navy), var(--blue));
}

.ledger-section .section-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.ledger-rows {
  display: grid;
  gap: 12px;
  align-content: center;
}

.ledger-rows div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.ledger-rows span {
  color: #ffffff;
  font-weight: 900;
}

.ledger-rows strong {
  text-align: right;
}

.regatta-section {
  background: var(--blue-light);
}

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

.schedule time {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--red-dark);
  font-size: 2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px max(24px, calc((100% - 1180px) / 2));
  color: rgba(255, 255, 255, 0.82);
  background: var(--navy);
}

.site-footer p {
  max-width: 820px;
  margin: 0;
  line-height: 1.55;
}

.site-footer a {
  color: #ffffff;
  font-weight: 850;
  white-space: nowrap;
}

.history-page {
  background: var(--cream);
}

.history-hero {
  display: grid;
  grid-template-columns: 220px minmax(0, 780px);
  gap: 42px;
  align-items: center;
  min-height: 72svh;
  padding: 128px max(24px, calc((100% - 1180px) / 2)) 76px;
  color: #ffffff;
  background:
    linear-gradient(120deg, rgba(5, 47, 111, 0.98), rgba(12, 99, 206, 0.9)),
    linear-gradient(90deg, var(--navy), var(--blue));
}

.history-crest {
  display: grid;
  place-items: center;
  width: 190px;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
}

.history-crest img {
  width: 148px;
  height: 148px;
}

.history-section,
.history-feature,
.history-deep,
.history-timeline {
  padding: 78px max(24px, calc((100% - 1180px) / 2));
}

.history-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  background: #ffffff;
}

.history-panel {
  align-self: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 28px;
  background: var(--blue-light);
}

.history-panel h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 1.26rem;
}

.history-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.history-feature {
  display: grid;
  grid-template-columns: minmax(300px, 0.94fr) minmax(0, 1.06fr);
  gap: 46px;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(232, 242, 255, 0.98), rgba(255, 255, 255, 0.96)),
    repeating-linear-gradient(135deg, rgba(215, 25, 63, 0.08) 0 12px, rgba(12, 99, 206, 0.08) 12px 24px);
}

.history-image-card {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(5, 47, 111, 0.12);
}

.history-image-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.history-image-card figcaption {
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.46;
}

.history-deep {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 48px;
  background: #ffffff;
}

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

.history-chapters article {
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 24px;
  background: var(--blue-light);
}

.history-chapters h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.08rem;
}

.history-chapters p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.history-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  background: var(--cream);
}

.history-timeline article {
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 24px;
  background: #ffffff;
}

.history-timeline span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 900;
}

.history-timeline h3 {
  margin: 0 0 10px;
  color: var(--navy);
}

.history-timeline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

@media (max-width: 1100px) {
  h1 {
    font-size: 4.2rem;
  }

  .fleet-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .intro-section,
  .ledger-section,
  .history-section,
  .history-feature,
  .history-deep,
  .history-hero {
    grid-template-columns: 1fr;
  }

  .history-crest {
    width: 168px;
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    padding: 12px 18px;
  }

  .site-header nav {
    gap: 10px;
    font-size: 0.84rem;
  }

  .brand span {
    max-width: 150px;
  }

  .hero {
    min-height: 78svh;
  }

  .hero-content {
    width: min(100% - 34px, 640px);
    margin-left: 17px;
  }

  h1 {
    font-size: 3.2rem;
  }

  .hero-copy {
    font-size: 1.04rem;
  }

  .signal-band,
  .intro-grid,
  .schedule,
  .history-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .history-chapters {
    grid-template-columns: 1fr;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .fleet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .site-header {
    position: absolute;
  }

  .site-header nav {
    display: none;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(3, 33, 78, 0.94), rgba(5, 47, 111, 0.62)),
      linear-gradient(180deg, rgba(3, 33, 78, 0.28), rgba(3, 33, 78, 0.84));
  }

  h1 {
    font-size: 2.58rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .signal-band,
  .intro-grid,
  .fleet-grid,
  .schedule {
    grid-template-columns: 1fr;
  }

  .signal-item {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  }

  .intro-section,
  .fleet-section,
  .ledger-section,
  .regatta-section,
  .history-section,
  .history-feature,
  .history-deep,
  .history-timeline {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .history-hero {
    min-height: auto;
    padding-top: 108px;
    padding-bottom: 58px;
  }

  .section-copy h2,
  .section-heading h2 {
    font-size: 2.24rem;
  }

  .section-heading,
  .site-footer,
  .ledger-rows div {
    align-items: flex-start;
    flex-direction: column;
  }

  .ledger-rows strong {
    text-align: left;
  }

  .history-timeline {
    grid-template-columns: 1fr;
  }
}
