/* Engstin site. The colours come from /assets/palette.css (linked before this file),
   which follows the system's light or dark setting. The font is the brand's Sora (OFL.txt). */
@font-face {
  font-family: "Sora";
  src: url("/assets/sora-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
:root { color-scheme: light dark; --gutter: clamp(30px, 6vw, 4rem); }
* { box-sizing: border-box; }
html {
  font-family: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter);
  background: var(--brand-background);
  color: var(--brand-text);
}
header, main, footer { width: 100%; max-width: 40rem; margin: 0 auto; }

/* The logo: at least 200 px wide, and free space of a seventh of its width on every side (BRAND.md). */
header { padding-top: max(40px, 3.5rem); }
.logo { display: block; width: 200px; height: auto; aspect-ratio: 392.02 / 102.07; color: var(--brand-primary); }

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: max(40px, 3.5rem) 0 clamp(3.5rem, 14vh, 9rem);
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(1.75rem, 1.1rem + 3.2vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  text-wrap: balance;
}
/* A short circuit trace under the headline: a line that ends in a round dot, as in the logo's e and s. */
h1::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 10px;
  margin-top: 1.5rem;
  background:
    radial-gradient(circle at calc(100% - 5px) 50%, var(--brand-primary) 4px, transparent 4.6px),
    linear-gradient(var(--brand-primary), var(--brand-primary)) left center / calc(100% - 5px) 4px no-repeat;
}
h2 { font-size: 1.375rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; margin: 2rem 0 .75rem; }
p { font-size: clamp(1rem, .95rem + .4vw, 1.125rem); margin: 0 0 .75rem; }

footer {
  border-top: 1px solid var(--brand-muted);
  border-top-color: color-mix(in srgb, var(--brand-muted) 35%, transparent);
  padding: 1.25rem 0 1.5rem;
  font-size: .875rem;
  color: var(--brand-muted);
}

a { color: var(--brand-primary); text-decoration-thickness: .08em; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .16em; }
a:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--brand-primary); color: var(--brand-background); }

@media (min-width: 48rem) {
  .logo { width: 240px; }
}
