:root {
  --ink: #1a1a1a;
  --navy: #000066;
  --paper: #f3f0e8;
  --card: #fff;
  --line: #ddd4c4;
  --muted: #4a453c;
  --measure: 40rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 1.125rem/1.6 "Segoe UI", system-ui, sans-serif;
}

a { color: var(--navy); }

a:hover { text-decoration: none; }

a:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

img { max-width: 100%; height: auto; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.4rem 0.7rem;
  background: var(--card);
  border: 1px solid var(--navy);
  transform: translateY(-150%);
}

.skip:focus { transform: none; }

.wrap {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
}

.site-header {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.85rem 1.75rem;
  margin-bottom: 1.25rem;
}

.site-name {
  margin: 0;
  color: var(--navy);
  font-size: 2rem;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-align: left;
}

.site-name a {
  color: inherit;
  text-decoration: none;
}

.site-name a:hover { text-decoration: underline; }

.site-nav ul,
.topics {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav > ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.85rem 6.25rem;
  font-size: 1rem;
}

.site-nav li.group {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.site-nav li.group > span,
.site-nav li.group > a {
  color: var(--navy);
  font-weight: 650;
  line-height: 1.15;
  cursor: pointer;
  background: none;
  border: 0;
  text-decoration: none;
}

.site-nav li.group ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 3;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  margin: 0;
  padding: 0.15rem 0 0;
  border: 0;
  background: none;
  box-shadow: none;
  white-space: nowrap;
}

.site-nav li.group.is-open > ul {
  display: flex;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.5rem;
}

.topics a {
  display: inline-block;
  padding: 0.28rem 0.55rem;
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.35;
}

.topics a:hover { border-color: var(--navy); }

.topics a[aria-current="page"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

main h1 {
  margin: 0 0 0.75rem;
  font-size: 1.85rem;
  line-height: 1.2;
  font-weight: 650;
  max-width: var(--measure);
}

main h2 {
  margin: 1.4rem 0 0.4rem;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 650;
}

.prose,
.facts,
blockquote,
.specs,
.items {
  max-width: var(--measure);
}

blockquote {
  margin: 0 0 1rem;
  padding: 0 0 0 1rem;
  border-left: 3px solid var(--navy);
}

blockquote p {
  margin: 0;
  font-style: italic;
}

.facts p { margin: 0.2rem 0; }

.note { font-weight: 650; }

.prose p { margin: 0 0 1rem; }

.specs {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: 0.35rem 1.25rem;
}

.items { padding-left: 1.25rem; }

.items li { margin: 0.35rem 0; }

.items ul { margin: 0.2rem 0 0.4rem; }

.gallery {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 0.85rem;
}

.gallery a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 8rem;
  padding: 0.4rem;
  background: var(--card);
  border: 1px solid var(--line);
}

.gallery a:hover { border-color: var(--navy); }

.gallery img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 18rem;
}

.boats {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--measure);
}

.boats li {
  margin: 0;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}

.boats li:last-child { border-bottom: 1px solid var(--line); }

.site-footer {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.98rem;
  text-align: left;
}

.site-footer p {
  margin: 0;
  text-align: left;
  white-space: nowrap;
}

.to-top {
  margin: 2rem 0 0.85rem;
  text-align: left;
}

.to-top + .site-footer {
  margin-top: 0;
}

@media (max-width: 40rem) {
  body { font-size: 1.05rem; }

  .wrap { padding: 1rem 1rem 2.5rem; }

  main h1 { font-size: 1.5rem; }

  .site-name { font-size: 1.5rem; }
}

.site-footer p + p { margin-top: 0.2rem; }

main { overflow-wrap: break-word; }

main table {
  max-width: 100%;
  border-collapse: collapse;
}

main td,
main th { vertical-align: top; }

main table[border="1"] td,
main table[border="1"] th {
  border: 1px solid var(--line);
  padding: 0.45rem 0.55rem;
}

main img[width="220"] {
  width: min(220px, 100%);
  height: auto;
}

.thumbs {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.thumbs li { margin: 0 0 1.25rem; }

figure.photo { margin: 0; }

figure.photo img,
.boat-photos img {
  max-width: min(100%, 32rem);
}

.notice > h1 {
  text-align: left;
}

.notice::after {
  content: "";
  display: block;
  clear: both;
}

.notice-photo {
  float: left;
  margin: 0.2rem 1rem 0.75rem 0;
  max-width: 46%;
}

main .notice-photo img {
  display: block;
  width: auto;
  max-width: min(13.75rem, 100%);
  height: auto;
}

.notice-photo img + img { margin-top: 0.55rem; }

.notice-photo a { display: block; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.6rem;
  margin: 1rem 0;
}

.photo-grid img { width: 100%; }

dl.facts div { margin: 0.35rem 0; }

dl.facts dt { font-weight: 650; }

dl.facts dd { margin: 0; }

.sold {
  font-weight: 650;
  margin: 0 0 1rem;
  max-width: var(--measure);
}

.lede {
  max-width: var(--measure);
  margin: 0 0 0.35rem;
}

.passage {
  margin-top: 2rem;
  padding-top: 0.2rem;
  border-top: 1px solid var(--line);
}

.passage > h2 {
  margin: 0.85rem 0 0.15rem;
  font-size: 1.45rem;
}

.day { margin-top: 1.35rem; }

.day h3 {
  margin: 0 0 0.2rem;
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 650;
  max-width: var(--measure);
}

.scheduled {
  margin: 0 0 0.55rem;
  max-width: var(--measure);
  color: var(--muted);
  font-style: italic;
}

.day p,
.credit {
  margin: 0 0 0.7rem;
  max-width: var(--measure);
}

.credit { margin-top: 2rem; }

@media (max-width: 40rem) {
  .passage > h2 { font-size: 1.28rem; }
}
