/* ==========================================================================
   Avien Bio — base: tokens, reset, typography, layout
   Shared by the homepage, catalog and product information page.
   ========================================================================== */

:root {
  /* Colour — tuned to the logo (royal blue #0030A0, green #08A038) */
  --ink: #122C40;          /* headings, primary text           14.4:1 on white */
  --ink-2: #3A5163;        /* body copy                          8.3:1 on white */
  --muted: #5A6D7B;        /* captions, meta                     5.4:1 on white */
  --blue: #1C3F98;         /* brand blue, links                  9.5:1 on white */
  --blue-hover: #142F78;
  --green: #1E7A3C;        /* green text / small marks           5.4:1 on white */
  --green-mark: #2E9A4A;   /* logo-aligned accent for rules, not body text */
  --green-on-ink: #6FCB86; /* green detail on the ink section    7.8:1 on --ink-deep */

  --white: #FFFFFF;
  --mineral: #F3F6F4;      /* section background */
  --stone: #E6EBE8;        /* product stage */
  --stone-2: #EEF2F0;      /* stage bench / hover */
  --line: #DCE4E1;         /* dividers */
  --line-strong: #C3CFCA;
  --ink-deep: #0F2638;     /* enquiry section */

  --error: #B42318;
  --focus: #1C3F98;

  /* Type */
  --font-head: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-display: clamp(2.5rem, 1.55rem + 2.9vw, 3.875rem);  /* 40 → 62 */
  --fs-h2: clamp(1.875rem, 1.45rem + 1.4vw, 2.625rem);      /* 30 → 42 */
  --fs-h3: 1.25rem;
  --fs-lede: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);   /* 18 → 21 */
  --fs-body: 1.0625rem;                                     /* 17 */
  --fs-small: 0.9375rem;                                    /* 15 */
  --fs-meta: 0.8125rem;                                     /* 13 */

  /* Layout */
  --container: 1264px;
  --gutter: clamp(16px, 4vw, 40px);
  --col-gap: 24px;
  --header-h: 72px;
  --section-y: clamp(64px, 5vw + 40px, 112px);

  --radius-s: 3px;
  --radius-m: 6px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Reset ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--blue-hover); }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
figure { margin: 0; }
[hidden] { display: none !important; }

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

/* Typography -------------------------------------------------------------- */
h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-display); line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -0.03em; }
h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.01em; font-weight: 650; }
p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1em; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--green);
  font-family: var(--font-head);
  font-size: var(--fs-meta);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--green-mark);
  flex: none;
}
.lede { font-size: var(--fs-lede); line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.meta { font-size: var(--fs-meta); color: var(--muted); }

/* Layout ------------------------------------------------------------------ */
.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
}
.section { padding-block: var(--section-y); }
.section--mineral { background: var(--mineral); }
.section--ruled { border-top: 1px solid var(--line); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  flex-wrap: wrap;
  margin-bottom: clamp(32px, 3vw, 48px);
}
.section-head h2 { max-width: 16em; }

/* Utilities --------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-s);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* Documentary photo treatment — one grade for every photograph on the site */
.photo { filter: saturate(.86) contrast(1.03); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
