/* Adura brand tokens, taken from adura.com. */
:root {
  color-scheme: light;
  --black: #231f20;
  --shale: #434140;
  --chalk: #f2e3d6;
  --chalk-2: #faf4ee;
  --clay: #994c3b;
  --sandstone: #a37b64;
  --purpaidh: #7975eb;

  /* Dashboard aliases. The dashboard stylesheet reads these names. */
  /* Colour test: chalk page; white stays for raised surfaces. */
  --white: #ffffff;
  --bone: var(--chalk);
  --bone-2: var(--chalk-2);
  --ink: var(--black);
  --ink-2: var(--shale);
  --mute: #7a6a5f;
  --rule: rgba(67, 65, 64, 0.22);
  --surface: var(--chalk);
  --surface-raised: var(--white);
  --surface-strong: var(--black);
  --accent: var(--clay);
  --highlight: var(--purpaidh);
  --text-primary: var(--black);
  --text-muted: var(--mute);
  --border: var(--rule);

  --font-display: "Adura Sans", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Lexend", "Helvetica Neue", Arial, sans-serif;

  /* adura.com's fluid type scale, copied verbatim from its :root. */
  --fs--2: clamp(0.72rem, 0.3vi + 0.38rem, 0.88rem);
  --fs--1: clamp(0.78rem, 0.35vi + 0.45rem, 0.95rem);
  --fs-0: clamp(0.97rem, 0.34vi + 0.8rem, 1.05rem);
  --fs-1: clamp(1rem, 0.65vi + 0.8rem, 1.4rem);
  --fs-2: clamp(1.35rem, 1.3vi + 1.1rem, 2.11rem);
  --fs-3: clamp(1.6rem, 2vi + 1.2rem, 2.7rem);
  --fs-4: clamp(1.9rem, 3vi + 1.6rem, 3.75rem);
  --fs-5: clamp(2.6rem, 4vi + 1.8rem, 4.5rem);

  --layout-gutter: clamp(16px, 3.2vw, 44px);
}

@font-face {
  font-family: "Adura Sans";
  src: url("../fonts/adura-sans-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lexend";
  src: url("../fonts/lexend.woff2") format("woff2-variations"), url("../fonts/lexend.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

html {
  background: var(--surface);
  color: var(--ink);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-0);
  font-weight: 300;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
summary {
  cursor: pointer;
}

a {
  color: var(--clay);
  text-decoration: none;
}

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

h1,
h2,
h3,
h4,
strong {
  font-weight: 500;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Subtitle in sentence case Lexend, as adura.com sets the line under a page
   title (#hero p, #title h1 + p). */
.eyebrow {
  margin: 0;
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: var(--fs-0);
  font-weight: 400;
  line-height: 1.35;
}

.site-frame {
  display: flex;
  flex-direction: column;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--layout-gutter);
  color: var(--ink-2);
}

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

@media (max-width: 560px) {

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

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

.methodology {
  margin: 0;
  max-width: none;
  font-size: var(--fs--1);
  font-weight: 300;
  line-height: 1.45;
}

.site-footer > span {
  flex: 0 0 auto;
  font-size: var(--fs--1);
}
