/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  --chrome-text: #fafafa;
}

body {
  font-family: var(--font-josefin);
  min-height: 100vh;
  margin: 0;
  color: #2a2a2a;
}

/* Fixed pseudo-element rather than background-attachment: fixed, which iOS Safari ignores */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("/assets/background-41c7fecb.jpg");
  background-size: cover;
  background-position: 0 0;
  background-repeat: no-repeat;
}

/* On wide screens, size by width; raise above 100% to zoom in and crop the sides */
@media (orientation: landscape) {
  body::before {
    background-size: 150% auto;
  }
}

.site-header {
  display: flex;
  justify-content: flex-end;
  padding: 1.5rem 2rem;
}

.site-header__logo {
  display: block;
  background: #fff;
  padding: 0.5rem 1rem;
  border-radius: 12px;
}

.site-header__logo img {
  display: block;
  height: 48px;
  width: auto;
}

.site-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem 2rem 3rem;
  text-align: center;
  color: var(--chrome-text);
}

.site-footer a {
  color: inherit;
}

.hero {
  display: flex;
  align-items: center;
  min-height: 85vh;
}

.hero__content {
  max-width: 820px;
  padding: 3rem 5%;
  color: var(--chrome-text);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero__title {
  margin: 0;
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
}

.hero__title span {
  display: block;
}

.hero__description {
  margin: 1rem 0 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.3;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero__button {
  padding: 0.85rem 1.25rem;
  border: 2px solid var(--chrome-text);
  color: var(--chrome-text);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.9rem;
  white-space: nowrap;
  text-shadow: none;
}

.hero__button:hover {
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 600px) {
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

.site-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
  background: rgba(255, 255, 255, 0.85);
}

.site-main p,
.site-main .trix-content {
  line-height: 1.7;
}

.page-title {
  text-transform: uppercase;
  font-weight: 400;
}

.notice,
.alert {
  max-width: 760px;
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  border-radius: 4px;
}

.notice {
  background: #e4f3e6;
  color: #235023;
}

.alert {
  background: #f8e2e0;
  color: #7a1f1a;
}

.auth-form {
  max-width: 380px;
  margin: 0 auto;
}

.auth-form .page-title {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-form .field {
  margin-bottom: 1.25rem;
}

.auth-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.auth-form .field--checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-form .field--checkbox label {
  margin: 0;
  font-weight: 400;
}

.auth-form code.hint {
  display: block;
  font-size: 0.85rem;
  color: #6b615c;
  margin: -0.5rem 0 0.5rem;
}

.auth-form .actions {
  margin-top: 1.5rem;
}

.auth-form input[type="submit"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: #1f1b1a;
  color: #fafafa;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.auth-form input[type="submit"]:hover {
  background: #34302e;
}

.auth-form__links {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
}

.auth-form__links p {
  margin: 0.35rem 0;
}

.auth-form__links a {
  color: inherit;
}

#error_explanation ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.artist-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.artist-card {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #ddd;
}

.artist-card h2 {
  margin-bottom: 0.5rem;
}

.artist-card a {
  color: inherit;
}
