:root {
  color-scheme: light dark;
  --page: #f4f7f4;
  --surface: #ffffff;
  --ink: #20332d;
  --muted: #687770;
  --line: #dce5df;
  --green: #3c886a;
  --green-dark: #28684f;
  --green-soft: #e4f1e9;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --sans: "DM Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 78% 37%, rgba(196, 222, 203, .28), transparent 34rem),
    var(--page);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.page-shell {
  display: flex;
  width: min(1160px, calc(100% - 64px));
  min-height: 100vh;
  flex-direction: column;
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.08em;
}

.brand-name { font-size: 17px; font-weight: 700; letter-spacing: -.035em; }

.header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .18s, background .18s;
}

.header-link:hover { border-color: var(--green); background: var(--surface); }

main { display: grid; flex: 1; align-items: center; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  align-items: center;
  gap: clamp(40px, 8vw, 112px);
  padding: 68px 0 82px;
}

.hero-copy { max-width: 570px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 24px;
  color: var(--muted);
  font: 600 11px/1.4 var(--mono);
  letter-spacing: .11em;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

h1 {
  max-width: 590px;
  margin: 0;
  font-size: clamp(44px, 6.2vw, 76px);
  font-weight: 600;
  letter-spacing: -.065em;
  line-height: 1.04;
}

.intro {
  max-width: 455px;
  margin: 24px 0 30px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.7;
}

.sign-in-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 21px;
  border: 1px solid var(--green-dark);
  border-radius: 9px;
  background: var(--green);
  box-shadow: 0 8px 20px rgba(45, 108, 79, .15);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s, transform .18s, box-shadow .18s;
}

.sign-in-button:hover {
  transform: translateY(-1px);
  background: var(--green-dark);
  box-shadow: 0 11px 24px rgba(45, 108, 79, .2);
}

.sign-in-button:focus-visible, .header-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--green) 48%, transparent);
  outline-offset: 3px;
}

.button-arrow { font-size: 18px; font-weight: 400; }

.sign-in-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.hero-art {
  position: relative;
  display: grid;
  min-height: 410px;
  place-items: center;
  isolation: isolate;
}

.art-orbit {
  position: absolute;
  z-index: -1;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--green) 18%, transparent);
  border-radius: 50%;
}

.orbit-outer { width: min(100%, 400px); }
.orbit-inner { width: min(78%, 312px); border-style: dashed; }

.art-card {
  display: flex;
  width: min(75%, 294px);
  min-height: 310px;
  flex-direction: column;
  justify-content: space-between;
  padding: 25px 26px 23px;
  transform: rotate(-4deg);
  border: 1px solid color-mix(in srgb, var(--green) 20%, var(--line));
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(32, 51, 45, .12), 0 3px 8px rgba(32, 51, 45, .05);
}

.art-card-label, .art-card-foot {
  color: var(--muted);
  font: 600 9px/1.5 var(--mono);
  letter-spacing: .12em;
}

.art-card-title {
  margin: auto 0;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1.14;
}

.art-card-line {
  width: 40px;
  height: 3px;
  margin-bottom: 18px;
  border-radius: 5px;
  background: var(--green);
}

.art-spark {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: #b4d8c0;
  transform: rotate(45deg);
}

.spark-one { top: 19%; right: 13%; }
.spark-two { bottom: 19%; left: 12%; width: 8px; height: 8px; background: #d8bd83; }

.site-footer {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 760px) {
  .page-shell { width: min(100% - 40px, 560px); }
  .site-header { min-height: 76px; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding: 60px 0 40px; }
  h1 { max-width: 510px; font-size: clamp(44px, 12vw, 64px); }
  .hero-art { min-height: 300px; }
  .orbit-outer { width: min(76vw, 310px); }
  .orbit-inner { width: min(60vw, 245px); }
  .art-card { width: min(68%, 250px); min-height: 252px; padding: 21px; }
  .art-card-title { font-size: 27px; }
}

@media (max-width: 420px) {
  .page-shell { width: calc(100% - 32px); }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .hero { padding-top: 46px; }
  .intro { font-size: 16px; }
  .hero-art { min-height: 270px; }
  .art-card { min-height: 232px; }
  .site-footer { min-height: 62px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #111a16;
    --surface: #1a2721;
    --ink: #edf4ef;
    --muted: #a4b3aa;
    --line: #304139;
    --green: #7cc39d;
    --green-dark: #64ae86;
    --green-soft: #233c2e;
  }

  .brand-mark { color: #15231b; }
  .sign-in-button { color: #13231a; }
  .art-card { box-shadow: 0 24px 60px rgba(0, 0, 0, .28), 0 3px 8px rgba(0, 0, 0, .14); }
}
