/* ===== Base: colours and type (adjust once the look and feel is decided) ===== */
:root {
  --color-text: #1d2427;
  --color-muted: #5b666b;
  --color-bg: #ffffff;
  --color-alt: #f4f7f7;
  --color-border: #dde4e5;
  --color-accent: #1f5f6b;
  --color-accent-dark: #164650;
  --color-success: #1e6b3a;
  --color-error: #a12b2b;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 8px;
  --wrap: 68rem;
  --header-h: 3.75rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

img, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: 1.25rem; }
p, ul, ol { margin: 0 0 1em; }

a { color: var(--color-accent); }
a:hover { color: var(--color-accent-dark); }
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

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

.skip-link {
  position: absolute;
  left: -10000px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ===== Header and navigation ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  min-height: var(--header-h);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.site-brand {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-text);
  text-decoration: none;
}
.site-nav { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.site-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
.site-nav a {
  display: block;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius);
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--color-text); background: var(--color-alt); }
.site-nav a.site-nav__cta { color: #fff; background: var(--color-accent); }
.site-nav a.site-nav__cta:hover { background: var(--color-accent-dark); }

@media (min-width: 48rem) {
  .site-nav { width: auto; }
}

/* ===== Page sections inside <main id="top"> ===== */
main > section {
  padding: 3rem 0;
}
main > section:nth-of-type(even) { background: var(--color-alt); }
@media (min-width: 48rem) {
  main > section { padding: 4.5rem 0; }
}

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

.button {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius);
  background: var(--color-accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); color: #fff; }
.button--outline { background: transparent; color: var(--color-accent); }
.button--outline:hover { color: #fff; }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

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

/* ===== Forms ===== */
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
  background: #fff;
}
.form-field textarea { min-height: 8rem; resize: vertical; }
.form-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; padding: 0.75rem 1rem; border-radius: var(--radius); }
.form-status.is-success { background: #e8f4ec; color: var(--color-success); }
.form-status.is-error { background: #f8e9e9; color: var(--color-error); }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}
.site-footer p { margin: 0; }

/* ===== Print: a clean one-column resume ===== */
@media print {
  body { font-size: 11pt; color: #000; background: #fff; }
  .site-header, .site-footer, .skip-link, form, .no-print { display: none !important; }
  main > section { padding: 0.75rem 0; background: none !important; break-inside: avoid-page; }
  .wrap { max-width: none; padding: 0; }
  .card { border: 0; padding: 0; }
  .grid { display: block; }
  a { color: #000; text-decoration: none; }
  h2, h3 { break-after: avoid; }
}