:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #102c2b;
  color: #17342d;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  padding:
    max(1rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
  background: radial-gradient(ellipse at 45% 0%, #28524a, transparent 72%), #102c2b;
}

.landing {
  width: min(100%, 42rem);
  overflow: hidden;
  border: 1px solid #dbdfcc;
  border-radius: 1.5rem;
  background: #fbfcf6;
  box-shadow: 0 1.5rem 4rem #071d1c88;
}

.course-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  max-height: 18rem;
  object-fit: cover;
  background: #dce9d4;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.25rem, 4vw, 2rem);
}

h1, p { margin: 0; }

h1 {
  font-size: clamp(1.75rem, 5vw, 2.375rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.identity {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 1.0625rem;
  font-weight: 700;
}

.identity-icon {
  flex: 0 0 auto;
  border-radius: .8125rem;
  box-shadow: 0 .125rem .375rem #102c2b33;
}

.code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem;
  background: #edf2e4;
  border: 1px solid #d1deca;
  border-radius: 1rem;
}

.code-block {
  display: grid;
  gap: .125rem;
  padding-inline: .25rem;
}

.code-label {
  font-size: .875rem;
  font-weight: 700;
  color: #39584e;
}

code {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: clamp(1rem, 4.5vw, 1.45rem);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: .065em;
  user-select: all;
}

.copy, .store {
  display: inline-grid;
  min-height: 3rem;
  place-items: center;
  padding: .5rem 1rem;
  border: 1px solid transparent;
  border-radius: .75rem;
  font: inherit;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.copy {
  inline-size: 6rem;
  block-size: 3rem;
  padding-inline: .25rem;
  background: #244e39;
  color: #fff;
  font-size: .875rem;
}

.copy:hover { background: #193727; }

.store {
  color: #fff;
  background: #181c1a;
}

.store.ios:hover { background: #343a37; }

.store.android { background: #13614a; }

.store.android:hover { background: #0d4a38; }

.copy:focus-visible, .store:focus-visible {
  outline: 3px solid #1e6bba;
  outline-offset: 3px;
}

.instructions {
  color: #3c554d;
  font-size: 1rem;
  line-height: 1.5;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
