* { box-sizing: border-box; }

:root {
  color-scheme: light;
  --ink: #081b34;
  --sky: #c8d9e8;
  --scene: url("morning.jpg");
  --sky-wash: rgba(232, 241, 250, .57);
  --toggle-bg: #f3f8fd;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f3f8ff;
  --sky: #101d31;
  --scene: url("sunset.jpg");
  --sky-wash: rgba(9, 19, 39, .58);
  --toggle-bg: #142741;
}

body {
  margin: 0;
  font: 1rem/1.5 system-ui, sans-serif;
  background: #07162a;
}

.landing {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(2rem, 7vh, 5rem);
  min-height: 100svh;
  padding: clamp(5rem, 10vh, 8rem) clamp(1.25rem, 5vw, 6rem) clamp(2rem, 6vh, 4rem);
  color: var(--ink);
  background: linear-gradient(to bottom, var(--sky-wash) 0 48%, transparent 63%, #07162a 98%),
    var(--scene) center / cover no-repeat, var(--sky);
}

.theme-toggle {
  position: absolute;
  inset: 1.25rem clamp(1.25rem, 5vw, 6rem) auto auto;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .45rem .85rem;
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  border-radius: 999px;
  background: var(--toggle-bg);
  color: inherit;
  font: 600 .875rem/1.2 system-ui, sans-serif;
  cursor: pointer;
}

.theme-toggle:not([hidden]) { display: inline-flex; }
.theme-toggle svg { width: 1.1rem; }

.intro { text-align: center; }
.intro h1 { margin: 0; }
.logo { display: block; width: clamp(13rem, 26vw, 24rem); height: auto; margin: auto; }
.sunset-logo, [data-theme="dark"] .morning-logo { display: none; }
[data-theme="dark"] .sunset-logo { display: block; }

.intro p {
  max-width: 36rem;
  margin: 1rem auto 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 600;
  text-wrap: balance;
}

.offerings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.75rem, 1.8vw, 1.5rem);
  width: min(100%, 82rem);
  margin-inline: auto;
  color: #f6f9ff;
}

.offering { text-align: center; }
.offering h2 { margin: 0; }

.tile {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: .85rem;
  min-height: clamp(8rem, 24vh, 15rem);
  padding: 1rem;
  border: 1px solid #9bd8ff40;
  border-radius: clamp(1rem, 2vw, 1.75rem);
  background: linear-gradient(145deg, #183d63f2, #0a233cf5);
  color: inherit;
  font-size: clamp(1.2rem, 2.45vw, 2rem);
  font-weight: 650;
  letter-spacing: -.025em;
  text-decoration: none;
}

a.tile:hover { background: linear-gradient(145deg, #23547e, #113556); }
:where(a, button):focus-visible { outline: 3px solid #70d5ff; outline-offset: 4px; }

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tile svg { width: clamp(2rem, 4.9vw, 4rem); color: #a5e3ff; }
.arrow { margin-inline-start: .25em; }
.offering p { max-width: 25rem; margin: .8rem auto 0; color: #e4edf8; text-wrap: balance; }

@media (max-width: 650px) {
  .landing { background-position: center top; gap: 2.75rem; }
  .offerings { grid-template-columns: 1fr; gap: 1.5rem; max-width: 28rem; }
  .tile { min-height: 6rem; grid-auto-flow: column; justify-content: center; align-items: center; }
}
