* { box-sizing: border-box; }

html { background: #e9eaf3; }

body {
  font-family: Arial, sans-serif;
  font-size: 20px;
  line-height: 1.5;
  color: #1f2937;
  background: #eef4f8;
  max-width: 960px;
  margin: 24px auto;
  padding: 24px;
}

h1, h2, h3, p { margin: 0 0 12px; }
h1, h2 { color: #123b66; }
a { color: #123b66; }

/* navigation */
.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.menu a { color: #123b66; }
.menu a:hover { color: #7c2d12; }
:focus-visible {
  outline: 3px solid #7c3aed;
  outline-offset: 3px;
}

/* top section: image + text */
.profile {
  display: flex;
  margin-bottom: 24px;
  gap: 24px;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}
.photo {
  flex: 0 0 128px;
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 50%;
}
.bio {
  flex: 1 1 320px;
  min-width: 0;
}

/* button under the welcome text */
.profile .button { margin-left: 152px; }
.profile .bio { flex: 1 1 calc(100% - 152px); }

/* wide picture */
.banner {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 24px;
}
.profile .banner {
  height: 300px;
  margin-bottom: 0;
}

/* tag lists */
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.skills li {
  background: #e7e7ea;
  padding: 6px 12px;
}

/* boxes in a row */
.details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.panel {
  flex: 1 1 256px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  margin-top: 0;
}
.panel img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  margin-bottom: 12px;
}

/* button */
.button {
  display: inline-block;
  padding: 10px 16px;
  background-color: #3b6a8a;
  color: white;
  text-decoration: none;
}
.button-light {
  background-color: #f3f3f5;
  color: #1f2937;
}

/* home page cards */
.section-heading {
  text-align: center;
  margin-bottom: 24px;
}
.eyebrow {
  color: #c2623a;
  font-size: 14px;
  letter-spacing: 3px;
}
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.grid .panel { padding: 0; }
.grid .panel img {
  height: 200px;
  margin-bottom: 0;
}
.panel-body { padding: 16px; }

/* dark banner on home page */
section.notice {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background-color: #123b66;
  color: white;
  border: 0;
}
section.notice h2 { color: white; }
section.notice p { margin: 0; font-size: 16px; }

/* notice */
.notice {
  color: #7c2d12;
  background-color: #fff3e6;
  padding: 12px;
  border-left: 4px solid #f28c28;
}

/* table */
table {
  width: 100%;
  border: 1px solid #cbd5e1;
  margin-bottom: 24px;
}
th, td {
  padding: 10px;
  border: 1px solid #cbd5e1;
}
th {
  background-color: #123b66;
  color: white;
}

/* contact form (Week 5) */
.card {
  width: 100%;
  max-width: 32rem;
  margin: 0 auto 24px;
  padding: 24px;
  border: 2px solid #123b66;
  background-color: white;
}
label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
}
input {
  width: 100%;
  font: inherit;
  padding: 10px;
  border: 1px solid #64748b;
  margin-bottom: 16px;
}
button {
  font: inherit;
  padding: 10px 16px;
  background-color: #123b66;
  color: white;
  border: 0;
  cursor: pointer;
}
button:hover { background-color: #0b2947; }

/* centred page (contact) */
.center { text-align: center; }
.center .profile { flex-direction: column; justify-content: center; }
.center .bio { flex: 0 0 auto; }
.center .details { justify-content: center; }
.center ul { list-style: none; padding: 0; }

/* footer */
footer {
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid #cbd5e1;
  text-align: center;
  font-size: 16px;
}
footer p { margin: 0; }
