/* ─────────────────────────────────────────────
   home.css
   À importer dans app/assets/stylesheets/
   ou dans application.css avec *= require home
───────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@300;400;500&family=IBM+Plex+Mono:wght@300;400&display=swap');

:root {
  --light:   #F5F2ED;
  --dark:    #1B1B18;
  --primary: #C2BAB0;
  --accent:  #7E8C7B;

  --font-display: 'Syne', sans-serif;
  --font-body:    'IBM Plex Mono', monospace;
}

/* ── PAGE ── */
.home-page {
  color: var(--dark);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;

  /* max-width: 620px; */
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── ANIMATIONS ── */
@keyframes appear {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── NAV ── */
.home-nav {
  padding: 3.5rem 0 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  animation: appear 0.6s ease both;
}

.home-nav .nav-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--dark);
  text-decoration: none;
}

.home-nav .nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.home-nav .nav-links a {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(27, 27, 24, 0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.home-nav .nav-links a:hover {
  color: var(--dark);
}

/* ── INTRO ── */
.home-intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8vh 0 4rem;
  animation: appear 0.7s 0.15s ease both;
}

.intro-date {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2.5rem;
}

.intro-text {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3rem);
  font-weight: 300;
  line-height: 1.35;
  color: var(--dark);
  max-width: 52ch;
}

.intro-muted {
  color: rgba(27, 27, 24, 0.4);
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--primary);
  margin-left: 3px;
  vertical-align: text-bottom;
  animation: blink 1.1s step-end infinite;
}

.intro-body {
  margin-top: 2.5rem;
  font-size: 13px;
  line-height: 1.85;
  color: rgba(27, 27, 24, 0.55);
  /* max-width: 50ch; */
}

.intro-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(126, 140, 123, 0.35);
  transition: border-color 0.2s;
}

.intro-body a:hover {
  border-color: var(--accent);
}

.sep {
  width: 2.5rem;
  height: 1px;
  background: rgba(27, 27, 24, 0.15);
  margin: 3rem 0;
}

/* ── POSTS ── */
.posts-block {
  animation: appear 0.7s 0.3s ease both;
}

.posts-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(27, 27, 24, 0.3);
  margin-bottom: 2rem;
}

.post-list {
  list-style: none;
}

.post-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0 1.5rem;
  align-items: baseline;
  padding: 0.8rem 0;
  border-top: 1px solid rgba(27, 27, 24, 0.07);
}

.post-item:last-child {
  border-bottom: 1px solid rgba(27, 27, 24, 0.07);
}

.post-item:hover .post-title a {
  color: var(--dark);
}

.post-date {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(27, 27, 24, 0.3);
  white-space: nowrap;
}

.post-title a {
  font-size: 13px;
  color: rgba(27, 27, 24, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.post-tag {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(126, 140, 123, 0.1);
  padding: 0.1rem 0.5rem;
  border-radius: 100px;
  margin-left: 0.5rem;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* ── FOOTER ── */
.home-footer {
  padding: 2rem 0 3.5rem;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(27, 27, 24, 0.25);
  border-top: 1px solid rgba(27, 27, 24, 0.07);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  animation: appear 0.7s 0.45s ease both;
}
