--- ---
/* ============================================
   MINIMAL CSS - Clean, Typography-Focused Design
   ============================================ */

/* Reset & Base Styles
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  background-color: #ffffff;
  color: #000000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

/* Layout
   ========================================== */
main {
  max-width: 700px;
  margin: 0 auto;
  padding: 80px 40px;
}

@media (max-width: 768px) {
  main {
    padding: 60px 20px;
  }
}

/* Typography
   ========================================== */
h1 {
  font-size: 2em;
  font-weight: 600;
  margin-bottom: 30px;
  line-height: 1.2;
}

h2 {
  font-size: 1.5em;
  font-weight: 600;
  margin-top: 60px;
  margin-bottom: 20px;
  line-height: 1.3;
}

h3 {
  font-size: 1.2em;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 15px;
  line-height: 1.4;
}

h4 {
  font-size: 1.1em;
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 15px;
  line-height: 1.4;
}

p {
  margin-bottom: 20px;
}

/* Links
   ========================================== */
a {
  color: #000000;
  text-decoration: underline;
}

a:hover {
  opacity: 0.7;
}

/* Lists
   ========================================== */
ul,
ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

li {
  margin-bottom: 8px;
}

/* Gallery Link (Bottom of Homepage)
   ========================================== */
.gallery-link {
  text-align: left;
  margin-top: 40px;
  font-size: 1em;
}

/* Social Links (Bottom of Homepage)
   ========================================== */
.social-links {
  margin-top: 50px;
  text-align: center;
  font-size: 0.9em;
}

.social-links a {
  margin: 0 5px;
}

/* Location (Bottom of Homepage)
   ========================================== */
.location {
  text-align: center;
  font-size: 0.85em;
  color: #666;
  margin-top: 30px;
  font-weight: 400;
}

/* Poems Page
   ========================================== */
.poem {
  margin-bottom: 60px;
}

.poem-date {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 3px;
  font-weight: 400;
}

.poem-footnote {
  font-size: 0.85em;
  color: #666;
  margin-bottom: 5px;
  font-style: italic;
}

.poem-title {
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 3px;
  line-height: 1.4;
}

.poem-content {
  line-height: 1.6;
  white-space: pre-wrap;
}

/* Gallery Index Page Styles
   ========================================== */
.gallery-container {
  display: flex;
  flex-wrap: wrap;
  margin-top: 40px;
  gap: 40px;
}

.gallery-item {
  width: calc(50% - 20px);
}

.gallery-item a {
  text-decoration: none;
  display: block;
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.gallery-item-title {
  text-align: center;
  font-size: 1.1em;
  margin-top: 15px;
  color: #000000;
}

@media (max-width: 600px) {
  .gallery-container {
    gap: 30px;
  }

  .gallery-item {
    width: 100%;
  }
}

/* Individual Gallery Page Styles
   ========================================== */
.gallery {
  /* No special styling needed - inherits from main */
}

.gallery-header {
  margin-bottom: 40px;
}

.gallery-title {
  /* Uses h1 styles */
}

.gallery-description {
  margin-top: 20px;
  font-size: 1em;
}

.gallery-content {
  /* No special styling needed */
}

/* Photo Grid (Individual Gallery Pages)
   ========================================== */
.photo-grid {
  column-count: 2;
  column-gap: 15px;
  margin-top: 40px;
}

.photo-item {
  break-inside: avoid;
  margin-bottom: 15px;
}

.photo-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Mobile: Single Column for Photo Grid */
@media (max-width: 600px) {
  .photo-grid {
    column-count: 1;
  }
}

/* Home Page Specific Styles
   ========================================== */
.home {
  /* Inherits from main layout */
}

/* Remove default styling from certain elements
   ========================================== */
hr {
  display: none;
}

/* Code blocks (if any)
   ========================================== */
code {
  font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;
  font-size: 0.95em;
  background-color: #f5f5f5;
  padding: 2px 6px;
  border-radius: 3px;
}

pre {
  background-color: #f5f5f5;
  padding: 15px;
  overflow-x: auto;
  margin-bottom: 20px;
  border-radius: 5px;
}

pre code {
  background-color: transparent;
  padding: 0;
}