/* Modern CSS for Rud Thygesen Website */
/* Maintains original look & feel with modern HTML5/CSS standards */

/* CSS Custom Properties */
:root {
  --color-bg: #000000;
  --color-text: #FFFFFF;
  --font-family: Geneva, Arial, Helvetica, sans-serif;
  --font-size-base: 11px;
  --line-height-base: 13px;
  --spacing-small: 5px;
  --spacing-medium: 20px;
  --spacing-large: 30px;
  --container-width: 950px;
  --sidebar-width: 100px;
  --awards-width: 200px;
}

/* CSS Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background: var(--color-bg);
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-text);
  color: var(--color-bg);
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Links */
a {
  color: var(--color-text);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

a:focus {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

a img {
  border: 0;
  padding: var(--spacing-small);
}

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

/* Product Grid Navigation */
.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin-bottom: var(--spacing-large);
}

.product-grid a {
  display: block;
  line-height: 0;
}

/* Spacer */
.spacer {
  height: var(--spacing-large);
}

/* Main Content Layout - 3 Columns */
.content-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr var(--awards-width);
  gap: 0;
}

/* Bio Section (Left Sidebar) */
.bio-section {
  width: var(--sidebar-width);
  vertical-align: top;
}

.bio-section img {
  padding: 0;
  margin-bottom: 10px;
}

.bio-section p {
  margin-bottom: 10px;
}

.bio-section strong {
  font-weight: normal;
}

/* Museum List */
.museum-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.museum-list li {
  margin-bottom: 15px;
}

/* Main Content (Center) */
.main-content {
  padding: 0 var(--spacing-medium) var(--spacing-medium);
  width: 611px;
  vertical-align: top;
}

.main-content img {
  padding: 0;
  margin-bottom: 10px;
}

.main-content h1 {
  font-size: var(--font-size-base);
  font-weight: normal;
  text-align: center;
  margin: 20px 0;
}

.main-content h1 a {
  color: var(--color-text);
}

/* Awards Section (Right Sidebar) */
.awards-section {
  width: var(--awards-width);
  vertical-align: top;
}

.awards-section h2 {
  font-size: var(--font-size-base);
  font-weight: normal;
  margin-bottom: 10px;
}

/* Awards List */
.awards-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.awards-list li {
  margin-bottom: 15px;
}

/* Product Page Styles */
.product-detail {
  margin-bottom: 10px;
}

.product-detail img {
  padding: 0;
  margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 949px) {
  .container {
    padding: 0 10px;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .content-layout {
    grid-template-columns: 1fr;
    gap: var(--spacing-large);
  }

  .bio-section,
  .main-content,
  .awards-section {
    width: 100%;
  }

  .main-content {
    padding: 0;
  }
}

@media (max-width: 599px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  a img {
    padding: 3px;
  }
}

@media (min-width: 600px) and (max-width: 949px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }

  .skip-link {
    display: none;
  }

  a {
    color: black;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
