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

/* Base styles */
body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #1a1a1a;
  line-height: 1.6;
  background-color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

header, footer {
  padding-top: 32px;
  padding-bottom: 24px;
  padding-left: 20px;
  padding-right: 32px;
  color: #fff;
  background-color: #1a1a1a;
}

/* Layout */
.layout {
  display: flex;
  flex-direction: row;
  gap: 16px;
  min-height: 100vh;
}

/* Navigation styles */
aside {
  background-color: #ccc;
  padding: 4px;
  padding-top: 110px;
  padding-bottom: 96px;
  flex: 0 0 200px;
}

aside ul li {
  margin-bottom: 8px;
}

aside li.active a {
  background-color: #e0e0e0;
  border-left: 4px solid #003366;
  padding: 8px 8px 8px 12px; /* left padding = 8px + 4px for border */
  border-radius: 4px;
  pointer-events: none;
}

aside a {
  font-weight: 500;
  display: inline-block;
  padding: 8px 8px 8px 16px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

aside a:hover,
aside a:focus {
  background-color: #ffffff;
  outline: none;
  display: inline-block;
  border-radius: 4px;
  padding: 8px 8px 8px 16px;
}

/* Content */
.content {
  flex: 1;
  padding: 16px;
  padding-top: 96px;
  padding-bottom: 64px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 16px;
}


h1 {
  font-size: 4.209em;
  margin-bottom: 16px;
  font-weight: 400;
  line-height: 80px;
  letter-spacing: -1px;
}

h2 {
  font-size: 3.157em;
  margin-bottom: 16px;
}

h3 {
  font-size: 2.369em;
  margin-bottom: 16px;
}

h4 {
  font-size: 1.777em;
  margin-bottom: 16px;
}

h5 {
  font-size: 1.333em;
  margin-bottom: 16px;
  font-weight: 100;
}

h6 {
  font-size: 1em;
  margin-bottom: 16px;
}

p {
  margin-bottom: 40px;
  max-width: 800px;
}

.button-group {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.button-link {
  display: inline-block;
  padding: 8px 16px;
  background-color: #1a1a1a;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1em;
  font-weight: 400;
}

.button-link:hover,
.button-link:focus {
  background-color: #1a1a1a;
  text-decoration: none;
  outline: 2px solid #666;
  outline-offset: 2px;
}


/* Image Gallery */
.image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.image-gallery img {
  height: 280px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
  margin-top: 32px;
}


/* Footer */
footer {
  padding: 16px 0;
  border-top: 1px solid #ddd;
}

footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.layout {
  flex: 1;
}


/* Responsive Breakpoint */
@media (max-width: 600px) {
  .layout {
    flex-direction: column;
  }

  aside {
    width: 100%;
  }

  .image-gallery {
    justify-content: center;
  }
}

.site-footer {
  background-color: #1a1a1a;
  color: #fff;
}

.footer-collections {
  padding: 48px;
}

.footer-collections h2 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  margin-bottom: 24px;
  font-size: 1.777em; /* Perfect Fourth scale */
}

.footer-collections ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 32px;
  row-gap: 8px;
}

.footer-collections li a {
  color: #fff;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 1em;
}

.footer-collections li a:hover {
  text-decoration: underline;
}

.footer-bottom {
  padding: 16px 48px;
  background-color: #1a1a1a;
  font-size: 0.875em;
}

figcaption {
  color: #666; /* AA contrast against white (ratio ~5.6:1) */
  font-style: italic;
  font-family: inherit; /* same font as the rest */
  font-size: inherit;   /* same size as the rest */
}

/* Base styles */
figure img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-collections ul {
    grid-template-columns: 1fr;
  }

  aside {
    display: none;
  }

  figure img {
    width: 100%;
  }
}