:root {
  color-scheme: light;
  --navy: #082e43;
  --deep: #062737;
  --sea: #236477;
  --ink: #173440;
  --muted: #5f747a;
  --paper: #f7f7f2;
  --white: #ffffff;
  --line: #d8e1df;
  --accent: #dc8d67;
  --serif: Georgia, Cambria, "Times New Roman", serif;
  --sans: "Segoe UI", Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.55; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 20; padding: .6rem 1rem; background: white; color: var(--navy); }
.skip-link:focus { top: .5rem; }
.wrap { width: min(100% - 3rem, 1240px); margin-inline: auto; }

.site-header { position: relative; z-index: 5; background: var(--deep); color: #eff6f4; border-bottom: 1px solid #ffffff24; }
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; font-family: var(--serif); font-size: 1.55rem; letter-spacing: -.04em; white-space: nowrap; }
.brand > span:last-child > span { color: #a7d2cf; }
.brand-mark { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid #95c4c4; border-radius: 50%; }
.brand-mark svg { width: 29px; height: 29px; fill: none; stroke: #d1e6e1; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.4rem); font-size: .9rem; font-weight: 600; }
.site-nav a { padding-block: .6rem; color: #d9e8e5; transition: color .2s ease; }
.site-nav a:hover, .site-nav a[aria-current] { color: white; }
.site-nav a[aria-current] { border-bottom: 1px solid var(--accent); }

.hero { overflow: hidden; color: #f4f7f2; background: radial-gradient(circle at 88% 0%, #205a6b 0, transparent 37%), linear-gradient(135deg, #082e43 0%, #0b4156 70%, #145d70 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); min-height: 600px; padding-block: 4.8rem 5.4rem; }
.hero-copy { max-width: 545px; }
.section-label { display: inline-flex; gap: .75rem; align-items: center; color: #badbd7; font-size: .71rem; font-weight: 800; text-transform: uppercase; letter-spacing: .18em; }
.section-label.dark { color: #47707a; }
.label-line { width: 25px; height: 1px; background: currentColor; }
.hero h1 { margin: 1.1rem 0 .75rem; font-family: var(--serif); font-size: clamp(2.8rem, 5.2vw, 5.4rem); font-weight: 400; line-height: 1.05; letter-spacing: -.055em; }
.hero h1 em { color: #aed9d3; font-weight: 400; }
.quote-credit { margin: 0 0 1.65rem; color: #b9d6d1; font-size: .83rem; }
.quote-credit a { text-decoration: underline; text-decoration-color: #b9d6d188; text-underline-offset: .22rem; }
.quote-credit a:hover { color: white; }
.hero-copy > p { max-width: 420px; color: #cfdfdd; font-size: clamp(1rem, 1.5vw, 1.16rem); line-height: 1.78; }
.hero-link { display: inline-flex; gap: 1.5rem; align-items: center; margin-top: 1.15rem; padding-bottom: .55rem; border-bottom: 1px solid #8fbdba; font-size: .9rem; font-weight: 700; }
.hero-link span { font-size: 1.3rem; }
.hero-link:hover { color: #c8e8df; }
.hero-facts { display: flex; align-items: stretch; gap: 2.3rem; margin-top: 4rem; }
.hero-facts > div { display: flex; flex-direction: column; gap: .1rem; }
.hero-facts > div + div { border-left: 1px solid #ffffff45; padding-left: 2.3rem; }
.hero-facts strong { font-family: var(--serif); font-size: 2.1rem; line-height: 1; font-weight: 400; }
.hero-facts span { color: #aac8c9; font-size: .73rem; }
.hero-art { position: relative; min-width: 0; align-self: center; padding: 1rem 0 1.2rem; }
.hero-art::before { content: ""; position: absolute; inset: -3% 3% 8% -3%; border: 1px solid #d5eee849; border-radius: 50% 50% 47% 53% / 51% 47% 53% 49%; transform: rotate(-7deg); }
.hero-art img { position: relative; width: 100%; aspect-ratio: 10 / 7; object-fit: cover; border-radius: 48% 52% 49% 51% / 52% 46% 54% 48%; box-shadow: 0 30px 75px #00192766; }
.art-note { position: absolute; right: -1%; bottom: -1.2rem; padding: .85rem 1.15rem; border: 1px solid #dde7de; background: #faf8ef; color: #31515b; box-shadow: 0 10px 25px #00192730; font-family: var(--serif); font-size: .95rem; font-style: italic; transform: rotate(2deg); }

.fleet-section { padding-block: 5.7rem 6.4rem; scroll-margin-top: 2rem; }
.section-heading { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.section-heading h2, .about-section h2 { margin: .55rem 0 0; font-family: var(--serif); font-size: clamp(2.5rem, 4.6vw, 4.5rem); line-height: 1.06; font-weight: 400; letter-spacing: -.055em; }
.section-heading > p { max-width: 235px; margin: 0 0 .3rem; color: var(--muted); font-size: .94rem; }
.fleet-tools { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filters { display: flex; gap: .45rem; flex-wrap: wrap; }
.filter-chip { padding: .6rem .9rem; border: 1px solid transparent; border-radius: 3px; background: transparent; color: #536c72; font-size: .82rem; font-weight: 700; transition: background .2s, color .2s, border-color .2s; }
.filter-chip:hover { border-color: #9bb3b3; color: var(--navy); }
.filter-chip.active { background: var(--navy); color: white; }
.search-field { display: flex; align-items: center; gap: .6rem; min-width: 210px; padding: .55rem .7rem; border: 1px solid #b7c9c8; border-radius: 4px; background: white; }
.search-field svg { width: 17px; height: 17px; fill: none; stroke: #6c8a8d; stroke-width: 1.6; }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: .84rem; }
.search-field:focus-within { outline: 3px solid #edbc9d; }
.results-heading { display: flex; justify-content: space-between; gap: 1rem; margin: 1.5rem 0 1.3rem; color: var(--muted); font-size: .78rem; }
.results-heading p { margin: 0; font-weight: 700; color: #45646d; }
.ship-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; }
.ship-card { min-width: 0; background: white; border: 1px solid #e1e8e5; box-shadow: 0 12px 30px #1239470d; transition: transform .2s ease, box-shadow .2s ease; }
.ship-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px #1239471c; }
.ship-card a { display: block; height: 100%; }
.camera-visual { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #96bdc4; }
.camera-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.camera-visual img.is-unavailable { display: none; }
.camera-fallback { position: absolute; inset: 0; overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, #b7d1d0 0%, #75a8b0 52%, #326d81 53%, #0c465d 100%); color: #f1f4ed; }
.ship-card:nth-child(3n + 2) .camera-fallback { background: linear-gradient(160deg, #ccd9cf 0%, #8bb4b8 52%, #3c7c8b 53%, #14536a 100%); }
.ship-card:nth-child(3n) .camera-fallback { background: linear-gradient(160deg, #b6ccd3 0%, #699baa 52%, #215b74 53%, #0b3e59 100%); }
.fallback-horizon { position: absolute; width: 110%; height: 40%; top: 47%; border-top: 2px solid #ffffff77; border-radius: 50%; transform: rotate(-2deg); }
.fallback-ship { position: absolute; width: 28%; min-width: 70px; top: 31%; fill: none; stroke: #f8f8ef; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 7px 8px #0a456855); }
.fallback-caption { position: absolute; bottom: 1rem; left: 1rem; padding: .28rem .55rem; background: #083147ba; font-size: .65rem; letter-spacing: .09em; text-transform: uppercase; }
.visual-corner { position: absolute; top: .9rem; right: .9rem; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #f9f9f1e8; color: var(--navy); font-size: 1rem; }
.card-body { padding: 1.15rem 1.3rem 1.35rem; }
.eyebrow { color: #64838a; font-size: .67rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.card-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: .4rem; }
.card-title-row h3 { margin: .38rem 0 .3rem; font-family: var(--serif); font-size: clamp(1.28rem, 2.2vw, 1.72rem); font-weight: 400; line-height: 1.1; letter-spacing: -.035em; }
.card-arrow { color: var(--sea); font-size: 1.28rem; }
.card-caption { color: var(--muted); font-size: .74rem; }
.empty-state { padding: 3rem; background: white; text-align: center; color: var(--muted); }
[hidden] { display: none !important; }

.about-section { padding-block: 5rem; background: #e5eeeb; scroll-margin-top: 2rem; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 9vw, 9rem); }
.about-grid > div:last-child { padding-top: 1.5rem; max-width: 520px; color: #4e696c; font-size: 1rem; line-height: 1.85; }
.about-grid p { margin: 0 0 1.2rem; }
.site-footer { background: var(--deep); color: #d1e2e0; }
.footer-inner { display: flex; justify-content: space-between; align-items: start; gap: 2rem; padding-block: 2.8rem; font-size: .8rem; }
.footer-inner strong { color: white; font-family: var(--serif); font-size: 1.4rem; font-weight: 400; }
.footer-inner p { max-width: 325px; margin: .3rem 0 0; }
.footer-inner > p { text-align: right; }
.footer-links { display: flex; align-items: start; flex-wrap: wrap; justify-content: end; gap: 0 1.3rem; max-width: 360px; }
.footer-links a { color: white; text-decoration: underline; text-decoration-color: #b9d6d188; text-underline-offset: .2rem; }
.footer-links a:hover { color: #b9d6d1; }
.footer-links p { flex-basis: 100%; margin: .5rem 0 0; text-align: right; }

.editorial-page { min-height: 72vh; padding-block: 2rem 7rem; }
.editorial-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 8rem); margin-top: 5rem; }
.editorial-grid h1 { margin: .8rem 0 1.1rem; font-family: var(--serif); font-size: clamp(3.8rem, 6.5vw, 6.7rem); font-weight: 400; line-height: 1; letter-spacing: -.06em; }
.editorial-intro { max-width: 370px; color: var(--sea); font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.35; }
.editorial-copy { max-width: 650px; border-top: 1px solid var(--line); padding-top: 1.4rem; color: #435d63; font-size: 1.06rem; line-height: 1.83; }
.editorial-copy p { margin: 0 0 1.45rem; }
.editorial-signoff { color: var(--navy); font-family: var(--serif); font-size: 1.5rem; font-style: italic; }
.editorial-action { display: inline-flex; align-items: center; gap: 2rem; padding: .82rem 1rem; background: var(--navy); color: white; font-size: .89rem; font-weight: 700; }
.editorial-action:hover { background: var(--sea); }
.editorial-copy .contact-note { margin-top: 1.3rem; color: var(--muted); font-size: .81rem; }
.not-found-title { margin: 1rem 0; font-family: var(--serif); font-size: clamp(3.5rem, 8vw, 6rem); font-weight: 400; line-height: 1; letter-spacing: -.06em; }
.comments-panel { width: min(100% - 3rem, 1240px); margin: 0 auto 5rem; padding: 2rem; border: 1px solid var(--line); background: white; box-shadow: 0 15px 40px #12394712; }
.comments-panel h2 { margin: 0 0 1.3rem; font-family: var(--serif); font-size: 2rem; font-weight: 400; }

.ship-detail { min-height: 78vh; padding-block: 2rem 6rem; }
.breadcrumbs { display: flex; gap: .7rem; align-items: center; color: #6b8388; font-size: .78rem; }
.breadcrumbs a:hover, .back-link:hover, .text-button:hover { color: #aa6346; text-decoration: underline; }
.detail-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin: 3.1rem 0 2rem; }
.detail-heading h1 { margin: .65rem 0 .4rem; font-family: var(--serif); font-size: clamp(3rem, 6vw, 6rem); font-weight: 400; line-height: 1; letter-spacing: -.065em; }
.detail-heading p { margin: 0; color: var(--muted); }
.back-link { padding-bottom: .3rem; white-space: nowrap; font-size: .82rem; font-weight: 700; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, .65fr); gap: 2rem; align-items: start; }
.camera-panel { min-width: 0; background: white; border: 1px solid var(--line); box-shadow: 0 15px 40px #12394712; }
.camera-visual-large { aspect-ratio: 16 / 10; }
.camera-visual-large .visual-corner { display: none; }
.camera-visual-large .fallback-ship { width: 22%; }
.camera-visual-large .fallback-caption { left: 1.4rem; bottom: 1.4rem; font-size: .76rem; }
.camera-controls { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 1.35rem; }
.panel-kicker { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.camera-controls p { margin: .2rem 0 0; color: var(--muted); font-size: .78rem; }
.control-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 1rem; }
.text-button { border: 0; padding: .4rem 0; background: none; color: var(--sea); font-size: .77rem; font-weight: 700; white-space: nowrap; }
.detail-aside { padding: 1.2rem 1.2rem 2rem 2rem; border-left: 1px solid #b9c9c8; }
.aside-number { color: #63828a; font-family: var(--serif); font-size: 2.4rem; }
.detail-aside h2 { margin: 2.5rem 0 1rem; font-family: var(--serif); font-size: clamp(2rem, 3vw, 3rem); font-weight: 400; line-height: 1.1; letter-spacing: -.04em; }
.detail-aside p { color: var(--muted); font-size: .88rem; line-height: 1.8; }
.aside-rule { height: 1px; margin: 2.5rem 0 1.5rem; background: var(--line); }
.next-ship { display: flex; justify-content: space-between; gap: 1rem; margin-top: .5rem; font-family: var(--serif); font-size: 1.45rem; }
.next-ship span { color: var(--sea); }
.identity-note { max-width: 760px; margin: 1.5rem 0 0; padding: 1rem 1.25rem; border-left: 2px solid var(--accent); background: #e5eeeb; color: #435d63; font-size: .85rem; }

@media (max-width: 950px) {
  .hero-grid { grid-template-columns: 1fr 1fr; min-height: 0; }
  .hero-facts { margin-top: 2.5rem; }
  .ship-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fleet-tools { align-items: stretch; flex-direction: column; }
  .search-field { max-width: 360px; }
  .detail-grid { grid-template-columns: 1fr; }
  .editorial-grid { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 3rem; }
  .detail-aside { display: none; }
}
@media (max-width: 650px) {
  .wrap { width: min(100% - 2rem, 1240px); }
  .header-inner { min-height: 68px; }
  .brand { font-size: 1.27rem; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-mark svg { width: 23px; height: 23px; }
  .site-nav { gap: .75rem; font-size: .72rem; }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 2.1rem; padding-block: 3.7rem 4rem; }
  .hero h1 { font-size: clamp(2.8rem, 11vw, 4.7rem); }
  .hero-facts { margin-top: 2.3rem; }
  .hero-art { width: min(100%, 480px); align-self: center; }
  .art-note { right: 0; bottom: -.8rem; font-size: .75rem; }
  .fleet-section { padding-block: 3.6rem 4rem; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: .7rem; max-width: none; }
  .results-heading > span { display: none; }
  .ship-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 1rem; }
  .about-section { padding-block: 3.6rem; }
  .about-grid > div:last-child { padding-top: 0; }
  .footer-inner { flex-direction: column; gap: 1rem; }
  .footer-inner > p { text-align: left; }
  .footer-links { justify-content: start; }
  .footer-links p { text-align: left; }
  .editorial-page { padding-bottom: 4rem; }
  .editorial-grid h1 { font-size: clamp(3.5rem, 13vw, 5rem); }
  .comments-panel { width: min(100% - 2rem, 1240px); padding: 1.25rem; }
  .detail-heading { display: block; margin-top: 2.3rem; }
  .back-link { display: inline-block; margin-top: 1.3rem; }
  .camera-controls { display: block; }
  .control-actions { justify-content: start; margin-top: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
