html { min-height: 100%; }
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.masthead, main {
  width: min(calc(100% - 3rem), 58rem);
  margin-inline: auto;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--prosper-border);
}
.masthead picture { display: flex; }
.prosper-logo { display: block; width: 7.8rem; }
.mode {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  justify-content: center;
  padding: .6rem .9rem;
  border-color: transparent;
  border-radius: 2rem;
  background: transparent;
  font-size: .875rem;
  font-weight: 550;
}
.mode:hover { background: var(--prosper-surface); }
.mode svg { width: 1.15rem; height: 1.15rem; }
.night-icon, [data-prosper-mode="night"] .day-icon { display: none; }
[data-prosper-mode="night"] .night-icon { display: inline-block; }
main { padding-block: clamp(2rem, 5vw, 3.4rem) 2rem; }
h1 {
  margin: 0 0 1.55rem;
  font-size: clamp(2.3rem, 5.5vw, 3.6rem);
  letter-spacing: -.035em;
  line-height: 1.08;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .875rem;
}
.tile {
  min-width: 0;
  border: 1px solid var(--prosper-border);
  border-radius: 13px;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--prosper-text);
  background: var(--prosper-surface);
  text-decoration: none;
  line-height: 1.4;
}
.tile:hover, .tile:focus-visible { border-color: var(--prosper-focus); }
.tile:active { background: var(--prosper-yellow); color: var(--prosper-ink); }
.tile:active p, .tile:active .arrow, .tile:active .folder-icon { color: var(--prosper-ink); }
.tile h2 {
  font-family: var(--font-body);
  margin: 0;
  font-weight: 620;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  letter-spacing: -.035em;
  line-height: 1.2;
}
.tile p {
  margin: .4rem 0 0;
  color: var(--prosper-muted);
  font-size: 1rem;
  line-height: 1.45;
}
svg { fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.3rem;
}
.featured h2 { font-size: clamp(1.35rem, 3.5vw, 1.8rem); }
.feature-icon, .folder-icon { display: grid; place-items: center; }
.feature-icon {
  width: 3.9rem;
  height: 3.9rem;
  border-radius: .7rem;
  background: var(--prosper-yellow);
  color: var(--prosper-ink);
}
.feature-icon svg { width: 2.35rem; height: 2.35rem; }
.primary-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 48px;
  padding: .55rem 1rem;
  background: var(--prosper-blue);
  color: white;
  border-radius: .5rem;
  font-size: .94rem;
  font-weight: 630;
  white-space: nowrap;
}
.featured:hover .primary-action { background: var(--prosper-blue-functional); }
.featured:active .primary-action .arrow { color: inherit; }
[data-prosper-mode="night"] .primary-action { background: var(--prosper-yellow); color: var(--prosper-ink); }
[data-prosper-mode="night"] .featured:hover .primary-action { outline: 1px solid var(--prosper-ink); outline-offset: -4px; }
.folder .tile-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.3rem; }
.folder-icon { width: 1.9rem; height: 1.9rem; color: var(--prosper-blue-functional); }
.folder-icon svg { width: 100%; height: 100%; }
[data-prosper-mode="night"] .folder-icon { color: var(--prosper-white); }
.arrow { width: 1.25rem; height: 1.25rem; stroke-width: 1.9; }
.tile-top > .arrow { margin-top: .15rem; color: var(--prosper-muted); }
.access-note {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin: 1.2rem 0 0;
  color: var(--prosper-muted);
  font-size: .875rem;
  line-height: 1.55;
}
.access-note svg { width: 1rem; height: 1rem; margin-top: .15rem; }
@media (max-width: 42rem) {
  .masthead, main { width: min(calc(100% - 2.25rem), 34rem); }
  .masthead { padding-block: .95rem; }
  .prosper-logo { width: 6.6rem; }
  .tiles { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
  .featured { grid-template-columns: 2.7rem minmax(0, 1fr); gap: .85rem; }
  .feature-icon { width: 2.7rem; height: 2.7rem; }
  .feature-icon svg { width: 1.8rem; height: 1.8rem; }
  .primary-action { grid-column: 1 / -1; }
  .folder { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .75rem; }
  .folder .tile-top { display: contents; }
  .folder-icon { display: none; }
  .tile-top > .arrow { grid-column: 2; grid-row: 1; }
  .folder h2 { grid-column: 1; grid-row: 1; }
  .folder p { grid-column: 1 / -1; margin: 0; }
}
