@import url("https://use.typekit.net/uwp7ign.css");
@import "mobile-menu.css";

/* Base styles */
:root {
  --background: #ffffff;
  --foreground: #333333;
  --font-heading: "athelas", serif;
  --font-body: "athelas", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --foreground: #ededed;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  color: #333333;
  text-decoration: none;
}

body {
  background: var(--background) url("../images/bg-tile.png") repeat top center;
  color: var(--foreground);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout utilities */
.container {
  width: 100%;
  max-width: 73rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.flex-grow {
  flex-grow: 1;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-12 {
  margin-top: 3rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.p-1 {
  padding: 0.25rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Typography */
.text-center {
  text-align: center;
}

.text-sm {
  font-size: 0.875rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.font-bold {
  font-weight: 700;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
}

/* Header */
header {
  width: 100%;
  padding: 3rem 0 1rem;
}

header .container {
  max-width: 62rem;
}

header .flex-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

header nav {
  margin-top: 1rem;
}
.logo-wrapper {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  header .flex-col {
    flex-direction: row;
    justify-content: space-between;
  }
  .logo-wrapper {
    margin-right: 1rem;
  }
}

header .text-2xl {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Navigation */
nav.main {
  display: flex;
}

nav a, nav button {
  margin: 0 0.75rem;
  text-decoration: none;
  color: inherit;
  background: none;
  border: none;
  font-size: 1.125rem;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
}

nav a:hover, nav button:hover {
  text-decoration: underline;
}

#art-dropdown-menu,
#books-dropdown-menu,
#media-dropdown-menu {
  background: #9b9b9b;
}

/* Dropdown */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.top-full {
  top: 100%;
}

.left-0 {
  left: 0;
}

.z-10 {
  z-index: 10;
}

.min-w-max {
  min-width: max-content;
}

.bg-gray-800 {
  background-color: #1f2937;
}

.bg-gray-700:hover {
  background-color: #374151;
}

.text-white {
  color: white;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

/* Grid */
.grid {
  display: grid;
}

.gap-8 {
  gap: 2rem;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

/* Images */
img {
  max-width: 100%;
  height: auto;
}

.w-full {
  width: 100%;
}

.h-auto {
  height: auto;
}

/* Borders */
.border {
  border-width: 1px;
  border-style: solid;
}

.border-gray-300 {
  border-color: #d1d5db;
}

/* Backgrounds */
.bg-gray-200 {
  background-color: #e5e7eb;
}

.bg-gray-300 {
  background-color: #d1d5db;
}

/* Button styles */
.button {
  background: var(--foreground);
  color: var(--background);
  border-radius: 0.25rem;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
}

.button:hover {
  opacity: 0.8;
}

/* Footer */
footer {
  width: 100%;
  padding: 2rem 0;
  margin-top: 3rem;
  color: #555555;
}

/* Media queries */
@media (min-width: 768px) {
  .grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
  
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  header .container {
    max-width: 62rem;
  }
}

/* Featured slideshow styles */
.main-content {
  margin-left: 16px;
  margin-right: 16px;
}

.swiper {
  overflow: initial;
}

.featured-slideshow-container {
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 80px;
  border: 2px solid #FFF;
}

.featured-slideshow {
  width: 100%;
  height: 100%;
}

.featured-slideshow .swiper-wrapper {
  min-height: 500px;
}

.featured-slideshow .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.featured-image {
  max-width: calc(100% + 48px);
  width: auto;
  max-height: calc(500px + 48px);
  height: auto;
  border: 2px solid #FFF;
  margin: -24px;
  object-fit: contain;
}

/* Responsive adjustments for featured slideshow */
@media (max-width: 768px) {
  .featured-slideshow-container {
    min-height: 400px;
  }
  
  .featured-slideshow .swiper-wrapper,
  .featured-slideshow .swiper-slide {
    min-height: 400px;
  }
  
  .featured-image {
    max-height: calc(400px + 48px);
  }
}

@media (max-width: 480px) {
  .featured-slideshow-container {
    min-height: 300px;
  }
  
  .featured-slideshow .swiper-wrapper,
  .featured-slideshow .swiper-slide {
    min-height: 300px;
  }
  
  .featured-image {
    max-height: calc(300px + 48px);
  }
}




.book div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 1rem;
}
.book.slot-1 div {
  align-items: flex-end;
}
.book.slot-1 {
  text-align: right;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-start;
  align-items: flex-end;
}
.book.slot-1 img {
  margin-left: 1rem;
}
.book.slot-2 img {
  margin-right: 1rem;
}

.book.slot-2 {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}

.text-header {
  background: url(../images/header-pattern.png) repeat-x bottom left;
  padding: 0 0 1rem 0;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-direction: row;
  flex-wrap: wrap;
}

.text-header h1 {
  margin-bottom: 0;
}

p {
  line-height: 145%;
  margin-bottom: 1.5rem;
}

/* About Page */
#page-about section {
  font-size: 1.25rem;
}

.error-container {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.error-code {
  font-family: var(--font-heading);
  font-size: 6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1;
}

.error-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.error-message {
  font-size: 1.125rem;
  color: #666;
  margin-bottom: 2rem;
  max-width: 600px;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.error-actions .button {
  min-width: 200px;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .error-code {
    font-size: 4rem;
  }
  
  .error-title {
    font-size: 1.875rem;
  }
  
  .error-actions {
    width: 100%;
  }
}

.error-details {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(211, 47, 47, 0.1);
  border-left: 4px solid #d32f2f;
  border-radius: 4px;
  max-width: 600px;
  width: 100%;
  text-align: left;
}

.error-details h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: #d32f2f;
}

.error-details p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.error-details ul {
  list-style: none;
  padding-left: 0;
}

.error-details li {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.error-details li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #d32f2f;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .error-details,
  .retry-info {
    padding: 1rem;
  }
}

.books-container {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
}

.book-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.book-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.book-image {
  width: 100%;
  height: auto;
  margin: 0 auto 1rem;
}

.book-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.book-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Responsive layout */
@media (min-width: 768px) {
  .book-container {
    width: calc(32% - 2rem);
  }
}