/* ==========================================================================
   BranyonTech landing page
   One screen: name, one sentence, three links. Text only.
   Palette borrowed from the retirement page's count-up (dawn) theme.
   ========================================================================== */

:root {
  --bg: #fbf6ef;
  --bg-soft: #f3e9dc;
  --text: #3a2f45;
  --muted: #6f6479;
  --accent: #e07a5f;
  --accent-dark: #c4634a;
  --rule: rgba(58, 47, 69, 0.15);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

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

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

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(224, 122, 95, 0.14) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  -webkit-font-smoothing: antialiased;
}

/* Skip link: off-screen until focused */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 0.5rem 0.5rem;
  transition: top 150ms ease;
}

.skip-link:focus {
  top: 0;
}

/* Single focus rule for everything */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Intro
   -------------------------------------------------------------------------- */
.page {
  display: grid;
  place-items: center;
}

.intro {
  width: 100%;
  max-width: 42rem;
  padding: clamp(2rem, 8vh, 5rem) 1.25rem;
  text-align: center;
  animation: rise 500ms ease-out both;
}

.brand {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
}

.tagline {
  max-width: 34ch;
  margin: 1.25rem auto 0;
  font-size: clamp(1.05rem, 1.1rem + 0.3vw, 1.25rem);
  color: var(--muted);
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   Links
   -------------------------------------------------------------------------- */
.links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  margin-top: 2.5rem;
}

.links a {
  display: inline-block;
  padding-block: 0.25rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  transition: color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.links a:hover {
  color: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 1.5rem 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--rule);
}

/* --------------------------------------------------------------------------
   Motion and contrast preferences
   -------------------------------------------------------------------------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro {
    animation: none;
  }

  .links a,
  .skip-link {
    transition: none;
  }

  .links a:hover {
    transform: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --bg: #ffffff;
    --bg-soft: #ffffff;
    --text: #000000;
    --muted: #333333;
    --accent: #a3402a;
    --accent-dark: #7a2f1e;
    --rule: #000000;
  }

  body {
    background: #ffffff;
  }
}

/* Short viewports (phones in landscape): tighten vertical rhythm */
@media (max-height: 480px) {
  .intro {
    padding-block: 1.25rem;
  }

  .brand {
    margin-bottom: 0.75rem;
  }

  .links {
    margin-top: 1.5rem;
  }

  .site-footer {
    padding-block: 0.75rem;
  }
}
