@font-face{font-family:Bricolage;src:url("./assets/fonts/bricolagegrotesque-800.ttf") format("truetype");font-weight:800;font-display:swap}
@font-face{font-family:"Barlow Condensed";src:url("./assets/fonts/barlowcondensed-700.ttf") format("truetype");font-weight:700;font-display:swap}
@font-face{font-family:"DM Sans";src:url("./assets/fonts/dmsans-400.ttf") format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:"DM Sans";src:url("./assets/fonts/dmsans-600.ttf") format("truetype");font-weight:600;font-display:swap}
@font-face{font-family:"DM Sans";src:url("./assets/fonts/dmsans-700.ttf") format("truetype");font-weight:700;font-display:swap}
:root {
  color-scheme: dark;
  --deep-water:#103e40;
  --ink:#fff1d2;
  --muted:#c2d6c8;
  --amber:#f5c478;
  --rule:#809b85;
  --focus:#ffcc79;
  --display:Bricolage,"Arial Black",system-ui,sans-serif;
}
* { box-sizing:border-box; }
html { background:var(--deep-water); }
body {
  margin:0; min-width:280px; min-height:100vh; min-height:100svh;
  display:flex; flex-direction:column; color:var(--ink);
  background:var(--deep-water) url("./assets/harbor-chart.webp") center 52% / cover no-repeat;
  font:1rem/1.5 "DM Sans",system-ui,sans-serif; -webkit-font-smoothing:antialiased;
}
main { flex:1; display:flex; flex-direction:column; }
::selection { color:#153b39; background:#ffd186; }
button { font:inherit; color:inherit; cursor:pointer; }
button:focus-visible, a:focus-visible { outline:3px solid var(--focus); outline-offset:4px; }
.symbols { display:none; }
.icon { display:inline-block; flex:none; width:1.25rem; height:1.25rem; fill:none; stroke:currentColor; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round; vertical-align:middle; }
.shell { width:min(100% - clamp(2.5rem,10vw,10rem),75rem); margin-inline:auto; }
.masthead { background:#082f32b8; border-bottom:1px solid #a5b49961; }
.masthead-inner { display:flex; justify-content:space-between; align-items:center; min-height:5.3rem; gap:1rem; }
.brand { display:flex; align-items:center; gap:.65rem; font:800 clamp(1.25rem,2.3vw,1.7rem)/1 var(--display); letter-spacing:-.055em; }
.brand span { white-space:nowrap; }
.domain-ending { color:var(--amber); }
.brand img { flex:none; transform:rotate(-7deg); }
nav { display:flex; align-items:center; gap:1.8rem; }
nav button, .preview { display:inline-flex; align-items:center; justify-content:center; gap:.55rem; font-size:.9rem; font-weight:700; }
.how { border:0; background:none; padding:.6rem 0; }
.how .icon { width:1.05rem; }
.how:hover { color:var(--amber); }
.sound { white-space:nowrap; padding:.5rem 1rem; min-width:7.15rem; border:1.3px solid #a6ba9b; background:#153e40; border-radius:3rem; }
.sound:hover { background:#245052; }
.sound[aria-pressed="true"] { color:#ffe1a2; border-color:#d4b777; background:#314f45; }
.hero { flex:1; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.03fr); align-items:center; gap:clamp(1.6rem,5.4vw,5.4rem); padding-block:clamp(2.8rem,4.4vw,4.8rem) clamp(3.15rem,4.8vw,5rem); }
.live-label { display:inline-flex; align-items:center; gap:.47rem; color:#bde5cc; font-size:.77rem; font-weight:700; letter-spacing:.105em; line-height:1.1; text-transform:uppercase; }
.live-label i { width:.56rem; height:.56rem; border-radius:50%; background:#9cddb1; box-shadow:0 0 0 3px #9cddb11e; margin:0 .18rem 0 .12rem; }
h1 { font-family:var(--display); font-size:clamp(3.7rem,6.12vw,5.75rem); font-weight:800; line-height:.95; letter-spacing:-.054em; margin:1.06rem 0 1.28rem; }
.destination { display:flex; align-items:baseline; gap:.45rem; font-size:clamp(1rem,1.35vw,1.18rem); color:var(--muted); }
.destination .icon { color:var(--amber); width:1.14rem; height:1.14rem; align-self:flex-start; margin-top:.27em; stroke-width:2.2; }
.place { font-weight:700; color:var(--ink); border:0; background:transparent; padding:0; text-decoration-line:underline; text-decoration-color:#b0bc91; text-underline-offset:4px; text-decoration-thickness:1px; text-align:left; }
.place:hover { color:var(--amber); text-decoration-color:currentColor; }
.countdown {
  --clock-height:clamp(4.65rem,6.2vw,5.55rem);
  --clock-top:linear-gradient(#f9e3ad,#eccc90);
  --clock-bottom:linear-gradient(#d9ae67,#f4d499);
  display:flex; align-items:flex-start; position:relative; width:max-content;
  gap:clamp(.48rem,.85vw,.74rem); margin:1.55rem 0 1.4rem; padding:.8rem .98rem .62rem;
  border:1px solid #9c9164; border-radius:.57rem;
  background:linear-gradient(165deg,#254749,#143437 55%,#102a2d);
  box-shadow:inset 0 0 0 2px #1a3434, inset 0 0 0 3px #79908350, 0 3px 0 #092526, 0 7px 14px #041c2042;
}
.countdown::before {
  --rivet:radial-gradient(circle at 42% 38%,#ffe2a1 0 15%,#b69d67 30%,#5c563e 62%,#10272a 74%,transparent 78%);
  content:""; position:absolute; inset:.27rem; pointer-events:none;
  background:var(--rivet) left top, var(--rivet) right top, var(--rivet) left bottom, var(--rivet) right bottom;
  background-repeat:no-repeat; background-size:.32rem .32rem;
}
.time-unit { display:grid; justify-items:center; gap:.55rem; }
.time-unit > span { text-transform:uppercase; font-size:.73rem; font-weight:700; letter-spacing:.15em; color:#e1d3a8; }
.tile-pair { display:flex; gap:.28rem; }
.tile {
  display:grid; place-items:center; position:relative; isolation:isolate;
  width:clamp(3.45rem,4.65vw,4.3rem); height:var(--clock-height); padding-bottom:.065em;
  border:1px solid #8b754d; border-top-color:#efcf92; border-radius:.27rem;
  color:#173a39;
  background:var(--clock-top) top / 100% 50% no-repeat, var(--clock-bottom) bottom / 100% 50% no-repeat, #e7bf80;
  box-shadow:0 2px 1px #021819, 0 0 0 2px #0d2527;
  font:700 clamp(4.05rem,5.45vw,5.1rem)/1 "Barlow Condensed","Arial Narrow",sans-serif;
  font-variant-numeric:tabular-nums; font-feature-settings:"tnum";
}
.tile::after { content:""; position:absolute; width:100%; height:1px; top:50%; background:#433d2ddd; box-shadow:0 1px 0 #ffe6b675; }
.colon { display:flex; flex-direction:column; justify-content:center; gap:.75rem; height:var(--clock-height); }
.colon i { width:.36rem; height:.36rem; border-radius:50%; background:#ddbd80; box-shadow:inset 0 1px 1px #ffe4a7,0 1px 1px #081b1b; }
.preview { min-height:2.8rem; padding:.6rem 1.12rem; color:#173735; background:#efac6e; border:1px solid #ffc78c; border-radius:.4rem; box-shadow:inset 0 1px 0 #ffe3af88,0 3px 0 #925f3b,0 5px 10px #03262955; }
.preview .icon { width:1.12rem; height:1.12rem; }
.preview:hover { background:#ffc28b; }
.preview:active { transform:translateY(1px); box-shadow:0 1px 0 #925f3b; }
.notice { font-size:.9rem; margin:.8rem 0 0; max-width:32em; }
.postcard { position:relative; width:97%; margin:.5rem auto 0; padding:clamp(.62rem,1vw,.95rem); padding-bottom:0; color-scheme:light; background:#fff1cf; transform:rotate(2.4deg); border:1px solid #e0cda5; box-shadow:1px 2px 1px #0b242c66,4px 10px 16px -4px #061c2490; }
.postcard-art { display:block; width:100%; height:auto; }
.postcard-play { position:absolute; inset:0; z-index:1; display:block; width:100%; height:100%; padding:0; border:0; background:transparent; }
.postcard-play-mark { position:absolute; display:grid; place-items:center; right:clamp(1.1rem,2.3vw,1.9rem); top:clamp(1.1rem,2.3vw,1.9rem); width:2.65rem; height:2.65rem; color:#284733; background:#fff2c8; border:3px double currentColor; border-radius:50%; box-shadow:0 2px 0 #213f3199; }
.postcard-play-mark svg { width:1rem; height:1rem; fill:currentColor; }
.postcard-play:focus-visible { outline:3px solid var(--focus); outline-offset:5px; }
.postcard-play:focus-visible .postcard-play-mark { background:#ffde8c; }
@media (hover:hover) {
  .postcard-play:hover .postcard-play-mark { color:#fff2c8; background:#284733; box-shadow:0 3px 0 #173323aa; }
}
@media (prefers-reduced-motion:no-preference) {
  .postcard-play-mark { transition:background-color .18s,color .18s,box-shadow .18s; }
}
figcaption { min-height:clamp(3.7rem,5.2vw,5rem); display:flex; align-items:center; justify-content:space-between; gap:.5rem; padding:0 .48rem; }
.inscription { display:inline-block; transform:rotate(-2.5deg); color:#3e5442; font:italic 600 clamp(1rem,1.75vw,1.5rem)/1.1 "Brush Script MT","Snell Roundhand",Georgia,cursive; white-space:nowrap; }
.postmark { display:flex; align-items:center; justify-content:flex-end; color:#687965; opacity:.85; transform:rotate(-9deg); width:clamp(5.4rem,10vw,8.9rem); }
.postmark svg { position:relative; width:52%; flex:none; margin-right:-.34rem; }
.seal { flex:none; width:clamp(2.85rem,4.2vw,3.9rem); aspect-ratio:1; border-radius:50%; border:3px double; display:flex; flex-direction:column; justify-content:center; align-items:center; line-height:1; }
.seal b { font:bold clamp(.9rem,1.4vw,1.2rem)/1.1 Georgia,serif; }
.seal small { font:bold clamp(.33rem,.47vw,.44rem)/1.3 "DM Sans",sans-serif; letter-spacing:.11em; }
.schedule {
  position:relative; flex:none; padding:1.65rem 0 clamp(1.3rem,3vh,2.3rem);
  border-top:1px solid #baa778; background:#0b3034e8;
}
.schedule::before {
  content:""; position:absolute; inset:0 0 auto; height:5px; pointer-events:none;
  background:repeating-linear-gradient(90deg,#c3b17f70 0 1px,transparent 1px 16px);
}
.schedule-head { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
h2 { font:800 clamp(1.55rem,2.2vw,2rem)/1.1 var(--display); letter-spacing:-.055em; margin:0; }
.schedule-head h2 { display:flex; align-items:center; gap:.62rem; }
.schedule-head h2 .icon { color:var(--amber); width:1.55rem; height:1.55rem; stroke-width:1.55; }
.local-note { display:flex; align-items:center; gap:.4rem; font-size:.84rem; color:var(--muted); }
.local-note .icon { width:.95rem; height:.95rem; }
.upcoming { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding-block:1.4rem 1.3rem; }
.arrival { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:.8rem; min-height:3.7rem; background:none; border:0; padding:0 clamp(.7rem,1.9vw,1.7rem); text-align:left; }
.arrival:first-child { padding-left:0; }
.arrival:last-child { padding-right:0; }
.arrival + .arrival { border-left:1px dashed #769386; }
.arrival:hover .city { text-decoration:underline; text-underline-offset:3px; }
.stamp { display:grid; place-items:center; background:var(--stamp-bg); color:var(--stamp-ink); width:2.9rem; height:3.35rem; padding:.38rem; transform:rotate(-5deg); mask:linear-gradient(#000 0 0) center / calc(100% - 4px) calc(100% - 4px) no-repeat,radial-gradient(circle at 2px 2px,#000 2px,transparent 2.3px) 0 0 / 5px 5px; }
.stamp-inner { width:100%; height:100%; border:1px solid currentColor; display:grid; place-items:center; }
.stamp .icon { width:1.45rem; height:1.45rem; stroke-width:1.3; }
.arrival:nth-child(1) { --stamp-bg:#d6e4d2; --stamp-ink:#4f765b; }
.arrival:nth-child(2) { --stamp-bg:#ecd6a3; --stamp-ink:#916b2c; }
.arrival:nth-child(3) { --stamp-bg:#d0e3df; --stamp-ink:#517976; }
.arrival:nth-child(2) .stamp { transform:rotate(4deg); }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .stamp { transition:transform .22s cubic-bezier(.2,.7,.2,1); }
  .arrival:hover .stamp { transform:rotate(0) translateY(-2px); }
}
.place-info { display:grid; gap:.02rem; min-width:0; }
.city { font-family:var(--display); font-size:clamp(1rem,1.48vw,1.34rem); font-weight:800; line-height:1.12; letter-spacing:-.04em; overflow-wrap:anywhere; }
.country { color:var(--muted); font-size:.85rem; margin-top:.16rem; line-height:1.2; }
.your-time { color:#f6d49b; font-variant-numeric:tabular-nums; font-size:.89rem; font-weight:700; white-space:nowrap; align-self:center; }
#details { color-scheme:light; --ink:#213e35; --muted:#4d5a4c; --focus:#285b54; --sheet-pad:clamp(1.25rem,4vw,2.25rem); width:min(33rem,calc(100% - 2rem)); max-height:85dvh; padding:var(--sheet-pad); flex-direction:column; color:var(--ink); border:1px solid #b4b49b; border-top:3px solid #365543; border-radius:3px; background:linear-gradient(#f5e1b9f6,#efdbb0f2),url("./assets/paper.png"); box-shadow:0 3px 3px #312b2525,0 1.2rem 4rem #172e2550; }
#details[open] { display:flex; }
#details::backdrop { background:rgb(23 43 33 / 48%); }
.close { position:absolute; z-index:1; top:.35rem; right:.35rem; display:grid; place-items:center; width:2.65rem; height:2.65rem; padding:0; border:0; border-radius:50%; background:transparent; color:var(--ink); font:1.6rem/1 sans-serif; }
.close:hover { color:#90421c; }
.details-head { display:flex; align-items:center; gap:1.25rem; justify-content:space-between; padding-right:1.6rem; }
.details-head h2 { font-size:clamp(1.85rem,4.6vw,2.8rem); overflow-wrap:anywhere; }
.details-head p { margin:.18rem 0 0; color:var(--muted); }
#dialog-pour-time { flex:none; padding:.1rem 0 .1rem 1.25rem; border-left:1px solid #b8b7a2; }
#dialog-pour-time > span,#dialog-arrival > span { display:block; font-size:.84rem; color:var(--muted); }
#dialog-pour-time strong { display:block; font:700 2.4rem/1.1 "Barlow Condensed",sans-serif; }
#dialog-pour-time small { font-size:1.12rem; }
#dialog-arrival { display:flex; align-items:baseline; flex-wrap:wrap; gap:.2rem .8rem; margin-top:1.15rem; padding:.6rem 0; border-block:1px solid #bebda8; }
#dialog-arrival time { font-size:.94rem; font-weight:600; }
.dialog-content { min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-color:#959f8d transparent; }
.dialog-content:not(:empty) { margin-top:1.2rem; }
.dialog-content h3 { margin:0 0 .3rem; font-size:1rem; }
.dialog-content p { margin:0 0 .8rem; }
.dialog-content p:last-child { margin-bottom:0; }
.places-list { margin:0; padding:0; list-style:none; }
.places-list li { display:grid; grid-template-columns:1fr 1fr; align-items:baseline; gap:.3rem; padding:.43rem .15rem .43rem 0; border-bottom:1px solid #d7d3be; overflow-wrap:anywhere; }
.places-list li span { color:var(--muted); text-align:end; font-size:.9rem; }
@media (prefers-reduced-motion:no-preference) {
  #details { opacity:0; transform:translateY(.4rem) rotate(-.5deg); transition:opacity 145ms ease,transform 160ms ease,overlay 160ms allow-discrete,display 160ms allow-discrete; }
  #details[open] { opacity:1; transform:none; }
  #details::backdrop { background-color:transparent; transition:background-color 160ms ease,overlay 160ms allow-discrete,display 160ms allow-discrete; }
  #details[open]::backdrop { background-color:rgb(23 43 33 / 48%); }
  @starting-style { #details[open] { opacity:0; transform:translateY(.55rem) rotate(-.65deg); } }
  @starting-style { #details[open]::backdrop { background-color:transparent; } }
}
@media (max-width:25rem) {
  .details-head { gap:.7rem; padding-right:1.1rem; }
  #dialog-pour-time { padding-left:.7rem; }
  #dialog-pour-time strong { font-size:1.9rem; }
}
@media(max-width:66rem) {
  .hero { gap:2rem; }
  .arrival { gap:.6rem; padding-inline:1rem; }
  .your-time { font-size:.79rem; }
  .stamp { width:2.45rem; height:2.85rem; }
}
@media(max-width:49rem) {
  .shell { width:min(100% - 2.5rem,38rem); }
  .masthead-inner { min-height:4.4rem; }
  .brand { font-size:1.28rem; gap:.45rem; }
  .brand img { width:2.2rem; height:2.2rem; }
  nav { gap:.85rem; }
  .how { width:2rem; height:2.5rem; }
  .how span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .how .icon { width:1.17rem; height:1.17rem; }
  .sound { min-width:0; padding:.45rem .72rem; font-size:.81rem; gap:.4rem; }
  .sound .icon { width:1rem; }
  body { background-position:65% top; }
  .hero { grid-template-columns:1fr; gap:2rem; padding:2.2rem 0 2.65rem; }
  h1 { font-size:clamp(3.55rem,10.5vw,5rem); margin:.9rem 0 1.05rem; }
  .destination { font-size:1.02rem; }
  .countdown { margin:1.3rem 0 1.12rem; }
  .postcard { width:92%; max-width:31rem; margin:.4rem auto 0; padding:.55rem .55rem 0; transform:rotate(2deg); }
  figcaption { min-height:3.5rem; }
  .inscription { font-size:clamp(1.05rem,3.8vw,1.45rem); }
  .postmark { width:6.6rem; }
  .upcoming { grid-template-columns:1fr; padding:.6rem 0 0; }
  .arrival, .arrival:first-child, .arrival:last-child { padding:.85rem .1rem; gap:.85rem; }
  .arrival + .arrival { border-left:0; border-top:1px dashed #769386; }
  .city { font-size:1.14rem; }
  .your-time { font-size:.92rem; }
  .schedule { padding-top:1.2rem; }
}
@media(max-width:27rem) {
  .masthead-inner { gap:.4rem; }
  .brand { font-size:1.13rem; }
  .brand img { width:2rem; height:2rem; }
  nav { gap:.25rem; }
  .sound { padding:.42rem .6rem; }
}
@media(max-width:23rem) {
  .sound { width:2.6rem; height:2.6rem; padding:0; }
  .sound span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .shell { width:calc(100% - 1.75rem); }
  .brand { font-size:1.08rem; }
  nav { gap:.2rem; }
  h1 { font-size:3.15rem; }
  .tile { width:3rem; }
  .local-note { font-size:.75rem; }
  .inscription { font-size:1rem; }
}

[hidden] { display:none !important; }
body.is-five { background-image:linear-gradient(115deg,#ac742925,transparent 65%),url("./assets/harbor-chart.webp"); }
.is-five .live-label { color:#ffe4a5; }
.is-five .live-label i { background:#ffbe65; box-shadow:0 0 0 3px #f7b5602c; }
.now-time { display:flex; align-items:center; gap:.9rem; width:max-content; margin:1.3rem 0; padding:.4rem 1.15rem .55rem; border-block:3px double #caa66a; color:var(--ink); }
.now-time > .icon { width:2.4rem; height:2.4rem; color:var(--amber); }
.now-time > span { font:700 3.75rem/1 "Barlow Condensed",sans-serif; }
.now-time small { font-size:1.5rem; }
