/* ==========================================================================
   Base
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Quattrocento Sans', sans-serif;
  color: rgb(60, 60, 60);
  line-height: 1.7;
  background: #fff;
}

::selection {
  background: rgb(220, 220, 220);
  color: rgb(40, 40, 40);
}


/* ==========================================================================
   Header
   ========================================================================== */

header .container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.site-title a {
  font-family: 'OFL Sorts Mill Goudy', serif;
  font-size: 1.75rem;
  letter-spacing: 3px;
  color: rgb(81, 81, 81);
  text-decoration: none;
}

@media (min-width: 767px) {
  .site-title a {
    font-size: 2rem;
  }
}


/* ==========================================================================
   Navigation
   ========================================================================== */

nav {
  margin-top: 1.25rem;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
}

nav a {
  font-family: 'Open Sans', sans-serif;
  text-decoration: none;
  color: rgb(102, 102, 102);
  font-size: 0.875rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}

nav a:hover {
  color: rgb(60, 60, 60);
}

nav a[aria-current="page"] {
  color: rgb(81, 81, 81);
  font-weight: 700;
}


/* ==========================================================================
   Focus Styles (Accessibility)
   ========================================================================== */

:focus-visible {
  outline: 2px solid rgb(81, 81, 81);
  outline-offset: 2px;
  border-radius: 2px;
}


/* ==========================================================================
   Hero Image (About Page)
   ========================================================================== */

.hero {
  width: 100%;
  text-align: center;
  margin-bottom: 3rem;
}

.hero img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}


/* ==========================================================================
   Post Content (About, Contact, Future Articles)
   ========================================================================== */

.post-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.post-content h1 {
  font-family: 'OFL Sorts Mill Goudy', serif;
  font-size: 2.5rem;
  font-weight: normal;
  color: rgb(40, 40, 40);
  margin-bottom: 1.5rem;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.post-content h2 {
  font-family: 'OFL Sorts Mill Goudy', serif;
  font-size: 1.75rem;
  font-weight: normal;
  margin: 2.5rem 0 1rem;
  color: rgb(50, 50, 50);
}

.post-content p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: rgb(60, 60, 60);
}

.post-content a {
  color: rgb(81, 81, 81);
  text-underline-offset: 2px;
}

.post-content a:hover {
  color: rgb(40, 40, 40);
}

.post-content img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 4px;
}


/* ==========================================================================
   Contact Page
   ========================================================================== */

.contact-info {
  text-align: center;
  margin-top: 2rem;
}

.contact-info p {
  font-size: 1.125rem;
  color: rgb(60, 60, 60);
  margin-bottom: 2rem;
}

.contact-link {
  display: block;
  text-align: center;
  font-family: 'OFL Sorts Mill Goudy', serif;
  font-size: 1.5rem;
  color: rgb(60, 60, 60);
  text-decoration: none;
  letter-spacing: 1px;
  padding: 0.75rem 1.5rem;
  border-bottom: 2px solid rgb(220, 220, 220);
  transition: all 0.2s ease;
}

.contact-link:hover {
  color: rgb(40, 40, 40);
  border-bottom-color: rgb(81, 81, 81);
}

.profile-image {
  text-align: center;
  margin-bottom: 2.5rem;
}

.profile-image img {
  max-width: 100%;
  width: 280px;
  height: 280px;
  max-width: 70vw;
  max-height: 70vw;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}


/* ==========================================================================
   Gallery (Homepage)
   ========================================================================== */

.gallery {
  max-width: 720px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem 1.5rem;
}

.gallery-grid {
  column-count: 3;
  column-gap: 1rem;
}

.gallery-item {
  display: block;
  break-inside: avoid;
  margin-bottom: 1rem;
  transition: transform 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  background: rgb(245, 245, 245);
  transition: opacity 0.2s ease;
}

.gallery-item:hover img {
  opacity: 0.94;
}

@media (max-width: 640px) {
  .gallery-grid {
    column-count: 2;
    column-gap: 0.875rem;
  }

  .gallery-item {
    margin-bottom: 0.875rem;
  }
}

@media (max-width: 420px) {
  .gallery-grid {
    column-count: 1;
  }

  .gallery {
    padding: 0.5rem 1rem 1rem;
  }
}

/* ==========================================================================
   Responsive (Shared)
   ========================================================================== */

@media (max-width: 768px) {
  header .container {
    padding: 1.5rem;
  }

  nav ul {
    gap: 1.25rem;
    flex-wrap: wrap;
  }

  .post-content h1 {
    font-size: 2rem;
  }

  .post-content p {
    font-size: 1rem;
  }
}


/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  border-top: 1px solid rgb(230, 230, 230);
  margin-top: 3rem;
}

footer .container {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem;
  text-align: center;
}

footer p {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.8rem;
  color: rgb(160, 160, 160);
  letter-spacing: 0.5px;
}

footer .footer-colophon {
  font-family: 'OFL Sorts Mill Goudy', serif;
  font-family: 'IM Fell DW Pica', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: rgb(140, 140, 140);
  margin-top: 0.4rem;
  letter-spacing: 0.3px;
}


/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  header,
  footer,
  nav,
  .gallery,
  .hero {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
    line-height: 1.5;
  }

  .post-content {
    max-width: 100%;
    padding: 0;
  }

  .post-content a {
    color: #000;
    text-decoration: underline;
  }
}
