/* Kenyon AAUP site styles.
   Colors and sizes were measured from the original rendered pages at 1280px wide. */

:root {
  --cream: #f7efdc;
  --gray: #5d5851;
  --crimson: #a70e3e;
  --dark: #2a2623;
  --nav-text: #0f0000;
  --gutter: 40px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.35;
  color: var(--cream);
  background: var(--dark);
}

a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { font-weight: 400; }

/* Header and navigation */
header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  min-height: 138px;
  padding: 13px 68px 0;
  background: var(--cream);
  color: var(--nav-text);
}

header img {
  width: 241px;
  height: auto;
  flex: none;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

nav li + li { margin-left: 20px; }

nav a {
  display: block;
  font-size: 16px;
  padding: 3px 10px;
  color: var(--nav-text);
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] { text-decoration: underline; }

/* Sections */
section { padding: 64px var(--gutter); }
.gray { background: var(--gray); }
.crimson { background: var(--crimson); }
.dark { background: var(--dark); }

h1 { font-size: 72px; line-height: 1; }
h2 { font-size: 56px; line-height: 1; }
.lead { max-width: 900px; margin-top: 24px; }

/* Home: hero and mission sit side by side on wide screens, stacked on narrow ones */
.split { display: block; }

@media (min-width: 901px) {
  .split {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

.home-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-hero .lead { max-width: none; margin-top: 20px; }

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 40px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 144px;
  padding: 8px 24px;
  border: 1px solid var(--cream);
  background: var(--cream);
  color: var(--dark);
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.btn:hover { background: transparent; color: var(--cream); }

/* Home: mission */
.mission {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mission p { margin-top: 34px; }

/* Home: advocacy pillars */
.pillars { padding-top: 56px; padding-bottom: 64px; }
.pillars h2 { text-align: center; }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 70px;
  margin-top: 48px;
  padding: 0 24px;
}

.pillar {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--cream);
  text-align: center;
}

.pillar h3 { font-size: 24px; line-height: 1.1; }
.pillar p { margin-top: 16px; font-size: 16px; line-height: 1.35; }

/* About us */
.intro { padding-top: 64px; padding-bottom: 64px; }
.crimson.leadership { padding-bottom: 56px; }

.leaders {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 0;
  margin-top: 36px;
  list-style: none;
}

.leaders li { width: 240px; }

.leaders img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-bottom: 24px;
}

.leaders p {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.1;
}

.leaders .name { margin-bottom: 14px; font-weight: 700; }
.leaders .role { font-size: 18px; font-style: italic; opacity: .85; }

/* Meetings */
.meetings { padding-bottom: 100px; }

.schedule {
  max-width: 900px;
  padding: 0;
  margin-top: 32px;
  list-style: none;
}

.schedule li {
  display: grid;
  grid-template-columns: 11rem 9rem 1fr;
  gap: 4px 24px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid rgba(247, 239, 220, .35);
  font-size: 22px;
  line-height: 1.3;
}

.schedule li:last-child { border-bottom: 1px solid rgba(247, 239, 220, .35); }
.schedule .date { font-weight: 700; }
.schedule .place { opacity: .85; }

.contact { padding-top: 48px; padding-bottom: 56px; }
.contact a { text-decoration: underline; }

/* Resources */
.resources { padding-bottom: 100px; }

.resources ul {
  padding: 0;
  margin-top: 40px;
  list-style: none;
  font-size: 24px;
  line-height: 1.1;
}

.resources li + li { margin-top: 56px; }

/* Footer */
footer {
  padding: 24px var(--gutter);
  background: var(--dark);
  font-size: 14px;
  text-align: right;
}

/* Narrow screens */
@media (max-width: 800px) {
  :root { --gutter: 24px; }
  header { flex-direction: column; align-items: flex-start; padding: 16px 24px; }
  nav ul { margin-top: 0; }
  nav li + li { margin-left: 4px; }
  h1 { font-size: 48px; }
  h2 { font-size: 40px; }
  section { padding-top: 56px; padding-bottom: 56px; }
  .buttons { gap: 24px; }
  .pillar-grid { grid-template-columns: 1fr; gap: 40px; margin-top: 48px; padding: 0; }
  .schedule li { grid-template-columns: 1fr; font-size: 20px; padding: 14px 0; }
}
