/* Midnight Forecastle LLC — dark maritime theme */

:root {
  --ink:        #0b1420;  /* ink-navy ground */
  --ink-raised: #0f1b29;  /* slightly lifted panels */
  --ink-line:   #1c2b3c;  /* rules and card borders */
  --parchment:  #e9e6da;  /* primary text */
  --parchment-dim: #a9b2bd;/* secondary text */
  --brass:      #c9a227;  /* accent */
  --brass-dim:  #8e7320;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1080px;
  --gutter: 28px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--ink);
  /* subtle horizontal-rule texture, like feint lines on chart paper */
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(233, 230, 218, 0.035) 0px,
    rgba(233, 230, 218, 0.035) 1px,
    transparent 1px,
    transparent 8px
  );
  color: var(--parchment);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

a { color: var(--brass); text-decoration-color: rgba(201, 162, 39, 0.4); text-underline-offset: 3px; }
a:hover { color: #e0bb44; text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

em { font-style: italic; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px; top: 12px;
  z-index: 10;
  background: var(--ink-raised);
  padding: 10px 16px;
  border: 1px solid var(--brass);
  border-radius: 4px;
}

/* ── header ─────────────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--ink-line);
  background: rgba(11, 20, 32, 0.9);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--parchment);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.24rem;
  font-weight: 600;
  letter-spacing: 0.005em;
}
.wordmark:hover { color: var(--parchment); }
.wordmark:hover .wordmark-text { color: var(--brass); }
.wordmark-text { transition: color 160ms ease; }

.wordmark-mark {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.14);
  flex: none;
}

.site-nav {
  display: flex;
  gap: 26px;
  font-size: 0.94rem;
}
.site-nav a {
  color: var(--parchment-dim);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover {
  color: var(--parchment);
  border-bottom-color: var(--brass);
}

/* ── hero ───────────────────────────────────────────────── */

.hero {
  padding: 84px 0 72px;
  border-bottom: 1px solid var(--ink-line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.4em;
}

.hero-title {
  font-size: clamp(2.5rem, 5.4vw, 3.9rem);
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero-title span { display: block; }
.hero-title span:last-child { color: var(--brass); }

.lede {
  font-size: 1.12rem;
  color: var(--parchment-dim);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 3px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  background: var(--brass);
  color: var(--ink);
  border: 1px solid var(--brass);
  transition: background 160ms ease, color 160ms ease;
}
.btn:hover { background: #e0bb44; color: var(--ink); }

.btn-quiet {
  background: transparent;
  color: var(--parchment);
  border-color: var(--ink-line);
}
.btn-quiet:hover {
  background: transparent;
  color: var(--brass);
  border-color: var(--brass);
}

/* ── hero art: the bearing line ─────────────────────────── */

.hero-art { display: flex; justify-content: center; }

.bearing {
  width: 100%;
  max-width: 340px;
  height: auto;
  overflow: visible;
}

.bearing .ring {
  fill: none;
  stroke: var(--ink-line);
  stroke-width: 1;
}
.bearing .ring-soft { stroke: rgba(28, 43, 60, 0.7); }

.bearing .ticks line {
  stroke: var(--parchment-dim);
  stroke-width: 1;
  opacity: 0.45;
}

.bearing .horizon {
  stroke: var(--parchment-dim);
  stroke-width: 1;
  opacity: 0.3;
}
.bearing .horizon-soft { opacity: 0.16; }

.bearing .bearing-line {
  stroke: var(--brass);
  stroke-width: 1.5;
  stroke-dasharray: 7 6;
  opacity: 0.85;
}

.bearing .bearing-arc {
  fill: none;
  stroke: var(--brass-dim);
  stroke-width: 1;
  opacity: 0.6;
}

.bearing .origin {
  fill: var(--parchment);
  opacity: 0.5;
}

.bearing .dot {
  fill: var(--brass);
  animation: mf-glow 4.2s ease-in-out infinite;
  transform-origin: 238px 88px;
}

.bearing .halo {
  animation: mf-halo 4.2s ease-in-out infinite;
  transform-origin: 238px 88px;
}

@keyframes mf-glow {
  0%, 100% { opacity: 0.72; r: 6.4px; }
  50%      { opacity: 1;    r: 7.6px; }
}

@keyframes mf-halo {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50%      { opacity: 1;   transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bearing .dot,
  .bearing .halo {
    animation: none;
  }
  .bearing .halo { opacity: 0.75; }
  * { transition-duration: 0.001ms !important; }
}

/* ── sections ───────────────────────────────────────────── */

.section {
  padding: 76px 0;
  border-bottom: 1px solid var(--ink-line);
}

.section-alt { background: rgba(15, 27, 41, 0.6); }

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 0.45em;
}
.section-title::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  background: var(--brass);
  margin-top: 0.55em;
}

.section-lede {
  color: var(--parchment-dim);
  max-width: 54ch;
  margin-bottom: 2.4rem;
}

/* ── venture cards ──────────────────────────────────────── */

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 22px;
}

.card {
  background: var(--ink-raised);
  border: 1px solid var(--ink-line);
  border-radius: 5px;
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 180ms ease, transform 180ms ease;
}
.card:hover {
  border-color: rgba(201, 162, 39, 0.5);
  transform: translateY(-2px);
}

.status {
  font-size: 0.71rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--parchment-dim);
  margin: 0 0 1.1em;
  display: inline-block;
  border: 1px solid var(--ink-line);
  border-radius: 100px;
  padding: 4px 11px;
  align-self: flex-start;
}
.status-dev  { color: var(--brass); border-color: rgba(201, 162, 39, 0.45); }
.status-soon { color: var(--parchment-dim); }
.status-port { color: var(--parchment-dim); }

.card-title {
  font-size: 1.3rem;
  margin-bottom: 0.6em;
}
.card-title a { text-decoration: none; color: var(--parchment); }
.card-title a:hover { color: var(--brass); }

.card-body {
  color: var(--parchment-dim);
  font-size: 0.97rem;
  margin-bottom: 1.2em;
}

.card-link {
  margin: auto 0 0;
  font-size: 0.93rem;
}
.card-link a { text-decoration: none; }
.card-link a:hover { text-decoration: underline; }

/* ── about ──────────────────────────────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
}

.about-grid p { color: var(--parchment-dim); max-width: 50ch; }

.origin-note {
  border-left: 2px solid var(--brass);
  padding-left: 24px;
}

.origin-title {
  font-size: 1.1rem;
  color: var(--parchment);
}

/* ── contact ────────────────────────────────────────────── */

.contact-methods {
  list-style: none;
  margin: 0 0 1.7rem;
  padding: 0;
  display: grid;
  /* 460px min: only go two-up when a full address actually fits a column */
  grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
  gap: 24px 40px;
}

/* the addresses are longer than the single one this type size was set for,
   so let them shrink on narrow screens rather than overflow the viewport */
.contact-methods .contact-email {
  font-size: clamp(1.05rem, 5.4vw, 1.85rem);
}
.contact-methods .contact-email a {
  overflow-wrap: break-word;
}

/* same label treatment as the venture-card status pills, minus the pill */
.contact-label {
  font-size: 0.71rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--parchment-dim);
  margin: 0 0 0.55em;
}

