/* TradeWave site — get-tradewave.com
   Source stylesheet. Deploys as a versioned copy in /assets (see README). */

:root {
  color-scheme: light;
  --paper: #f7f4ee;
  --panel: #fffdf8;
  --ink: #21251f;
  --muted: #6d7168;
  --faint: #8b8f85;
  --line: #ddd7c9;
  --line-soft: #e7e2d6;
  --accent: #1d6a4d;
  --accent-deep: #14503a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.shell {
  width: min(58rem, 100% - 3rem);
  margin: 0 auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover { color: var(--accent-deep); }

img { display: block; max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.012em;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 50;
  transform: translateY(-300%);
  border-radius: 4px;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  text-decoration: none;
}

.skip-link:focus { transform: none; }

/* Masthead */

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

.masthead .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover { color: var(--ink); }

.brand img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}

.masthead nav {
  display: flex;
  align-items: baseline;
  gap: 22px;
  font-family: var(--sans);
  font-size: 14px;
}

.masthead nav a {
  color: var(--muted);
  text-decoration: none;
}

.masthead nav a:hover { color: var(--ink); }

.masthead nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
}

/* Landing */

.hero {
  padding: 96px 0 72px;
}

.kicker {
  margin: 0 0 22px;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 15em;
  font-size: clamp(38px, 6.4vw, 62px);
}

.hero .lede {
  max-width: 34em;
  margin: 26px 0 0;
  color: #3c4038;
  font-size: 20px;
  line-height: 1.6;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  margin: 38px 0 0;
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--muted);
}

.badge {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 600;
}

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

.features {
  padding: 64px 0 84px;
}

.features h2 {
  font-size: 15px;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 56px;
  margin: 36px 0 0;
}

.feature-list > div { max-width: 26em; }

.feature-list dt {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature-list dd {
  margin: 8px 0 0;
  color: var(--muted);
}

/* Legal documents */

.doc {
  padding: 72px 0 40px;
}

.doc-inner {
  width: min(44rem, 100% - 3rem);
  margin: 0 auto;
}

.doc-date {
  margin: 0 0 18px;
  color: var(--faint);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.doc h1 {
  font-size: clamp(32px, 5vw, 44px);
}

.doc .lede {
  margin: 20px 0 0;
  color: #3c4038;
  font-size: 18.5px;
}

.toc {
  margin: 40px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0 24px;
  font-family: var(--sans);
  font-size: 14px;
}

.toc p {
  margin: 0 0 10px;
  color: var(--faint);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

.toc ol {
  columns: 2;
  column-gap: 40px;
  margin: 0;
  padding: 0 0 0 20px;
  color: var(--muted);
}

.toc li { margin: 3px 0; }

.toc a {
  color: var(--ink);
  text-decoration: none;
}

.toc a:hover { color: var(--accent); text-decoration: underline; }

.doc h2 {
  margin: 44px 0 0;
  font-size: 23px;
  scroll-margin-top: 24px;
}

.doc h2 + p { margin-top: 12px; }

.doc p { margin: 16px 0 0; }

.doc ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.doc li { margin: 6px 0; }

.doc strong { font-weight: 650; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding: 36px 0 44px;
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover { color: var(--ink); }

.fineprint {
  max-width: 62em;
  margin: 20px 0 0;
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.6;
}

.copyright {
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 12.5px;
}

@media (max-width: 720px) {
  .hero { padding: 64px 0 52px; }
  .features { padding: 48px 0 64px; }
  .feature-list { grid-template-columns: 1fr; gap: 30px; }
  .toc ol { columns: 1; }
  .doc { padding: 52px 0 24px; }
}
