@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;800&display=swap');

:root {
  --main-red: tomato;
  --bg: #fdfaf4;
  --text: #2b2b2b;
  --line-color: #e3ddd1;
  --accent: rgb(210, 80, 60);
  --soft: rgba(255, 99, 71, 0.18);
  --blue: hsl(205, 55%, 38%);
  --blue2: hsla(205, 45%, 55%, 0.9);
  --p3red: color(display-p3 0.88 0.35 0.28);
  --mixed: color-mix(in srgb, tomato 65%, black);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
    font-family: 'Nunito', Arial, sans-serif;
    background-color: var(--bg, #fff);
    color: var(--text);
    line-height: 1.55;
    font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: Nunito, Georgia, serif;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
h4 { font-size: 1rem; }

p {
  margin-bottom: 10px;
}

a {
  color: var(--main-red);
  text-decoration: underline;
}


header {
  background-color: var(--p3red);
  background-color: var(--accent);
  color: white;
  text-align: left;
  padding-top: 34px;
  padding-right: 24px;
  padding-bottom: 22px;
  padding-left: 24px;
  border-bottom: 6px solid var(--mixed);
  position: relative;
}
header h1 {
  color: white;
  margin-bottom: 4px;
  width: 100%;
  max-width: 720px;
  min-width: 200px;
  height: auto;
}
header h2 { color: rgba(255,255,255,0.88); font-weight: 400; }
header h3 { color: hsla(0, 0%, 100%, 0.75); font-weight: 400; margin-bottom: 6px; }
header p  { color: #f3f3f3; }

.header-dot {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36pt;
    height: 36pt;
    background-color: rgba(255,255,255,0.18);
    border-radius: 50%;
}

nav {
  background-color: var(--mixed);
  color: white;
  padding: 10px 20px 10px 20px;
  position: sticky;
  top: 0;
  z-index: 50;
}
nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    list-style: none;
}
nav ul li {
  display: inline-block;
  margin-right: 6px;
}
nav a {
    color: #fff;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 14px;
}


main {
    max-width: 900px;
    min-width: 280px;
    width: 92%;
    margin: 24px auto;
    padding-top: 6px;
    padding-bottom: 40px;
    min-height: 80vh;
}

section, .sec {
  background-color: #ffffff;
  border-style: solid;
  border-color: var(--line-color);
  border-width: 1pt;
  border-radius: 10px;
  margin-bottom: 18px;
  padding: 1.15rem 1.4rem 1.15rem 1.4rem;
  scroll-margin-top: 70px;
}

section h3, .sec h3 {
    margin-bottom: 12px;
    color: var(--accent);
    border-bottom: 2px solid var(--soft);
    padding-bottom: 6px;
}

.attend-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  align-items: center;
  margin-top: 4px;
}
.attend-row li {
    background-color: var(--soft);
    padding: 6px 12px;
    border: 1px solid var(--line-color);
    border-radius: 14px;
    font-size: 0.95em;
    display: inline-block;
    color: var(--text);
    font-weight: 600;
}
.attend-row li[data-role="lead"] {
  background-color: var(--accent);
  color: white;
  border-color: var(--mixed);
  font-weight: 600;
}


#agenda ol {
  padding-left: 1.4rem;
}
#agenda li {
  margin-bottom: 4px;
}

.agenda-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 10px;
}
.agenda-grid li {
  background-color: var(--soft);
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 8px;
  padding-bottom: 8px;
  border-radius: 5px;
  list-style-position: inside;
  margin: 4px 2px 4px 0;
}

.callout {
    background-color: hsl(36, 90%, 94%);
    border: 1px dashed #e07b00;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 12px;
}


.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 14px;
}

.media-cell {
  background-color: #fafafa;
  border: 1px solid var(--line-color);
  border-radius: 6px;
  padding: 10px;
  min-height: 80px;

  & h4 {
    color: var(--accent);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
  }
  & img:hover {
    opacity: 0.92;
  }
}

.media-cell img,
.media-cell video {
    width: 100%;
    height: auto;
    max-width: 100%;
    min-width: 120px;
    border-radius: 4px;
}

.media-cell audio {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 6px;
}


details {
  border: 1px solid var(--line-color);
  border-radius: 6px;
  padding: 10px 14px;
}
details summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--blue);
}


fieldset {
  border: 1pt solid var(--line-color);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}
legend {
    font-weight: 800;
    color: var(--accent);
    font-size: 1.1rem;
    padding: 0 6px;
}

input[type="text"],
input[type="date"],
select,
textarea {
  display: block;
  width: 100%;
  max-width: 350px;
  padding: 6px 10px;
  margin-top: 4px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
}
textarea {
  min-width: 200px;
  height: 80px;
}

button {
    background-color: var(--accent);
    color: white;
    border: 2px solid transparent;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    margin-top: 6px;
    font-family: inherit;
}

label {
  font-weight: 600;
  font-size: 0.95em;
}

input[type="radio"],
input[type="checkbox"] {
  margin-right: 4px;
  margin-left: 2px;
}


hr {
  border: none;
  border-top: 1mm dashed var(--line-color);
  margin: 16px 0;
}

em {
    display: inline;
    color: var(--accent);
    font-style: italic;
}

.hidden { display: none; }

.small-note {
  color: #777;
}


footer {
    background-color: var(--blue);
    color: #eaeaea;
    text-align: center;
    padding: 20px 12px;
    margin-top: 1in;
    font-size: 0.85rem;
}
footer a { color: var(--blue2); }


a:hover {
  color: var(--mixed);
  text-decoration: none;
}
a:active {
  color: orange;
}

nav a:hover {
    background-color: var(--soft);
    color: var(--main-red);
}
nav a:active {
  background-color: tomato;
  color: white;
}

button:hover {
  background-color: var(--mixed);
}
button:active {
  background-color: #7a1e16;
}

.media-cell:hover {
    border-color: var(--accent);
    background-color: #fff5f1;
}

.attend-row li:hover {
  border-color: var(--accent);
}


nav > ul > li {
  padding: 2px 0;
}

h3 + p {
    margin-top: 2px;
    color: #444;
}

h3 ~ ul {
  margin-top: 6px;
}

section.sec {
  overflow: hidden;
}

span.leader {
    font-weight: 600;
    color: var(--blue);
}

.sec:has(form) {
  background-color: #fffdfa;
  border-left: 4px solid var(--accent);
}

section:has(details) {
    background-color: var(--bg);
}

main > section {
  position: relative;
}

div.comments-wrap p ~ p {
  margin-top: 4px;
}


@media (max-width: 600px) {
    h1 { font-size: 1.4rem; }

    header {
      padding: 1.2rem 1rem;
      text-align: center;
    }

    nav ul {
        flex-direction: column;
        gap: 6px;
        align-items: stretch;
        text-align: center;
    }
    nav ul li {
      display: inline-block;
      margin-right: 2px;
    }
    nav a {
      font-size: 12px;
      padding: 4px 6px;
    }

    .media-grid {
      grid-template-columns: 1fr;
    }

    .attend-row {
      gap: 6px;
    }

    main {
        width: 96%;
        padding-top: 12px;
    }

    .sec {
      padding: 14px;
    }
}

@media (min-width: 601px) and (max-width: 1024px) {
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  main {
    width: 94%;
  }
  header {
    padding: 1.5rem 1.2rem;
  }
}

@media (min-width: 1025px) {
    main {
      width: 92%;
    }
    .media-grid {
      grid-template-columns: repeat(3, 1fr);
    }
    .sec {
      padding-left: 1.6rem;
      padding-right: 1.6rem;
    }
}
