/* The plain pages on stopnoted.tenhatch.com (home, privacy, terms, support, accessibility, connected).
   Every colour pair is measured in test/unit/package.test.ts. */

:root {
  --bg: #ffffff;
  --text: #1c1414;
  --muted: #4d4343;
  --line: #75696a;
  --link: #a3191a;
  --focus: #a3191a;
  --box: #fff1ec;
  --button: #a3191a;
  --button-text: #ffffff;
  --error: #b42318;
  --ok: #166534;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1213;
    --text: #f6eeee;
    --muted: #d4c6c6;
    --line: #a3908f;
    --link: #fdb4a5;
    --focus: #fed7cf;
    --box: #2c1c1d;
    --button: #fdb4a5;
    --button-text: #1a1213;
    --error: #fca5a5;
    --ok: #86efac;
    color-scheme: dark;
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    'Segoe UI',
    -apple-system,
    BlinkMacSystemFont,
    Roboto,
    'Helvetica Neue',
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

header.site {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

header.site a {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  min-height: 24px;
}

h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 12px;
}

h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 32px 0 8px;
}

h3 {
  font-size: 18px;
  margin: 20px 0 6px;
}

a {
  color: var(--link);
}

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

.lede {
  font-size: 19px;
}

.muted {
  color: var(--muted);
}

.box {
  background: var(--box);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 16px 0;
}

ul.plain {
  padding-left: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 2px solid var(--button);
  border-radius: 8px;
  background: var(--button);
  color: var(--button-text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.price {
  font-size: 26px;
  font-weight: 700;
  margin: 8px 0;
}

.plan {
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 16px 0;
}

.plan h3 {
  margin-top: 0;
}

blockquote {
  margin: 8px 0;
  padding: 8px 14px;
  border-left: 4px solid var(--line);
  background: var(--box);
}

.example {
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 4px 16px 12px;
  margin: 16px 0;
}

.tag {
  display: inline-block;
  padding: 0 8px;
  border-radius: 6px;
  font-weight: 700;
  background: var(--box);
}

code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

pre {
  background: var(--box);
  border-radius: 8px;
  padding: 12px 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.error {
  color: var(--error);
  font-weight: 600;
}

.ok {
  color: var(--ok);
  font-weight: 600;
}

/* What HighLevel does and what StopNoted adds: three columns that wrap, so the page never scrolls sideways. */
.table-wrap {
  margin: 12px 0;
}

table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

caption {
  text-align: left;
  font-weight: 600;
  padding: 0 0 6px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

footer.site {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
  font-size: 15px;
}

footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

footer.site nav a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}
