:root {
  --black: #0c0c0c;
  --ink: #1a1c1e;
  --grey-700: #4a4a4a;
  --grey-500: #787878;
  --grey-300: #b8b8b8;
  --grey-100: #e4e4e4;
  --white: #ffffff;

  --font-body: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 647px;
  --edge: clamp(24px, 6vw, 64px);
}

* { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0 auto;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  max-width: 1200px;
}

@media (prefers-reduced-motion: no-preference) {
  .line {
    opacity: 0;
    transform: translateY(0.4em);
    animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .line-1 { animation-delay: 0.05s; }
  .line-2 { animation-delay: 0.22s; }
  .line-3 { animation-delay: 0.39s; }

  @keyframes rise {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ---------- Header ---------- */

.site-header {
  padding: var(--edge) var(--edge) 0;
}

.brand {
  display: inline-flex;
  text-decoration: none;
}

.brand-mark {
  height: 64px;
  width: auto;
  display: block;
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  min-height: calc(100svh - 64px - var(--edge));
  padding: clamp(32px, 6vw, 64px) var(--edge);
  /* width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw); */
}

.hero-icon {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
}

.hero-mark {
  width: 100%;
  max-width: min(42vw, 420px);
  height: auto;
  display: block;
}

.tagline {
  flex: 1 1 50%;
  margin: 0;
  min-width: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(1.75rem, 3.6vw, 3.25rem);
  line-height: 1.12;
  color: var(--black);
}

.tagline .line {
  display: block;
}

.line-3 {
  color: var(--grey-500);
  font-weight: 400;
}

/* ---------- Beliefs ---------- */

.beliefs {
  border-top: 1px solid var(--grey-100);
  padding: clamp(48px, 8vw, 88px) var(--edge) clamp(80px, 12vw, 140px);
  max-width: var(--max-width);
}

.beliefs-heading {
  margin: 0 0 clamp(28px, 5vw, 44px);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--black);
}

.beliefs-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.beliefs-list li {
  padding: 26px 0;
  border-top: 1px solid var(--grey-100);
}

.beliefs-list li:last-child {
  border-bottom: 1px solid var(--grey-100);
}

.beliefs-list p {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55;
  font-weight: 400;
  color: var(--ink);
  max-width: 62ch;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 32px var(--edge) 48px;
  font-size: 0.85rem;
  color: var(--grey-500);
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    justify-content: center;
    min-height: auto;
    padding-top: clamp(48px, 10vw, 80px);
    padding-bottom: clamp(48px, 10vw, 80px);
  }

  .hero-icon,
  .tagline {
    flex: none;
    width: 100%;
  }

  .hero-mark {
    max-width: min(72vw, 320px);
    left: 63%;
        position: relative;
  }

  .tagline {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }
}

@media (max-width: 480px) {
  .brand-mark { width: 60% }
  .beliefs-list li { padding: 20px 0; }
}

/* ---------- Focus visibility ---------- */

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