:root {
  color-scheme: dark;
  --sea: #071d2b;
  --panel: #0d2b3e;
  --ink: #f7fafb;
  --green: #a6ebee;
  --line: #46636b;
  --scene-ratio: .5628;
  --tab-limit: 132px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html,body { margin: 0; min-height: 100%; background: var(--sea); color: var(--ink); font-family: system-ui,sans-serif; }
body { min-height: 100dvh; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#island {
  --frame: min(100%, calc((100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom)) / (1 / var(--scene-ratio) + 162 / 788)));
  min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
#scene { position: relative; width: var(--frame); flex: none; line-height: 0; }
#art { display: block; width: 100%; height: auto; }
#overlays,#dock-links { position: absolute; inset: 0; }
.layer,.hot { position: absolute; display: block; margin: 0; }
.layer { pointer-events: none; }
.hot { appearance: none; border: 0; padding: 0; color: inherit; background: transparent; cursor: pointer; border-radius: 2px; }
.hot:focus-visible, #dock a:focus-visible { outline: 3px solid #fff0a4; outline-offset: -3px; }
#dock { width: var(--frame); flex: none; line-height: 0; position: relative; }
#dock img { height: auto; width: 100%; display: block; }
#dock-links { display: grid; grid-template-columns: repeat(5,1fr); }
#dock-links a { display: block; }
.width-view #scene { width: 100%; }
.width-view #dock { width: min(100%, min(760px, 65dvh)); position: sticky; bottom: env(safe-area-inset-bottom); }
#island.member-page { justify-content: flex-start; --frame: min(100%,700px,calc(100dvh * .72)); }
.member-page #scene { overflow: hidden; }
.member-page #scene.header-cut #art { position: absolute; top: 0; left: 0; }
#page-content { width: var(--frame); flex: 1; display: flex; flex-direction: column; gap: 9px; padding: 12px; background: var(--sea) url('assets/reef-kraken.webp') center bottom / cover; }
#page-content .member-body { flex: 1; }
.member-body,.feature-panel { background: #0d2b3ef7; color: #f5fbfd; border: 1px solid var(--line); border-radius: 7px; padding: 13px; }
.member-body h2,.feature-panel h2 { font-size: 1.1rem; margin: 0 0 .45rem; }
.member-body p { overflow-wrap: anywhere; margin: .45rem 0; line-height: 1.45; }
.member-body article + article { margin-top: .65rem; border-top: 1px solid var(--line); padding-top: .65rem; }
.member-body article p { white-space: pre-wrap; }
.member-body a,dialog a { color: var(--green); }
.member-body time { font-size: .8rem; }
button,input,select,textarea { font: inherit; }
dialog { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 0; width: min(92vw,30rem); max-height: 84dvh; }
dialog::backdrop { background: #031324c9; }
.dialog-top { display: flex; gap: 15px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: .7rem 1rem; background: var(--panel); position: sticky; top: 0; z-index: 1; }
.dialog-top h2 { margin: 0; font-size: 1.13rem; }
.dialog-top button,.member-body button,dialog form button,.feature-panel button { cursor: pointer; background: #123c50; color: #dcf9ff; padding: .55em .8em; border: 1px solid #538494; border-radius: 5px; }
.info { padding: 1rem; line-height: 1.5; }
.info p { margin: 0 0 .7em; }
.info a,.info button { display: block; width: fit-content; margin: .6em 0; }
.info form { display: grid; gap: 10px; }
.info form label { display: grid; gap: 4px; }
.info input,.info textarea,.info select { padding: 9px; background: #123c50; color: white; border: 1px solid #538494; border-radius: 4px; }
.info textarea { min-height: 88px; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline: 3px solid #fff0a4; outline-offset: 2px; }

/* The center text is live. Only the unlettered paper and the original scroll edges are painted. */
.member-body { background: transparent; border: 0; padding: 0; color: #321f13; }
.member-body > h2,.member-body > a,.member-body > button { color: white; background: var(--panel); padding: .5em .7em; margin: .25em 0; }
.member-body article,.member-body .member-message {
  color: #321f13; background: #efcf95 url('assets/cove-parchment-paper.png') center / 100% 100% no-repeat;
  background-clip: padding-box; border: solid transparent; border-width: 10px 16px;
  border-image: url('assets/cove-parchment-margins.png') 12 26 / 10px 16px stretch;
  padding: 9px 6px; margin: 0 0 .65rem; overflow-wrap: anywhere;
}
.member-body article + article { border-top: solid transparent 10px; }
.member-body article a,.member-message a { color: #382a16; font-weight: 700; }
.member-page #page-content { justify-content: flex-start; }
.member-page #dock { position: sticky; bottom: 0; z-index: 2; }
.shore {display:none}
.harbor-home .shore {display:block; color:#ecf1ec; padding:1.3rem; min-width:0; width:100%; max-width:24rem; margin:auto}
.harbor-home {display:grid; grid-template-areas:"island" "partners" "guide"}
.harbor-home #island {grid-area:island;min-width:0}
.partners {grid-area:partners}.guide {grid-area:guide}
.shore h2,.shore h3 {font-family:Georgia,serif;line-height:1.15;margin:0}
.shore h2 {font-size:clamp(1.55rem,2.4vw,2.15rem);color:#f4d6a0;border-bottom:1px solid #9c8051;padding-bottom:.65rem}
.shore article,.shore section {background:#102e39;border:1px solid #36505a;margin-top:.85rem;overflow:hidden}
.shore article>div,.shore section {padding:1rem}
.shore h3 {font-size:1.35rem}.shore p {font-size:1rem;line-height:1.48;margin:.55rem 0 .8rem;color:#deebe9}
.shore a {color:#b9ebe6;font-weight:650;display:block;padding:.6rem 0;text-underline-offset:.2em}
.shore a.contact {background:#eed1a2;color:#122d36;padding:.65rem .85rem;width:fit-content;text-decoration:none}
.shore a:hover,.shore a:focus-visible {text-decoration:underline}
.shore article img {width:100%;height:5.7rem;object-fit:cover;display:block}
.shore article>.route-art {height:5.7rem;background:linear-gradient(90deg,#052333ed,#07314080),url('assets/water-map-small.webp') center/cover;display:flex;flex-direction:column;justify-content:center;color:white}
.route-art span {font:bold italic 2.1rem/1 system-ui}.route-art small {letter-spacing:.15em}
@media(min-width:960px){.harbor-home {grid-template-areas:"partners island guide";grid-template-columns:1fr min(52vw,50.4dvh) 1fr;align-items:center;padding:0 clamp(8px,2vw,32px);gap:clamp(8px,1.5vw,24px)}}
.harbor-home {
  background-color:#07506a;
  background-image:url('assets/reef-kraken.webp');
  background-size:cover;
  background-position:center;
}
.harbor-home .shore h2 {
  background:#092c39;
  padding:.55rem .85rem;
  border-top:2px solid #ad905f;
}
@media (min-width:960px) {
  .harbor-home {
    background-image:url('assets/reef-kraken.webp'),url('assets/reef-kraken.webp');
    background-size:50% auto;
    background-repeat:repeat-y;
    background-position:left top,right top;
  }
}
.harbor-home .shore {
  background:#61391f url('assets/bulletin-grain.webp') repeat;
  border:4px ridge #93683e;
  padding:clamp(.85rem,1.6vw,1.4rem);
  box-shadow:0 5px 16px #091c2399,inset 0 0 9px #321c12;
}
.harbor-home .shore h2 {
  background:#3b2518;color:#ffe8b3;border:1px solid #b58b54;
  text-align:center;font: bold small-caps 1.7rem Georgia,serif;letter-spacing:.025em;
}
.shore article,.shore section {
  position:relative;padding:1.5rem 1rem .9rem;color:#322014;
  background:#efd4a0 url('assets/cove-parchment-paper.png') center/100% 100%;
  border:6px solid #ceaa72;border-image:url('assets/cove-parchment-margins.png') 12 26 / 7px 10px stretch;
  box-shadow:1px 3px 5px #2f1b12;
}
.shore article::before,.shore section::before {
  content:"";position:absolute;top:1px;left:calc(50% - 5px);width:10px;height:10px;
  background:linear-gradient(145deg,#aaa397,#49433a 60%,#302a23);transform:rotate(-12deg);
  border:1px solid #544d43;box-shadow:2px 3px 1px #634c31;pointer-events:none;
}
.shore article>div:not(.route-art){padding:.75rem 0 0}
.shore p {color:#473221}
.shore a {color:#244345}
.shore a.contact {color:#fff2cc;background:#543519;border:1px solid #83613e}
@media(max-width:959px){.harbor-home .shore{width:min(94%,34rem);margin:.75rem auto}}
