:root {
  --bg: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --hairline: #d2d2d7;
  --accent: #0071e3;
  --panel: rgba(255, 255, 255, 0.94);
  --nav-height: 52px;
  --max-width: 820px;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "SF Pro Text", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -0.01em;
}

body {
  min-height: 100vh;
}

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

.site-shell {
  padding-top: calc(var(--nav-height) + 100px);
}

.home .site-shell {
  padding-top: var(--nav-height);
}

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--panel);
  border-bottom: 1px solid var(--hairline);
  z-index: 1000;
}

@supports (backdrop-filter: blur(1px)) {
  .nav {
    backdrop-filter: saturate(180%) blur(20px);
  }
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 16px;
}

.brand {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
  text-align: center;
  justify-self: center;
}

.home-link {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  justify-self: start;
}

.home-link:hover { color: var(--accent); }

.nav-links {
  display: none;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}

.burger {
  width: 36px;
  height: 36px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  justify-self: end;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #1d1d1f;
  position: relative;
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #1d1d1f;
  transition: transform 180ms ease;
}

.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

.menu {
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--hairline);
  transform: translateY(-110%);
  transition: transform 220ms ease;
  z-index: 900;
}

.menu.open { transform: translateY(0); }

.menu-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
  display: grid;
  gap: 10px;
  font-size: 16px;
}

.menu a {
  padding: 10px 6px;
  border-radius: 10px;
}

.menu a:hover { background: #f5f5f7; }

.hero {
  max-width: var(--max-width);
  margin: 20px auto 30px;
  padding: 0 20px;
}

.hero-logo {
  display: block;
  width: min(330px, 70vw);
  height: auto;
  margin: 0 auto 12px;
}

.hero h1 {
  font-size: clamp(28px, 3.2vw, 44px);
  margin: 0 0 8px 0;
  font-weight: 600;
}

.hero p { color: var(--muted); margin: 0; }

.content {
  max-width: var(--max-width);
  margin: 0 auto 80px;
  padding: 0 20px;
}

.post-list {
  display: grid;
  gap: 14px;
}

.post-card {
  padding: 18px 18px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.post-card h2 {
  margin: 0 0 6px 0;
  font-size: 20px;
  font-weight: 600;
}

.post-card .date { color: var(--muted); font-size: 13px; }

article h1 {
  font-size: clamp(26px, 3vw, 38px);
  margin: 0 0 8px 0;
  font-weight: 600;
}

article .post-date { color: var(--muted); margin: 0 0 20px 0; font-size: 14px; }

article p {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 18px 0;
}

article img { max-width: 100%; height: auto; border-radius: 12px; }

.fade-enter { opacity: 0; transform: translateY(6px); }
.fade-enter-active { opacity: 1; transform: translateY(0); transition: opacity 180ms ease, transform 180ms ease; }
.fade-exit { opacity: 1; }
.fade-exit-active { opacity: 0; transition: opacity 160ms ease; }

.footer {
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  padding: 22px 16px 30px;
}

@media (min-width: 860px) {
  .nav-links { display: none; }
  .burger { display: grid; }
  .menu { display: block; }
}


.nav-button {
  padding: 8px 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
}

.submit-form {
  display: grid;
  gap: 14px;
}

.submit-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.submit-form input,
.submit-form textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
}

.primary-button {
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.primary-button:hover { filter: brightness(0.98); }

.form-note {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 0 0;
}
