:root {
  --ink: #1c1914;
  --muted: #5e584f;
  --line: #e4dfd6;
  --paper: #f6f3ec;
  --surface: #fffcf7;
  --green: #2eb36b;
  --green-ink: #147a43;
}

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

html {
  background: var(--paper);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--green-ink);
}

a:hover {
  text-decoration: none;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  display: inline-block;
  vertical-align: middle;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 20;
  user-select: none;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  padding: 0 clamp(20px, 5vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 243, 236, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
}

.nav-brand span {
  font-size: clamp(0.78rem, 3.4vw, 1.05rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  color: var(--ink);
}

.page {
  width: min(640px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 80px;
}

.page header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.page header h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 10px;
}

.page header p {
  color: var(--muted);
  max-width: 48ch;
}

.meta {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

section + section {
  margin-top: 36px;
}

h2 {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

section p,
section li {
  color: var(--muted);
  font-size: 0.96rem;
}

section p + p {
  margin-top: 10px;
}

section ul {
  padding-left: 1.15em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

section strong {
  color: var(--ink);
  font-weight: 600;
}

.topics {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.topics li strong {
  display: block;
  margin-bottom: 2px;
}

.mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.mail:hover {
  border-color: var(--green);
  color: var(--green-ink);
}

.mail .material-symbols-outlined {
  color: var(--green-ink);
  font-size: 18px;
}

footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.83rem;
  color: var(--muted);
}

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

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

@media (max-width: 560px) {
  .page {
    width: min(640px, calc(100% - 32px));
    padding: 36px 0 64px;
  }

  nav {
    padding: 0 16px;
  }
}
