@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;500;700&family=Zen+Maru+Gothic:wght@400;700&display=swap');

:root { --font-zen-kaku: 'Zen Kaku Gothic New'; --font-zen-maru: 'Zen Maru Gothic'; }

:root {
  --jade: #2e7d6b;
  --jade-deep: #1f5a4d;
  --jade-soft: #e2efe9;
  --jade-mist: #eef4f1;
  --paper: #f4f6f3;
  --paper-card: #fbfcfa;
  --ink: #173a36;
  --ink-soft: #3f5d57;
  --muted: #7c938c;
  --line: #dde6e1;
  --radius: 14px;
  --radius-sm: 10px;
  --col: min(720px, calc(100% - 40px));
  --shadow: 0 16px 40px rgba(23, 58, 54, 0.1);
  --shadow-soft: 0 8px 20px rgba(23, 58, 54, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, var(--jade-mist), transparent 22rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-zen-kaku), ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  background: var(--jade-deep);
  color: var(--paper);
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-zen-kaku), system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--jade);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ---------- Slim dock header ---------- */
.dock-header {
  background: rgba(244, 246, 243, 0.86);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.dock-bar {
  width: var(--col);
  margin: 0 auto;
  padding: 14px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.wordmark-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--jade-soft);
  color: var(--jade-deep);
}

.wordmark-text strong {
  display: block;
  font-family: var(--font-zen-maru), system-ui, sans-serif;
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.wordmark-text small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.72rem;
}

.dock-nav {
  display: flex;
  gap: 20px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.dock-nav a:hover {
  color: var(--jade-deep);
}

/* Jade route line running under the header (dock signature) */
.route-line {
  position: relative;
  width: var(--col);
  margin: 0 auto;
  height: 9px;
}

.route-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 4px;
  height: 2px;
  background: linear-gradient(90deg, var(--jade), var(--jade-soft));
}

.route-node {
  position: absolute;
  top: 1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--jade);
}

.route-node:nth-child(1) {
  left: 0;
}
.route-node:nth-child(2) {
  left: 50%;
}
.route-node:nth-child(3) {
  right: 0;
}

/* ---------- Narrow content column ---------- */
main {
  width: var(--col);
  margin: 0 auto;
}

/* ---------- Lead (narrow, left aligned note) ---------- */
.lead {
  padding: 52px 0 36px;
}

.lead h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  line-height: 1.5;
  max-width: 30ch;
}

.lead-lede {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.95;
}

.lead-visual {
  margin-top: 30px;
  height: clamp(180px, 30vw, 280px);
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(23, 58, 54, 0.04), rgba(23, 58, 54, 0.2)),
    url("/images/jadedock-lead.jpg") center / cover no-repeat,
    linear-gradient(135deg, #3a9582, #2e7d6b 55%, #1f5a4d);
  box-shadow: var(--shadow);
}

/* ---------- Section heading ---------- */
.band-heading {
  margin-bottom: 18px;
}

.band-heading h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
}

.band-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.areas,
.featured,
.recent,
.about {
  padding: 40px 0;
}

/* ---------- Route list (dock signature) ---------- */
.route-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.route-list::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 18px;
  bottom: 30px;
  width: 2px;
  background: linear-gradient(180deg, var(--jade), var(--jade-soft));
}

.route-stop {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 18px;
  padding: 8px 0 24px;
}

.route-stop:last-child {
  padding-bottom: 0;
}

.route-index {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-card);
  border: 2px solid var(--jade);
  color: var(--jade-deep);
  font-family: var(--font-zen-maru), system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
}

.route-body h3 {
  margin: 6px 0 6px;
  font-size: 1.12rem;
}

.route-body p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.85;
  font-size: 0.96rem;
}

/* ---------- Featured note ---------- */
.featured-note {
  display: block;
  position: relative;
  margin-top: 14px;
  padding: 26px 28px 26px 32px;
  background: var(--jade-soft);
  border: 1px solid #c9ddd4;
  border-radius: var(--radius);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.featured-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--jade);
}

.featured-note:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.featured-chip {
  display: inline-block;
  color: var(--jade-deep);
  background: var(--paper-card);
  border: 1px solid #c9ddd4;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.featured-note h2 {
  margin: 12px 0 10px;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.46;
}

.featured-note p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.85;
  font-size: 0.98rem;
}

.featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--jade-deep);
  font-weight: 700;
  font-size: 0.92rem;
}

.featured-cta::after {
  content: "›";
  font-size: 1.1rem;
}

