/* =============================================
   tapuranjan.com/blog — Styled after jakewharton.com
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Merriweather+Sans:wght@300;400;700&display=swap');

:root {
  --background-color: #fff;
  --foreground-color: #333;
  --link-color: hsl(151, 44.7%, 50%);
  --link-color-hover: hsl(151, 44.7%, 45%);
  --date-color: #aaa;
  --header-background-color: #111;
  --header-foreground-color: #eee;
  --header-link-color: #ddd;
}

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

html { height: 100%; }

body {
  min-height: 100%;
  font-family: 'Merriweather Sans', sans-serif;
  background-color: var(--background-color);
  color: var(--foreground-color);
}

a, a:focus {
  transition: color .3s ease-in-out;
  color: var(--link-color);
  text-decoration: none;
}
a:hover, a:active {
  color: var(--link-color-hover);
}

/* ── Header ── */
header {
  background-color: var(--header-background-color);
  color: var(--header-foreground-color);
  padding: 40px;
}

header h1 {
  text-transform: uppercase;
  font-size: 50px;
  letter-spacing: 15px;
  margin: 0;
  padding-left: 4px;
  color: var(--header-foreground-color);
}

header h1 a {
  color: var(--header-foreground-color);
  text-decoration: none;
  transition: color .3s ease-in-out;
}
header h1 a:hover, header h1 a:active {
  color: var(--link-color);
  text-decoration: none;
}

header p.subtitle {
  margin-top: 8px;
  font-size: 14px;
  color: #888;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding-left: 5px;
}

/* ── Content ── */
.content {
  padding: 40px;
  max-width: 1000px;
  line-height: 24px;
}

.content h2 {
  margin-top: 0;
  margin-bottom: 20px;
}

.content p { margin-bottom: 15px; }
.content p:last-child { margin-bottom: 0; }

/* ── Post list ── */
.post-list {
  list-style: none;
  padding: 0;
}

.post-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 0;
}

.date-header {
  font-weight: bold;
  font-family: monospace;
  color: var(--date-color);
  margin-right: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Individual post ── */
p.date {
  color: var(--date-color);
  margin-bottom: 20px;
}

.post h2 { margin-bottom: 20px; }

.read-on-medium {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

/* ── Responsive ── */
@media (max-width: 767px) {
  header {
    padding: 30px;
  }

  header h1 {
    letter-spacing: 5px;
    font-size: 40px;
  }

  .content { padding: 30px; }

  .post-list li { flex-direction: column; }
}
