:root {
  --bg: #ffffff;
  --text: #101114;
  --muted: #6b7280;
  --border: rgba(16, 17, 20, 0.12);
  --shadow: 0 10px 30px rgba(16, 17, 20, 0.08);
  --container: 1040px;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: #111827;
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  z-index: 1000;
}
.skip-link:focus {
  left: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.brand-mark {
  width: 42px;
  height: 42px;
}

.brand-text {
  display: grid;
  line-height: 1.05;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 14px;
  font-weight: 600;
  color: rgba(16, 17, 20, 0.88);
  padding: 8px 10px;
  border-radius: 12px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  outline: none;
  background: rgba(16, 17, 20, 0.06);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 6px 18px rgba(16, 17, 20, 0.06);
}
.nav-toggle:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.nav-toggle-lines {
  display: block;
  width: 22px;
  height: 14px;
  position: relative;
}
.nav-toggle-lines::before,
.nav-toggle-lines::after,
.nav-toggle-lines {
  background: transparent;
}
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: rgba(16, 17, 20, 0.85);
  border-radius: 3px;
}
.nav-toggle-lines::before {
  top: 2px;
  box-shadow: 0 5px 0 rgba(16, 17, 20, 0.85), 0 10px 0 rgba(16, 17, 20, 0.85);
}

/* Main */
.site-main {
  padding-bottom: 60px;
}

.hero {
  padding: 64px 0 8px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-weight: 500;
  font-size: clamp(44px, 6vw, 70px);
  letter-spacing: 0.01em;
}

.feed {
  padding: 10px 0 30px;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 28px auto 0;
  width: min(680px, 100%);
  display: grid;
  gap: 22px;
}

.post-link {
  display: flex;
  align-items: center;
  gap: 22px;
}

.post-thumb {
  width: 120px;
  height: 120px;
  border-radius: 22px;
  flex: none;
  box-shadow: var(--shadow);
  border: 1px solid rgba(16, 17, 20, 0.08);
  object-fit: cover;
}

.post-title {
  margin: 0;
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
}

.post-link:hover .post-title,
.post-link:focus-visible .post-title {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.post-link:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 10px;
  border-radius: 24px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0;
}
.footer-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-brand {
  margin: 0;
  font-weight: 800;
}
.footer-muted {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Mobile */
@media (max-width: 860px) {
  .brand {
    min-width: auto;
  }
  .site-nav {
    gap: 10px;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    left: 24px;
    right: 24px;
    top: 74px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 12px;
    display: none;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .site-nav a {
    justify-self: stretch;
  }

  .post-link {
    gap: 16px;
  }
  .post-title {
    font-size: 20px;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 28px, var(--container));
  }
  .post-thumb {
    width: 96px;
    height: 96px;
    border-radius: 18px;
  }
  .post-title {
    font-size: 18px;
  }
}
