/* Nextech Systems - nextechsystems.com.au
   Palette sampled from the NS brand mark: zinc ground, sky accent. */

:root {
  --ground:   #18181b;
  --raised:   #202024;
  --raised-2: #26262b;
  --line:     #33333a;
  --line-2:   #43434c;
  --ink:      #e8ecf0;
  --ink-dim:  #a7abb4;
  --ink-mute: #7d818a;
  --sky:      #38bdf8;
  --sky-deep: #1d679c;
  --sky-soft: rgba(56, 189, 248, 0.11);

  --wrap: 68rem;
  --measure: 44rem;

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--sky);
  color: #06283d;
  padding: 0.6rem 1rem;
  z-index: 20;
  font-weight: 600;
}
.skip:focus { left: 0; }

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

.site-head {
  border-bottom: 1px solid var(--line);
  background: rgba(24, 24, 27, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.head-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.015em;
  font-size: 1.03rem;
  white-space: nowrap;
}
.brand img { display: block; border-radius: 4px; }
.brand-2 { color: var(--ink-dim); font-weight: 500; }
.brand:hover .brand-2 { color: var(--ink); }

.nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.nav a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.94rem;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  transition: color 0.14s, background 0.14s;
}
.nav a:hover { color: var(--ink); background: var(--raised-2); }
.nav a.on { color: var(--sky); background: var(--sky-soft); }

/* ------------------------------------------------------------------ main */

main {
  flex: 1;
  padding-block: 3.5rem 5rem;
}

.prose > * { max-width: var(--measure); }
.prose.wide > * { max-width: none; }

.prose h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 680;
  margin: 0 0 1.1rem;
}

.prose h2 {
  font-size: 1.4rem;
  letter-spacing: -0.017em;
  font-weight: 640;
  margin: 3rem 0 0.9rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 5rem;
}
.prose h1 + h2 { border-top: 0; padding-top: 0; margin-top: 2rem; }

.prose h3 {
  font-size: 1.08rem;
  font-weight: 640;
  letter-spacing: -0.01em;
  margin: 2rem 0 0.6rem;
  color: var(--ink);
  scroll-margin-top: 5rem;
}

.prose p { margin: 0 0 1.15rem; color: var(--ink-dim); }
.prose h1 + p { font-size: 1.14rem; color: var(--ink); max-width: 40rem; }

.prose strong { color: var(--ink); font-weight: 620; }

.prose a {
  color: var(--sky);
  text-decoration-color: rgba(56, 189, 248, 0.35);
  text-underline-offset: 3px;
}
.prose a:hover { text-decoration-color: var(--sky); }

.prose ul, .prose ol { margin: 0 0 1.3rem; padding-left: 1.25rem; color: var(--ink-dim); }
.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: var(--ink-mute); }

.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.prose code {
  font-family: var(--mono);
  font-size: 0.87em;
  background: var(--raised-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.1em 0.38em;
  color: var(--ink);
  overflow-wrap: break-word;
}

/* Long-document table of contents */
.toc {
  max-width: var(--measure);
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.1rem 1.35rem 0.9rem;
  margin: 0 0 2.5rem;
}
.toc-label {
  margin: 0 0 0.55rem !important;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute) !important;
  font-weight: 620;
}
.toc { margin-top: 2.5rem; }
.toc + h2 { border-top: 0; padding-top: 0; margin-top: 0; }
.toc ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 1.6rem; }
.toc li { margin-bottom: 0.32rem; break-inside: avoid; }
.toc a { font-size: 0.9rem; color: var(--ink-dim); text-decoration: none; }
.toc a:hover { color: var(--sky); }

/* --------------------------------------------------------------- app grid */

.apps {
  list-style: none;
  margin: 2rem 0 1rem;
  padding: 0;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
  gap: 0.9rem;
}

.app a {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 1rem;
  align-content: start;
  height: 100%;
  padding: 1.15rem;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.16s, background 0.16s, transform 0.16s;
}
.app a:hover {
  border-color: var(--sky-deep);
  background: var(--raised-2);
  transform: translateY(-2px);
}