.contact-email {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3.4vw, 1.85rem);
  margin-bottom: 0.4em;
}
.contact-email a { text-decoration: none; border-bottom: 1px solid rgba(201, 162, 39, 0.4); }
.contact-email a:hover { border-bottom-color: var(--brass); }

.contact-place {
  color: var(--parchment-dim);
  font-size: 0.95rem;
  margin: 0;
}

/* ── prose pages (privacy, 404) ─────────────────────────── */

.page {
  padding: 68px 0 84px;
  border-bottom: 1px solid var(--ink-line);
}

.prose { max-width: 66ch; }
.prose h1 { font-size: clamp(2rem, 4.4vw, 2.7rem); margin-bottom: 0.5em; }
.prose h2 { font-size: 1.22rem; margin-top: 2.1em; }
.prose p, .prose li { color: var(--parchment-dim); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }

.updated {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
  padding: 12px 0;
  margin-bottom: 2.4em;
}

/* ── 404 ────────────────────────────────────────────────── */

.notfound {
  padding: 110px 0 120px;
  text-align: center;
  border-bottom: 1px solid var(--ink-line);
}
.notfound .code {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 9vw, 5.4rem);
  color: var(--brass);
  line-height: 1;
  margin-bottom: 0.3em;
}
.notfound h1 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); }
.notfound p { color: var(--parchment-dim); max-width: 44ch; margin-left: auto; margin-right: auto; }
.notfound .btn { margin-top: 1.4rem; }

/* ── footer ─────────────────────────────────────────────── */

.site-footer {
  padding: 34px 0 44px;
  font-size: 0.9rem;
  color: var(--parchment-dim);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  justify-content: space-between;
}
.footer-inner p { margin: 0; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }

/* ── mobile ─────────────────────────────────────────────── */

@media (max-width: 560px) {
  :root { --gutter: 20px; }

  body { font-size: 16px; }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 16px;
    padding-bottom: 16px;
    min-height: 0;
  }

  .site-header { position: static; }

  .site-nav {
    gap: 18px;
    font-size: 0.88rem;
    flex-wrap: wrap;
  }

  .hero { padding: 48px 0 44px; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-art { order: -1; }
  .bearing { max-width: 232px; }

  .hero-title { font-size: 2.35rem; }
  .lede { font-size: 1.03rem; }

  .btn { width: 100%; text-align: center; }

  .section { padding: 52px 0; }

  .cards { grid-template-columns: 1fr; gap: 18px; }

  .about-grid { gap: 34px; }
  .origin-note { padding-left: 18px; }

  .notfound { padding: 72px 0 80px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}
