/**
 * Styles the public landing page with a calm, responsive, and accessible presentation.
 */

/* Establish predictable sizing and a restrained visual foundation. */
:root {
  color-scheme: light;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #242824;
  background: #fafbf8;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

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

html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background-color: #fafbf8;
  background-image: url('../images/backgrounds/landing-hero.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Center the complete message while preserving comfortable space on small screens. */
.landing {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2.25rem, 6vh, 4rem);
  width: min(100%, 54rem);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) 1.5rem;
  text-align: center;
}

/* The wordmark acts as an elegant logo placeholder without introducing an image dependency. */
.wordmark {
  margin: 0;
  color: #1e2a20;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(3.5rem, 11vw, 6.75rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

/* Keep the headline and supporting thought visually connected. */
.landing__message {
  display: grid;
  gap: 1rem;
}

.landing__message h1 {
  margin: 0;
  color: #273129;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.landing__message p {
  margin: 0;
  color: #687069;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.65;
}

/* Provide a generous touch target and clear keyboard focus without decorative effects. */
.landing__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 14rem);
  min-height: 3.75rem;
  padding: 0.9rem 2rem;
  border: 1px solid #263429;
  border-radius: 0.4rem;
  color: #ffffff;
  background: #263429;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1;
  text-decoration: none;
}

.landing__button:focus-visible {
  outline: 3px solid #9dad9f;
  outline-offset: 4px;
}

/* Prevent the button from becoming unnecessarily wide on narrow devices. */
@media (max-width: 24rem) {
  .landing__button {
    width: 100%;
  }
}
