/* elearningjon.com layout and components.
   Every color, font, size, space and radius comes from the brand tokens in /brand/tokens.css (a copy of
   brand/tokens.css; see site/README.md). Nothing here sets a raw color. No scripts. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--ej-space-4); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--ej-bg); color: var(--ej-text);
  font: var(--ej-weight-body) var(--ej-text-base)/var(--ej-leading-body) var(--ej-font-body);
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--ej-font-display); font-weight: var(--ej-weight-heading); line-height: var(--ej-leading-snug);
  letter-spacing: var(--ej-tracking-heading); margin: 0 0 var(--ej-space-4); text-wrap: balance; }
h1 { font-size: var(--ej-text-3xl); font-weight: var(--ej-weight-display); line-height: 1.08; letter-spacing: var(--ej-tracking-display); }
h2 { font-size: var(--ej-text-2xl); }
h3 { font-size: var(--ej-text-md); }
p, ul, ol, dl { margin: 0 0 var(--ej-space-4); }
p, li, dd { max-width: var(--ej-measure); }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: 0.35rem; }
strong, b { font-weight: var(--ej-weight-strong); }
a { color: var(--ej-link); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.16em; }
:focus-visible { border-radius: var(--ej-radius-sm); }
main:focus, section:focus, article:focus { outline: none; box-shadow: none; }

.wrap { width: 100%; max-width: var(--ej-space-page); margin-inline: auto; padding-inline: var(--ej-space-gutter); }
.lede { font-size: var(--ej-text-md); color: var(--ej-text-2); max-width: 58ch; }
.muted { color: var(--ej-text-2); }
.small { font-size: var(--ej-text-sm); }

/* skip link */
.skip { position: absolute; left: var(--ej-space-3); top: -5rem; z-index: 10; background: var(--ej-highlight); color: var(--ej-on-highlight);
  padding: var(--ej-space-3) var(--ej-space-4); border-radius: var(--ej-radius-md); font-weight: var(--ej-weight-strong);
  border: var(--ej-border-ui) solid var(--ej-on-highlight); }
.skip:focus { top: var(--ej-space-3); }

/* header: the dark band, dark in both modes */
.site-head { background: var(--ej-band); color: var(--ej-on-band); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--ej-space-5); padding-block: var(--ej-space-2); }
.brand { display: inline-flex; align-items: center; min-height: var(--ej-target-min); padding-block: var(--ej-space-1); }
.brand img { display: block; height: 2.5rem; width: auto; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 var(--ej-space-1); margin: 0 calc(-1 * var(--ej-space-3)); padding: 0; }
.site-nav li { margin: 0; }
.site-nav a { display: inline-flex; align-items: center; min-height: var(--ej-target-min); padding: 0 var(--ej-space-3); color: var(--ej-on-band);
  text-decoration: none; font-family: var(--ej-font-display); font-weight: var(--ej-weight-button); border-radius: var(--ej-radius-sm); }
.site-nav a:hover { text-decoration: underline; text-decoration-thickness: 0.14em; text-underline-offset: 0.3em; }
.site-nav a[aria-current="page"] { color: var(--ej-highlight); text-decoration: underline; text-decoration-thickness: 0.18em; text-underline-offset: 0.4em; }

/* reviewer note: a highlighter strip */
.review-note { background: var(--ej-highlight); color: var(--ej-on-highlight); --ej-focus: var(--ej-on-highlight); --ej-focus-halo: var(--ej-c-white); }
.review-note .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--ej-space-1) var(--ej-space-4); padding-block: var(--ej-space-3); }
.review-note p { margin: 0; max-width: none; }
.review-note strong { font-family: var(--ej-font-display); font-size: var(--ej-text-md); line-height: var(--ej-leading-snug); }
.review-note a { color: inherit; font-weight: var(--ej-weight-strong); }

