/* Text to Sail on wind.watch — uses Wind Watch's tokens (ground, ink, hairline, link,
   system rounded type) from web/styles.css. Text to Sail's own color is Beaufort Force 3 teal. */
:root {
  color-scheme: light;
  --ground: #F4F5F7;
  --card: #FFFFFF;
  --hairline: #D9DDE3;
  --ink: #0B0E12;
  --ink-body: #3A414B;
  --muted: #5F6975;
  --accent: #17785F;          /* Force 3 teal, darkened for text contrast */
  --accent-hover: #0F5544;
  --force-2: #2A86C4;
  --force-3: #1E9E80;
  --force-4: #4A8A22;
  --code-bg: #E6F3EF;
  --cta-bg: #0B0E12;
  --cta-ink: #FFFFFF;
  --cta-muted: #9AA4B1;
  --cta-key: #3FC2A0;
  --bubble-in: #E9ECF0;
  --bubble-out: #17785F;
  --bubble-out-ink: #FFFFFF;

  --link: #2A5F8F;
  --font-text: -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  --font-round: ui-rounded, -apple-system, "SF Pro Rounded", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ground: #0B0E12;
    --card: #171C23;
    --hairline: #2A2F36;
    --ink: #FFFFFF;
    --ink-body: #C7CED8;
    --muted: #9AA4B1;
    --accent: #3FC2A0;
    --accent-hover: #7FDCC2;
    --link: #9BB7D4;
    --force-2: #4FA3D8;
    --force-3: #3FC2A0;
    --force-4: #8DD44A;
    --code-bg: #1A2E2A;
    --cta-bg: #171C23;
    --bubble-in: #2A2F36;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 820px; margin: 0 auto; padding: 28px 16px 64px; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

/* Return strip to the Wind Watch forecast at the top of every page */
.return-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border-bottom: 1px solid var(--hairline);
  color: var(--link);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  text-decoration: none;
}
.return-strip svg { display: block; flex: none; border-radius: 4px; }
.return-strip .return-sub { font-weight: 400; color: var(--muted); }
.return-strip:hover { color: var(--ink); }
@media (max-width: 420px) { .return-strip .return-sub { display: none; } }

/* Brand lockup row (same pattern as Wind Watch) */
.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--hairline);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-tile { display: block; flex: none; border-radius: 22%; }
@media (prefers-color-scheme: dark) { .brand-tile { box-shadow: 0 0 0 1px var(--hairline); } }
.wordmark {
  font-family: var(--font-round);
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.wordmark-light { font-weight: 500; color: var(--muted); }
.brand-tagline { font-size: 13px; color: var(--muted); }

/* Type */
h1 {
  font-family: var(--font-round);
  font-size: 46px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
h2 { font-size: 22px; line-height: 1.3; margin: 44px 0 10px; }
h3 { font-size: 17px; margin: 0 0 2px; }
p, li { color: var(--ink-body); }
strong { color: var(--ink); }
.lede { font-size: 19px; margin: 0 0 28px; max-width: 640px; }
.fine { font-size: 14px; color: var(--muted); }
.num, .key { font-family: var(--font-round); font-weight: 800; font-variant-numeric: tabular-nums; }

/* Subscribe card */
.cta {
  background: var(--cta-bg);
  color: var(--cta-ink);
  border-radius: 16px;
  padding: 24px 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
@media (prefers-color-scheme: dark) { .cta { box-shadow: inset 0 0 0 1px var(--hairline); } }
.cta p { margin: 0; color: var(--cta-muted); }
.cta .cta-lead { font-size: 15px; color: #C7CED8; }
.cta .key { color: var(--cta-key); letter-spacing: 0.02em; }
.cta .number {
  display: inline-block;
  font-family: var(--font-round);
  font-size: 40px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--cta-ink);
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cta .number:hover { color: var(--cta-key); }
.cta .fine { max-width: 320px; font-size: 13px; color: var(--cta-muted); }

/* How it works */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.steps li { display: flex; gap: 14px; }
.steps p { margin: 0; font-size: 16px; }
.step-n {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--card);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-round);
  font-weight: 800;
}
.steps li:nth-child(1) .step-n { color: var(--force-2); }
.steps li:nth-child(2) .step-n { color: var(--accent); }
.steps li:nth-child(3) .step-n { color: var(--force-4); }

/* Example thread */
.phone {
  background: var(--card);
  border-radius: 22px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.phone .thread-head {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding-bottom: 10px; margin-bottom: 4px;
  border-bottom: 1px solid var(--hairline);
  font-size: 12px; font-weight: 600; color: var(--muted);
}
.phone .thread-head img { display: block; border-radius: 50%; }
@media (prefers-color-scheme: dark) { .phone .thread-head img { box-shadow: 0 0 0 1px var(--hairline); } }
.msg { max-width: 88%; padding: 8px 12px; border-radius: 16px; font-size: 15px; line-height: 1.4; color: var(--ink); }
.msg.in { background: var(--bubble-in); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.out { background: var(--bubble-out); color: var(--bubble-out-ink); align-self: flex-end; border-bottom-right-radius: 4px; font-weight: 600; }

/* Lists, tables, code */
ul { padding-left: 1.2em; }
li { margin: 4px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0; background: var(--card); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hairline); vertical-align: top; color: var(--ink-body); }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 600; }
code {
  font-family: var(--font-round);
  font-weight: 800;
  font-size: .95em;
  color: var(--ink);
  background: var(--code-bg);
  padding: 1px 6px;
  border-radius: 6px;
}

footer a { color: var(--link); text-decoration: none; }
footer a:hover { color: var(--ink); }
footer {
  margin-top: 56px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

@media (max-width: 680px) {
  .grid { grid-template-columns: 1fr; }
  h1 { font-size: 34px; }
  .cta .number { font-size: 32px; }
}
