/* Kinet: light technical design. Local system fonts, restrained forest accents,
   compact type and spacing. Static content; colour pairs are checked for AA. */

:root {
  /* Colour tokens */
  --bg: #f8f8f5;
  --surface: #ffffff;
  --tint: #edf2ed;
  --line: #e4e7e1;
  --line-strong: #d5dbd3;
  --ink: #27382e;
  --muted: #5a655e;
  --accent: #376b50;
  --accent-hover: #2c5b43;
  --on-accent: #ffffff;
  --note: #fdf3d7;
  --note-line: #c9a24a;

  /* Type */
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-sans);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* Space and shape */
  --gutter: 1rem;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.25rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(39, 56, 46, 0.04);
  --measure: 44rem;
  --page: 68rem;

  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Layout */
.container {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band {
  padding-block: var(--space-4);
}

.band--paper {
  background: var(--bg);
}

.band--white {
  background: var(--surface);
}

.band--tint {
  background: var(--tint);
}

.band--white,
.band--tint {
  border-block: 1px solid var(--line);
}

.stack > * + * {
  margin-top: var(--space-2);
}

.grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.split {
  display: grid;
  gap: var(--space-4);
  align-items: center;
}

/* Typography */
h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2rem, 2.4vw + 1rem, 2.5rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.375rem, 1.5vw + 1rem, 1.75rem);
}

h3 {
  font-size: 1rem;
  font-weight: 650;
}

p {
  margin: 0;
  max-width: var(--measure);
}

.lede {
  font-size: 1rem;
  line-height: 1.5;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

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

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-hover);
  text-decoration-thickness: 0.15em;
}

code,
pre {
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

pre {
  margin: 0;
  padding: var(--space-2);
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--tint);
  color: var(--ink);
}

/* Focus: a dark ring that stays visible on every surface */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: var(--gutter);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  transform: translateY(-120%);
}

.skip-link:hover {
  color: var(--on-accent);
}

.skip-link:focus {
  transform: translateY(var(--space-1));
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.65rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

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

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

.btn--ghost {
  border-color: var(--accent);
  background: transparent;
  color: var(--accent);
}

.btn--ghost:hover {
  background: var(--tint);
  color: var(--accent-hover);
}

/* Cards */
.card {
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.band--white .card {
  background: var(--bg);
  box-shadow: none;
}

.card > * + * {
  margin-top: var(--space-1);
}

.card .eyebrow {
  margin-bottom: var(--space-1);
}

/* Header and footer */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1) var(--space-3);
  padding-block: var(--space-2);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.wordmark:hover {
  color: var(--ink);
}

.wordmark__mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.site-header nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
}

.site-header nav a:not(.btn):hover {
  color: var(--accent);
  text-decoration: underline;
}

.site-header nav a[aria-current="page"]:not(.btn) {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding-block: var(--space-4);
  font-size: 0.84rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  margin: 0 0 var(--space-2);
  padding: 0;
  list-style: none;
}

.site-footer p + p {
  margin-top: var(--space-1);
}

/* Long-form text (the legal pages) */
.prose {
  max-width: 46rem;
  margin-inline: auto;
}

.prose > * + * {
  margin-top: var(--space-2);
}

.prose h2 {
  margin-top: var(--space-4);
  font-size: clamp(1.375rem, 1.5vw + 1rem, 1.75rem);
}

.prose h3 {
  margin-top: var(--space-3);
}

.prose p,
.prose li {
  max-width: none;
}

.prose ul,
.prose ol {
  padding-inline-start: 1.5rem;
}

.prose li + li {
  margin-top: var(--space-1);
}

.table-wrap {
  overflow-x: auto;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.prose th,
.prose td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line-strong);
  text-align: start;
  vertical-align: top;
}

.prose th {
  background: var(--tint);
}

.banner {
  max-width: var(--measure);
  padding: var(--space-2);
  border-inline-start: 4px solid var(--note-line);
  border-radius: var(--radius-sm);
  background: var(--note);
  color: var(--ink);
}

.tbc {
  padding: 0 0.35em;
  border-bottom: 1px dashed var(--note-line);
  border-radius: 3px;
  background: var(--note);
  color: var(--ink);
  font-size: 0.9em;
  font-weight: 600;
  white-space: nowrap;
}

