:root {
  color-scheme: light;
  --ink: #000;
  --link: #35aee2;
  --purple: #4f2ca0;
  --surface: #f5f5f5;
  --border: #dedede;
  --paper: #fff;
  font-family: Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; line-height: 1.6; }
main { flex: 1; }
h1, h2, h3 { line-height: 1.12; margin: 0; overflow-wrap: break-word; }
p { margin: 0; }
a { color: var(--link); text-underline-offset: .22em; }
main a:not(.button) { padding: .42rem .65rem; display: inline-block; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; }
.skip { position: absolute; z-index: 1; left: 1rem; top: 1rem; transform: translateY(-200%); background: var(--paper); padding: .5rem 1rem; }
.skip:focus { transform: translateY(0); }

.wrap { width: min(72rem, calc(100% - 2.5rem)); margin-inline: auto; }
.header { border-bottom: 1px solid var(--border); }
.footer { background: #151026; color: white; }
.header-inner, .footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem 2rem; padding-block: 1.05rem; }
.brand { font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.header ul { display: flex; flex-wrap: wrap; gap: .3rem 1.35rem; list-style: none; padding: 0; margin: 0; }
.header li a { display: inline-block; padding-block: .3rem; }

.hero { background: var(--paper); border-bottom: 1px solid var(--border); }
.hero-inner { padding-block: clamp(2rem, 5vw, 4rem); text-align: center; }
.hero-image { display: block; width: 100%; height: auto; }
.presenter { font-weight: 700; color: var(--purple); margin-bottom: .55rem; }
h1 { font-size: clamp(2.65rem, 6.1vw, 5.4rem); letter-spacing: -.055em; }
.intro { max-width: 62ch; margin: 1.15rem auto 0; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.cover {
  display: block;
  width: min(100%, 14rem);
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  margin: auto auto 0;
}

.collections { padding-block: 1.25rem 4rem; text-align: center; }
.contents { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; }
.collection { margin-top: clamp(2.25rem, 5vw, 4rem); }
.collection h2 { font-size: clamp(1.75rem, 4vw, 2.65rem); letter-spacing: -.035em; scroll-margin-top: 1rem; }
.section-intro { margin-top: .55rem; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; margin-top: 1.15rem; }
.card { min-width: 0; display: flex; flex-direction: column; gap: .8rem; border: 1px solid var(--border); border-radius: .9rem; padding: clamp(1rem, 3vw, 1.65rem); box-shadow: 0 .25rem .75rem #0000000c; }
.card h3 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); letter-spacing: -.025em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem; }
.actions-stacked { display: grid; justify-items: center; }
a.button,
button.button {
  background-color: #462898;
  color: #FFFFFF;
  padding: 12px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  -webkit-transition-duration: 0.4s; /* Safari */
  transition-duration: 0.4s;
  cursor: pointer;
  border-radius: 20em;
}

a.button:hover,
button.button:hover {
  background-color: #48abd6;
}

.maze-card { justify-content: center; background: var(--paper); }
.maze-list { display: grid; gap: .65rem; list-style: none; padding: 0; margin: 0; }
.maze-list li { display: grid; }

.story { padding-block: 2rem 4rem; text-align: center; }
.story-body > p:not(.story-note) { text-align: start; }
.story-body { max-width: 65ch; margin: clamp(2rem, 7vw, 5rem) auto 0; font-size: 1.125rem; line-height: 1.8; }
.story-body h1 { font-size: clamp(2.65rem, 7vw, 4.75rem); margin-bottom: .65rem; }
.story-body > p { margin-top: 1.5rem; }
.story-note { border-left: .25rem solid var(--purple); background: var(--surface); padding: .9rem 1.1rem; }

@media (max-width: 45rem) {
  .card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 25rem) {
  .wrap { width: calc(100% - 1.5rem); }
  .actions .button { flex: 1 1 100%; }
}

.sign-in {
  max-width: 32rem;
  padding-block: clamp(2rem, 5vw, 4rem);
  text-align: center;
}

.sign-in h2 { margin-bottom: .65rem; }
.sign-in form { max-width: 22rem; margin: 1.2rem auto 0; }
.password-field { margin-bottom: .8rem; }
.password-field label { display: block; margin-bottom: .25rem; font-weight: 700; }
.password-field input {
  width: 100%;
  padding: .65rem .8rem;
  border: 1px solid #777;
  border-radius: .4rem;
  font: inherit;
}
.sign-in button { border: 0; font-family: inherit; }
