/* elle.frantzaugustin.com — a letter, not a website.
   Her design language: paper, coral, New York italic. (Chapter 17) */

:root {
  --paper: rgb(249, 247, 244);
  --ink: rgb(38, 34, 32);
  --faint: rgb(122, 114, 108);
  --coral: rgb(224, 93, 71);
  --hairline: rgba(224, 93, 71, 0.35);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: rgb(27, 25, 24);
    --ink: rgb(232, 227, 221);
    --faint: rgb(140, 132, 126);
    --hairline: rgba(224, 93, 71, 0.45);
  }
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.sheet {
  max-width: 38rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 6rem;
}

header.masthead { margin-bottom: 4rem; }
.wordmark {
  font-style: italic;
  font-size: 1.6rem;
  color: var(--coral);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.masthead nav { float: right; padding-top: 0.5rem; }
.masthead nav a {
  font-family: ui-sans-serif, -apple-system, "Helvetica Neue", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  text-decoration: none;
  margin-left: 1.4rem;
}
.masthead nav a:hover { color: var(--coral); }

h1 {
  font-style: italic;
  font-weight: 500;
  font-size: 2rem;
  line-height: 1.25;
  text-wrap: balance;
  margin-bottom: 0.5rem;
}
.dateline {
  font-family: ui-sans-serif, -apple-system, "Helvetica Neue", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 3rem;
}

article p { margin-bottom: 1.4rem; }
article h2 {
  font-style: italic; font-weight: 500; font-size: 1.4rem;
  margin: 2.6rem 0 1rem;
}
article h3 { font-style: italic; font-weight: 500; margin: 2rem 0 0.8rem; }
article blockquote {
  border-left: 3px solid var(--coral);
  padding-left: 1.2rem;
  font-style: italic;
  color: var(--faint);
  margin: 0 0 1.4rem;
}
article ul, article ol { margin: 0 0 1.4rem 1.4rem; }
article a { color: var(--coral); text-decoration-thickness: 1px; }
article hr {
  border: none; border-top: 1px solid var(--hairline);
  width: 5rem; margin: 2.6rem 0;
}
article code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
}

.letters { list-style: none; }
.letters li { margin-bottom: 2.4rem; }
.letters a {
  font-style: italic; font-size: 1.4rem; line-height: 1.35;
  color: var(--ink); text-decoration: none;
}
.letters a:hover { color: var(--coral); }
.letters .when {
  display: block;
  font-family: ui-sans-serif, -apple-system, "Helvetica Neue", sans-serif;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint); margin-top: 0.3rem;
}

.empty { font-style: italic; color: var(--faint); }

.salon-note {
  font-family: ui-sans-serif, -apple-system, "Helvetica Neue", sans-serif;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 3rem;
}
.salon-note::before {
  content: ""; display: inline-block;
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--coral); margin-right: 0.55rem;
  vertical-align: 1px;
}

footer.colophon {
  margin-top: 6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hairline);
  font-style: italic;
  color: var(--faint);
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: no-preference) {
  article, .letters { animation: settle 0.6s ease-out; }
  @keyframes settle {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
  }
}
