/* vasgi.net: one stylesheet, system fonts, light and dark themes, mobile first.
   Colour pairs used for text meet WCAG AAA (7:1) or better against their backgrounds. */

:root {
  color-scheme: light dark;
  --bg: #f7f6f3;
  --surface: #ffffff;
  --text: #1a1c1e;
  --muted: #4a5056;
  --border: #d8dadc;
  --accent: #0a5c70;
  --accent-strong: #084a5a;
  --accent-soft: #e3f0f3;
  --on-accent: #ffffff;
  --ok: #1d6b3a;
  --no: #a12a2a;
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101315;
    --surface: #181c1f;
    --text: #e8eaeb;
    --muted: #aab2b8;
    --border: #30373c;
    --accent: #78c6d9;
    --accent-strong: #a0d8e6;
    --accent-soft: #15272c;
    --on-accent: #0b1a1e;
    --ok: #7fd49a;
    --no: #f19a9a;
  }
}

*,
*::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);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

h1,
h2,
h3 {
  line-height: 1.25;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.75rem, 1.25rem + 2.5vw, 2.75rem);
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.125rem;
  margin: 1.5rem 0 0.5rem;
}

p,
ul,
ol,
dl,
table {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.375rem;
}

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

a:hover {
  color: var(--accent-strong);
  text-decoration-thickness: 2px;
}

a[href^="mailto:"] {
  overflow-wrap: anywhere;
}

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

strong {
  font-weight: 650;
}

/* Layout */

.wrap {
  max-width: 68rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Readable line length, left-aligned with everything else inside .wrap */
.prose > * {
  max-width: 46rem;
}

@media (min-width: 40rem) {
  .wrap {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--surface);
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.5rem;
}

/* Header */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  color: var(--text);
  font-size: 1.1875rem;
  font-weight: 700;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  width: 28px;
  height: 28px;
}

.nav-list,
.footer-links,
.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.125rem;
}

.nav-list li + li,
.footer-links li + li {
  margin-top: 0;
}

.nav-list a {
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--text);
  font-size: 0.9875rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover {
  border-bottom-color: var(--border);
}

.nav-list a[aria-current="page"] {
  border-bottom-color: var(--accent);
  font-weight: 650;
}

/* Page sections */

.hero {
  padding: 2.5rem 0 2rem;
}

.page-head {
  padding-top: 2.25rem;
  padding-bottom: 0.5rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lead {
  max-width: 44rem;
  color: var(--muted);
  font-size: 1.1875rem;
}

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

main > section {
  padding: 2.25rem 0;
  border-top: 1px solid var(--border);
}

main > .hero {
  border-top: 0;
}

.section-intro {
  max-width: 44rem;
  color: var(--muted);
}

.prose section {
  padding-top: 1.25rem;
}

.prose section + section {
  border-top: 1px solid var(--border);
  margin-top: 1.25rem;
}

.note {
  padding: 0.75rem 1rem;
  background: var(--accent-soft);
  border-radius: 8px;
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: var(--on-accent);
  border: 2px solid var(--accent);
  border-radius: 8px;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: var(--on-accent);
}

.button-secondary {
  background: transparent;
  color: var(--accent);
}

.button-secondary:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

/* Cards and grids */

.grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 46rem) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.card {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card > h3:first-child {
  margin-top: 0;
}

.card > :last-child {
  margin-bottom: 0;
}

/* Tick and cross lists, drawn with CSS so they do not depend on font glyphs */

.ticks,
.crosses {
  list-style: none;
  padding-left: 0;
}

.ticks li,
.crosses li {
  position: relative;
  padding-left: 1.75rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.3em;
  width: 0.45rem;
  height: 0.85rem;
  border: solid var(--ok);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.crosses li::before,
.crosses li::after {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.75em;
  width: 0.95rem;
  height: 3px;
  background: var(--no);
  border-radius: 2px;
  transform: rotate(45deg);
}

.crosses li::after {
  transform: rotate(-45deg);
}

/* Steps */

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.steps li {
  margin: 0;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.75rem;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 50%;
  font-weight: 700;
}

.steps h3 {
  margin-top: 0;
}

.steps p {
  margin-bottom: 0;
}

@media (min-width: 46rem) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Promises */

.promises {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.promises li {
  margin: 0;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}

.promises h3 {
  margin-top: 0;
}

.promises p {
  margin-bottom: 0;
}

@media (min-width: 46rem) {
  .promises {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Callouts, contents and tables */

.callout {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
}

.callout-title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.callout ul {
  margin-bottom: 0;
}

/* Features that are designed but not yet in the product. */
.callout-pending {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--muted);
}

.toc {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.toc h2 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.toc ol {
  margin: 0;
}

@media (min-width: 40rem) {
  .toc ol {
    columns: 2;
    column-gap: 2.5rem;
  }

  .toc li {
    break-inside: avoid;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.975rem;
}

caption {
  text-align: left;
  font-weight: 650;
  padding-bottom: 0.5rem;
}

th,
td {
  padding: 0.625rem 0.5rem 0.625rem 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

thead th {
  border-bottom: 2px solid var(--border);
}

td:first-child {
  width: 45%;
  font-weight: 600;
}

.contact-list dt {
  font-weight: 650;
}

.contact-list dd {
  margin: 0 0 0.75rem;
}

.link-list li {
  margin: 0.5rem 0;
}

.notification-sample {
  max-width: 26rem;
  margin: 0 0 1rem 1.25rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgb(0 0 0 / 12%);
}

.notification-sample p {
  margin: 0;
}

.notification-app {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 650;
}

.notification-title {
  font-weight: 650;
}

.notification-text {
  font-size: 0.975rem;
}

.notification-sample .notification-action {
  margin-top: 0.5rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 650;
}

/* Footer */

.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 1rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 46rem) {
  .footer-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.footer-contact {
  font-style: normal;
}

.footer-contact p {
  margin-bottom: 0.5rem;
}

.footer-name {
  color: var(--text);
  font-weight: 650;
}

.footer-links li {
  margin: 0 0 0.25rem;
}

.footer-links a {
  display: inline-block;
  padding: 0.25rem 0;
}

.footer-note {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}

.footer-note p {
  margin-bottom: 0.25rem;
}

@media print {
  .skip-link,
  .site-header nav,
  .actions,
  .toc {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  a {
    color: #000;
  }
}
