/* ==========================================================================
   Padrão de Alfama — Visual Identity: Calm Longform Essay / Studio Journal
   Fonts: Georgia (Headings & Body), Source Sans 3 (Nav & Labels)
   Colors: #EFE6D6 (Paper), #241E18 (Ink), #7A3E2E (Link Accent)
   ========================================================================== */

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

html {
  background-color: #EFE6D6;
  color: #241E18;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 18px;
  line-height: 1.75;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: #EFE6D6;
  color: #241E18;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
a {
  color: #7A3E2E;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover,
a:focus {
  color: #241E18;
}

/* Header */
.site-header {
  border-bottom: 1px solid rgba(36, 30, 24, 0.2);
  padding: 2rem 1.5rem 1.5rem;
  margin-bottom: 2rem;
}

.site-header__inner {
  max-width: 68ch;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-brand {
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: normal;
  font-style: italic;
  text-decoration: none;
  color: #241E18;
  letter-spacing: 0.02em;
}

.site-brand:hover {
  color: #7A3E2E;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #241E18;
  text-decoration: none;
}

.nav-link:hover {
  color: #7A3E2E;
  text-decoration: underline;
}

/* Reading Container */
.essay-container {
  max-width: 66ch;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
  flex: 1 0 auto;
}

/* Chapter Sections */
.chapter-section {
  margin-bottom: 4rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(36, 30, 24, 0.15);
}

.chapter-section:last-of-type {
  border-bottom: none;
  margin-bottom: 2rem;
}

.chapter-kicker {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7A3E2E;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.chapter-heading {
  font-family: Georgia, serif;
  font-size: 1.65rem;
  font-weight: normal;
  line-height: 1.3;
  color: #241E18;
  margin-bottom: 1.5rem;
}

.chapter-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #241E18;
  margin-bottom: 1.4rem;
}

/* Hero Section Specifics */
.hero-section {
  padding-top: 1rem;
}

.hero-headline {
  font-family: Georgia, serif;
  font-size: 2rem;
  font-weight: normal;
  line-height: 1.25;
  color: #241E18;
  margin-bottom: 0.75rem;
}

.hero-byline {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  color: rgba(36, 30, 24, 0.75);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.signature-block {
  margin-top: 2rem;
  font-style: italic;
}

.signature-name {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.2rem;
  font-style: normal;
  font-family: Georgia, serif;
  color: #241E18;
}

/* Pullquote Motif */
.editorial-pullquote {
  margin: 2.5rem 0;
  padding: 1.25rem 0 1.25rem 1.75rem;
  border-left: 2px solid #7A3E2E;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.6;
  color: #241E18;
}

/* Images and Plates */
.editorial-figure {
  margin: 2rem 0 2.2rem;
}

.editorial-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  filter: contrast(0.98) brightness(0.98);
  border: 1px solid rgba(36, 30, 24, 0.25);
}

.editorial-caption {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(36, 30, 24, 0.75);
  margin-top: 0.6rem;
  font-style: italic;
}

/* Contact Section */
.contact-details {
  margin: 1.5rem 0 2.5rem;
  padding: 1.25rem;
  background-color: rgba(36, 30, 24, 0.04);
  border: 1px solid rgba(36, 30, 24, 0.12);
}

.contact-item {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: #241E18;
}

.contact-item:last-child {
  margin-bottom: 0;
}

/* Privacy Policy */
.privacy-block {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(36, 30, 24, 0.2);
}

.privacy-heading {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7A3E2E;
  margin-bottom: 0.6rem;
}

.privacy-text {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(36, 30, 24, 0.8);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(36, 30, 24, 0.2);
  padding: 2rem 1.5rem;
  margin-top: auto;
}

.site-footer__inner {
  max-width: 66ch;
  margin: 0 auto;
  text-align: center;
}

.footer-note {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  color: rgba(36, 30, 24, 0.7);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  html {
    font-size: 16px;
  }

  .site-header {
    padding: 1.25rem 1rem 1rem;
  }

  .essay-container {
    padding: 0.75rem 1rem 3rem;
  }

  .hero-headline {
    font-size: 1.6rem;
  }

  .chapter-heading {
    font-size: 1.4rem;
  }

  .editorial-pullquote {
    font-size: 1.1rem;
    padding-left: 1.2rem;
  }
}