:root {
  color-scheme: light;
  --ink: #173642;
  --muted: #435e69;
  --navy: #0c3040;
  --gold: #d7b47a;
  --ivory: #f6f3ed;
  --line: #dce5e8;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 1rem/1.6 Inter, Arial, sans-serif; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid #17727c; outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 10px; background: #fff; }
.skip:not(:focus) { clip-path: inset(50%); }
header { background: white; border-bottom: 1px solid var(--line); }
header .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 9px; }
header img { display: block; width: 126px; height: auto; }
.back { color: #155f69; font-size: .875rem; font-weight: 700; text-underline-offset: 4px; }
main { padding-block: clamp(24px, 5vw, 65px); }
.boat-detail { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; gap: clamp(26px, 5vw, 64px); }
.summary { grid-column: 2; grid-row: 1; }
.gallery { grid-column: 1; grid-row: 1; }
.eyebrow { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #40626d; }
h1, h2 { font-family: "Playfair Display", Georgia, serif; line-height: 1.12; }
h1 { margin: 8px 0 18px; font-size: clamp(2.75rem, 5vw, 4.5rem); }
h2 { margin: 0 0 10px; font-size: 1.5rem; }
.capacity { margin: 0; font-weight: 700; }
.price { margin: 18px 0 0; color: #105969; font-size: 2rem; font-weight: 700; line-height: 1.2; }
.price span { display: block; margin-top: 5px; font-size: .875rem; font-weight: 400; color: var(--muted); }
.note { margin: 12px 0 18px; font-size: .875rem; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 8px; padding: 10px 19px; background: var(--gold); color: var(--navy); font-weight: 700; text-decoration: none; }
.details { border-top: 1px solid #b9cace; margin-top: 24px; padding-top: 20px; }
.details ul { margin: 0; padding-inline-start: 19px; }
.gallery a { position: relative; display: block; }
.gallery img { display: block; inline-size: 100%; block-size: auto; border-radius: 12px; background: #e5ecee; }
.enlarge { position: absolute; inset: auto 12px 12px auto; padding: 8px 12px; border-radius: 7px; background: var(--navy); color: #fff; font-size: .85rem; font-weight: 700; }
.thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.thumbs img { aspect-ratio: 16/10; object-fit: cover; }
.after-gallery { margin-top: 30px; }
footer { padding-block: 24px; background: #071e29; color: #d5e4e8; font-size: .875rem; }
footer p { margin: 5px 0; }
dialog { width: min(960px, 100%); max-width: calc(100% - 20px); max-height: calc(100dvh - 20px); padding: 12px; border: 0; border-radius: 12px; background: #071e29; color: #fff; }
dialog::backdrop { background: #071e29e8; }
.viewer-bar, .viewer-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.viewer-bar { margin-bottom: 10px; }
.viewer-nav { margin-top: 10px; }
.viewer-title { margin: 0; font: 700 1rem Inter, Arial, sans-serif; }
.viewer-image { display: block; width: 100%; height: min(72dvh, calc(100dvh - 165px)); object-fit: contain; }
dialog button { min-height: 44px; padding: 5px 12px; border: 1px solid #829aa4; border-radius: 8px; background: #143b4b; color: white; cursor: pointer; }
dialog :focus-visible { outline-color: var(--gold); }
@media (max-width: 720px) {
  .boat-detail { display: flex; flex-direction: column; align-items: stretch; }
  .summary { display: contents; }
  .summary-intro { order: 0; }
  .gallery { order: 1; }
  .details { order: 2; margin-top: 0; }
  .btn { width: 100%; }
}
@media (max-width: 380px) {
  .wrap { width: calc(100% - 24px); }
  header img { width: 106px; }
  header .back { font-size: .78rem; }
}
