/* Serinus Solutions. Palette taken from the low-poly canary logo. */
:root {
  --canary: #F4C542;
  --canary-deep: #D99A1E;
  --ink: #1B2229;
  --slate: #4E5862;
  --paper: #FBFBF8;
  --mist: #F0F1EA;
  --rule: #D8DBD0;
  --gold-text: #6F5200;   /* status text: 7:1 on paper */
  --error: #A3261B;

  --font: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  --measure: 38rem;
  --wrap: 72rem;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--canary-deep); }

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

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.visually-hidden, .skip:not(:focus) {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 10; background: var(--ink); color: var(--paper); padding: .5rem .875rem; }

h1, h2, h3 { line-height: 1.15; margin: 0; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.375rem); font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 1.1875rem; font-weight: 700; }
p { margin: 0; }

/* ---------- Masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 5;
  background: var(--canary);
  border-bottom: 1px solid rgba(27, 34, 41, .12);
}
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: .625rem; text-decoration: none; font-weight: 700; font-size: 1.0625rem; }
.brand img { width: 40px; height: 40px; border-radius: 9px; }
.masthead ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.masthead nav a { display: block; padding: .5rem .75rem; text-decoration: none; font-weight: 600; font-size: .9375rem; border-radius: 6px; }
.masthead nav a:hover { background: rgba(27, 34, 41, .08); }
.masthead nav a.nav-cta { background: var(--ink); color: var(--canary); }
.masthead nav a.nav-cta:hover { background: #2C3640; }
@media (max-width: 34rem) {
  .brand span { display: none; }
  .masthead nav li:not(:last-child) a { padding-inline: .5rem; }
}

/* ---------- Hero: the one loud thing on the page ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--canary);
  padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(4rem, 10vw, 8rem);
}
.facets {
  position: absolute;
  top: 0; right: 0;
  width: min(58%, 46rem);
  height: 100%;
}
.hero-inner { position: relative; }
.slogan {
  font-size: clamp(3.25rem, 10.5vw, 8.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: .94;
}
.slogan span { display: block; }
.slogan span:nth-child(2) { padding-left: .5em; }
.slogan span:nth-child(3) { padding-left: 1em; }
.lede {
  max-width: 33rem;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.5;
  font-weight: 500;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: 2rem; }

/* The slogan arrives one word at a time, once. */
@media (prefers-reduced-motion: no-preference) {
  .slogan span { animation: word-in .7s cubic-bezier(.2, .7, .2, 1) both; }
  .slogan span:nth-child(2) { animation-delay: .18s; }
  .slogan span:nth-child(3) { animation-delay: .36s; }
  .facets { animation: facets-in 1.1s ease-out both; }
}
@keyframes word-in { from { opacity: 0; transform: translateX(-.4em); } }
@keyframes facets-in { from { opacity: 0; transform: translate(4%, 3%); } }

@media (max-width: 48rem) {
  .facets { width: 100%; opacity: .55; }
  .slogan span:nth-child(2), .slogan span:nth-child(3) { padding-left: 0; }
}

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  font: inherit; font-weight: 700; font-size: 1rem;
  padding: .875rem 1.375rem;
  border: 0; border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
}
.button-ink { background: var(--ink); color: var(--paper); }
.button-ink:hover { background: #2C3640; }
.button-ink[disabled] { opacity: .6; cursor: progress; }
.button-quiet { font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-alt { background: var(--mist); }
.section-intro { margin-top: .625rem; color: var(--slate); max-width: var(--measure); }

/* Products: a ledger, one row per product */
.products { list-style: none; padding: 0; margin: 2.5rem 0 0; border-bottom: 1px solid var(--rule); }
.product {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr) auto;
  gap: .5rem 2.5rem;
  align-items: baseline;
  padding-block: 1.75rem;
  border-top: 1px solid var(--rule);
}
.product h3 { font-size: 1.375rem; letter-spacing: -0.01em; }
.status { margin-top: .25rem; font-size: .9375rem; font-weight: 600; color: var(--gold-text); }
.status::before {
  content: ""; display: inline-block;
  width: .55em; height: .55em; margin-right: .45em;
  background: var(--canary-deep);
  transform: rotate(45deg) translateY(-.1em);
}
.product-desc { max-width: var(--measure); color: var(--slate); }
.product-link { font-weight: 600; white-space: nowrap; }
@media (max-width: 52rem) {
  .product { grid-template-columns: 1fr; }
  .product-link { justify-self: start; }
}

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 3rem;
  margin-top: 2.5rem;
}
.service { border-top: 4px solid var(--canary); padding-top: 1.25rem; }
.service p { margin-top: .625rem; color: var(--slate); }
@media (max-width: 52rem) { .services { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2.5rem 5rem; align-items: start; }
.contact-copy p { margin-top: 1rem; color: var(--slate); max-width: 30rem; }
.contact-copy .about { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); font-size: .9375rem; }
@media (max-width: 52rem) { .contact { grid-template-columns: 1fr; } }

.contact-form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .375rem; }
.field label { font-weight: 600; font-size: .9375rem; }
.optional { font-weight: 400; color: var(--slate); }
.field input, .field textarea {
  font: inherit;
  width: 100%;
  padding: .75rem .875rem;
  border: 1px solid #A9AEA3;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--canary-deep); outline-offset: 0; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field-error { color: var(--error); font-size: .9375rem; font-weight: 600; }
.contact-form .button { justify-self: start; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 1rem 1.125rem; border-radius: 8px; font-weight: 600; }
.notice:focus { outline: none; }
.notice.is-success { background: #FFF3C9; border-left: 6px solid var(--canary-deep); }
.notice.is-error { background: #FBE9E6; border-left: 6px solid var(--error); color: var(--error); }

/* Footer */
.footer { background: var(--ink); color: #C9CED3; font-size: .9375rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.75rem; }
.footer a { color: var(--paper); }

/* Simple pages: privacy, thanks, 404 */
.page { padding-block: clamp(3rem, 7vw, 5rem); }
.page h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
.page h2 { font-size: 1.375rem; margin-top: 2.25rem; }
.page p, .page ul { max-width: var(--measure); margin-top: 1rem; }
.page .updated { color: var(--slate); }
.page .button { margin-top: 2rem; }
