:root {
  --bg: #f7f7f4;
  --text: #111111;
  --muted: #555555;
  --border: #dddddd;
  --link: #111111;
  --link-hover: #000000;
  --icon-bg: #111111;
  --icon-fg: #ffffff;
}

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

body {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo,
    Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--link-hover);
  text-decoration-thickness: 2px;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 40px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 30px;
  height: 30px;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  background: #ffffff;
}

.brand-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.brand-text {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.brand-dot {
  opacity: 0.55;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
  cursor: pointer;
  padding: 0;
}

.nav-toggle .line {
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
}

.nav-toggle .line::before,
.nav-toggle .line::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.nav-toggle .line::before {
  top: -6px;
}

.nav-toggle .line::after {
  top: 6px;
}

.nav a {
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

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

.header-icons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.icon-circle {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
}

.icon-lines {
  width: 18px;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.icon-lines span {
  height: 1px;
  background: var(--text);
  width: 100%;
}

main {
  padding-top: 8px;
}

.intro {
  margin-bottom: 40px;
}

.intro h1 {
  font-size: 2.1rem;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.intro p {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 40rem;
}

.social {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-size: 0.9rem;
}

.social-label {
  color: var(--muted);
}

.social-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-links a {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--icon-bg);
  color: var(--icon-fg);
  text-decoration: none;
  font-size: 0.9rem;
}

.social-links a:hover {
  transform: translateY(-1px);
}

.posts {
  margin-top: 40px;
}

.posts-title {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.post {
  margin-bottom: 24px;
}

.post-date {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 2px;
}

.post-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.post-links a {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.post-links a:hover {
  color: var(--text);
}

.post-title a {
  font-size: 0.95rem;
  font-weight: 500;
}

.footer {
  margin-top: 56px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 640px) {
  header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 24px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    margin-top: 8px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
    order: 3;
  }

  .nav.is-open {
    display: flex;
  }
}

@media (min-width: 768px) {
  .page {
    padding: 32px 24px 80px;
  }

  header {
    padding-bottom: 60px;
  }

  .intro h1 {
    font-size: 2.4rem;
  }
}
