:root {
  --bg: #fffcf0;
  --text: #1c1b1a;
  --muted: #8a7f72;
  --accent: #7c6b5e;
  --accent-light: #c4a882;
  --border: #e5ddd0;
  --tag-bg: #f0ebe0;
}

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

html {
  font-size: 18px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  line-height: 1.75;
  padding: 0 24px;
}

.container {
  max-width: 680px;
  margin: 0 auto;
}

/* ─── Header ─────────────────────────────────── */

header {
  padding: 52px 0 44px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.site-name {
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
  font-style: italic;
}

.site-name:hover {
  color: var(--accent);
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
  position: relative;
}

nav a:hover,
nav a.active {
  color: var(--text);
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent-light);
}

/* ─── Main content ───────────────────────────── */

main {
  padding-bottom: 80px;
}

.intro {
  font-size: 19px;
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 0;
}

p {
  margin-bottom: 1.2em;
  max-width: 600px;
}

p:last-child {
  margin-bottom: 0;
}

h1 {
  font-size: 20px;
  font-weight: normal;
  margin-bottom: 28px;
}

h2 {
  font-size: 11px;
  font-weight: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 56px 0 18px;
}

h3 {
  font-size: 17px;
  font-weight: normal;
  margin-bottom: 8px;
}

/* ─── Writing list ───────────────────────────── */

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

.writing-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}

.writing-list li:first-child {
  border-top: 1px solid var(--border);
}

.writing-list .entry-title {
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
  text-underline-offset: 3px;
  flex: 1;
}

.writing-list .entry-title:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent-light);
}

.writing-list .entry-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.date {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.tag {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--tag-bg);
  padding: 2px 7px;
  border-radius: 2px;
  white-space: nowrap;
}

/* ─── Divider ────────────────────────────────── */

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* ─── Now / sidebar-style sections ──────────── */

.now-block {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

.now-block p {
  font-size: 16px;
}

/* ─── Work page ──────────────────────────────── */

.availability {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--muted);
  margin-top: 8px;
}

/* ─── Footer ─────────────────────────────────── */

footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--text);
}

/* ─── Fade-in ────────────────────────────────── */

main {
  animation: unfold 0.4s ease-out both;
}

@keyframes unfold {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Responsive ─────────────────────────────── */

@media (max-width: 560px) {
  html {
    font-size: 17px;
  }

  header {
    flex-direction: column;
    gap: 18px;
    padding: 36px 0 28px;
  }

  nav {
    gap: 20px;
  }

  .writing-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
