/* C-Arrow lessons site — learn.c-arrowmarketing.com
   Static, no JavaScript. Light theme tokens mirror app/globals.css :root.
   Gold is a HIGHLIGHT only (callout edge, focus ring) — never a fill or body text. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #F5F5F5;
  --surface: #FFFFFF;
  --surface-2: #FAFAFA;
  --text: #0A0A0A;
  --text-2: #555555;
  --border: #E5E5E5;
  --border-strong: #D8D8D8;
  --gold: #C9A227;
  --green: #1E7F4D;
  --green-bg: #E5F2EA;
  --neutral-bg: #F0F0F0;
  --radius-lg: 16px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px rgba(10, 10, 10, 0.04);
  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.6;
  overflow-wrap: anywhere;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.3125rem; }
h3 { font-size: 1.125rem; }

p,
ul,
ol,
dl {
  margin: 0 0 0.75em;
}

p:last-child,
ul:last-child,
ol:last-child,
dl:last-child {
  margin-bottom: 0;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

/* Focus: a near-black inner ring (high contrast) plus the gold highlight ring. */
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--text);
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  z-index: 10;
}

.skip-link:focus-visible {
  top: 12px;
}

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

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  padding: 20px 0 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand img {
  display: block;
  width: 148px;
  height: auto;
}

main {
  padding: 8px 0 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 20px;
  margin: 0 0 16px;
}

.section-title {
  margin: 28px 0 12px;
}

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

.lesson-intro h1 {
  margin-bottom: 12px;
}

.facts {
  margin: 0;
}

.facts div + div {
  margin-top: 6px;
}

.facts dt {
  display: inline;
  font-weight: 600;
}

.facts dd {
  display: inline;
  margin: 0;
  color: var(--text-2);
}

/* ---------- "What we need from you" callout ---------- */

.callout {
  border-left: 4px solid var(--gold);
}

.callout ul {
  padding-left: 1.25em;
}

.callout li + li {
  margin-top: 6px;
}

/* ---------- steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.step__label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 4px;
}

.step__see {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.substeps {
  padding-left: 1.5em;
}

.substeps li + li {
  margin-top: 6px;
}

figure {
  margin: 16px 0 0;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

figcaption {
  margin-top: 8px;
  font-size: 0.9375rem;
  color: var(--text-2);
}

/* ---------- fixes ---------- */

.fixes {
  margin: 0;
}

.fix + .fix {
  border-top: 1px solid var(--border);
  margin-top: 16px;
  padding-top: 16px;
}

.fix dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.3;
  margin-bottom: 6px;
}

.fix dd {
  margin: 0;
}

/* Keep an email address (or a brand name) on one line when it fits; it still
   breaks inside only if it is wider than the whole line. */
.email,
.nowrap {
  display: inline-block;
}

/* ---------- index ---------- */

.intro {
  margin-bottom: 20px;
}

.intro p {
  color: var(--text-2);
}

.topic + .topic {
  margin-top: 8px;
}

.lesson-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lesson-card {
  display: block;
  min-height: 44px;
  text-decoration: none;
}

.lesson-card:hover .lesson-card__title {
  text-decoration: underline;
}

.lesson-card__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.3;
  margin-bottom: 6px;
}

.lesson-card__summary {
  display: block;
  color: var(--text-2);
}

.meta {
  display: block;
  margin-top: 8px;
  font-size: 0.9375rem;
  color: var(--text-2);
}

/* ---------- client checklist ---------- */

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 16px;
}

.checklist-item__main {
  flex: 1 1 220px;
  min-width: 0;
}

.checklist-item__link {
  display: inline-block;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.3;
  padding: 10px 0;
}

.checklist-item .meta {
  margin-top: 0;
}

.pill {
  flex: 0 0 auto;
  display: inline-block;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  margin-top: 10px;
}

.pill--todo {
  background: var(--neutral-bg);
  color: var(--text-2);
  border: 1px solid var(--border-strong);
}

.pill--done {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid var(--green-bg);
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
}

.site-footer__lead {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 12px;
}

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

.contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
}

.contact a:hover {
  border-color: var(--text);
}

/* ---------- wider screens ---------- */

@media (min-width: 640px) {
  h1 { font-size: 2.125rem; }
  h2 { font-size: 1.5rem; }
  .site-header { padding-top: 32px; }
  .card { padding: 24px 28px; }
}

/* ---------- print ---------- */

@media print {
  body { background: #FFFFFF; font-size: 11pt; }
  .skip-link, .contact { display: none; }
  .card { box-shadow: none; break-inside: avoid; }
  a { text-decoration: none; }
}
