/* ==========================================================================
   Atelier Ferronnerie Littorale — Style Sheet
   Design Brief: Calm longform essay / studio journal. Narrow measure (~64ch),
   paper background, near-black ink, single quiet accent for links.
   Strict palette:
   - paper: #EFE6D6
   - ink: #241E18
   - link accent: #7A3E2E
   ========================================================================== */

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

html {
  background-color: #EFE6D6;
  color: #241E18;
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: #EFE6D6;
  color: #241E18;
  font-family: "Georgia", serif;
  line-height: 1.8;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

/* Typography & Measures */
.site-wrapper {
  max-width: 66ch;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem 1.5rem;
}

/* Header & Wordmark */
.site-header {
  border-bottom: 1px solid #241E18;
  padding-bottom: 1.5rem;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .site-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }
}

.wordmark {
  font-family: "Georgia", serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #241E18;
}

.brand-link {
  color: #241E18;
  text-decoration: none;
}

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

.site-nav {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: #241E18;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
  color: #7A3E2E;
  border-bottom-color: #7A3E2E;
}

/* Article Hero */
.essay-hero {
  margin-bottom: 3.5rem;
}

.kicker {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7A3E2E;
  margin-bottom: 1rem;
  font-weight: 600;
}

.headline {
  font-family: "Georgia", serif;
  font-size: 2.2rem;
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .headline {
    font-size: 2.65rem;
  }
}

.byline-meta {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.9rem;
  color: #241E18;
  border-top: 1px solid #241E18;
  border-bottom: 1px solid #241E18;
  padding: 0.6rem 0;
  margin-bottom: 2rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.byline-meta .separator {
  user-select: none;
}

.byline-meta a {
  color: #7A3E2E;
  text-decoration: none;
}

.byline-meta a:hover {
  text-decoration: underline;
}

.opening-graf {
  font-size: 1.22rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* Chapters */
.chapter {
  margin-bottom: 3.5rem;
}

.chapter h2 {
  font-family: "Georgia", serif;
  font-size: 1.4rem;
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: 1rem;
  border-top: 1px solid #241E18;
  padding-top: 1.5rem;
}

.chapter p {
  margin-bottom: 1.35rem;
  text-align: justify;
}

/* Mid-essay Pull Quote */
.pull-quote {
  margin: 2.5rem 0;
  padding: 1.75rem 1.5rem;
  border-left: 3px solid #7A3E2E;
  border-top: 1px solid #241E18;
  border-bottom: 1px solid #241E18;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.65;
  background: transparent;
}

/* Closing Action & Form */
.closing-action {
  margin-top: 4rem;
  border-top: 2px solid #241E18;
  padding-top: 2.5rem;
  margin-bottom: 4rem;
}

.closing-action h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.closing-action p {
  margin-bottom: 1.5rem;
}

.contact-invitation {
  font-size: 1.05rem;
}

.text-link {
  color: #7A3E2E;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: #241E18;
}

.inquiry-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
  font-family: "Georgia", serif;
  font-size: 1rem;
  background-color: transparent;
  color: #241E18;
  border: 1px solid #241E18;
  padding: 0.65rem 0.75rem;
  border-radius: 0;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #7A3E2E;
  box-shadow: 0 0 0 1px #7A3E2E;
}

.submit-link {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0.5rem 0;
  font-family: "Source Sans 3", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #7A3E2E;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.submit-link:hover {
  color: #241E18;
}

.form-feedback {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  min-height: 1.5rem;
}

.form-feedback.success {
  color: #241E18;
  border: 1px solid #241E18;
  padding: 0.75rem;
}

/* Return bar */
.return-bar {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #241E18;
}

/* Footer */
.site-footer {
  border-top: 1px solid #241E18;
  padding-top: 2rem;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.85rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-main .address-line {
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.social-links a {
  color: #7A3E2E;
  text-decoration: none;
}

.social-links a:hover {
  text-decoration: underline;
}

.social-links .dot {
  color: #241E18;
  user-select: none;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-top: 1px dotted #241E18;
  padding-top: 1rem;
}

@media (min-width: 640px) {
  .footer-legal {
    flex-direction: row;
    justify-content: space-between;
  }
}

.quiet-link {
  color: #7A3E2E;
  text-decoration: none;
}

.quiet-link:hover {
  text-decoration: underline;
}

/* Accessibility Focus */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #7A3E2E;
  outline-offset: 2px;
}
