@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
:root {
  --ink: #232b31;
  --charcoal: #242323;
  --blue: #497fbd;
  --link: #285b94;
  --pale: #eaf1f7;
  --muted: #51606b;
  --line: #d4dde3;
  --wrap: 1240px;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--ink);
  background: white;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; line-height: 1.55; }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: var(--link); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #e2a849; outline-offset: 4px; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.wrap { width: min(var(--wrap), 89%); margin-inline: auto; }
.kicker, .tool-place { display: flex; align-items: center; gap: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .14em; font-size: .79rem; }
.kicker { color: var(--link); margin-bottom: 13px; }
.kicker i { display: inline-block; width: 29px; height: 3px; background: var(--blue); }
.kicker.light { color: #d8eaff; }
.kicker.light i { background: #86b4ea; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.048em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); font-weight: 750; }
.btn { display: inline-flex; gap: 9px; align-items: center; justify-content: center; border-radius: 5px; padding: 13px 21px; font-weight: 700; font-size: .98rem; line-height: 1.4; text-decoration: none; border: 1px solid transparent; transition: background .18s; }
.primary { background: #396ea9; color: white; }
.primary:hover { background: #2c609a; }
.glass { color: white; border-color: #9aaab5; background: #15283377; }
.glass:hover { background: #263e4e; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero { isolation: isolate; position: relative; overflow: hidden; background: #132732; color: white; }
.hero-photo { z-index: -2; position: absolute; inset: 0 0 0 17%; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; filter: brightness(2.35) saturate(1.25); }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,#132732 0%,#132732 15%,rgba(14,35,47,.96) 25%,rgba(15,36,47,.79) 39%,rgba(15,36,47,.28) 57%,rgba(15,36,47,.04) 80%),linear-gradient(0deg,rgba(10,27,36,.65),transparent 27%); }
.hero-inner { min-height: clamp(460px,37vw,560px); display: flex; align-items: center; position: relative; padding-block: 54px 64px; }
.hero-copy { width: min(53vw, 700px); }
.hero h1 { font-size: clamp(3.5rem,5.8vw,5.8rem); line-height: .99; letter-spacing: -.062em; }
.hero h1 { text-wrap: initial; }
.hero h1 em { color: #afd3f7; font-family: Georgia, "Times New Roman", serif; letter-spacing: -.058em; font-weight: 400; }
.hero .kicker { margin-bottom: 21px; }
.hero-intro { max-width: 445px; margin: 19px 0 25px; color: #f4f6f8; font-size: 1.06rem; }
.hero-caption { position: absolute; right: 0; bottom: 20px; display: flex; align-items: center; gap: 8px; color: white; font-size: .81rem; text-shadow: 0 1px 5px #151e23; }
.fact-bar { background: #edf3f8; border-bottom: 1px solid #d6e1eb; }
.facts { display: grid; grid-template-columns: repeat(3,1fr); padding-block: 22px; }
.facts > div { padding-inline: clamp(16px,3.4vw,55px) 12px; display: grid; grid-template: auto auto / 30px 1fr; column-gap: 15px; align-items: center; border-left: 1px solid #becedc; }
.facts > div:first-child { padding-left: 0; border: 0; }
.facts svg { grid-row: span 2; color: var(--link); }
.facts dt { font-size: .81rem; color: var(--muted); }
.facts dd { font-weight: 700; font-size: clamp(.96rem,1.45vw,1.18rem); letter-spacing: -.02em; }
.section, .planners { padding-block: clamp(52px,5.1vw,82px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 29px; }
.section-heading > p { color: var(--muted); max-width: 390px; }

.departure-schedule {
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.departure-schedule table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.departure-schedule caption {
  padding: 16px clamp(12px, 2vw, 26px);
  background: #244b73;
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: left;
}
.departure-schedule th, .departure-schedule td {
  padding: 12px clamp(12px, 2vw, 26px);
  border-bottom: 1px solid var(--line);
}
.departure-schedule thead {
  background: var(--pale);
  font-size: .92rem;
}
.departure-schedule thead span {
  display: inline-block;
  font-weight: 400;
}
.departure-schedule time {
  color: var(--link);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.departure-schedule .night-note {
  margin: 0;
  padding: 12px clamp(12px, 2vw, 26px);
}

.trips, .finder-grid { display: grid; gap: 24px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.trip { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.trip-image { height: clamp(175px,16.5vw,238px); position: relative; overflow: hidden; background: var(--pale); }
.trip-image img { height: 100%; width: 100%; object-fit: cover; object-position: center 51%; transition: transform .5s; }
.trip:hover img { transform: scale(1.025); }
.trip-image > span { position: absolute; left: 17px; bottom: 15px; display: inline-flex; align-items: center; gap: 7px; color: white; background: #152939e8; border-radius: 4px; font-size: .84rem; font-weight: 600; padding: 5px 10px; }
.trip-copy { padding: 22px clamp(18px,2.3vw,30px) 26px; }
.trip-meta { display: flex; align-items: center; gap: 11px; margin-bottom: 11px; }
.trip-meta strong { color: var(--link); }
.trip-meta span { border-left: 1px solid var(--line); padding-left: 12px; color: var(--muted); font-size: .88rem; }
.trip h3, .finder-grid h3 { font-size: clamp(1.55rem,2.4vw,2.1rem); }
.trip-copy > p { margin: 11px 0 19px; color: var(--muted); }
.trip-link { font-weight: 700; }
.night-note { display: flex; flex-wrap: wrap; align-items: center; gap: .3em; font-size: .91rem; color: var(--muted); margin-top: 18px; }
.night-note svg { margin-right: 4px; color: var(--link); }
.planners { background: #edf3f7; border-block: 1px solid #dce5ec; }
.planner-controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.planner-controls label { font-weight: 700; }
.planner-controls input, .shortcuts button, .retry { padding: 9px 13px; background: #fff; color: var(--ink); border: 1px solid #acbcc9; border-radius: 5px; min-height: 43px; }
.shortcuts { display: flex; gap: 6px; }
.shortcuts button, .retry { font-weight: 650; font-size: .91rem; }
.shortcuts button[aria-pressed=true] { background: #244b73; color: white; border-color: #244b73; }
.date-error { color: #892d23; margin-bottom: 14px; }
.finder-grid { align-items: stretch; }
.finder-grid article { padding: clamp(20px,2.7vw,36px); border-radius: 10px; min-height: 324px; }
.tool-place { font-size: .75rem; margin-bottom: 12px; color: var(--link); }
.sun-panel { color: white; background: linear-gradient(139deg,#193650,#274e76 63%,#446f9e); isolation: isolate; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.sun-panel .tool-place, .sun-panel a { color: #d3e7ff; }
.sun-panel > div[aria-live] { margin-top: auto; padding-top: 68px; }
.sun-time { display: block; font-size: clamp(2.5rem,4.25vw,4.25rem); font-weight: 650; letter-spacing: -.06em; line-height: 1; }
.result-date { margin-top: 8px; color: #e4f0ff; font-size: .94rem; }
.sun-art { z-index: -1; position: absolute; bottom: 0; right: 0; width: 57%; height: 74%; overflow: hidden; opacity: .82; }
.orbit, .sun-disc { border-radius: 50%; position: absolute; left: 59%; transform: translateX(-50%); }
.orbit { width: 76%; aspect-ratio: 1; bottom: 26%; margin-bottom: -38%; border: 1px dashed #b6cee397; }
.sun-disc { width: 36%; aspect-ratio: 1; bottom: 26%; margin-bottom: -10%; background: linear-gradient(180deg,#ffdc9f,#f3a96f); }
.horizon { position: absolute; top: 74%; inset-inline: 0; height: 27%; background: linear-gradient(180deg,#94b1c6 0 1px,#355c83 1px,#31547a); }
.reflect { width: 28%; position: absolute; left: 45%; top: 76%; height: 23%; background: repeating-linear-gradient(180deg,#e6c7a4 0 1px,transparent 1px 7px); clip-path: polygon(0 0,100% 0,45% 100%); }
.change-date { display: inline-block; margin-top: 8px; font-size: .88rem; }
.tide-panel { background: white; border: 1px solid var(--line); }
.tide-status { font-size: .94rem; color: var(--muted); margin: 12px 0; }
.tide-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.tide-table th, .tide-table td { text-align: left; padding: 6px 2px; border-top: 1px solid #e3e9ed; }
.tide-table th { color: #315e8a; }
.tide-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.tide-credit { color: var(--muted); font-size: .79rem; margin: 14px 0 0; }
.practical { display: grid; grid-template-columns: .9fr 1fr; gap: clamp(30px,8vw,108px); }
.boarding > p:not(.kicker) { color: var(--muted); margin: 16px 0; max-width: 420px; }
.boarding-contact { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.boarding-contact svg { color: var(--link); }
.boarding-contact small { display: block; color: var(--muted); }
.boarding-contact a { font-size: 1.13rem; font-weight: 700; }
.faq h2 { font-size: 2rem; margin: 3px 0 17px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 650; padding: 12px 22px 12px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; color: var(--link); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 16px; }
.inner-heading { background: #eaf1f7; padding-block: 52px; border-bottom: 1px solid var(--line); }
.inner-heading h1 { font-size: clamp(2.5rem,5vw,4.5rem); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 6vw; }
.contact-grid h2, .policy h2 { font-size: 1.8rem; margin: 0 0 14px; }
.contact-grid p { margin-bottom: 16px; }
.feedback { display: grid; gap: 14px; }
.feedback label { display: grid; gap: 5px; font-weight: 600; }
.feedback input, .feedback textarea { min-width: 0; width: 100%; border: 1px solid #9aaab6; border-radius: 5px; padding: 9px 12px; color: var(--ink); }
.feedback textarea { resize: vertical; }
.feedback .btn { justify-self: start; }
.policy { max-width: 790px; }
.policy p { margin: 0 0 14px; }
.policy h2 { margin-top: 32px; }
@media (max-width: 850px) {
  .section-heading { align-items: start; flex-direction: column; gap: 12px; }
  .section-heading > p { max-width: 620px; }
  .hero-copy { max-width: 480px; }
  .hero::before { background: linear-gradient(90deg,#132732 0%,#132732ef 24%,#102735b5 49%,#13273229 78%),linear-gradient(0deg,#101f2a88,transparent 29%); }
  .facts > div { padding-inline: 18px 10px; column-gap: 9px; }
}
@media (max-width: 650px) {
  .wrap { width: 90%; }
  .hero-photo { inset: 0 0 auto; height: 48%; }
  .hero-photo img { object-position: center 54%; }
  .hero::before { background: linear-gradient(180deg,transparent 0%,transparent 21%,#13273244 33%,#132732 47%,#132732 100%); }
  .hero-inner { min-height: 0; padding: clamp(190px,49vw,275px) 0 32px; }
  .hero-copy { position: relative; max-width: none; width: 100%; }
  .hero .kicker { margin-bottom: 12px; width: fit-content; background: #132732e8; padding: 2px 6px 2px 0; }
  .hero h1 { font-size: clamp(3.25rem,11vw,4.4rem); }
  .hero-intro { font-size: 1rem; margin: 15px 0 18px; }
  .hero-caption { top: 12px; bottom: auto; padding: 3px 7px; border-radius: 3px; background: #182835a8; font-size: .75rem; }
  .actions .btn { padding: 11px 14px; font-size: .93rem; }
  .facts { padding-block: 15px; }
  .facts > div { display: block; padding-inline: 9px; }
  .facts svg { display: none; }
  .facts dt { font-size: .77rem; }
  .facts dd { margin-top: 3px; font-size: .9rem; line-height: 1.3; }
  .trips, .finder-grid, .practical, .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .section, .planners { padding-block: 43px; }
  .section-heading { margin-bottom: 20px; }
  .trip-image { height: clamp(165px,44vw,242px); }
  .practical .faq { margin-top: 14px; }
  .finder-grid article { min-height: 265px; }
  .sun-art { width: 47%; }
  .planner-controls { gap: 8px; }
  .planner-controls label { width: 100%; }
  .planner-controls input { max-width: 100%; min-width: 0; }
  .shortcuts button { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.sea-panel { padding: clamp(20px, 2.7vw, 36px); margin-bottom: 24px; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 10px; background: #fff; }
.sea-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sea-heading h3 { font-size: clamp(1.6rem, 2.7vw, 2.3rem); }
.sea-heading .change-date { flex-shrink: 0; }
.sea-status, .sea-explainer { color: var(--muted); margin: 14px 0; }
.sea-trips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sea-trip { background: #eef4f9; border-radius: 6px; padding: 16px 20px; }
.sea-trip h4 { margin: 0 0 2px; font-size: 1.08rem; }
.sea-window { color: var(--muted); font-size: .9rem; }
.sea-trip dl { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 14px 0 0; }
.sea-trip dt { font-size: .85rem; color: var(--muted); }
.sea-trip dd { font-size: 1.45rem; line-height: 1.3; font-weight: 700; letter-spacing: -.035em; color: var(--link); }
.sea-explainer { max-width: 82ch; }
.sea-source { color: var(--muted); font-size: .86rem; }
.sea-trip .sea-missing { margin-top: 12px; font-size: .92rem; }
@media (max-width: 650px) {
  .sea-trips { grid-template-columns: 1fr; }
  .sea-heading { align-items: start; flex-direction: column; gap: 3px; }
  .sea-trip { padding: 14px 16px; }
}
