/* aldea.nu while the website is not launched: one company page (deploy/config/site/README.md).
   Colours are the brand tokens (packages/brand/src/generated/tokens.css: ground, text, text-muted, primary,
   attention, focus-ring); the font is Bricolage Grotesque, the website's display face (SIL OFL 1.1), self-hosted. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 100%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Metric-matched fallback, so the swap does not move the text. */
@font-face {
  font-family: "Bricolage Fallback";
  src: local("Arial");
  ascent-override: 88.21%;
  descent-override: 25.61%;
  line-gap-override: 0%;
  size-adjust: 105.43%;
}

:root {
  color-scheme: light;
  --ground: #eef3f3;
  --text: #152123;
  --text-soft: #3a484a;
  --text-muted: #5a6b6e;
  --primary: #0b6c71;
  --attention: #e8952f;
  --focus-ring: #14868b;
  --selection: #d7ecec;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ground: #0c1517;
    --text: #e3ebeb;
    --text-soft: #c9d4d4;
    --text-muted: #9daeb0;
    --primary: #5fb9b5;
    --focus-ring: #5fb9b5;
    --selection: #1e4749;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  row-gap: clamp(3.5rem, 9vh, 7rem);
  padding: clamp(1.75rem, 4.5vw, 3.75rem) clamp(1rem, 7vw, 6.5rem) clamp(2rem, 5vw, 3.75rem);
  background: var(--ground);
  color: var(--text);
  font-family: "Bricolage Grotesque", "Bricolage Fallback", sans-serif;
  font-optical-sizing: auto;
  font-kerning: normal;
  font-size: 1.0625rem;
  line-height: 1.55;
}

::selection {
  background: var(--selection);
}

.mark {
  margin: 0;
  color: var(--primary);
  font-size: 1.4375rem;
  font-weight: 680;
  line-height: 1;
  letter-spacing: -0.025em;
}

/* The full stop of the word mark, in the brand's cloudberry colour; the heading ends the same way. */
.mark::after {
  content: "";
  display: inline-block;
  width: 0.26em;
  height: 0.26em;
  margin-left: 0.07em;
  border-radius: 50%;
  background: var(--attention);
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* The way into the app (app.aldea.nu) for customers: plain text with an arrow (drawn, as the font subset has no →). */
.sign-in {
  display: inline-flex;
  align-items: center;
  gap: 0.375em;
  padding: 0.375rem 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 560;
  line-height: 1.2;
  text-decoration: none;
}

.sign-in svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 150ms ease-out;
}

.sign-in:hover {
  color: var(--primary);
}

.sign-in:hover svg {
  transform: translateX(2px);
}

@media (prefers-reduced-motion: reduce) {
  .sign-in svg {
    transition: none;
  }
}

main {
  align-self: center;
  max-width: 50rem;
}

h1 {
  margin: 0;
  max-width: 12.5ch;
  font-size: clamp(2.625rem, 1.35rem + 5vw, 5.5rem);
  font-weight: 590;
  line-height: 1.01;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.stop {
  color: var(--attention);
}

.intro {
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  max-width: 33rem;
  color: var(--text-soft);
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, max-content);
  column-gap: clamp(2.25rem, 5.5vw, 5rem);
  row-gap: 1.375rem;
}

.facts dt {
  margin-bottom: 0.3rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
}

.facts dd {
  margin: 0;
  line-height: 1.35;
}

.num {
  font-variant-numeric: tabular-nums;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--primary);
}

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

@media (max-width: 56rem) {
  .facts {
    grid-template-columns: repeat(2, max-content);
  }
}

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