/* Homepage composition. Shared controls, cards and colors come from site.css. */
html  {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

.night-hero  {
  position: relative;
  display: block;
  min-height: 660px;
  height: min(810px, calc(100svh - var(--qf-header-height)));
  margin: 0;
  padding: 0;
  background: transparent;
  overflow: hidden;
}

.night-shade  {
  display: none;
}

.night-hero-content  {
  position: relative;
  max-width: 850px;
  margin: auto;
  padding: 80px 25px 100px;
  text-align: center;
}

.night-hero h1  {
  max-width: 630px;
  margin: 0 auto 24px;
}

.hero-logo  {
  width: 100%;
  height: auto;
  margin: auto;
  filter: drop-shadow(0 5px 13px #07101f50);
}

.public-site .night-hero .eyebrow  {
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
  color: #d9e1ec;
  font-size: 10px;
  letter-spacing: 2px;
  margin-bottom: 38px;
}

.status-dot  {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8d9e74;
  flex-shrink: 0;
}

.night-hero .status-dot  {
  background: #e7c48a;
}

.night-tagline  {
  font-family: var(--qf-font);
  font-size: 34px;
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -1px;
  color: #f2f4f7;
  max-width: 650px;
  margin: 0 auto 20px;
}

.night-description  {
  font-size: 14px;
  font-weight: 500;
  color: #cbd6e7;
  line-height: 1.7;
  margin: 0 0 30px;
}

.night-actions  {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.night-secondary  {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 700;
}

.night-credit  {
  font-size: 10px;
  font-weight: 500;
  color: #c2cde0;
  margin: 25px 0 0;
}

[data-sky='day'] .night-hero :is(.eyebrow, .night-tagline, .night-description, .night-credit)  {
  color: #243b45;
}

.home-community-layout {
  position: relative;
  z-index: 1;
  width: min(var(--qf-width), calc(100% - 64px));
  margin: -24px auto 32px;
}

.home-community-layout > .page-content {
  width: 100%;
  margin-block: 0;
}

.home-profile {
  width: 276px;
  position: absolute;
  right: calc(100% + 36px);
  top: 0;
  padding: 44px 32px 28px;
  overflow-wrap: anywhere;
}

.home-profile-identity {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.home-profile-avatar {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0;
  border: 1px solid var(--qf-line);
  background: var(--qf-surface-soft);
  color: var(--qf-notebook-accent);
  font-size: 48px;
  font-weight: 750;
  overflow: hidden;
}

.home-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

#home .home-profile-name {
  width: 100%;
  padding: 3px 8px 5px;
  border: 1px solid var(--qf-bevel-shadow);
  border-top-color: var(--qf-bevel-light);
  border-radius: 4px;
  background: var(--qf-board-fill), var(--qf-wood);
  color: #fff;
  box-shadow: 0 2px 2px #0c172626;
  text-shadow: 0 1px 1px #713c1580;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -.4px;
}
.home-profile-bio { margin: 20px 0 0; white-space: pre-wrap; font-size: 13px; }
.home-profile-links { display: grid; gap: 0; margin-top: 20px; border-top: 1px solid var(--qf-line); padding-top: 10px; }
.home-profile-links :is(a, button) { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 6px 0; text-align: left; font: inherit; font-size: 13px; font-weight: 650; }
.home-profile-links svg { width: 17px; height: 17px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.home-profile-links :is(a, button):hover { color: var(--qf-notebook-accent); }
#home .home-profile-guest-title { font-size: 21px; line-height: 1.25; letter-spacing: -.4px; }
.home-profile-invitation, .home-profile-notice { margin: 14px 0 0; font-size: 13px; }

@media (max-width: 1099px) {
  .home-profile { position: relative; right: auto; width: 100%; margin-bottom: 44px; }
  .home-profile-identity { width: min(208px, 100%); margin-inline: auto; }
}

@media (min-width: 1100px) and (max-width: 1739px) {
  .home-community-layout:has(> .home-profile:not([hidden])) {
    width: min(1400px, calc(100% - 64px));
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: start;
    gap: 36px;
  }
  .home-profile { position: relative; right: auto; width: 100%; padding-inline: 24px; }
}

@media (max-width: 760px) {
  .home-community-layout { width: calc(100% - 28px); margin-top: -16px; }
  .home-profile { padding-top: 34px; }
  .home-profile-links :is(a, button) { min-height: 40px; }
}

.page-content  {
  position: relative;
  z-index: 1;
  margin-block: -24px 32px;
}

.page-content .wrap  {
  max-width: none;
  margin-inline: auto;
  padding-inline: var(--qf-gutter);
}

.section-rule  {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  position: relative;
  padding-block: 44px 18px;
  color: var(--qf-muted);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 1.3px;
}

.section-rule a  {
  letter-spacing: 0;
}

#home h2  {
  margin: 0;
  font-size: 39px;
  font-weight: 750;
  line-height: 1.18;
  letter-spacing: -1.1px;
}

#home h2 em  {
  color: var(--qf-accent);
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
}

.text-link  {
  display: inline-block;
  padding: 5px 0;
  margin-top: 10px;
  border-bottom: 1px solid var(--qf-line);
  color: var(--qf-accent);
  font-size: 12px;
  font-weight: 650;
}

.home-devlog  {
  padding-block: 56px 72px;
}

.home-devlog-heading  {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}

#home .home-devlog-heading h2  {
  margin: 0 0 18px;
}

.home-devlog-heading .button  {
  flex-shrink: 0;
  margin-bottom: 4px;
}

.home-devlog-intro  {
  max-width: 480px;
  margin: 0;
  color: var(--qf-muted);
  font-size: 14px;
  line-height: 1.8;
}

.page-content .craft  {
  background: var(--qf-surface-soft);
  padding-block: 56px;
}

.craft-inner  {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 50px;
}

.craft-visual  {
  position: relative;
}

.craft-visual img  {
  width: 100%;
  height: 270px;
  object-fit: cover;
  border: 1px solid var(--qf-line);
  border-radius: 8px;
}

.image-label  {
  position: absolute;
  left: 15px;
  bottom: 15px;
  background: var(--qf-surface);
  color: var(--qf-ink);
  border-radius: 3px;
  padding: 6px 10px;
  font-size: 8px;
  letter-spacing: 1px;
}

.craft-copy > p:not(.eyebrow)  {
  max-width: 350px;
  margin: 20px 0 0;
  color: var(--qf-muted);
  font-size: 14px;
}

.page-content .open-notebook  {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-block: 72px;
  gap: 56px;
}

.open-notebook > div > p:not(.eyebrow)  {
  max-width: 360px;
  margin: 22px 0 26px;
  color: var(--qf-muted);
  font-size: 14px;
}

.page-content .eyebrow  {
  display: flex;
  align-items: center;
  gap: 9px;
}

.notebook  {
  padding: 25px 28px 10px;
  border: 1px solid var(--qf-line);
  border-radius: 7px;
  background: var(--qf-surface-soft);
}

.notebook-bar  {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--qf-line);
  color: var(--qf-muted);
  font-size: 9px;
  letter-spacing: 1.7px;
}

