/* Trachoma Data & Analytics — static landing page
   Typography and palette follow www.trachoma.org (ITI theme). */

@font-face {
  font-family: "Raleway";
  src: url("../fonts/Raleway-VariableFont_wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-VariableFont_wght.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Italic-VariableFont_wght.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #12273f;
  --pink: #ff8da1;
  --pink-light: #ffccd5;
  --blue: #1876bc;
  --teal: #05806f;
  --rule: #d3def2;
  --panel-bg: rgba(255, 255, 255, 0.95);
  --heading-font: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --body-font: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--body-font);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 26px;
  color: var(--navy);
  background-color: #3a2c22; /* shown while the image loads */
  background-image: url("../images/background.jpg");
  background-size: cover;
  background-position: 80% center; /* keep the subject (right side) in view */
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 48px 5vw;
}

.panel {
  width: 100%;
  max-width: 580px;
  padding: 44px 48px;
  background: var(--panel-bg);
  border-radius: 0 72px; /* echoes the ITI "leaf" corner shape */
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.panel-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 4px solid var(--pink);
}

h1,
h2 {
  font-family: var(--heading-font);
  font-weight: 700;
  color: var(--navy);
}

h1 {
  margin: 0 0 12px;
  font-size: 2.625rem;
  line-height: 55px;
}

h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  line-height: 24px;
}

.tagline {
  margin: 0;
  font-family: var(--heading-font);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 28px;
  color: var(--blue);
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--teal);
}

a:hover,
a:focus {
  color: var(--blue);
}

.links {
  list-style: none;
  margin: 28px 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Buttons: ITI .btn — 2px border, 0/18px corners, pink primary, navy secondary */
.button {
  display: inline-block;
  padding: 1rem 1.125rem;
  border: 2px solid var(--pink);
  border-radius: 0 18px;
  background: var(--pink);
  color: var(--navy);
  font-family: var(--heading-font);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.button:hover,
.button:focus {
  background: var(--pink-light);
  border-color: var(--pink-light);
  color: var(--navy);
}

.button-secondary {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.button-secondary:hover,
.button-secondary:focus {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--navy);
}

.button:active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.note {
  font-size: 1rem;
  font-style: italic;
  color: #2f4858;
}

.contact {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.contact p {
  margin: 0;
}

@media (max-width: 767px) {
  body {
    background-attachment: scroll;
  }

  .page {
    padding: 16px;
    align-items: flex-start;
  }

  .panel {
    padding: 28px 22px;
    border-radius: 0 40px;
  }

  .button {
    font-size: 1rem;
  }

  h1 {
    font-size: 2rem;
    line-height: 44px;
  }

  .tagline {
    font-size: 1.125rem;
    line-height: 26px;
  }
}
