/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 300;
  color: #2c2416;
  background-color: #f5f0e8;
}

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

/* ===== NAV ===== */
.site-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 2rem;
  background: linear-gradient(to bottom, rgba(20,14,6,0.6) 0%, transparent 100%);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: #f5f0e8;
  letter-spacing: 0.05em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  color: #f5f0e8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.nav-links a:hover { opacity: 0.7; }

/* ===== HERO ===== */
.hero {
  height: 100vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.hero-overlay {
  padding: 3rem;
  width: 100%;
  background: linear-gradient(to top, rgba(20,14,6,0.85) 0%, rgba(20,14,6,0.3) 60%, transparent 100%);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: #f5f0e8;
  font-weight: 400;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-subtitle {
  font-size: 1rem;
  color: #e8dfd0;
  font-weight: 300;
  max-width: 500px;
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ===== HOME SECTIONS ===== */
.home-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
  gap: 2rem;
}

.home-section {
  padding: 2rem;
  border: 1px solid #d4c9b5;
  transition: background 0.2s;
}

.home-section:hover { background: #ede8df; }

.home-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.home-section p {
  font-size: 0.85rem;
  color: #7a6e5f;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== PAGE CONTENT ===== */
.page-content {
  max-width: 900px;
  margin: 8rem auto 4rem;
  padding: 0 2rem;
}

.page-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: #2c2416;
}

/* ===== POST ===== */
.post-content {
  max-width: 740px;
  margin: 8rem auto 4rem;
  padding: 0 2rem;
}

.post-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.post-date {
  font-size: 0.85rem;
  color: #7a6e5f;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid #d4c9b5;
  padding: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: #7a6e5f;
  letter-spacing: 0.05em;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== ARCHIVE ===== */
.archive-page {
  margin: 6rem auto 4rem;
  max-width: 1200px;
  padding: 0 2rem;
}

.archive-collections {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.collection-card {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.collection-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.collection-card:hover .collection-image {
  transform: scale(1.03);
}

.collection-info {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(20,14,6,0.85) 0%, transparent 100%);
  color: #f5f0e8;
}

.collection-info h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.collection-info p {
  font-size: 0.85rem;
  color: #d4c9b5;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== COLLECTION PAGE ===== */
.collection-page {
  max-width: 1200px;
  margin: 6rem auto 4rem;
  padding: 0 2rem;
}

.collection-header {
  margin-bottom: 3rem;
}

.back-link {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7a6e5f;
  display: inline-block;
  margin-bottom: 1rem;
  transition: color 0.2s;
}

.back-link:hover { color: #2c2416; }

.collection-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.collection-description {
  font-size: 0.9rem;
  color: #7a6e5f;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== PHOTO GRID ===== */
.photo-grid {
  columns: 3;
  column-gap: 1rem;
}

.photo-grid a {
  display: block;
  margin-bottom: 1rem;
  break-inside: avoid;
  overflow: hidden;
}

.grid-image {
  width: 100%;
  padding-bottom: 75%;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.photo-grid a:hover .grid-image {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .photo-grid { columns: 2; }
}

@media (max-width: 480px) {
  .photo-grid { columns: 1; }
}

/* ===== ABOUT ===== */
.about-page {
  max-width: 1200px;
  margin: 8rem auto 4rem;
  padding: 0 2rem;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  filter: grayscale(20%);
}

.about-bio h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
}

.about-bio p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #3d3224;
}

@media (max-width: 768px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ===== JOURNAL ===== */
.journal-page {
  max-width: 900px;
  margin: 8rem auto 4rem;
  padding: 0 2rem;
}

.journal-header {
  margin-bottom: 3rem;
  border-bottom: 1px solid #d4c9b5;
  padding-bottom: 2rem;
}

.journal-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.journal-description {
  font-size: 0.9rem;
  color: #7a6e5f;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.journal-entry {
  border-bottom: 1px solid #d4c9b5;
  padding: 2rem 0;
}

.journal-entry a {
  display: block;
  transition: opacity 0.2s;
}

.journal-entry a:hover { opacity: 0.7; }

.entry-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.entry-date {
  font-size: 0.8rem;
  color: #7a6e5f;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.entry-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.75rem;
  color: #7a6e5f;
  border: 1px solid #d4c9b5;
  padding: 0.1rem 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.journal-entry h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: #2c2416;
}

.entry-excerpt {
  font-size: 0.95rem;
  color: #5a4f42;
  line-height: 1.7;
}

/* ===== MARKDOWN / PROSE TYPOGRAPHY (Jekyll posts) ===== */
.post-content,
.page-content,
.journal-page {
  line-height: 1.75;
}

.post-content p,
.page-content p,
.journal-page p {
  margin: 0 0 1.1rem;
  color: #3d3224;
}

.post-content h2,
.page-content h2,
.journal-page h2 {
  margin: 2.2rem 0 0.8rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 400;
}

.post-content h3,
.page-content h3,
.journal-page h3 {
  margin: 1.6rem 0 0.6rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 400;
}

.post-content ul,
.post-content ol,
.page-content ul,
.page-content ol,
.journal-page ul,
.journal-page ol {
  margin: 0 0 1.1rem 1.25rem;
  padding-left: 1.25rem; /* because reset killed it */
}

.post-content li,
.page-content li,
.journal-page li {
  margin: 0.35rem 0;
}

.post-content blockquote,
.page-content blockquote,
.journal-page blockquote {
  margin: 1.4rem 0;
  padding: 0.25rem 1rem;
  border-left: 3px solid #d4c9b5;
  color: #5a4f42;
}

.post-content hr,
.page-content hr,
.journal-page hr {
  border: 0;
  border-top: 1px solid #d4c9b5;
  margin: 2rem 0;
}

.post-content strong,
.page-content strong,
.journal-page strong {
  font-weight: 600;
}

.post-content em,
.page-content em,
.journal-page em {
  font-style: italic;
}

.post-content code,
.page-content code,
.journal-page code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.95em;
}

.post-content pre,
.page-content pre,
.journal-page pre {
  margin: 1.4rem 0;
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid #d4c9b5;
  background: #ede8df;
}