/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

:root {
  --color-bg: #0b0704;
  --color-bg-deep: #060402;
  --color-gold-light: #f7e29c;
  --color-gold: #d9a94a;
  --color-gold-deep: #a3701f;
  --color-text-muted: #cdbfa3;
  --color-border: rgba(217, 169, 74, 0.45);
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-bg);
  font-family: var(--font-body);
}

img {
  max-width: 100%;
}

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  overflow: hidden;
  background-color: var(--color-bg);
  background-image: url('../img/landing-background.jpg');
  background-repeat: no-repeat;
  background-position: right top;
  background-size: cover;
  display: flex;
  flex-direction: column;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(11, 7, 4, 0.3), rgba(11, 7, 4, 0.3)),
    linear-gradient(
      180deg,
      rgba(11, 7, 4, 0) 0%,
      rgba(11, 7, 4, 0) 40%,
      rgba(11, 7, 4, 0.75) 100%
    ),
    linear-gradient(
      100deg,
      var(--color-bg) 0%,
      var(--color-bg) 30%,
      rgba(11, 7, 4, 0.85) 45%,
      rgba(11, 7, 4, 0.3) 65%,
      rgba(11, 7, 4, 0.1) 100%
    );
}

@media (min-width: 1200px) {
  .hero__overlay {
    background:
      linear-gradient(rgba(11, 7, 4, 0.3), rgba(11, 7, 4, 0.3)),
      linear-gradient(
        180deg,
        rgba(11, 7, 4, 0.1) 0%,
        rgba(11, 7, 4, 0.3) 45%,
        rgba(11, 7, 4, 0.9) 100%
      ),
      linear-gradient(
        100deg,
        rgba(11, 7, 4, 0.85) 0%,
        rgba(11, 7, 4, 0.65) 30%,
        rgba(11, 7, 4, 0.45) 45%,
        rgba(11, 7, 4, 0.15) 65%,
        rgba(11, 7, 4, 0.05) 100%
      );
  }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(1rem, 4vh, 2.5rem) 1.5rem clamp(0.75rem, 3vh, 2rem);
  min-height: 0;
}

.hero__brand {
  display: flex;
  justify-content: center;
  max-width: min(900px, 58vw);
  flex: 0 0 auto;
}

.hero__logo {
  width: clamp(320px, min(42vw, 38vh), 660px);
  height: auto;
  display: block;
}

.hero__content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: min(900px, 58vw);
  padding: clamp(0.25rem, 1vh, 0.5rem) 0 clamp(0.5rem, 2vh, 1rem);
  min-height: 0;
}

.hero__content::before,
.hero__content::after {
  content: "";
  flex: 1 1 0;
}


.hero__content::before {
  flex-grow: 0.3;
}

.hero__title {
  margin: 0 0 clamp(0.25rem, 1vh, 0.5rem);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(2.5rem, min(7vw, 9vh), 5.75rem);
  line-height: 1.05;
  white-space: nowrap;
  background: linear-gradient(180deg, var(--color-gold-light) 0%, var(--color-gold) 55%, var(--color-gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 18px rgba(217, 169, 74, 0.25);
}

.hero__subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 0 0 clamp(0.75rem, 3vh, 2rem);
  color: #f2ede2;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
}

.rule {
  flex: 0 0 auto;
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.signup {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: rgba(20, 14, 8, 0.55);
  backdrop-filter: blur(2px);
  padding: clamp(1.1rem, 3.5vh, 2.25rem) clamp(1.5rem, 5vw, 3rem);
  max-width: 680px;
  width: 100%;
  flex: 0 0 auto;
}

.signup__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 0 0 0.7rem;
  color: var(--color-gold-light);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 600;
}

.signup__title .rule {
  flex: 1 1 auto;
  width: auto;
}

.signup__desc {
  margin: 0 0 clamp(0.6rem, 2vh, 1.25rem);
  text-align: center;
  color: var(--color-text-muted);
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  line-height: 1.5;
}

.signup__form {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.signup__icon {
  display: flex;
  align-items: center;
  padding: 0 0.5rem 0 0.9rem;
  color: var(--color-gold);
}

.signup__input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  color: #f2ede2;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  padding: clamp(0.85rem, 2vh, 1.1rem) 0.5rem;
}

.signup__input::placeholder {
  color: rgba(205, 191, 163, 0.6);
}

.signup__input:focus {
  outline: none;
}

.signup__button {
  flex: 0 0 auto;
  border: none;
  cursor: pointer;
  padding: clamp(0.85rem, 2vh, 1.1rem) clamp(1.25rem, 3vw, 1.9rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(0.85rem, 1.3vw, 1rem);
  color: #1a1204;
  background: linear-gradient(180deg, var(--color-gold-light), var(--color-gold-deep));
  transition: filter 0.15s ease;
  white-space: nowrap;
}

.signup__button:hover,
.signup__button:focus-visible {
  filter: brightness(1.08);
}

.signup__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: clamp(0.5rem, 2vh, 1rem) 0 0;
  color: var(--color-text-muted);
  font-size: clamp(0.75rem, 1vw, 0.85rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.signup__note svg {
  color: var(--color-gold);
  flex: 0 0 auto;
}

.signup__note.is-success {
  color: var(--color-gold-light);
}

.signup__note.is-error {
  color: #e78a8a;
}

.hero__social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding-top: clamp(0.5rem, 2.5vh, 1.5rem);
  flex: 0 0 auto;
}

.social__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-gold);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.social__icon:hover,
.social__icon:focus-visible {
  background: var(--color-gold);
  color: var(--color-bg-deep);
}

@media (max-width: 640px) {
  .hero {
    background-position: 78% center;
  }

  .hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(11, 7, 4, 0.8) 0%,
      rgba(11, 7, 4, 0.65) 55%,
      rgba(11, 7, 4, 0.4) 100%
    );
  }

  .hero__inner {
    padding: 1.75rem 1.1rem 1.75rem;
  }

  .hero__brand {
    justify-content: center;
    max-width: 100%;
  }

  .hero__content {
    text-align: center;
    max-width: 100%;
  }

  .hero__title {
    white-space: normal;
  }

  .hero__subtitle {
    justify-content: center;
  }

  .signup {
    max-width: 100%;
    padding: 1.5rem 1.1rem;
  }

  .signup__form {
    flex-wrap: wrap;
  }

  .signup__icon {
    padding-left: 0.9rem;
  }

  .signup__button {
    flex: 1 1 100%;
  }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

