* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 Arial, Helvetica, sans-serif; color: #222; background: #fff; }
header { border-bottom: 3px solid #e6003d; }
header, footer { padding: 12px 16px; }
header nav, main, footer p { max-width: 1180px; margin: auto; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 14px; }
nav a { color: #333; text-decoration: none; }
nav a:hover { text-decoration: underline; }
nav .brand { font-size: 23px; font-weight: bold; color: #e6003d; margin-right: auto; }
main { padding: 14px 16px 30px; }
h1 { font-size: 30px; margin: 0 0 4px; }
h2 { font-size: 23px; margin: 24px 0 8px; line-height: 1.25; }
h3 { font-size: 18px; margin: 18px 0 5px; }
p { margin: 0 0 12px; }
small, .note { color: #666; font-size: 13px; }
.button { display: inline-block; background: #e6003d; color: white; padding: 9px 14px; text-decoration: none; font-weight: bold; }
.button:hover { background: #ba0032; color: white; }
.photos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.photos a { display: block; border: 1px solid #ddd; color: #333; font-size: 13px; text-decoration: none; }
.photos a:hover { border-color: #e6003d; }
.photos img, .photo { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.photo { display: grid; place-items: center; background: #eee; color: #777; }
.photos b { display: block; padding: 5px 7px; font-weight: normal; }
.more { padding: 14px 0; border-bottom: 1px solid #ddd; }
.more h2 { margin-top: 0; }
article { max-width: 880px; }
footer { border-top: 1px solid #ddd; background: #f5f5f5; font-size: 13px; color: #555; }
footer p { margin-bottom: 5px; }
a:focus-visible { outline: 2px solid #222; outline-offset: 2px; }
@media (max-width: 950px) { .photos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  nav { gap: 10px; }
  nav .brand { flex-basis: 100%; font-size: 21px; }
  h1 { font-size: 26px; }
  h2 { font-size: 21px; }
}

a:not(.button):focus-visible { outline: 2px solid #222; }
.profile { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 22px; max-width: 880px; margin: 16px 0; }
.profile img { width: 100%; display: block; height: auto; aspect-ratio: 4/3; object-fit: cover; }
dt { font-weight: bold; }
dd { margin: 0 0 12px; color: #555; }
@media (max-width: 600px) { .profile { grid-template-columns: 1fr; } }

.profile-photo { display: block; align-self: start; border: 3px solid #e6003d; text-decoration: none; color: #fff; }
.profile-photo b { display: block; padding: 10px 8px; text-align: center; background: #e6003d; color: #fff; font-size: 17px; }
.profile-photo:hover, .profile-photo:focus-visible { border-color: #ba0032; }
.profile-photo:hover b { background: #ba0032; }

/* Homepage access button */
.home-nav .button { white-space: nowrap; }
.home-nav .button:hover { text-decoration: none; }
@media (max-width: 600px) {
  .home-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .home-nav .brand { grid-column: 1 / 3; margin: 0; }
  .home-nav .button { grid-column: 3; grid-row: 1; justify-self: end; padding: 9px 10px; font-size: 13px; }
}
@media (max-width: 360px) {
  .home-nav .brand { font-size: 18px; }
}
