/* CSS Variables for easy theming */
:root {
  --primary-bg: #541203;
  --secondary-bg: #441500;
  --accent-color: #ff0000;
  --text-color: #fff;
  --link-color: #ff0000;
  --visited-link-color: #ff0000;
  --container-max: 1200px;
  --font-body: 'Open Sans', sans-serif;
  --font-heading: 'Playfair Display', serif;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Responsive Images */
.banner img,
.bio-image img,
.inspiration-image img,
.creative-image img,
.artist-image img,
.donation-images img,
.full-width {
  width: 100%;
  height: auto;
  display: block;
}

/* Body & Global Typography */
body {
  background-color: var(--primary-bg);
  color: var(--text-color);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 16px;
  padding: clamp(12px, 2vw, 20px);
}
a {
  color: var(--link-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}
a:visited {
  color: var(--visited-link-color);
}
a:hover {
  color: var(--accent-color);
}

/* Header */
header {
  padding: 20px;
  background-color: transparent;
}
.header-top img {
  max-width: 100%;
  height: auto;
}
.header-top p {
  margin-top: 10px;
  font-family: var(--font-heading);
}

/* Main Navigation */
nav.main-nav {
  background-color: var(--secondary-bg);
  margin-top: 10px;
}
nav.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 10px;
}
nav.main-nav ul li {
  margin: 0 10px;
}
nav.main-nav ul li a {
  color: #FFEEDD;
  text-decoration: none;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}
nav.main-nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  text-decoration: underline;
}

/* Layout Containers */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}
.col {
  flex: 1;
  padding: 0 10px;
  min-width: 300px;
}
.col-full {
  width: 100%;
  padding: 0 10px;
}

/* Sections */
section {
  padding: 20px;
  margin-bottom: 20px;
  background-color: rgba(68, 21, 0, 0.7);
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Section Headers & Intro Text */
.section-header {
  text-align: center;
  font-size: 1.5em;
  color: var(--text-color);
  margin-bottom: 20px;
  font-family: var(--font-heading);
}
.intro-text {
  text-align: center;
  font-size: 1em;
  margin-bottom: 20px;
}

/* Figures and Captions */
figure {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
figcaption {
  margin-top: 10px;
  text-align: center;
  font-style: italic;
}

/* Float Helpers */
.float-right {
  float: right;
  margin: 0 0 10px 10px;
}
.float-left {
  float: left;
  margin: 0 10px 10px 0;
}

/* Iframes */
iframe {
  border: none;
}

/* Books Section */
.books .book {
  margin-bottom: 20px;
}
.books .book figure {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.books .book figcaption h2 {
  margin-top: 10px;
  font-size: 1.2em;
  color: var(--text-color);
  font-family: var(--font-heading);
}
.books .book figcaption p {
  text-align: center;
  font-size: 1em;
}

/* Additional Info / FAQ */
.additional-info {
  background-color: rgba(68, 21, 0, 0.9);
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.additional-info h2 {
  text-align: center;
  margin-bottom: 20px;
  font-family: var(--font-heading);
}
.additional-info h3 {
  margin-top: 20px;
  font-size: 1.1em;
}
.additional-info p {
  margin-bottom: 10px;
}

/* Ruin Mist Gear Section */
.ruinmist-gear {
  text-align: center;
}
.ruinmist-gear h2 {
  margin-bottom: 20px;
  font-family: var(--font-heading);
}
.gear-items {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.gear-item {
  flex: 1 1 200px;
  max-width: 300px;
  background-color: #fff;
  color: #000;
  padding: 10px;
  border-radius: 4px;
  text-align: center;
  margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gear-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.gear-item img {
  margin: 0 auto;
}

/* Footer */
footer {
  background-color: #000;
  text-align: center;
  padding: 20px;
}
footer nav.footer-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}
footer nav.footer-nav ul li {
  margin: 0 10px;
}
footer nav.footer-nav ul li a {
  color: #FFF;
  text-decoration: none;
}
.footer-links p {
  margin: 10px 0;
}
footer .copyright {
  font-size: 0.9em;
  color: #fff;
}

p {
  /*  text-indent: 1em;    Indents the first line of each paragraph */
  margin-bottom: 1em;   /* Adds vertical space between paragraphs */
}

.skip-link{
  position: fixed;
  top: max(8px, env(safe-area-inset-top));
  left: max(8px, env(safe-area-inset-left));
  padding: 8px 12px;
  background: #fff;
  color: var(--link-color, #0645ad);
  border: 2px solid var(--primary-color, #111);
  border-radius: 999px;
  text-decoration: none;
  z-index: 10000;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  opacity: .85;
}

.skip-link:hover,
.skip-link:focus,
.skip-link:focus-visible{
  opacity: 1;
  outline: 3px solid #000;
  outline-offset: 2px;
}

#main-entry{
  position: relative;
  display: block;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .row {
    flex-direction: column;
  }
}
