/* Landing page styles — designed to comport with the logged-in app (new.css + Inter)
   and take inspiration from clean, functional designs like waypoint.lighthaven.space:
   good typography, clear sections, readable forms, minimal but friendly personality. */

body.landing {
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
  background-color: #000;
  color: #eee; /* light text for dark landing background */
  margin: 0;
  padding: 0;
  max-width: none;
}

body.landing .nav h1.logo {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: inherit;
}

body.landing .nav h1.logo a {
  text-decoration: none;
  color: inherit;
}

body.landing .nav h1.logo a:hover {
  opacity: 0.8;
}

body.landing header {
  margin-bottom: 2rem;
}

body.landing header .account {
  font-size: 0.85rem;
  color: #aaa;
}

body.landing header .account button {
  background: none;
  border: 1px solid #555;
  color: #ddd;
  font-size: 0.85rem;
  padding: 0.2em 0.6em;
  cursor: pointer;
  font-family: inherit;
}

body.landing header .account button:hover {
  color: #fff;
  border-color: #888;
}

body.landing header .account form {
  display: inline;
}

/* Main landing content — clean and readable like waypoint */
.landing-content {
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
  text-align: left;
  color: #eee;
}

.landing-content h1 {
  font-size: 2.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  line-height: 1.2;
  color: #fff;
}

.landing-content .tagline {
  font-size: 1.1rem;
  color: #aaa;
  margin-bottom: 1.5rem;
}

.landing-content p {
  margin-bottom: 1rem;
  color: #ccc;
  font-size: 1.01rem;
}

.landing-content p.intro {
  font-size: 0.9rem;
  color: #aaa;
}

.landing-content p.footnote {
  font-size: 0.9rem;
  color: #aaa;
}

.landing-content p.footnote a {
  color: #ccc;
  text-decoration: none;
}

.landing-content p.footnote a:hover {
  color: #fff;
  text-decoration: underline;
}

.landing-content h2 {
  font-size: 1.25rem;
  margin: 1.5rem 0 0.75rem;
  font-weight: 600;
  color: #fff;
}

/* Signup form — styled to feel consistent with new.css and waypoint forms.
   Explicit colors for high contrast and legibility. */
#new_signup,
.landing-content form {
  margin: 1rem 0 2rem;
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fff;
  color: #222;
}

.landing-content label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: #333;
}

.landing-content input[type="email"] {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 1rem;
  color: #222;
  background-color: #fff;
}

.landing-content input[type="email"]:focus {
  outline: none;
  border-color: #666;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.landing-content input[type="submit"],
.landing-content button[type="submit"] {
  background: #222;
  color: white;
  border: none;
  padding: 0.6rem 1.25rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
}

.landing-content input[type="submit"]:hover,
.landing-content button[type="submit"]:hover {
  background: #111;
}

/* Gnome hero: image on the side (right on desktop) or top (on mobile) of the title/tagline
   for better visual flow and branding. */
.gnome-hero {
  display: flex;
  flex-direction: column-reverse; /* on mobile: image appears above text (last DOM item first) */
  align-items: center;
  text-align: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

#gnome {
  display: block;
  max-width: 220px;
  width: 100%;
  height: auto;
  opacity: 0.95;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .gnome-hero {
    flex-direction: row; /* text left, image right */
    align-items: center;
    text-align: left;
    gap: 1.5rem;
  }

  .gnome-hero-text {
    flex: 1;
  }

  #gnome {
    max-width: 280px;
    margin-left: 1.5rem;
  }
}

/* Flash messages — consistent with app */
body.landing .notice,
body.landing .alert {
  max-width: 640px;
  margin: 0 auto 1rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* Hide empty flash messages (safety net in case they render with no content) */
body.landing .notice:empty,
body.landing .alert:empty {
  display: none;
  padding: 0;
  margin: 0;
  border: none;
}

body.landing .notice {
  background: #e6f4e6;
  color: #2d5a2d;
  border: 1px solid #a8d5a8;
}

body.landing .alert {
  background: #fce8e8;
  color: #7a2d2d;
  border: 1px solid #e8a8a8;
}

/* Signed-in nav on landing (matches app style) */
body.landing .nav nav {
  font-size: 0.9rem;
  color: #aaa;
}

body.landing .nav nav a {
  color: #ccc;
  text-decoration: none;
}

body.landing .nav nav a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Nav moved under tagline on landing page (less prominent in header) */
body.landing .landing-nav {
  font-size: 0.85rem;
  color: #aaa;
  margin-top: 0.5rem;
}

body.landing .landing-nav a {
  color: #ccc;
  text-decoration: none;
}

body.landing .landing-nav a:hover {
  color: #fff;
  text-decoration: underline;
}

body.landing .landing-signin {
  background: transparent;
  border: 1px solid #555;
  color: #aaa;
  font-size: 0.85rem;
  padding: 0.25em 0.5em;
  cursor: pointer;
  font-family: inherit;
  margin-top: 0.5rem;
  display: inline-block;
  text-decoration: none;
}

body.landing .landing-signin:hover {
  color: #fff;
  border-color: #888;
  text-decoration: none;
}

body.landing form:has(.landing-signin) {
  background: transparent;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  display: inline;
}

/* Sticky footer for landing page: pins copyright to bottom when content is short,
   without forcing the main content taller than its natural size or introducing
   unnecessary scroll. Uses the standard flex "1 0 auto" pattern. */
html {
  height: 100%;
}

body.landing {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

body.landing .landing-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertically center the content (flashes + .landing-content) within the available space above the footer */
}

body.landing footer {
  flex-shrink: 0;
  padding: 2rem 1rem 0;
  text-align: center;
}

body.landing .copyright {
  font-size: 0.7rem;
  color: #666;
  opacity: 0.6;
  letter-spacing: 0.05em;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

header {
  display: flex;
  justify-content: space-between;
}

header>:last-child {
  align-self: flex-end;
}

/* Basic flash message styles for consistency across the app */
.notice,
.alert {
  max-width: 640px;
  margin: 0 auto 1rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.notice {
  background: #e6f4e6;
  color: #2d5a2d;
  border: 1px solid #a8d5a8;
}

.alert {
  background: #fce8e8;
  color: #7a2d2d;
  border: 1px solid #e8a8a8;
}
