:root {
  --page-bg: #eef1f5;
  --surface: #ffffff;
  --surface-alt: rgb(244, 247, 250);
  --text-main: #1f2933;
  --text-muted: hsl(215, 14%, 42%);
  --accent: navy;
  --accent-strong: rgba(27, 61, 107, 0.96);
  --accent-soft: hsla(214, 50%, 40%, 0.12);
  --success: color(display-p3 0.20 0.58 0.36 / 0.95);
  --mixed-accent: color-mix(in srgb, #1d4f91 75%, white 25%);
  --card-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  --card-radius: 14px;
  --content-max: 70rem;
  --fallback-demo: var(--brand-pop, #6b7280);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--page-bg, #f3f4f6);
  color: var(--text-main);
  font-family: 'Inter', Arial, sans-serif;
  line-height: 1.65;
}

header,
main,
footer {
  width: min(100% - 2rem, var(--content-max));
  margin: 0 auto;
}

header {
  margin-top: 2rem;
  margin-right: auto;
  margin-bottom: 1.25rem;
  margin-left: auto;
  padding: 2rem 2rem 1.5rem 2rem;
  background-color: var(--accent-strong);
  color: white;
  border-style: solid;
  border-color: #d7dde5;
  border-width: 1px;
  border-radius: 18px;
  position: relative;
  box-shadow: var(--card-shadow);
}

header::after {
  content: "Meeting Notes";
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.14);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: left;
}

h2 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
}

nav {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  position: sticky;
  top: 0.75rem;
  z-index: 2;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding-left: 1.1rem;
  margin: 0.7rem 0 0 0;
}

nav li {
  list-style: disc;
}

nav > b {
  display: inline-block;
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* attribute selector */
a[href^="#"] {
  color: white;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a[href^="#"]:hover {
  color: #f3f7fb;
  text-decoration-color: white;
}

a[href^="#"]:active {
  color: #dbe8f7;
}

hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 1.25rem 0 0 0;
}

main {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

#attendance,
#agenda,
#business,
#media,
#feedback {
  background-color: var(--surface);
  box-shadow: var(--card-shadow);
  border-style: solid;
  border-color: #dde3ea;
  border-width: 1px;
  border-radius: var(--card-radius);
}

#attendance,
#agenda,
#business,
#media {
  grid-column: span 6;
}

#feedback {
  grid-column: 1 / -1;
}

section {
  padding: 1.35rem;
}

section#business {
  background-color: #fcfbf7;
}

header ~ footer {
  margin-bottom: 2rem;
}

h2 + div,
h2 + ol,
h3 + p {
  margin-top: 0.3rem;
}

.highlight {
  color: var(--fallback-demo);
  font-weight: 700;
}

ol,
ul {
  padding-left: 1.3rem;
}

li {
  margin-bottom: 0.5rem;
}

p {
  margin-top: 0.65rem;
  margin-bottom: 0.65rem;
}

span {
  font-weight: 600;
}

em {
  color: #8a5a00;
}

strong {
  color: #8b1e1e;
}

summary {
  display: inline-block;
  cursor: pointer;
  font-weight: 600;
  color: var(--accent-strong);
}

video,
audio {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 0.75rem;
}

img {
  display: block;
  width: 100%;
  max-width: 680px;
  min-width: 180px;
  height: auto;
  margin: 1rem auto 0 auto;
  border-style: solid;
  border-color: #d8dee6;
  border-width: 3px;
  border-radius: 12px;
  background-color: var(--surface-alt);
}

form fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  background-color: #fbfcfd;
}

fieldset {
  width: 100%;
  min-width: 0;
  padding-top: 1rem;
  padding-right: 1rem;
  padding-bottom: 1rem;
  padding-left: 1rem;
  margin: 0;
  border-style: solid;
  border-color: #d5dce4;
  border-width: 1px;
  border-radius: 12px;
}

legend {
  padding: 0 0.45rem;
  font-weight: 700;
  color: var(--accent-strong);
}

footer {
  & section {
    background-color: var(--surface);
  }

  & p {
    color: var(--text-muted);
    text-align: center;
  }
}

label {
  display: inline-block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

input,
select,
textarea,
button {
  width: 100%;
  font: inherit;
}

input[type="radio"],
input[type="checkbox"] {
  display: inline;
  width: auto;
  margin-right: 0.35rem;
}

input[type="text"],
input[type="date"],
input[list],
select,
textarea {
  padding: 0.7rem 0.8rem;
  border: 1px solid #cfd7e1;
  border-radius: 10px;
  background-color: white;
}

textarea {
  min-height: 8em;
  resize: vertical;
}

button {
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 999px;
  background-color: var(--accent-strong);
  color: white;
  font-weight: 700;
  cursor: pointer;
  max-width: 15rem;
}

button:hover {
  background-color: #214a80;
}

button:active {
  background-color: #17365e;
}

section:has(details[open]) {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

form:has(textarea:focus),
fieldset:has(input:focus),
fieldset:has(select:focus) {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(29, 79, 145, 0.12);
}

details:hover summary {
  color: #17365e;
}

details[open] p {
  background-color: #f5f7fa;
  padding: 0.8rem;
  border-radius: 10px;
}

main section {
  position: relative;
}

footer {
  position: static;
}

header h2 {
  font-size: 1.05rem;
  margin-bottom: 0.4cm;
}

main section,
footer section {
  min-height: auto;
}

video {
  border-radius: 0.25in;
}

@media (max-width: 900px) {
  main {
    grid-template-columns: 1fr;
  }

  #attendance,
  #agenda,
  #business,
  #media,
  #feedback {
    grid-column: 1 / -1;
  }

  nav ul {
    flex-direction: column;
    gap: 0.45rem;
  }

  header,
  main,
  footer {
    width: min(100% - 1rem, var(--content-max));
  }
}

/* mobile friendly layout */
@media (max-width: 600px) {
  header {
    padding: 1.25rem;
  }

  section {
    padding: 1rem;
  }

  button {
    max-width: 100%;
  }

  header::after {
    position: static;
    display: inline-block;
    margin-top: 0.75rem;
  }
}