:root {
  color-scheme: light dark;
  --bg: #f4f7f9;
  --text: #12313d;
  --muted: #557684;
  --accent: #006680;
  --accent-strong: #00556d;
  --surface: rgba(255, 255, 255, 0.74);
  --border: rgba(0, 102, 128, 0.18);
  --shadow: 0 24px 70px rgba(0, 68, 85, 0.12);
  --photo-shadow: 0 22px 55px rgba(0, 68, 85, 0.2);
  --content: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #06151d;
    --text: #f5fbfd;
    --muted: #a8cbd5;
    --accent: #3dbdd1;
    --accent-strong: #8be2ef;
    --surface: rgba(255, 255, 255, 0.06);
    --border: rgba(139, 226, 239, 0.22);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    --photo-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 20%, rgba(61, 189, 209, 0.16), transparent 32rem),
    radial-gradient(circle at 82% 72%, rgba(0, 102, 128, 0.14), transparent 30rem),
    var(--bg);
}

.home-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 4vw, 4rem);
}

.home-hero {
  width: min(100%, var(--content));
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1.5rem, 4.5vw, 4rem);
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.home-copy {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
}

.home-logo {
  width: min(100%, 430px);
  height: auto;
}

h1 {
  margin: 0.75rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 4.8vw, 4.7rem);
  line-height: 1.05;
  letter-spacing: 0;
  max-width: 12ch;
}

.home-lead {
  margin: 0;
  color: var(--muted);
  max-width: 58ch;
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none;
}

.home-offer-note {
  margin: 0.2rem 0 0;
  color: var(--text);
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 700;
  line-height: 1.45;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.8rem;
  margin-top: 1rem;
}

.home-media {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: clamp(0.5rem, 1.4vw, 0.85rem);
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.72), rgba(255,255,255,0.22)),
    rgba(30, 143, 160, 0.08);
  box-shadow: var(--photo-shadow);
}

.home-media picture {
  display: block;
  width: 100%;
  min-width: 0;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: 6px;
}

.home-media::after {
  content: "";
  position: absolute;
  inset: clamp(0.5rem, 1.4vw, 0.85rem);
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
  pointer-events: none;
}

.home-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-link:hover {
  transform: translateY(-1px);
}

.home-link-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 102, 128, 0.24);
}

.home-link-secondary {
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--border);
}

.home-link:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 4px;
}

@media (max-width: 767px) {
  .home-shell {
    align-items: start;
    padding: 1rem;
  }

  .home-hero {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    min-height: auto;
    padding: 1rem;
    text-align: center;
  }

  .home-copy {
    justify-items: center;
    order: 2;
    padding: 0.5rem;
  }

  .home-media {
    order: 1;
    width: 100%;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(2.05rem, 11vw, 3.2rem);
  }

  .home-lead {
    font-size: 1rem;
  }

  .home-actions,
  .home-link {
    width: 100%;
  }

  .home-actions {
    justify-content: center;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .home-hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(300px, 1.08fr);
  }

  .home-logo {
    width: min(100%, 360px);
  }
}

@media (min-width: 1024px) {
  .home-shell {
    min-height: 100svh;
  }
}

@media (min-width: 1024px) and (max-height: 820px) {
  .home-shell {
    padding-block: clamp(1rem, 2vh, 1.5rem);
  }

  .home-hero {
    gap: clamp(1.25rem, 3vw, 2.5rem);
    padding: clamp(1.25rem, 3vh, 2rem) clamp(1.5rem, 4vw, 3rem);
  }

  .home-copy {
    gap: 0.9rem;
  }

  h1 {
    margin-top: 0.4rem;
    font-size: clamp(2.05rem, 4.2vw, 3.65rem);
    line-height: 1.03;
  }

  .home-lead {
    line-height: 1.48;
  }

  .home-actions {
    margin-top: 0.4rem;
  }
}

@media (min-width: 1280px) {
  .home-media picture {
    aspect-ratio: 1.06 / 1;
  }
}

@media (min-width: 1536px) {
  :root {
    --content: 1240px;
  }
}

@media (min-width: 1920px) {
  :root {
    --content: 1320px;
  }
}