.notebook > a  {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 19px 0;
  border-bottom: 1px solid var(--qf-line);
  font-size: 17px;
  font-weight: 650;
  color: var(--qf-ink);
}

.notebook > a:hover  {
  color: var(--qf-accent);
}

.notebook > a span  {
  font-size: 10px;
  font-weight: 650;
  color: var(--qf-muted);
}

.notebook > a b  {
  font-weight: 400;
  margin-left: auto;
}

.notebook > p  {
  padding: 5px 0;
  color: var(--qf-muted);
  font-size: 10px;
}

@media (min-width: 1500px)  {
  .night-hero h1  {
    max-width: 680px;
  }

  .night-tagline  {
    font-size: 36px;
  }

}

@media (max-width: 760px)  {
  .night-hero  {
    height: auto;
    min-height: 650px;
  }

  .night-hero-content  {
    padding: 72px 24px 95px;
  }

  .night-hero h1  {
    max-width: 440px;
    margin-bottom: 22px;
  }

  .night-tagline  {
    max-width: 480px;
    font-size: 27px;
    line-height: 1.1;
    letter-spacing: -.7px;
  }

  .night-description  {
    font-size: 12px;
    max-width: 290px;
    margin-inline: auto;
  }

  .night-actions  {
    flex-direction: column;
    gap: 10px;
  }

  .page-content  {
    margin-top: -16px;
  }

  .section-rule  {
    padding-block: 34px 17px;
    gap: 20px;
  }

  .section-rule a  {
    white-space: nowrap;
  }

  .section-rule [data-community-message] {
    white-space: normal;
  }

  #home h2  {
    font-size: 32px;
  }

  .page-content .craft  {
    padding-block: 32px;
  }

  .craft-inner  {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .craft-visual img  {
    height: auto;
    min-height: 160px;
  }

  .craft-copy  {
    padding-bottom: 10px;
  }

  .page-content .open-notebook  {
    grid-template-columns: 1fr;
    padding-block: 44px;
    gap: 28px;
  }

  .notebook  {
    margin-inline: 4px;
  }

  .home-devlog  {
    padding-block: 36px 44px;
  }

  .home-devlog-heading  {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 28px;
  }

}

@media (prefers-reduced-motion: reduce)  {
  html  {
    scroll-behavior: auto;
  }

  .public-site *  {
    transition: none !important;
  }

}