/* Utilities */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  padding-block: var(--space-4) var(--space-5);
}

.hero h1 {
  max-width: 27ch;
  text-wrap: balance;
}

/* The static phrase is the default. With motion enabled, the decorative words
   share a grid cell to reserve the longest word's width and finish in 4.8s. */
.cycle {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .cycle {
    display: inline-grid;
    vertical-align: top;
    color: var(--accent);
    white-space: nowrap;
  }

  .cycle > span {
    grid-area: 1 / 1;
    opacity: 0;
    animation: cycle-word 1.2s ease both;
  }

  .cycle > span:first-child {
    animation-name: cycle-first;
  }

  .cycle > span:nth-child(2) {
    animation-delay: 1.2s;
  }

  .cycle > span:nth-child(3) {
    animation-delay: 2.4s;
  }

  .cycle > span:last-child {
    animation-name: cycle-last;
    animation-delay: 3.6s;
  }

  .cycle-static {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
}

@keyframes cycle-first {
  0%, 85% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-0.2em); }
}

@keyframes cycle-word {
  0% { opacity: 0; transform: translateY(0.2em); }
  15%, 85% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-0.2em); }
}

@keyframes cycle-last {
  0% { opacity: 0; transform: translateY(0.2em); }
  15%, 100% { opacity: 1; transform: translateY(0); }
}

h2 {
  text-wrap: balance;
}

.workflow-panel {
  border-top: 3px solid var(--accent);
}

.workflow-panel .flow h3 {
  font-size: 0.9375rem;
}

.hero .pill {
  margin-top: 0;
}

.section-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  padding: 0;
  margin: var(--space-2) 0 0;
  list-style: none;
}

.questions {
  max-width: var(--measure);
}

.questions article {
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--line);
}

.questions article > * + * {
  margin-top: var(--space-1);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

/* The address printed beside an email button, for visitors without a mail program */
.address {
  margin-inline-start: var(--space-1);
  color: var(--muted);
  font-size: 0.9375rem;
  user-select: all;
}

.actions .address {
  align-self: center;
  margin-inline-start: 0;
}

/* Numbered steps for the request-access page */
.steps {
  margin: var(--space-2) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: var(--space-2);
  max-width: var(--measure);
}

.steps li {
  position: relative;
  counter-increment: step;
  padding: var(--space-2) var(--space-2) var(--space-2) 3.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  inset-block-start: var(--space-2);
  inset-inline-start: var(--space-2);
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.875rem;
}

/* Flow diagram: an ordered list of four steps joined by a line */
.flow {
  margin: var(--space-2) 0 0;
  padding: 0;
  list-style: none;
}

.flow li {
  position: relative;
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: var(--space-2);
  padding-bottom: var(--space-3);
}

.flow li:last-child {
  padding-bottom: 0;
}

.flow li::before {
  content: "";
  position: absolute;
  inset-block: 1.75rem 0;
  inset-inline-start: calc(0.875rem - 1px);
  width: 2px;
  background: var(--line-strong);
}

.flow li:last-child::before {
  display: none;
}

.flow__icon {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  background: var(--tint);
  color: var(--accent);
}

.flow__icon {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
}

.flow__icon svg {
  width: 0.95rem;
  height: 0.95rem;
}

.flow h3 {
  font-size: 1rem;
  color: var(--ink);
}

.flow p {
  color: var(--muted);
  line-height: 1.5;
}

.pill {
  display: inline-block;
  margin-top: var(--space-1);
  padding: 0.1rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 650;
}

/* Feature rows: text and a card, alternating on wide screens */
.feature {
  display: grid;
  gap: var(--space-3);
  align-items: center;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The list rule above would otherwise cancel the stack's gap before a list */
.stack > .checklist {
  margin-top: var(--space-2);
}

.checklist li {
  position: relative;
  padding-inline-start: 1.5rem;
}

.checklist li + li {
  margin-top: var(--space-1);
}

.checklist li::before {
  content: "";
  position: absolute;
  inset-block-start: 0.5em;
  inset-inline-start: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

/* Wider screens */
@media (min-width: 48rem) {
  :root {
    --gutter: 1.5rem;
  }

  body {
    font-size: 1rem;
  }

  .band {
    padding-block: var(--space-5);
  }

  .split {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  .feature--reverse > :first-child {
    order: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
