:root {
  --ink: #2c5c54;
  --muted: #6d847c;
  --green: #3e7a6c;
  --green-deep: #2f6158;
  --paper: #f7f3ea;
  --card: #fffdf8;
  --line: #e4ddd0;
  --sea: #7eb4d4;
  --sand: #e7d3a4;
  --wood: #c4924a;
  --shadow: 0 14px 32px #2c5c5414;
  --radius: 22px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", Palatino, "Songti SC", "PingFang SC", serif;
  line-height: 1.65;
}
button, input, select, textarea { font: inherit; color: inherit; }
button, .btn { cursor: pointer; }
a { color: var(--green-deep); }
h1, h2, h3 { font-weight: 600; letter-spacing: .01em; }
img, video { max-width: 100%; }
.skip { position: absolute; left: 12px; top: -40px; background: var(--ink); color: white; padding: 8px 12px; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--wood); outline-offset: 3px; }
.topbar {
  position: sticky; top: 0; z-index: 5;
  background: #f7f3eae6; border-bottom: 1px solid #e7e0d4;
  backdrop-filter: blur(12px);
}
.nav, main { max-width: 1100px; margin: auto; }
.nav { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 12px 20px; }
.brand { flex: none; color: var(--green-deep); text-decoration: none; font-weight: 700; white-space: nowrap; letter-spacing: .04em; }
.brand small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .12em; }
.nav-links { display: flex; gap: 4px; align-items: center; overflow: auto; min-width: 0; }
.nav-links a, .nav-links button {
  flex: none; white-space: nowrap; color: var(--ink); text-decoration: none;
  padding: 8px 12px; border-radius: 999px; background: transparent; border-color: transparent;
}
.nav-links a:hover, .nav-links button:hover { background: #efe8da; }
.nav-links a[aria-current="page"] { background: var(--green-deep); color: white; }
.nav-links .btn, .nav-links button.btn {
  background: var(--green); color: white; border-color: var(--green);
}
.demo-bar, .flash { margin: 0; padding: 8px 20px; background: #f3ead4; color: #6d5430; }
.flash.alert { background: #f8e4d4; }
main { padding: 8px 20px 72px; }
h2 { font-size: 22px; margin: 0 0 8px; }
h3 { margin: 0 0 4px; font-size: 18px; }
.hero, .actions, .tabs, .filters, .cards { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.cards { align-items: stretch; }
.card, .note, .panel, form:not(.button_to):not(.plain) {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.card { display: block; color: inherit; text-decoration: none; min-width: 180px; }
.panel.quiet { background: #f3f6ef; box-shadow: none; }
.panel.warn { background: #f8f1e4; }
.panel.alert { background: #f8efe9; }
.btn, button, input[type="submit"] {
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 8px 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
}
.btn.primary, button.primary, input.primary { background: var(--green); color: white; border-color: var(--green); }
.btn.light { background: white; color: var(--green-deep); border-color: white; border-radius: 999px; padding: 10px 18px; }
.btn.soft { background: #eef4ee; border-color: transparent; }
.btn.danger { border-color: #e3c8c2; color: #8a4b3c; }
.btn.small { padding: 7px 11px; font-size: 13px; }
.actions form.button_to, form.plain { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.actions form.button_to { display: inline; }
form.join-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; width: 100%; }
form.join-form .check { margin: 0; }
h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.25; margin: 6px 0; }
.eyebrow { letter-spacing: .18em; text-transform: uppercase; color: var(--green); font-size: 12px; }
.kicker { font-size: 12px; color: var(--green); letter-spacing: .08em; margin: 0; }
.muted, .small { color: var(--muted); }
.lede { max-width: 62ch; }
.meta { color: #7d8d84; font-size: 12px; }
label, input, textarea, select { display: block; width: 100%; margin: 8px 0; }
textarea { min-height: 120px; }
.check { display: flex; gap: 8px; align-items: flex-start; width: auto; font-weight: 500; }
.check input { width: auto; margin-top: 6px; }
.filters input, .filters select { width: auto; min-width: 10rem; margin: 0; }
.help { background: #fff6e6; border-radius: 12px; padding: 12px 14px; color: #6a5a3e; font-size: 14px; margin-top: 12px; }
.pill {
  display: inline-flex; align-items: center;
  font-size: 12px; padding: 2px 8px; border-radius: 999px;
  background: #e7f0ea; color: #2f6158;
}
.pill.ok { background: #e5f4ea; color: #246348; }
.pill.quiet { background: #eef3f6; color: #667884; }
.pill.alert { background: #f8e8e2; color: #8a4b3c; }
.pill.wait { background: #f8f0d8; color: #7a6232; }
.owner-menus { margin: 0 0 16px; }
.owner-menus .subnav { margin: 0 0 8px; }
.owner-menus .subnav:last-child { margin-bottom: 0; }
.subnav { display: flex; gap: 6px; overflow: auto; margin: 0 0 16px; align-items: center; }
.subnav-name { flex: none; font-weight: 700; color: var(--green-deep); padding-right: 6px; }
.subnav a {
  flex: none; text-decoration: none; color: var(--ink); background: white;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font-size: 13px;
}
.subnav a[aria-current="page"] { background: var(--green-deep); color: white; }
.subnav .button_to { margin: 0; }
.subnav .button_to button {
  flex: none; color: var(--ink); background: white;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font-size: 13px;
}
.subnav .button_to button.danger { border-color: #e3c8c2; color: #8a4b3c; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.layout.island-home { grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); }
.stack { display: grid; gap: 14px; }
.timeline { padding: 10px 0; border-bottom: 1px solid var(--line); }
.timeline:last-of-type { border-bottom: 0; }
.offering {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow);
}
.offering p:last-child { margin-bottom: 0; color: var(--muted); }
.page-intro { margin-bottom: 8px; }
.follow-strip { display: flex; gap: 10px; overflow: auto; padding: 2px 0 8px; }
.follow-chip {
  position: relative; flex: none; min-width: 160px; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); background: white; border-radius: 15px; padding: 10px 14px;
}
.follow-chip b, .follow-chip span { display: block; }
.follow-chip span { color: var(--muted); font-size: 12px; }
.dot {
  position: absolute; right: 10px; top: 10px; font-style: normal; font-size: 10px;
  background: var(--wood); color: white; border-radius: 999px; padding: 1px 6px;
}
.harbor { display: grid; gap: 18px; }
.harbor-title { padding: 18px 0 6px; }
.harbor-title h1 { margin: 0; color: var(--green); font-size: clamp(32px, 4vw, 44px); letter-spacing: .04em; }
.harbor-island {
  background: var(--card); border: 1px solid var(--line); border-radius: 28px;
  box-shadow: var(--shadow); overflow: hidden;
}
.harbor-head {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; text-decoration: none; color: inherit;
  background: linear-gradient(180deg, #e5f3fa 0%, #fffdf8 100%);
}
.harbor-head .land {
  width: 74px; height: 48px; flex: none; margin: 0;
  box-shadow: 0 4px 0 #e7d7a4; font-size: 0; color: transparent;
}
.harbor-head .land:after { display: none; }
.harbor-head.visual-wind .land { background: radial-gradient(ellipse at 40% 30%, #d5eee8, transparent 58%), #8fb9b0; }
.harbor-head.visual-hub .land { background: radial-gradient(ellipse at 40% 30%, #d7ebc4, transparent 58%), #7eaa78; }
.harbor-head.resting .land { filter: saturate(.7); background: #c9d3bf; }
.harbor-head.suspended .land { background: #d7d3c8; border-color: #e4d7c4; }
.harbor-name { min-width: 0; flex: 1; }
.harbor-name strong, .harbor-name .motto { display: block; }
.harbor-name strong { font-size: 22px; line-height: 1.3; }
.harbor-name .motto { color: var(--muted); font-size: 14px; }
.harbor-head .pill { flex: none; }
.harbor-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.85fr); }
.harbor-col { padding: 4px 18px 12px; }
.harbor-col + .harbor-col { border-left: 1px solid var(--line); }
.harbor-body h2 { margin: 8px 8px 0; font-size: 13px; letter-spacing: .08em; color: var(--muted); }
.harbor-line {
  display: block; margin-top: 4px; padding: 8px 8px; border-radius: 12px;
  text-decoration: none; color: inherit;
}
.harbor-line:hover { background: #f3f6ef; }
.harbor-line strong, .harbor-line span, .harbor-line small { display: block; }
.harbor-line span, .harbor-line small { color: var(--muted); font-size: 13px; }
.harbor-news { margin-top: 8px; }
.harbor-news-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 28px;
  padding: 18px 20px 8px; box-shadow: var(--shadow);
}
.harbor-news .feed li {
  display: grid; grid-template-columns: 11rem 5.5rem minmax(0, 1fr);
  gap: 8px 16px; align-items: baseline;
}
.harbor-news .feed time { color: var(--muted); font-size: 13px; }
.harbor-empty {
  background: var(--card); border: 1px solid var(--line); border-radius: 28px;
  padding: 28px 24px; box-shadow: var(--shadow);
}
.harbor-empty p { max-width: 42em; }
.atlas {
  width: 100vw; margin: 0 calc(50% - 50vw) 8px; text-align: center;
}
.atlas-title { padding: 28px 20px 18px; }
.atlas-title h1 {
  margin: 0; color: #3e7a6c; font-size: clamp(36px, 5vw, 56px); font-weight: 700; letter-spacing: .04em;
}
.atlas-title p { margin: 10px auto 0; max-width: 36em; color: #5f7a72; font-size: 18px; }
.atlas-foot {
  display: flex; justify-content: center; gap: 28px; flex-wrap: wrap;
  padding: 16px 20px 8px; color: var(--ink);
}
.atlas-foot span { display: inline-flex; align-items: center; gap: 8px; }
.atlas-motto { margin: 4px 0 0; color: var(--green-deep); font-size: 20px; }
main > section { margin-top: 28px; }
.atlas { margin-top: 0; }
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), textarea, select {
  background: white; border: 1px solid #e0d8c8; border-radius: 12px; padding: 10px 12px;
}
.section-bar h2 { margin: 0; font-size: 18px; }
.legend, .map-hint { font-size: 12px; color: #5d8986; }
.map-foot { margin: 0; padding: 10px 18px 14px; }
.ocean {
  position: relative; height: 640px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(ellipse at 18% 22%, #d7eef8 0%, transparent 28%),
    radial-gradient(ellipse at 78% 78%, #3f8fbe 0%, transparent 36%),
    linear-gradient(180deg, #c5e4f4 0%, #8ec0dc 24%, #5aa4cc 62%, #4b96c0 100%);
}
.ocean:before {
  content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background-image: radial-gradient(ellipse at 50% 100%, transparent 55%, #ffffffaa 58%, transparent 63%);
  background-size: 120px 40px;
}
.routes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.routes line { stroke: #f7f1e4; stroke-width: 1.5; stroke-dasharray: 2 7; vector-effect: non-scaling-stroke; }
.boat { position: absolute; width: 42px; height: 28px; pointer-events: none; }
.boat.a { left: 8%; top: 46%; }
.boat.b { right: 10%; top: 18%; }
.boat.c { left: 62%; bottom: 12%; }
.map-hint { position: absolute; left: 16px; top: 12px; margin: 0; color: #f7f3ea; }
.ocean .island-note { color: #f7f3ea; text-shadow: 0 1px 2px #24586a66; }
.compass { position: absolute; right: 18px; bottom: 14px; color: #fff6df; text-align: center; font-size: 22px; line-height: 1; }
.compass small { display: block; font-size: 10px; margin-bottom: 4px; }
.isle {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  width: 150px; text-decoration: none; color: var(--ink); text-align: center;
}
.land {
  width: 112px; height: 74px; margin: auto; position: relative;
  border: 8px solid #f3e7c4;
  border-radius: 46% 54% 42% 58% / 42% 48% 58% 52%;
  background:
    radial-gradient(circle at 30% 38%, #8fbf62 0 7px, transparent 8px),
    radial-gradient(circle at 68% 32%, #6ea84e 0 9px, transparent 10px),
    linear-gradient(#b7d98a 0 58%, #d9c48a 58% 100%);
  box-shadow: 0 8px 0 #e7d7a4, 0 0 0 7px #ffffff40;
  display: flex; align-items: center; justify-content: center;
  color: var(--green-deep); font-size: 22px;
}
.isle:nth-of-type(2n) .land { border-radius: 55% 43% 58% 38%; }
.isle:hover .land, .isle:focus-visible .land { transform: translateY(-3px); }
.isle.hub { width: 210px; }
.isle.hub .land { width: 196px; height: 124px; font-size: 28px; }
.land:after {
  content: ""; position: absolute; left: 18%; bottom: -16px; width: 34px; height: 7px;
  background: #c9a56a; border-radius: 2px; box-shadow: 10px 7px 0 -1px #b99458;
}
.isle.visual-wind .land { background: radial-gradient(ellipse at 40% 30%, #d5eee8, transparent 58%), #8fb9b0; }
.isle.visual-hub .land { background: radial-gradient(ellipse at 40% 30%, #d7ebc4, transparent 58%), #7eaa78; }
.isle.resting .land, .island-card.resting .land { filter: saturate(.7); background: #c9d3bf; }
.isle.suspended .land, .island-card.suspended .land { background: #d7d3c8; border-color: #e4d7c4; }
.isle.shadow { width: 90px; pointer-events: none; }
.isle.shadow .land { width: 72px; height: 40px; background: #d5e4c8; border-color: #e7f3f1; box-shadow: none; opacity: .55; }
.isle .land, .isle.hub .land { font-size: 0; color: transparent; }
.island-name {
  display: table; margin: 8px auto 0; padding: 2px 10px; background: #fffaf0ee;
  border-radius: 7px; font-size: 13px; font-weight: 700;
}
.island-note { display: block; margin-top: 3px; font-size: 11px; color: #426c66; }
.island-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.island-card {
  display: grid; grid-template-columns: 96px 1fr; gap: 8px; align-items: center;
  text-decoration: none; color: inherit; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px;
  box-shadow: var(--shadow);
}
.island-card .land { width: 86px; height: 52px; box-shadow: 0 4px 0 #d6c994; }
.island-card-copy { min-width: 0; }
.island-card-copy strong, .island-card-copy span, .island-card-copy small { display: block; }
.island-card-copy span, .island-card-copy small { color: var(--muted); font-size: 13px; }
.island-cover {
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  border-radius: 28px; padding: 22px; margin: 20px 0 16px; color: var(--ink); overflow: hidden;
}
.island-cover .mark {
  margin: -22px -22px 16px; padding: 18px 22px 8px;
  background: linear-gradient(#d7ebf6 0 58%, #9ccc74 58% 80%, #f0e2b4 80% 100%);
}
.island-cover.visual-hub .mark { background: linear-gradient(#c5e4f4 0 55%, #8fbf62 55% 80%, #ead7a4 80% 100%); }
.island-cover.visual-wind .mark { background: linear-gradient(#d5eef6 0 58%, #a9c98a 58% 80%, #f3e6c0 80% 100%); }
.island-cover .mark { margin-bottom: 8px; }
.island-cover .mark .land { margin: 0; }
.cover { width: 100%; border-radius: 16px; max-height: 280px; object-fit: cover; margin-bottom: 12px; }
.sheet { max-width: 760px; display: grid; gap: 14px; }
.roster-wrap { overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.roster { width: 100%; border-collapse: collapse; }
.roster th, .roster td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.roster th { color: var(--muted); font-size: 13px; font-weight: 600; }
.roster tr:last-child td { border-bottom: 0; }
.roster .pill { margin-left: 8px; }
.roster-action { text-align: right; }
.roster-action form.button_to { display: inline; margin: 0; }
.member-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.member-row .pill { margin-left: 8px; }
.desk { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 18px 18px 8px; margin: 0 0 18px; box-shadow: var(--shadow); }
.desk-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; flex-wrap: wrap; }
.desk-head h2 { margin: 0; }
.desk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; margin: 14px 0 8px; }
.desk-stat { background: #f3f6ef; border-radius: 16px; padding: 12px 14px; }
.desk-stat b { display: block; color: var(--green-deep); font-size: 22px; line-height: 1.2; }
.desk-stat span { color: var(--muted); font-size: 13px; }
.desk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 18px; margin-top: 8px; }
.desk-grid p { margin: 0 0 8px; }
.feed { list-style: none; padding: 0; }
.feed li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.feed.log li { display: grid; grid-template-columns: 12rem 6rem minmax(0, 1fr) auto; gap: 8px 16px; align-items: baseline; }
.feed.log time, .feed.log .meta { color: var(--muted); font-size: 13px; }
.reduce-motion *, .reduce-motion *::before { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (max-width: 800px) {
  .layout, .layout.island-home { grid-template-columns: 1fr; }
  .harbor-body { grid-template-columns: 1fr; }
  .harbor-col + .harbor-col { border-left: 0; border-top: 1px solid var(--line); }
  .harbor-news .feed li { grid-template-columns: 1fr; gap: 2px; }
  .feed.log li { grid-template-columns: 1fr 1fr; }
  .feed.log time { grid-column: 1 / -1; }
  .atlas-title h1 { font-size: 34px; }
  .routes, .boat, .land:after { display: none; }
  .ocean { height: auto; display: grid; gap: 8px; padding: 16px; background: linear-gradient(180deg, #d5ebf6, #8ebcda); }
  .ocean .island-note { color: #f7f3ea; text-shadow: none; }
  .ocean:before, .map-hint, .compass { display: none; }
  .isle, .isle.hub, .isle.shadow {
    position: static; transform: none; width: auto;
    display: grid; grid-template-columns: 84px 1fr; align-items: center; text-align: left;
  }
  .isle .land { margin: 0; }
  .island-name { margin: 0; display: inline; background: none; padding: 0; }
  .isle.shadow { display: none; }
}
