/*
 * Theme: Letter
 *
 * Cream paper, EB Garamond body with Cormorant Garamond display, wider
 * measure, generous leading. Slightly more ornamented than Quiet — header
 * is centered and stacked, sections are divided with thin rules. Reads
 * like a personal letterhead.
 */

:root {
  --bg: #f4ede0;
  --fg: #2b2118;
  --fg-muted: #6e5e4a;
  --rule: rgba(43, 33, 24, 0.18);
  --measure: 720px;
  --page-padding: clamp(1.25rem, 4vw, 2.5rem);
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.75;
}

/* Header */

.site-header {
  padding: 2.5rem var(--page-padding) 1rem;
  max-width: var(--measure);
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--rule);
}

.site-title {
  font-family: "Cormorant Garamond", "EB Garamond", Garamond, serif;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.site-header nav {
  gap: 2rem;
  justify-content: center;
}

.site-header nav a {
  text-decoration: none;
  color: var(--fg-muted);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--fg);
}

/* Main */

.site-main {
  max-width: var(--measure);
  width: 100%;
  margin: 0 auto;
  padding: 3rem var(--page-padding) 5rem;
}

/* Home */

.home-page .home-photo {
  width: 100%;
  max-width: 380px;
  margin: 0 auto 2.5rem;
  border: 1px solid var(--rule);
  padding: 0.5rem;
  background: #fffaf0;
}

.home-page .blurb {
  font-size: 1.05em;
}

.home-page .blurb p {
  margin-bottom: 1.25rem;
}

.home-page .blurb p:last-child {
  margin-bottom: 0;
}

/* Headings */

h1 {
  font-family: "Cormorant Garamond", "EB Garamond", Garamond, serif;
  font-size: 2.5rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

h2 {
  font-family: "Cormorant Garamond", "EB Garamond", Garamond, serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}

/* The status heading reads as a centered italic deck above the works.
   A short hairline rule beneath it (narrower than the page measure)
   reinforces that it labels the entries below, not the category above. */
h3 {
  font-family: "EB Garamond", Garamond, serif;
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--fg-muted);
  margin: 0 auto 1.5rem;
  text-align: center;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
  width: fit-content;
  max-width: 100%;
  padding-left: 2rem;
  padding-right: 2rem;
}

h4 {
  font-family: "Cormorant Garamond", "EB Garamond", Garamond, serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

/* Works */

/* Center the work entries to match Letter's overall centered aesthetic. */
.works-page .work {
  text-align: center;
}

.works-page .work .genre,
.works-page .work .word-count {
  color: var(--fg-muted);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.45;
}

.works-page .work .description {
  margin-top: 0.6rem;
}

.works-page .work .cta {
  display: inline-block;
  margin-top: 0.6rem;
  color: var(--fg);
  font-style: italic;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Contact */

.contact-page {
  text-align: center;
}

.contact-page a {
  color: var(--fg);
  font-size: 1.2rem;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* Body links */

.site-main p a,
.site-main .description a {
  color: var(--fg);
  text-underline-offset: 3px;
}