/* sections */
main > section { padding-block: var(--ej-space-8); }
main > section + section { border-top: var(--ej-border-thin) solid var(--ej-line); }
.quiet { background: var(--ej-surface-2); }
.eyebrow { font: var(--ej-weight-strong) var(--ej-text-xs)/1.2 var(--ej-font-body); letter-spacing: var(--ej-tracking-caps); text-transform: uppercase;
  color: var(--ej-link); margin-bottom: var(--ej-space-3); }

/* hero */
.hero { padding-block: clamp(2.5rem, 6vw, 5.5rem); }
.hero .wrap { display: grid; gap: var(--ej-space-7); align-items: center; }
@media (min-width: 62rem) { .hero .wrap { grid-template-columns: 1.15fr 0.85fr; } }
.hl { background: var(--ej-highlight); color: var(--ej-on-highlight); padding: 0 0.12em; border-radius: var(--ej-radius-sm);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.actions { display: flex; flex-wrap: wrap; gap: var(--ej-space-4); margin-top: var(--ej-space-5); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--ej-space-2); min-height: 48px; padding: var(--ej-space-2) var(--ej-space-5);
  border-radius: var(--ej-radius-pill); font-family: var(--ej-font-display); font-weight: var(--ej-weight-button); text-decoration: none;
  border: var(--ej-border-ui) solid var(--ej-sticker-edge); background: var(--ej-primary); color: var(--ej-on-primary); box-shadow: var(--ej-shadow-sticker);
  transition: transform var(--ej-motion-fast) var(--ej-motion-ease), background-color var(--ej-motion-fast) var(--ej-motion-ease); }
.btn:hover { background: var(--ej-primary-hover); transform: translate(-1px, -1px); }
.btn:active { background: var(--ej-primary-press); transform: translate(2px, 2px); }
.btn.ghost { background: var(--ej-surface); color: var(--ej-text); }
.btn.ghost:hover, .btn.ghost:active { background: var(--ej-surface-3); }
.btn:focus-visible { border-radius: var(--ej-radius-pill); box-shadow: 0 0 0 calc(var(--ej-focus-width) + var(--ej-focus-offset) + var(--ej-focus-halo-width)) var(--ej-focus-halo); }
.btn svg { width: 1.25em; height: 1.25em; flex: none; }

/* cards: the brand "sticker", cut paper with one sharp corner */
.grid { display: grid; gap: var(--ej-space-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr)); list-style: none; padding: 0; margin: var(--ej-space-6) 0 0; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); }
.grid.four { grid-template-columns: 1fr; }
@media (min-width: 36rem) { .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .grid.four { grid-template-columns: repeat(4, 1fr); } }
.grid > li { margin: 0; max-width: none; }
.card { background: var(--ej-surface); border: var(--ej-border-ui) solid var(--ej-sticker-edge); border-radius: var(--ej-radius-note-corner);
  padding: var(--ej-space-5); box-shadow: var(--ej-shadow-sticker); height: 100%; }
.card > :last-child { margin-bottom: 0; }
.card h3 a { color: inherit; }
.card p, .card li { max-width: none; }
.icon { display: inline-flex; align-items: center; justify-content: center; width: 3.25rem; height: 3.25rem; margin-bottom: var(--ej-space-4);
  border: var(--ej-border-ui) solid var(--ej-sticker-edge); border-radius: var(--ej-radius-md); color: var(--ej-on-marker); background: var(--ej-marker-sun);
  box-shadow: 3px 3px 0 var(--ej-sticker-edge); }
.icon svg { width: 1.75rem; height: 1.75rem; }
.icon.coral { background: var(--ej-marker-coral); }
.icon.mint { background: var(--ej-marker-mint); }
.icon.sky { background: var(--ej-marker-sky); }
.icon.pink { background: var(--ej-marker-pink); }
@media (prefers-reduced-motion: no-preference) {
  .grid > li:nth-child(odd) .icon { transform: rotate(-4deg); }
  .grid > li:nth-child(even) .icon { transform: rotate(3deg); }
}

