/* Drydock design system v1 — tokens are the source of truth from brand_guidelines. */

:root {
  --ink: #12313F;
  --ink-deep: #0B222D;
  --harbor: #0E6E56;
  --harbor-tint: #E8F3EF;
  --signal: #B0451F;
  --signal-tint: #FAECE7;
  --fog: #EEF1F0;
  --paper: #FFFFFF;
  --text: #26343A;
  --text-2: #5C6E74;
  --text-3: #8B9AA0;
  --line: #DCE2E0;
  --line-soft: #B8C2C0;
  --amber: #8A6414;

  --serif: 'Source Serif 4', Georgia, serif;
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
  --sans: 'Inter', Arial, sans-serif;

  --r-sm: 6px;
  --r-md: 10px;
  --r-pill: 999px;

  --s1: 4px;
  --s2: 8px;
  --s3: 16px;
  --s4: 24px;
  --s5: 40px;
  --s6: 64px;

  --column: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

body {
  background: var(--fog);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.7;
}

a {
  color: var(--harbor);
  text-decoration: none;
}

a:hover {
  color: var(--ink-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.column {
  max-width: var(--column);
  margin: 0 auto;
  padding-left: var(--s4);
  padding-right: var(--s4);
}

/* Log label — the mono marker that numbers every section. */
.log {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--harbor);
  text-transform: uppercase;
}

.log-quiet {
  color: var(--text-3);
}

.log-ink {
  color: var(--ink);
  font-weight: 500;
}

.log-amber {
  color: var(--amber);
  letter-spacing: 1px;
}

/* Dashed divider between sections — echoes the manifest. */
.divider {
  display: flex;
  justify-content: center;
  padding-bottom: var(--s6);
}

.divider::before {
  content: '';
  width: 96px;
  border-top: 1px dashed var(--line-soft);
}

/* Nav */

.nav {
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding-top: var(--s3);
  padding-bottom: var(--s3);
}

.wordmark {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 4px;
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: var(--s4);
  font-size: 14px;
  font-weight: 500;
}

/* Hero */

.hero {
  padding-top: var(--s6);
  padding-bottom: var(--s6);
  animation: rise 0.7s ease-out both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero {
    animation: none;
  }
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s4);
  max-width: 640px;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 44px);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  text-wrap: pretty;
}

.hero-sub {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--text-2);
  max-width: 52ch;
  text-wrap: pretty;
}

/* Email capture */

.capture {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  justify-content: center;
}

.input {
  font-family: var(--sans);
  font-size: 14px;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--text);
  min-width: 240px;
}

.input::placeholder {
  color: var(--text-3);
}

.input:focus {
  border-color: var(--harbor);
}

.hero .input {
  flex: 1;
  max-width: 320px;
}

.btn {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r-sm);
  padding: 12px 24px;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--ink-deep);
}

.confirmation {
  background: var(--harbor-tint);
  color: var(--harbor);
  border-radius: var(--r-sm);
  padding: 12px var(--s3);
  font-size: 14px;
  font-weight: 500;
  max-width: 420px;
}

/* Sections */

.section {
  padding-bottom: var(--s6);
}

.section-head {
  text-align: center;
  margin-bottom: var(--s4);
}

.section-head .log {
  display: block;
  margin-bottom: var(--s2);
}

.section-head h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
}

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s3);
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.card p {
  font-size: 14px;
  color: var(--text-2);
}

/* Sample issue */

.issue {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  max-width: 760px;
  margin: 0 auto;
}

.issue-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--s2);
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--line);
}

.issue-body {
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s5);
}

.issue-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prose {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--text);
  max-width: 62ch;
}

/* Stat cards — value colored only when direction matters. */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.stat {
  background: var(--fog);
  border-radius: var(--r-sm);
  padding: 14px 10px;
  text-align: center;
}

.stat b {
  display: block;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.stat span {
  font-size: 11px;
  color: var(--text-2);
}

.stat-up b {
  color: var(--harbor);
}

.stat-down b {
  color: var(--signal);
}

/* Shipped & sunk ledger */

.ledger {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s3);
}

.ledger-col {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.ledger-head {
  font-size: 13px;
  font-weight: 600;
  color: var(--harbor);
}

.ledger-head-down {
  color: var(--signal);
}

.ledger-col li {
  font-size: 14px;
  color: var(--text-2);
  border-bottom: 1px dashed var(--line);
  padding-bottom: var(--s2);
}

.ledger-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.ledger-col li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Featured card — the only 2px harbor border, one per page. */
.featured {
  background: var(--paper);
  border: 2px solid var(--harbor);
  border-radius: var(--r-md);
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.featured-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.featured-meta {
  font-size: 13px;
  color: var(--text-2);
}

/* Tags — pills always carry a count or a value. */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
}

.tag {
  font-size: 12px;
  border-radius: var(--r-pill);
  padding: 4px 12px;
}

.tag-pos {
  background: var(--harbor-tint);
  color: var(--harbor);
}

.tag-neg {
  background: var(--signal-tint);
  color: var(--signal);
}

.issue-foot {
  border-top: 1px dashed var(--line);
  padding-top: var(--s3);
}

/* Final CTA */

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s4);
  text-align: center;
}

.cta h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  max-width: 22ch;
  text-wrap: pretty;
}

/* Footer */

.footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
  padding-top: var(--s4);
  padding-bottom: var(--s4);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  align-items: center;
  font-size: 13px;
}

.footer-fine {
  padding-bottom: var(--s4);
  font-size: 12px;
  color: var(--text-3);
}

@media (max-width: 560px) {
  .column {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    padding-top: var(--s5);
    padding-bottom: var(--s5);
  }

  .section {
    padding-bottom: var(--s5);
  }

  .divider {
    padding-bottom: var(--s5);
  }

  .capture {
    flex-direction: column;
    width: 100%;
  }

  .capture .input,
  .hero .input {
    max-width: none;
    width: 100%;
    min-width: 0;
  }

  .capture .btn {
    width: 100%;
  }

  .hero h1 {
    font-size: 30px;
  }

  .section-head h2 {
    font-size: 22px;
  }

  .nav-inner {
    padding-top: 14px;
    padding-bottom: 14px;
  }

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