:root {
  --accent: #e45f37;
  --bg: #0f1614;
  --bg-2: #131d1a;
  --card: #0f1816;
  --fg: #eaf2ee;
  --muted: #a8bbb4;
  --border: color-mix(in oklab, var(--fg) 10%, transparent);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --maxw: 980px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbfbfb;
    --bg-2: #fff;
    --card: #fff;
    --fg: #121514;
    --muted: #4e5f59;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
  color: var(--fg);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 800;
  color: var(--fg);
}

.brand-logo svg {
  display: block;
  width: 26px;
  height: 26px;
}

.cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 22px;
  position: fixed;
  width: 100%;
  bottom: 0;
  background-color: white;
}

footer .meta {
  display: grid;
  grid-template-columns: repeat(5, auto);
  grid-column-gap: 10px;
}

footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 980px;
  margin: 0 auto;
}

footer .wrap p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in oklab, var(--bg-2) 85%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

header .wrap {
  max-width: 980px;
  margin: 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

main {
  max-width: 980px;
  margin: 0 auto 40px auto;
  padding: 30px 0 40px 0;
}

.menu {
  display: none;
  font-size: 22px;
  padding: 10px 12px;
  border-radius: 10px;
  background: transparent;
  border: 0;
  color: var(--fg);
}

.menu svg {
  width: 28px;
  height: 28px;
  color: currentColor;
  transition: transform 0.25s ease;
}

.menu:hover svg {
  transform: scale(1.1);
}

.menu:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.page-header {
  padding: 10px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(28px, 5vw, 44px);
}

.page-header .tag {
  color: var(--muted);
}

section {
  padding: 32px 0;
}

.section-title {
  font-size: clamp(22px, 4vw, 32px);
  margin-bottom: 8px;
}

.section-sub {
  color: var(--muted);
  margin-bottom: 14px;
}

@media (max-width: 1025px) {
  header {
    padding: 0 20px;
  }

  main {
    margin: 0 20px 40px 20px;
  }
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .cards .card:last-child {
    grid-column: 1 / span 2;
  }
}

@media (max-width: 820px) {
  .menu {
    display: inline-flex;
    gap: 8px;
    cursor: pointer;
  }

  .nav-links {
    display: none;
  }

  .nav.open .nav-links {
    display: grid;
    gap: 8px;
    position: absolute;
    left: 18px;
    right: 18px;
    top: 56px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
  }

  footer .meta {
    flex: 1 0 100%;
    justify-content: center;
  }

  footer .wrap {
    justify-content: center;
  }
}

@media (max-width: 620px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .cards .card:last-child {
    grid-column: unset;
  }
}