.app img, .app .noicon {
  grid-row: 1 / 3;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 11px;
  background: var(--raised-2);
  border: 1px solid var(--line);
}

.app-t {
  grid-column: 2;
  font-weight: 620;
  font-size: 0.99rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--ink);
  align-self: end;
}
.app-m {
  grid-column: 2;
  font-size: 0.75rem;
  color: var(--ink-mute);
  letter-spacing: 0.03em;
  line-height: 1.4;
  margin-top: 0.15rem;
  align-self: start;
}
.app-d {
  grid-column: 1 / -1;
  margin-top: 0.9rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-dim);
}

/* ------------------------------------------------------------------ hero */

.hero {
  max-width: none !important;
  margin-bottom: 3.5rem;
  padding: 3rem 2.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(90rem 32rem at 82% -30%, rgba(56, 189, 248, 0.14), transparent 62%),
    linear-gradient(180deg, var(--raised), var(--ground));
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(56, 189, 248, 0.5) 1.4px, transparent 1.6px),
    radial-gradient(circle at 34% 68%, rgba(56, 189, 248, 0.4) 1.2px, transparent 1.4px),
    radial-gradient(circle at 61% 18%, rgba(56, 189, 248, 0.45) 1.3px, transparent 1.5px),
    radial-gradient(circle at 88% 54%, rgba(56, 189, 248, 0.4) 1.5px, transparent 1.7px),
    radial-gradient(circle at 74% 86%, rgba(56, 189, 248, 0.3) 1.2px, transparent 1.4px);
  pointer-events: none;
  opacity: 0.75;
}
.hero > * { position: relative; z-index: 1; max-width: 40rem; }
.hero h1 { margin-bottom: 0.9rem; }
.hero p:last-child { margin-bottom: 0; }

/* Call to action row, written as a plain paragraph of links in markdown */
.cta { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.6rem !important; }
.cta p { display: contents; }
.cta a {
  display: inline-block;
  padding: 0.6rem 1.15rem;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line-2);
  color: var(--ink);
  transition: background 0.14s, border-color 0.14s;
}
.cta a:first-child {
  background: var(--sky);
  border-color: var(--sky);
  color: #06283d;
}
.cta a:first-child:hover { background: #5cc9fa; border-color: #5cc9fa; }
.cta a:hover { background: var(--raised-2); border-color: var(--sky-deep); }

/* ----------------------------------------------------------------- notice */

.notice {
  max-width: var(--measure);
  border: 1px solid var(--line);
  border-left: 3px solid var(--sky-deep);
  background: var(--raised);
  border-radius: 0 10px 10px 0;
  padding: 1.1rem 1.35rem;
  margin: 0 0 2rem;
}
.notice p { margin: 0; font-size: 0.94rem; }

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

.site-foot {
  border-top: 1px solid var(--line);
  padding-block: 2rem;
  margin-top: auto;
  background: var(--raised);
}
.foot-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}
.foot-c { margin: 0; color: var(--ink-mute); font-size: 0.87rem; }
.foot-n { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.foot-n a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.87rem;
  overflow-wrap: anywhere;
}
.foot-n a:hover { color: var(--sky); }

/* --------------------------------------------------------------- responsive */

@media (max-width: 640px) {
  body { font-size: 16px; }
  main { padding-block: 2.25rem 3.5rem; }
  .hero { padding: 2rem 1.35rem; border-radius: 13px; }
  .toc ul { columns: 1; }
  .head-in { min-height: 3.5rem; }
  .nav { gap: 0.15rem; }
  .nav a { padding: 0.35rem 0.5rem; font-size: 0.89rem; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .app a:hover { transform: none; }
}

/* Printing the privacy policy should produce a readable document. */
@media print {
  body { background: #fff; color: #000; display: block; }
  .site-head, .site-foot, .toc, .skip { display: none; }
  .prose a { color: #000; }
  .prose > * { max-width: none; }
}