/* ---------- Recent notes (stacked rows) ---------- */
.note-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.note-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.note-row:hover {
  border-color: var(--jade);
  transform: translateX(3px);
}

.note-chip {
  align-self: flex-start;
  color: var(--jade-deep);
  background: var(--jade-soft);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.note-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.note-main strong {
  font-size: 1.04rem;
  line-height: 1.5;
  color: var(--ink);
}

.note-desc {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.6;
}

.note-date {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

/* ---------- About note ---------- */
.about h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  margin-bottom: 16px;
}

.about-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.about-list li {
  position: relative;
  padding: 15px 18px 15px 40px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  line-height: 1.8;
  font-size: 0.95rem;
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 1.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--jade);
}

/* ---------- Footer ---------- */
.site-footer {
  width: var(--col);
  margin: 30px auto 0;
  padding: 28px 0 52px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-mark {
  display: block;
  font-family: var(--font-zen-maru), system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--ink);
}

.footer-desc {
  margin: 8px 0 16px;
  max-width: 48ch;
  line-height: 1.75;
  font-size: 0.9rem;
}

.footer-disclosure {
  display: inline-block;
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--jade-soft);
  color: var(--jade-deep);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---------- Article (narrow single column) ---------- */
.article-shell {
  padding: 30px 0 72px;
}

.breadcrumb {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--jade-deep);
}

.article-body {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(24px, 5vw, 46px);
  box-shadow: var(--shadow-soft);
}

.article-chip {
  display: inline-block;
  color: var(--jade-deep);
  background: var(--jade-soft);
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.article-head h1 {
  margin: 14px 0 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.46;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.86rem;
}

/* Lead note: route-marked, distinct from a boxed summary */
.note-lead {
  position: relative;
  margin: 26px 0 4px;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--jade);
}

.note-lead-kicker {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--jade-deep);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.note-lead p {
  margin: 0;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.9;
}

.article-content {
  margin-top: 28px;
  color: #1f4641;
  font-size: 1.01rem;
  line-height: 2;
}

.article-content h2 {
  margin: 38px 0 14px;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  padding-left: 14px;
  border-left: 4px solid var(--jade);
}

.article-content p {
  margin: 0 0 18px;
}

.article-content a {
  color: var(--jade-deep);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--jade);
  text-underline-offset: 3px;
}

.article-content a:hover {
  text-decoration-color: var(--jade-deep);
}

/* Themed list: jade node markers (dock motif) */
.article-content ul,
.article-content ol {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.article-content ul li,
.article-content ol li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.article-content ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--jade);
  background: var(--paper-card);
}

.article-content ol {
  counter-reset: jade-ol;
}

.article-content ol li {
  counter-increment: jade-ol;
}

.article-content ol li::before {
  content: counter(jade-ol);
  position: absolute;
  left: 0;
  top: 0.1em;
  color: var(--jade-deep);
  font-weight: 700;
  font-size: 0.86rem;
}

.article-content blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--jade);
  background: var(--jade-mist);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--jade-deep);
  font-family: var(--font-zen-maru), serif;
  font-size: 1.08rem;
  line-height: 1.85;
}

.article-content blockquote p {
  margin: 0;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 0.93rem;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.article-content th,
.article-content td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.article-content th:last-child,
.article-content td:last-child {
  border-right: 0;
}

.article-content tbody tr:last-child td {
  border-bottom: 0;
}

.article-content th {
  background: var(--jade-soft);
  color: var(--jade-deep);
  font-weight: 700;
}

.article-content tbody tr:nth-child(even) td {
  background: var(--jade-mist);
}

/* ---------- FAQ + source ---------- */
.faq-section,
.source-note {
  margin-top: 36px;
}

.faq-section h2,
.source-note h2 {
  font-size: clamp(1.18rem, 2.1vw, 1.4rem);
  margin-bottom: 8px;
}

.faq-section details {
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
}

.faq-section summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  display: flex;
  gap: 8px;
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section summary::before {
  content: "+";
  color: var(--jade);
  font-weight: 700;
}

.faq-section details[open] summary::before {
  content: "−";
}

.faq-section details p {
  margin: 10px 0 0 16px;
  color: var(--ink-soft);
  line-height: 1.85;
}

.source-note {
  padding: 20px 22px;
  background: var(--jade-mist);
  border: 1px dashed #c9ddd4;
  border-radius: var(--radius);
}

.source-note p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.85;
}

.article-foot {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--jade-deep);
  font-weight: 700;
}

.back-link::before {
  content: "‹";
  font-size: 1.1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .dock-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .note-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .note-date {
    order: -1;
  }

  .article-content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
