
:root {
  --ink: #1c1915;
  --muted: #5c564c;
  --navy: #2a1870;
  --navy-deep: #1a1048;
  --indigo: #3300cc;
  --amber: #ff9900;
  --amber-deep: #e08600;
  --teal: #0b5e5e;
  --paper: #f3efe4;
  --card: #fffdf8;
  --line: #e2d9c8;
  --focus: #ff9900;
  --max: 72rem;
  --sans: Verdana, "Segoe UI", sans-serif;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--indigo); text-underline-offset: 0.15em; }
a:hover { color: var(--teal); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--amber);
  color: var(--navy-deep);
  font-family: var(--sans);
  font-size: 0.85rem;
  padding: 0.45rem 0.7rem;
  z-index: 20;
}
.skip:focus { top: 0.6rem; }
.site-header {
  background: var(--navy-deep);
  color: #f7f3ea;
  border-bottom: 4px solid var(--amber);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem 0.7rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}
.brand:hover { color: white; }
.brand img {
  width: 46px;
  height: 46px;
  background: #f7f3ea;
  border-radius: 8px;
  padding: 4px;
  object-fit: contain;
}
.brand-name, h1.brand-name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  line-height: 1.25;
  margin: 0;
}
.primary ul, .crumbs ol, .subnav, .cat-index, .cat-nav, .directory ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary ul { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.primary a {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: #f7f3ea;
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  display: inline-block;
}
.primary a:hover { background: rgba(255,255,255,0.1); color: white; }
.primary a[aria-current="page"] {
  background: var(--amber);
  color: var(--navy-deep);
  font-weight: 700;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 3rem;
}
.crumbs { margin-bottom: 0.8rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.4rem; }
.crumbs li { font-family: var(--sans); font-size: 0.78rem; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 0.4rem; color: #b3aa9a; }
.crumbs a { color: var(--teal); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.prose {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.3rem 1.6rem;
  box-shadow: 0 1px 0 rgba(26, 16, 72, 0.04);
}
.prose h1 {
  font-family: var(--sans);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.2;
  margin: 0 0 0.8rem;
  color: var(--navy-deep);
}
.prose h2, .prose h3 {
  font-family: var(--sans);
  color: var(--teal);
  line-height: 1.3;
  margin: 1.4rem 0 0.4rem;
}
.prose p { margin: 0.7rem 0; }
.prose ul, .prose ol { margin: 0.5rem 0 0.9rem; padding-left: 1.2rem; }
.prose li { margin: 0.28rem 0; }
.prose li ul { margin-top: 0.2rem; }
.bullet-list { list-style: disc; }
.toc {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 1rem;
  columns: 2;
  column-gap: 1.5rem;
}
.toc li { break-inside: avoid; margin: 0.2rem 0; }
.toc a { text-decoration: none; }
.prose img[src*="green_ball"], .prose img[src*="ball-green"] {
  width: 0.7rem;
  height: 0.7rem;
  vertical-align: middle;
  margin-right: 0.35rem;
}
.prose img[src*="folder.gif"], .prose img[src*="camera.jpg"] {
  width: 3rem;
  height: auto;
  vertical-align: middle;
  margin-right: 0.45rem;
}
.prose img[src*="sailboat11"] {
  width: 1.6rem;
  height: auto;
  vertical-align: middle;
  margin-right: 0.3rem;
}
.subnav, .cat-index, .cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
}
.subnav a, .subnav span, .cat-index a, .cat-nav a, .cat-nav span {
  font-family: var(--sans);
  font-size: 0.78rem;
  text-decoration: none;
  border: 1px solid var(--line);
  background: #faf7f1;
  color: var(--navy);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  display: inline-block;
}
.subnav a:hover, .cat-index a:hover, .cat-nav a:hover { border-color: var(--amber-deep); color: var(--teal); }
.subnav [aria-current="page"], .cat-nav [aria-current="page"], .cat-index [aria-current="page"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.cat-details {
  margin: 0 0 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #faf7f1;
  padding: 0.4rem 0.8rem 0.7rem;
}
.cat-details summary {
  font-family: var(--sans);
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--navy);
  font-weight: 700;
}
.cat-details .cat-nav { margin: 0.7rem 0 0.2rem; }
.top-link {
  font-family: var(--sans);
  font-size: 0.75rem;
  margin-right: 0.45rem;
  white-space: nowrap;
}
table.stack {
  width: 100%;
  border-collapse: collapse;
  margin: 0.6rem 0 1rem;
}
table.stack td {
  vertical-align: top;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
}
.prose strong, .prose b { color: var(--navy-deep); }
.gap {
  background: #fff6e4;
  border-left: 4px solid var(--amber);
  padding: 0.7rem 0.9rem;
  margin-top: 1rem;
}
.directory { margin-top: 1.25rem; }
.directory h2 {
  font-family: var(--sans);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.7rem;
}
.directory ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.75rem;
}
.directory a {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem 1rem;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.directory a:hover { border-color: var(--amber-deep); }
.directory strong { font-family: var(--sans); color: var(--navy); font-size: 1.02rem; }
.directory span { color: var(--muted); font-size: 0.95rem; }
.tip-form { display: grid; gap: 0.35rem; margin-top: 0.6rem; max-width: 40rem; }
.tip-form label { font-family: var(--sans); font-size: 0.82rem; font-weight: 700; color: var(--navy); margin-top: 0.45rem; }
.tip-form input, .tip-form textarea, .tip-form select {
  font: inherit;
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid #cfc4b0;
  border-radius: 8px;
  background: white;
  color: var(--ink);
}
.form-row { display: grid; gap: 0.35rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.7rem; }
button {
  font-family: var(--sans);
  font-size: 0.9rem;
  background: var(--navy);
  color: white;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  cursor: pointer;
}
button:hover { background: var(--teal); }
button.ghost { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
button.ghost:hover { background: #efeafc; }
.site-footer {
  border-top: 1px solid var(--line);
  background: #ebe4d6;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.8rem;
}
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 1.1rem 1.25rem 1.6rem; }
.site-footer p { margin: 0.35rem 0; }
.site-footer a { color: var(--teal); }
@media (max-width: 720px) {
  .wrap { padding: 1rem 0.85rem 2.4rem; }
  .prose { padding: 1rem 0.9rem 1.3rem; border-radius: 10px; }
  table.stack, table.stack tbody, table.stack tr, table.stack td {
    display: block;
    width: auto !important;
  }
  table.stack td { border-bottom: 0; padding: 0.45rem 0; }
  table.stack tr { border-bottom: 1px solid var(--line); padding: 0.6rem 0; }
  .toc { columns: 1; }
  .header-inner { padding: 0.75rem 0.85rem 0.65rem; }
  .brand-name { font-size: 0.95rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
