/* Seaway Forge — working-trade static site.
   No framework, no build step. One stylesheet, plain selectors.
   Palette is deliberately narrow: near-black, white, one rust accent. */

:root {
  --ink: #16181d;
  --ink-soft: #4d525a;
  --line: #d2d6dc;
  --line-heavy: #16181d;
  --bar: #14161a;
  --bar-text: #f4f5f6;
  --rust: #a8431b;
  --rust-dark: #7d3113;
  --wash: #f4f5f6;
  --max: 1120px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- header ---------- */

.topbar {
  background: var(--bar);
  color: var(--bar-text);
  border-bottom: 4px solid var(--rust);
}

.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  color: var(--bar-text);
  text-decoration: none;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.1;
}

.brand span { color: var(--rust); }

nav.main {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

nav.main a {
  color: var(--bar-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 0;
  border-bottom: 3px solid transparent;
}

nav.main a:hover,
nav.main a:focus { border-bottom-color: var(--rust); }

/* ---------- disclosure strip ---------- */

.disclosure-strip {
  background: var(--wash);
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-soft);
}

.disclosure-strip .wrap { padding-top: 10px; padding-bottom: 10px; }
.disclosure-strip a { color: var(--rust-dark); }

/* ---------- type ---------- */

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 12px;
}

h1 { font-size: 40px; }
h2 { font-size: 28px; margin-top: 44px; }
h3 { font-size: 21px; margin-top: 32px; }

p { margin: 0 0 18px; }

a { color: var(--rust-dark); }
a:hover { color: var(--rust); }

ul, ol { margin: 0 0 18px; padding-left: 24px; }
li { margin-bottom: 8px; }

hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

.lede { font-size: 21px; color: var(--ink-soft); }

.meta {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.kicker {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rust-dark);
  margin: 0 0 8px;
}

/* ---------- layout blocks ---------- */

main { padding: 40px 0 64px; }

.prose { max-width: 42rem; }

.hero {
  border-bottom: 1px solid var(--line);
  padding-bottom: 32px;
  margin-bottom: 8px;
}

.section { margin-top: 56px; }

.section > h2 {
  margin-top: 0;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--line-heavy);
}

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.card {
  border: 1px solid var(--line-heavy);
  padding: 20px;
  background: #fff;
}

.card h3 { margin: 0 0 8px; font-size: 19px; }
.card h3 a { text-decoration: none; color: var(--ink); }
.card h3 a:hover { color: var(--rust-dark); text-decoration: underline; }
.card p { margin: 0; font-size: 16px; color: var(--ink-soft); }
.card .tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--rust-dark);
  margin-bottom: 6px;
}

/* ---------- comparison table ---------- */

.table-scroll {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--line-heavy);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 16px;
}

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

th {
  background: var(--bar);
  color: var(--bar-text);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: none;
}

tbody tr:last-child td { border-bottom: none; }

/* ---------- callout ---------- */

.note {
  border-left: 5px solid var(--rust);
  background: var(--wash);
  padding: 16px 18px;
  margin: 24px 0;
  font-size: 17px;
}

.note p:last-child { margin-bottom: 0; }

/* ---------- sources ---------- */

.sources {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 3px solid var(--line-heavy);
  font-size: 15px;
  color: var(--ink-soft);
}

.sources h2 { font-size: 18px; margin-top: 0; }
.sources ol { padding-left: 22px; }
.sources li { margin-bottom: 10px; }

/* ---------- read next ---------- */

.readnext {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.readnext h2 { font-size: 20px; margin-top: 0; }
.readnext ul { list-style: none; padding: 0; }
.readnext li { margin-bottom: 10px; }

/* ---------- footer ---------- */

footer.site {
  background: var(--bar);
  color: #b9bec6;
  margin-top: 64px;
  padding: 36px 0;
  font-size: 15px;
}

footer.site a { color: #f4f5f6; }
footer.site a:hover { color: var(--rust); }

footer.site .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

footer.site h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin: 0 0 10px;
}

footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 7px; }

footer.site .fineprint {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #2b2f36;
  font-size: 14px;
}

/* ---------- small screens ---------- */

@media (max-width: 640px) {
  body { font-size: 17px; }
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  h3 { font-size: 19px; }
  .lede { font-size: 19px; }
  .topbar .wrap { flex-direction: column; align-items: flex-start; }
  nav.main { gap: 4px 16px; }
  .cards { grid-template-columns: 1fr; }
}
