/* NewsEngin Inc. — hand-written stylesheet (replaces Squarespace theme).
 * Values measured from the original site at 1440px wide:
 *   body text   Raleway 21.3px / 1.8, black, 677px column
 *   tagline     Raleway 24.8px, #333, soft white gradient backdrop
 *   heading     Jubilat 200 → substituted Zilla Slab 300
 *   buttons     white on rgb(168,166,161), square corners
 *   header      fixed, rgba(104,118,145,.3), white links
 */

:root {
  --button-gray:  rgb(168, 166, 161);
  --charcoal:     rgb(56, 56, 59);
  --header-bg:    rgba(104, 118, 145, .3);
  --heading-font: "Zilla Slab", "Jubilat", Georgia, serif;
  --body-font:    "Raleway", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body-font);
  font-weight: 400;
  color: #000;
  background: #fff;
}

p a {
  color: inherit;
  text-decoration: underline dotted 1px #666;
}
p a:hover,
p a:active {
  text-decoration: underline solid 1px #000;
}

.skip-link {
  position: absolute;
  left: -999em;
  background: #fff;
  padding: .5em 1em;
}
.skip-link:focus {
  left: 1em;
  top: 1em;
  z-index: 100;
}

/* ---------- Fade-in (original preFade/fadeIn behavior) ---------- */

.pre-fade {
  opacity: 0;
}
.faded-in {
  opacity: 1;
  transition: opacity .9s ease;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 14px 43px;
  background: var(--header-bg);
}

.header-logo img {
  display: block;
  height: 60px;
  width: auto;
}

.header-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 300;
  font-size: 17.7px;
  letter-spacing: .02em;
  padding-bottom: 2px;
}
.header-nav a:hover,
.header-nav a.current {
  border-bottom: 1px solid rgba(255, 255, 255, .7);
}

/* ---------- Home: hero (clouds) ---------- */

.hero {
  min-height: 100vh;
  background: url("/images/web/clouds.jpg") center / cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 20px 200px;
}

.hero-logo {
  width: 160px;
  height: auto;
  margin-top: 40vh;
}

.hero-tagline-link {
  text-decoration: none;
  margin-top: 102px;
}

.hero-tagline {
  margin: 0;
  width: 677px;
  max-width: calc(100vw - 40px);
  padding: 20px;
  text-align: center;
  font-size: 24.8px;
  line-height: 1.8;
  color: #333;
  background-image: linear-gradient(
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, .5) 20%,
    rgba(255, 255, 255, .5) 80%,
    rgba(255, 255, 255, 0)
  );
}
.hero-tagline span {
  display: block;
  text-decoration: underline dotted 1px #666;
}
.hero-tagline-link:hover span {
  text-decoration: underline solid 1px #000;
}
.tagline-1 { font-weight: 600; }
.tagline-2 { font-weight: 400; }

/* ---------- Home: about (contrail sky) ---------- */

.about {
  background: url("/images/web/landscape.jpg") center / cover no-repeat;
  padding: 214px 20px 145px;
}

.about-inner {
  max-width: 677px;
  margin: 0 auto;
}

.about-text p {
  margin: 0 0 16px;
  font-size: 21.3px;
  line-height: 1.8;
  color: #000;
}

.about-cta {
  text-align: center;
  margin: 68px 0 0;
}

.button {
  display: inline-block;
  font-family: var(--body-font);
  font-weight: 500;
  font-size: 21.2px;
  letter-spacing: .02em;
  color: #fff;
  background: var(--button-gray);
  border: 0;
  padding: 29px 49px;
  text-decoration: none;
  cursor: pointer;
}
.button:hover {
  opacity: .85;
}

/* ---------- Contact ---------- */

.contact {
  min-height: 100vh;
  background: url("/images/web/contact-banner.jpg") center / cover no-repeat;
  padding: 227px 3vw 60px 9.5vw;
}

.contact-grid {
  display: flex;
  align-items: flex-start;
  gap: 7vw;
}

.contact-card {
  flex: 0 1 463px;
  margin-top: 70px;
  padding: 20px;
  background: rgba(255, 255, 255, .7);
  color: var(--charcoal);
}

.contact-card h1 {
  margin: .2em 0 .3em;
  font-family: var(--heading-font);
  font-weight: 300;
  font-size: 67px;
  line-height: 1.1;
  color: var(--charcoal);
}

.contact-card p {
  margin: 0 0 1em;
  font-size: 17.7px;
  line-height: 1.8;
}

.contact-form-col {
  flex: 0 1 660px;
}

/* ---------- Form ---------- */

.form-field {
  margin-bottom: 28px;
}

.form-field label {
  display: block;
  font-weight: 700;
  font-size: 17.7px;
  color: #000;
  background: rgba(255, 255, 255, .6);
  padding: 2px 2px 2px 4px;
  margin-bottom: 6px;
}

.req-note {
  font-weight: 300;
  font-size: 14.3px;
  color: rgba(255, 255, 255, .85);
}

.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
  font-family: var(--body-font);
  font-size: 17.7px;
  padding: 10px;
  border: 1px solid #000;
  border-radius: 0;
  background: rgb(250, 250, 250);
  color: #000;
}

.form-field input {
  height: 54px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #c5c5c5;
  opacity: 1;
}

.form-field textarea {
  height: 100px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--charcoal);
  outline-offset: -1px;
}

.form-honeypot {
  position: absolute;
  left: -999em;
}

.send-button {
  font-family: var(--body-font);
  font-weight: 500;
  font-size: 16px;
  color: #fff;
  background: var(--button-gray);
  border: 0;
  border-radius: 0;
  padding: 14px 18px;
  cursor: pointer;
}
.send-button:hover {
  opacity: .85;
}

.field-error {
  color: #fff;
  background: rgba(160, 0, 0, .75);
  font-size: 14.3px;
  padding: 2px 6px;
  margin: 6px 0 0;
}

.form-error {
  margin: 0 0 20px;
}

.form-confirmation {
  background: rgba(255, 255, 255, .7);
  color: var(--charcoal);
  padding: 20px;
  font-size: 17.7px;
  line-height: 1.8;
}
.form-confirmation p { margin: 0; }

/* ---------- Small screens ---------- */

@media (max-width: 940px) {
  .contact {
    padding: 120px 5vw 60px;
  }
  .contact-grid {
    flex-direction: column;
    gap: 40px;
  }
  .contact-card {
    margin-top: 0;
    flex-basis: auto;
  }
  .contact-form-col {
    width: 100%;
    flex-basis: auto;
  }
  .contact-card h1 {
    font-size: 48px;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 10px 20px;
  }
  .header-logo img {
    height: 48px;
  }
  .hero-logo {
    margin-top: 30vh;
  }
  .hero-tagline {
    font-size: 20px;
  }
  .about {
    padding: 100px 16px 80px;
  }
  .about-text p {
    font-size: 18px;
  }
  .button {
    padding: 22px 36px;
    font-size: 18px;
  }
}