/* status tags: the words carry the meaning, the color only helps */
.tag { display: inline-block; font: var(--ej-weight-strong) 0.8125rem/1 var(--ej-font-body); letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.4em 0.7em; border-radius: var(--ej-radius-pill); border: var(--ej-border-ui) solid var(--ej-sticker-edge); white-space: nowrap;
  color: var(--ej-on-marker); background: var(--ej-marker-mint); }
.tag.progress { background: var(--ej-marker-sun); }
.tag.notyet { background: transparent; color: var(--ej-text); border-style: dashed; }
h3 .tag, h2 .tag { vertical-align: middle; margin-left: var(--ej-space-2); position: relative; top: -0.1em; }

/* two-column feature rows */
.split { display: grid; gap: var(--ej-space-7); align-items: start; }
.split > * { min-width: 0; }
@media (min-width: 62rem) { .split { grid-template-columns: 1fr 1fr; } .split.flip > :first-child { order: 2; } }
.split h3 { margin-top: var(--ej-space-6); }
.split h3:first-child { margin-top: 0; }

/* illustrations: the brand's own, a light and a dark file each (see site/brand/imagery) */
.art { display: block; width: 100%; height: auto; max-width: 36rem; margin-top: var(--ej-space-5); }
.hero .art { margin: 0 auto; }
.art.inline { max-width: 24rem; margin: 0 0 var(--ej-space-5); }

/* standards */
.table-wrap { overflow-x: auto; margin-top: var(--ej-space-5); border: var(--ej-border-ui) solid var(--ej-sticker-edge); border-radius: var(--ej-radius-lg); background: var(--ej-surface); }
table { border-collapse: collapse; width: 100%; min-width: 38rem; }
caption { text-align: left; padding: var(--ej-space-4) var(--ej-space-5) var(--ej-space-2); font: var(--ej-weight-heading) var(--ej-text-md)/1.2 var(--ej-font-display); }
th, td { text-align: left; vertical-align: top; padding: var(--ej-space-3) var(--ej-space-5); border-top: var(--ej-border-thin) solid var(--ej-line); }
thead th { font-size: var(--ej-text-xs); letter-spacing: var(--ej-tracking-caps); text-transform: uppercase; color: var(--ej-text-2); border-top: 0; }
tbody th { font-weight: var(--ej-weight-strong); width: 26%; }

.standard { padding-block: var(--ej-space-6); border-top: var(--ej-border-thin) solid var(--ej-line); }
.standard:first-of-type { border-top: 0; }
.standard h3 { margin-bottom: var(--ej-space-2); font-size: var(--ej-text-lg); }
.standard dl { display: grid; gap: var(--ej-space-3) var(--ej-space-6); margin: var(--ej-space-4) 0 0; }
@media (min-width: 48rem) { .standard dl { grid-template-columns: 10rem 1fr; } }
.standard dt { font-weight: var(--ej-weight-strong); }
.standard dd { margin: 0; }
.standard dd > :last-child { margin-bottom: 0; }

/* contact */
.big-link { font: var(--ej-weight-heading) var(--ej-text-xl)/1.2 var(--ej-font-display); overflow-wrap: anywhere; display: inline-flex; align-items: center; min-height: var(--ej-target-min); }

/* footer: the band again */
.site-foot { background: var(--ej-band); color: var(--ej-on-band-2); padding-block: var(--ej-space-7); font-size: var(--ej-text-sm); }
.site-foot .wrap { display: grid; gap: var(--ej-space-4) var(--ej-space-7); }
@media (min-width: 48rem) { .site-foot .wrap { grid-template-columns: 1fr auto; } }
.site-foot p { margin: 0 0 var(--ej-space-2); }
.site-foot strong { color: var(--ej-on-band); }
.site-foot a { color: var(--ej-band-link); }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin: 0; }
.site-foot li a, .site-foot p a { display: inline-flex; align-items: center; min-height: var(--ej-target-min); }

@media (forced-colors: active) {
  .btn, .card, .tag, .icon { box-shadow: none; }
  .hl { background: Mark; color: MarkText; }
}
@media print {
  .site-nav, .review-note, .actions, .skip { display: none; }
  .card, .btn { box-shadow: none; }
}
