/* Essential Apps — hand-written replacement for the WordPress/Kalium theme.
   Visual parity targets measured from the original:
   brand teal #00b19e · system font stack · 700px container · p 21px/1.5 */

:root {
  --brand: #00b19e;
  --text: #222;
  --heading: #333;
  --muted: #6d6d6d;
  --rule: #e0e0e0;
}

* { box-sizing: border-box; }

html { color: var(--text); background: #fff; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 15px;
}

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

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 50px 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img { display: block; width: 200px; height: 37px; }

.site-nav ul {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--brand);
  font-size: 13px;
  text-decoration: none;
  position: relative;
  display: inline-block;
}

/* Kalium-style underline that grows from the left on hover */
.site-nav a::after,
.content a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 0; height: 1px;
  background: var(--brand);
  transition: width .3s cubic-bezier(.175, .885, .32, 1.075);
}

.site-nav a:hover::after,
.content a:hover::after { width: 100%; }

/* ---------- Content ---------- */

.content {
  padding-top: 180px;
  padding-bottom: 100px;
  text-align: center;
}

.content h1, .content h2, .content h3 {
  color: var(--heading);
  margin: 0 0 20px;
}

.content h1 { font-size: 45px; line-height: 60px; font-weight: 700; }
.content h2 { font-size: 26px; font-weight: 700; }
.content h3 { font-size: 23px; font-weight: 500; margin-top: 40px; }

.content p {
  font-size: 21px;
  line-height: 1.5em;
  margin: 0 0 24px;
}

.content a {
  color: var(--brand);
  text-decoration: none;
  position: relative;
  display: inline-block;
}

.content a:hover { color: var(--brand); }

.content hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 40px 0;
}

.spacer-20 { height: 20px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid #f3f3f3; }

.site-footer .container { padding-top: 30px; padding-bottom: 30px; }

.site-footer p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
  .site-header { padding: 25px 0; }
  .site-header .container { flex-direction: column; gap: 16px; }
  .content { padding-top: 150px; }
  .content h1 { font-size: 30px; line-height: 40px; }
  .content h2 { font-size: 22px; }
  .content p { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav a::after, .content a::after { transition: none; }
}

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

.contact-form {
  max-width: 640px;
  margin: 50px auto 0;
  text-align: left;
}

.contact-form label { display: block; margin-bottom: 26px; }

.contact-form label span {
  display: block;
  font-size: 19px;
  color: #555;
  margin-bottom: 8px;
}

.contact-form label em { font-style: normal; color: #555; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 17px;
  color: var(--text);
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}

.contact-form .hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.contact-form button {
  display: inline-block;
  padding: 14px 38px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity .2s;
}

.contact-form button:hover { opacity: .88; }
.contact-form button:disabled { opacity: .5; cursor: default; }

.form-status { font-size: 16px; margin-top: 14px; min-height: 24px; }

/* Active nav item: persistent underline, as on the original site */
.site-nav a[aria-current="page"]::after { width: 100%; }

/* ---------- Join page ---------- */

.intro-left { text-align: left; margin-top: 30px; }
.content .intro-left + h2 { margin-top: 50px; }
.contact-form input[type="file"] {
  padding: 10px;
  font-size: 15px;
  border-style: dashed;
}
