/* scapp.link brand theme. Link after fonts.css, tokens.css and schillerapp.css. Light and dark follow the system through tokens.css. */

body {
  margin: 0;
  min-height: 100vh;
  color: var(--sa-text);
  /* Ruled paper kept faint (line colour at 40%) so it stays behind the cards. */
  background: var(--sa-bg) repeating-linear-gradient(transparent 0 31px, color-mix(in srgb, var(--sa-line) 40%, transparent) 31px 32px);
  font: var(--sa-weight-regular) 17px/1.45 var(--sa-font-body);
}

/* ---------------------------------------------------------------- console line (typed by CSS, no script) */

.console {
  padding: 10px 16px;
  text-align: center;
  color: var(--sa-lime);
  background: var(--sa-charcoal);
  border-bottom: var(--sa-stroke-thin) solid var(--sa-outline);
  font: var(--sa-weight-semibold) 15px/1.4 var(--sa-font-mono);
  overflow: hidden;
}
.console code { font: inherit; white-space: nowrap; }
.console .type { display: inline-block; vertical-align: bottom; overflow: hidden; width: calc(var(--n) * 1ch); animation: type calc(var(--n) * 70ms) steps(var(--n)) .4s both; }
.console code::after { content: "▋"; color: var(--sa-amber); animation: blink 1s step-end infinite; }
@keyframes type { from { width: 0; } }
@keyframes blink { 50% { opacity: 0; } }

/* ---------------------------------------------------------------- page */

.wrap { max-width: 480px; margin: 0 auto; padding: 28px 16px 36px; }
.hero { text-align: center; }
.hero .mark img { display: block; width: 112px; height: 112px; margin: 0 auto; }
.name { margin: 14px 0 0; line-height: 0; }
.name img { height: 40px; width: auto; }
.tagline {
  margin: 18px 0 20px;
  font: var(--sa-weight-black) 32px/1.05 var(--sa-font-heading);
  font-stretch: var(--sa-stretch-condensed);
  text-transform: uppercase;
}
/* On the dark page the band would cut the letters in half; the highlighted words turn lime instead, as on dark thumbnails. */
:root[data-theme="dark"] .tagline .sa-hl { background: none; color: var(--sa-lime); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tagline .sa-hl { background: none; color: var(--sa-lime); } }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.socials .sa-chip { padding: 7px 16px; text-decoration: none; }
.socials .sa-chip:hover { transform: translate(-1px, -1px); box-shadow: var(--sa-shadow-md); }
.socials .sa-chip:focus-visible { outline: 3px solid var(--sa-highlight); outline-offset: 3px; }
.greeting { margin: 20px 0 0; color: var(--sa-text-muted); }

/* ---------------------------------------------------------------- sections and links */

.sec { margin-top: 26px; }
.sec h2 { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 18px 4px; font-size: 22px; }
.sec h2 .sa-icon { width: 22px; height: 22px; stroke-width: 2.5; }
.sec ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

.link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 12px;
  color: var(--sa-text);
  text-decoration: none;
  background: var(--sa-surface);
  border: var(--sa-stroke-thin) solid var(--sa-outline);
  border-radius: var(--sa-radius-lg);
  box-shadow: 4px 4px 0 var(--sa-shadow);
  transition: transform .12s, box-shadow .12s;
}
.link:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--sa-shadow); }
.link:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--sa-shadow); }
.link:focus-visible { outline: 3px solid var(--sa-highlight); outline-offset: 3px; }
.ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--sa-on-accent);
  background: var(--sa-accent);
  border: var(--sa-stroke-thin) solid var(--sa-charcoal);
  border-radius: 10px;
}
.txt { min-width: 0; }
.txt b { display: block; font: var(--sa-weight-extrabold) 17px/1.2 var(--sa-font-heading); }
.addr { display: block; margin-top: 3px; font: var(--sa-weight-semibold) 13px/1.3 var(--sa-font-mono); color: var(--sa-text-muted); overflow-wrap: anywhere; }
.go { margin-left: auto; padding-left: 6px; font: var(--sa-weight-black) 22px/1 var(--sa-font-heading); }

/* Section tones: courses amber, exclusive charcoal, tools neutral. Text on lime and amber stays charcoal. */
.tone-amber .ico { background: var(--sa-highlight); color: var(--sa-on-highlight); }
.tone-amber .link { background: var(--sa-highlight-soft); }
.tone-dark .ico { background: var(--sa-text); color: var(--sa-bg); }
.tone-white .ico { background: var(--sa-surface); color: var(--sa-text); border-color: var(--sa-outline); }

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

.foot { margin-top: 40px; text-align: center; }
.foot p { margin: 0; }
.thanks { font: var(--sa-weight-bold) 26px/1.1 var(--sa-font-hand); color: var(--sa-link); }
.foot .url { margin-top: 10px; font: var(--sa-weight-semibold) 16px/1 var(--sa-font-mono); }
.copy { margin-top: 8px; font-size: 14px; color: var(--sa-text-muted); }

@media (prefers-reduced-motion: reduce) {
  .console .type, .console code::after { animation: none; }
  .link, .socials .sa-chip { transition: none; }
}
