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

:root {
  --fg: #1a1a2e;
  --bg: #fafafa;
  --accent: #6c63ff;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius: 6px;
  --max-width: 720px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a:hover {
  text-decoration: underline;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--fg);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

/* Container */
.container {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1rem;
  flex: 1;
}

/* About section */
.about {
  padding: 0rem 0 2rem;
}

.about h1 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.about-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-details {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.about-link {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--fg);
  transition: border-color 0.2s;
}

.about-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* Latest posts section */
.latest-posts {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.section-header h2 {
  font-size: 1.5rem;
}

.see-all {
  font-size: 0.9rem;
}

/* Hero (legacy) */
.hero {
  padding: 4rem 0;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.subtitle {
  color: var(--muted);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 500;
}

.btn:hover {
  text-decoration: none;
  opacity: 0.9;
}

/* Post list */
.post-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.post-list a {
  color: inherit;
}

.post-card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.post-card:hover {
  border-color: var(--accent);
}

.post-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.post-card time {
  font-size: 0.85rem;
  color: var(--muted);
}

.post-card p {
  margin-top: 0.5rem;
  color: var(--muted);
}

/* Single post */
.post header {
  margin-bottom: 2rem;
}

.post h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.post time {
  color: var(--muted);
  font-size: 0.9rem;
}

.post-body {
  margin-bottom: 2rem;
}

.post-body p {
  margin-bottom: 1rem;
}

.back-link {
  display: inline-block;
  margin-top: 1rem;
}

/* Footer */
.footer {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
