/* One stylesheet for every page. System fonts only: nothing is loaded from other websites. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f3f6f4;
  --text: #16201b;
  --muted: #47534c;
  --border: #d3dcd7;
  --accent: #0a6650;
  --accent-hover: #074d3c;
  --on-accent: #ffffff;
  --radius: 10px;
  --wrap: 46rem;
  --gutter: 1rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1412;
    --surface: #161d1a;
    --text: #e6ebe8;
    --muted: #aeb9b3;
    --border: #2b3631;
    --accent: #74d1b4;
    --accent-hover: #a3e4d0;
    --on-accent: #082019;
  }
}

@media (min-width: 40rem) {
  :root {
    --gutter: 1.5rem;
  }
}

*,
*::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: 400 1.0625rem/1.65 var(--font);
  /* A long word, such as a long domain or email address, wraps instead of pushing the page sideways. */
  overflow-wrap: break-word;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Text */

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(1.875rem, 1.35rem + 2.4vw, 2.75rem);
  letter-spacing: -0.015em;
}

h2 {
  font-size: 1.5rem;
}

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

p,
ul {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.25rem;
}

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

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

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

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

/* Keeps a company number such as "ABN 12 345 678 901" together on one line, unless it is wider than the screen. */
.keep-together {
  display: inline-block;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 0.5rem;
  z-index: 10;
  padding: 0.5rem 0.875rem;
  border-radius: 6px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

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

/* Header */

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

.site-header .wrap {
  display: flex;
  align-items: center;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

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

.brand:hover .brand-name {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.brand-mark {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
}

.brand-mark__tile {
  fill: var(--accent);
}

.brand-mark__box {
  fill: none;
  stroke: var(--on-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Home page */

.hero {
  padding: 3rem 0 2.75rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.lead {
  max-width: 36rem;
  font-size: 1.1875rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 1.125rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.button--primary {
  background: var(--accent);
  color: var(--on-accent);
}

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

.button--secondary:hover {
  background: var(--surface);
}

.section {
  padding: 2.5rem 0 1.5rem;
}

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

.contact-email {
  font-size: 1.25rem;
  font-weight: 600;
}

/* Privacy policy and terms of use */

.page-head {
  padding: 2.5rem 0 1.75rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.page-head h1 {
  margin-bottom: 0.5rem;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.prose {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.prose h2 {
  margin-top: 2.25rem;
  font-size: 1.3125rem;
}

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

.summary h2 {
  margin-top: 0;
  font-size: 1.125rem;
}

/* Footer */

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

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

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

.footer-nav a {
  white-space: nowrap;
}

.footer-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.site-footer p {
  margin: 0;
}
