/* First Light Softech LLP — corporate site
   Direction: "blue hour → first light".
   Cool pre-dawn paper, blue-hour ink, indigo as the working accent.
   Gold appears twice per page and nowhere else: the horizon rule, and the
   current-page marker. The horizon rule is the logo, extended full-bleed. */

/* Self-hosted so the site makes zero third-party requests — the privacy
   notice says so, and that has to stay true. Latin subsets only. */

@font-face {
  font-family: 'Public Sans';
  src: url('/assets/fonts/public-sans-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Spectral';
  src: url('/assets/fonts/spectral-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #16202E;
  --ink-soft: #33465F;
  --slate: #5C6B7E;
  --paper: #F7F8FA;
  --card: #FFFFFF;
  --rule: #DCE3EB;
  --indigo: #2E4A7D;
  --gold: #E8A33D;
  --gold-pale: #F6DCAE;

  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 56rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Skip link ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 10;
  text-decoration: none;
}
.skip:focus { left: 0; }

/* ---------- Masthead + horizon ---------- */

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: .75rem 2rem;
  padding-top: clamp(1.5rem, 4vw, 2.25rem);
  padding-bottom: .875rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font: 500 1.0625rem/1 var(--serif);
  letter-spacing: .005em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--indigo); }
.brand svg { display: block; flex: none; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.25rem;
  font: 400 .8125rem/1.4 var(--mono);
}
.nav a {
  color: var(--slate);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--rule); }
.nav a[aria-current='page'] { color: var(--ink); border-bottom-color: var(--gold); }

/* The signature: a full-bleed dawn gradient, drawn once on load. */
.horizon {
  height: 2px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg,
    var(--indigo) 0%,
    var(--indigo) 14%,
    #7A5F6B 46%,
    var(--gold) 82%,
    var(--gold-pale) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  animation: dawn .9s cubic-bezier(.2, .7, .2, 1) .12s forwards;
}
@keyframes dawn { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .horizon { animation: none; transform: none; }
}

/* ---------- Typography ---------- */

main { padding-block: clamp(2.5rem, 7vw, 4rem) clamp(3rem, 8vw, 5rem); }

h1 {
  margin: 0 0 1.25rem;
  font: 500 clamp(2rem, 1.4rem + 2.6vw, 3rem)/1.14 var(--serif);
  letter-spacing: -.012em;
  max-width: 24ch;
  text-wrap: balance;
}

h2 {
  margin: 3rem 0 1rem;
  font: 500 clamp(1.3rem, 1.15rem + .7vw, 1.625rem)/1.3 var(--serif);
  letter-spacing: -.006em;
}

h3 {
  margin: 2rem 0 .5rem;
  font: 600 1rem/1.4 var(--sans);
}

p { margin: 0 0 1.15rem; max-width: 62ch; }

.lede {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

a { color: var(--indigo); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

.mono { font-family: var(--mono); font-size: .9375em; letter-spacing: -.01em; }

.eyebrow {
  margin: 0 0 .5rem;
  font: 500 .6875rem/1.4 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
}

ul { max-width: 62ch; padding-left: 1.1rem; margin: 0 0 1.15rem; }
li { margin-bottom: .4rem; }

/* ---------- Record: the site's structural spine ----------
   Field/value pairs that mirror how the entity appears on the public
   register. Every claim here is independently checkable. */

.record { margin: 1.75rem 0 2rem; border-top: 1px solid var(--rule); }

.record > div {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--rule);
}

.record dt {
  margin: 0;
  font: 500 .6875rem/1.55 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--slate);
  padding-top: .18rem;
}

.record dd { margin: 0; color: var(--ink); }
.record dd p { margin: 0; }

@media (max-width: 36rem) {
  .record > div { grid-template-columns: 1fr; gap: .2rem; }
}

/* ---------- Product panel ---------- */

.panel {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: clamp(1.25rem, 4vw, 1.75rem);
  margin: 1.75rem 0 2rem;
}
.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }

.status {
  display: inline-block;
  font: 500 .6875rem/1 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: #FBF3E4;
  border: 1px solid var(--gold-pale);
  padding: .4rem .55rem;
  margin-bottom: 1rem;
}

address { font-style: normal; }

/* ---------- Footer ---------- */

.foot {
  border-top: 1px solid var(--rule);
  padding-block: 1.5rem 2.5rem;
  font: 400 .8125rem/1.7 var(--mono);
  color: var(--slate);
}
.foot p { max-width: none; margin: 0 0 .4rem; }
.foot a { color: var(--slate); }
.foot a:hover { color: var(--ink); }
.foot .statutory { color: var(--ink-soft); }

/* ---------- Principles ----------
   Same hairline-separated language as .record, but prose instead of values.
   Deliberately unnumbered: these are commitments held simultaneously, not a
   sequence, and numbering them would imply an order that isn't there. */

.principles { margin: 1.75rem 0 2rem; border-top: 1px solid var(--rule); }

.principles > div { padding: 1.15rem 0; border-bottom: 1px solid var(--rule); }

.principles h3 {
  margin: 0 0 .3rem;
  font: 500 1.0625rem/1.4 var(--serif);
  letter-spacing: -.004em;
}

.principles p { margin: 0; color: var(--ink-soft); max-width: 64ch; }

/* ---------- Capabilities ----------
   Two columns of short factual items. Same hairlines again. */

.caps {
  margin: 1.5rem 0 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2.5rem;
  border-top: 1px solid var(--rule);
}

.caps > div { padding: .85rem 0; border-bottom: 1px solid var(--rule); }

.caps strong { display: block; font-weight: 600; font-size: .9375rem; }

.caps span { color: var(--slate); font-size: .875rem; line-height: 1.5; }

@media (max-width: 40rem) {
  .caps { grid-template-columns: 1fr; }
}

/* ---------- Closing contact line ---------- */

.signoff {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.signoff p { margin: 0 0 .3rem; }

/* The h3 in a panel is a product name, so it takes the display face like the
   principle headings do — the global sans h3 is for headings inside body copy.
   It also sits right under the status chip, so the global 2rem top margin is
   wrong here. */
.panel h3 {
  margin: .25rem 0 .5rem;
  font: 500 1.25rem/1.3 var(--serif);
  letter-spacing: -.006em;
}
