:root {
  --text: #111111;
  --muted: #555555;
  --link: #0645ad;
  --line: #dddddd;
  --soft: #f6f1e9;
  --panel: #ffffff;
  --page: #faebd7;
  --pale-blue: #faebd7;
  --nav-border: #b99d77;
  --nav-fill: #fff7ec;
  --nav-hover: #f2dfc4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover,
a:focus {
  color: #032f78;
}

.container {
  width: min(100% - 40px, 960px);
  margin: 0 auto;
}

.narrow {
  max-width: 780px;
}

.hero {
  padding: 56px 0 44px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 6px;
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0;
}

.subtitle {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.35;
}

.headshot {
  width: min(320px, 78vw);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 28px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  line-height: 1.35;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid var(--nav-border);
  border-radius: 999px;
  background: var(--nav-fill);
  color: #183f73;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus {
  border-color: #84663f;
  background: var(--nav-hover);
  color: #111111;
}

.page-section {
  padding: 58px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.page-section h2 {
  margin-bottom: 24px;
  text-align: center;
  font-size: clamp(1.75rem, 4vw, 2.3rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.page-section p {
  margin-bottom: 20px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 0;
}

.logo-link {
  display: inline-block;
}

.purpose-logo {
  width: min(430px, 88vw);
  height: auto;
}

.speaking-photo {
  width: min(520px, 100%);
  aspect-ratio: 1;
  object-fit: cover;
  margin: 0 auto 28px;
  border-radius: 4px;
}

.speech-list {
  margin-top: 34px;
}

.speech-list h3 {
  margin-bottom: 16px;
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.35;
}

.speech-accordion {
  display: grid;
  gap: 10px;
  font-family: Arial, Helvetica, sans-serif;
}

.speech-item {
  border: 1px solid #d5c2a7;
  border-radius: 6px;
  background: #fff7ec;
  overflow: hidden;
}

.speech-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 15px 18px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.speech-trigger:hover,
.speech-trigger:focus {
  background: #f2dfc4;
}

.speech-icon {
  position: relative;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
}

.speech-icon::before,
.speech-icon::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
  background: #84663f;
}

.speech-icon::after {
  transform: rotate(90deg);
  transition: transform 160ms ease;
}

.speech-trigger[aria-expanded="true"] .speech-icon::after {
  transform: rotate(0deg);
}

.speech-panel {
  display: none;
  padding: 0 18px 16px;
  color: #333333;
}

.speech-trigger[aria-expanded="true"] + .speech-panel {
  display: block;
}

.speech-panel p {
  margin-bottom: 0;
}

.contact-section {
  border-bottom: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 34px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.contact-info,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  padding: 24px;
}

.contact-info {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

.contact-info h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  line-height: 1.3;
}

.contact-info p {
  margin-bottom: 24px;
}

.contact-info ul {
  margin: 0;
  padding-left: 20px;
}

.contact-form {
  display: grid;
  gap: 10px;
  font-family: Arial, Helvetica, sans-serif;
}

.contact-form label {
  font-size: 0.95rem;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #c9c9c9;
  border-radius: 4px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  justify-self: start;
  margin-top: 8px;
  padding: 11px 22px;
  border: 1px solid var(--text);
  border-radius: 4px;
  background: var(--text);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.contact-form button:hover,
.contact-form button:focus {
  background: #333333;
}

@media (max-width: 720px) {
  body {
    font-size: 17px;
  }

  .container {
    width: min(100% - 28px, 960px);
  }

  .hero {
    padding: 42px 0 34px;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .site-nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .site-nav a {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
  }

  .page-section {
    padding: 44px 0;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .speech-trigger {
    min-height: 48px;
    padding: 14px 16px;
  }

  .contact-info,
  .contact-form {
    padding: 20px;
  }
}
