/* Homepage-specific layout. Shared form/corpus styles come from styles.css */

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  color: #111;
}

.home-main {
  width: min(780px, 92vw);
  margin: 0;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.title-block {
  text-align: center;
  margin-bottom: 1.6rem;
}

/* Override the results-page title size so the homepage has a larger, bolder hero title */
.home-main #name {
  margin: 0.35rem 0 0;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1;
}

.home-main .kicker {
  margin: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #555;
  font-weight: 700;
  font-size: 0.82rem;
}

.home-main .subtitle {
  margin: 0.4rem 0 0;
  color: #444;
}

/* Stack of search forms */
.home-search-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid #ddd;
  padding-top: 1rem;
  align-items: stretch;
}

/* Both forms inherit styles.css .search-form / .image-search-form but span full width */
.home-search-wrap .search-form,
.home-search-wrap .image-search-form {
  width: 100%;
}

/* Corpus fieldset centered on homepage (override styles.css left-align) */
.home-corpus-select {
  width: 100% !important;
  text-align: center !important;
  margin: 0 !important;
}

.home-form-message {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.85rem;
  color: #555;
  text-align: center;
}

/* Drag-over highlight */
.image-search-form.is-dragover {
  background: #f4f4f4;
  border-color: #000;
}

@media (max-width: 640px) {
  .home-main {
    width: 94vw;
  }
}

