/* Instrument Sans is served from this site under the SIL Open Font License; see assets/fonts/ */
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
/* Layout: one full-screen photo with the contact line in the middle, then the footer in the opposite logo colourway.
   No animation, no hover effects; the only links are the two email addresses. */
:root {
  --paper: #FFFFFF;
  --ink: #0B0B0C;
  --on-photo: #FFFFFF;
  --focus: #9BBBE6;
  --body: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: max(20px, 5vw);
  --wordmark-w: 160px;   /* fixed at every screen size; both logos are sized from this */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #000000; --ink: #F3F3F1; color-scheme: dark; }
}
:root[data-theme="dark"] { --paper: #000000; --ink: #F3F3F1; color-scheme: dark; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, p { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap {
  width: 100%;
  max-width: calc(1120px + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---------- Photo screen ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto 1fr;      /* equal space above and below keeps the contact line in the middle */
  color: var(--on-photo);
  background: #0F1B2E;
}
.hero-img {
  position: absolute; inset: -1px;
  width: calc(100% + 2px); height: calc(100% + 2px);
  max-width: none;
  object-fit: cover;
  object-position: 62% 10%;
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgb(14 30 60 / 0.32), rgb(14 30 60 / 0) 24%),
    linear-gradient(to top, rgb(12 24 48 / 0.30), rgb(12 24 48 / 0) 45%);
}
.hero-top, .hero-middle, .hero-brand { position: relative; }
.hero-top { align-self: start; padding-top: calc(22px + env(safe-area-inset-top, 0px)); }
/* the sprout 'i' drawn at exactly the size of the 'i' inside the wordmark (145.6 of the wordmark's 725 units) */
.mark { display: block; height: calc(var(--wordmark-w) * 145.6 / 725); width: calc(var(--wordmark-w) * 145.6 / 725 * 241 / 568); color: var(--on-photo); }

.hero-middle { display: flex; justify-content: center; }
.contact {
  max-width: 40em;
  text-align: center;
  text-wrap: balance;
  font-size: clamp(1.0625rem, 0.9rem + 0.7vw, 1.375rem);
  line-height: 1.45;
  text-shadow: 0 1px 16px rgb(10 22 44 / 0.45);
}
.contact a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  overflow-wrap: anywhere;
}

.hero-brand {
  align-self: end;
  display: flex; justify-content: flex-end;
  padding-bottom: calc(clamp(40px, 6vh, 64px) + env(safe-area-inset-bottom, 0px));
}
.hero-brand h1 { line-height: 0; }
.wordmark { display: block; width: var(--wordmark-w); height: auto; aspect-ratio: 725 / 187; color: var(--on-photo); }

/* ---------- Footer (opposite colourway: white on black in light mode, black on white in dark mode) ---------- */
.footer { background: var(--ink); color: var(--paper); padding-block: 56px calc(40px + env(safe-area-inset-bottom, 0px)); }
.footer-inner { display: grid; gap: 36px; }
.footer-wordmark { display: block; width: var(--wordmark-w); height: auto; aspect-ratio: 725 / 187; color: var(--paper); }
.legal { font-size: 0.78rem; opacity: 0.6; border-top: 1px solid currentColor; padding-top: 18px; }
