:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  color: #164c30;
  background: #f8f6ef;
  line-height: 1.6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-block-size: 100vh;
  min-block-size: 100svh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}

main {
  inline-size: min(100%, 30rem);
  padding-block: 32px;
  text-align: center;
}

h1 {
  margin: 0 0 40px;
  font-size: clamp(1.75rem, 6vw + 1rem, 3rem);
  font-weight: 700;
  line-height: 1.45;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.app-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 56px;
  max-inline-size: 100%;
  padding: 16px 32px;
  border-radius: 16px;
  background: #164c30;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.app-link:hover { background: #0d3922; }
.app-link:focus-visible { outline: 3px solid #164c30; outline-offset: 5px; }

@media (forced-colors: active) {
  .app-link { border: 1px solid ButtonText; }
}
