:root {
  --bg: #f6f7f9;
  --surface: #fff;
  --text: #14171c;
  --muted: #5b6472;
  --border: #dde1e7;
  --accent: #d6233a;
  --accent-ink: #fff;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0e12;
    --surface: #12171d;
    --text: #e6eaf0;
    --muted: #8b95a5;
    --border: #232b35;
    --accent: #ff4d5e;
    --accent-ink: #1a0407;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0e12;
  --surface: #12171d;
  --text: #e6eaf0;
  --muted: #8b95a5;
  --border: #232b35;
  --accent: #ff4d5e;
  --accent-ink: #1a0407;
  color-scheme: dark;
}
html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.65 system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
}
.mono {
  font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
}
a {
  color: var(--accent);
}
header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.bar {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}
.brand span {
  color: var(--accent);
}
nav {
  display: flex;
  gap: 4px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
}
nav button {
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
nav button:hover {
  color: var(--text);
}
nav button[aria-selected="true"] {
  color: var(--accent);
  background: var(--surface);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.theme {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.theme button {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 7px 9px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.theme button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}
.theme svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 36px 20px 64px;
}
.panel[hidden] {
  display: none;
}
h2.sec {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.15s,
    border-color 0.15s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  flex: 1;
}
.meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tag {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 8px;
  font-size: 12px;
  color: var(--muted);
}
.badge {
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 99px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
}
.badge.paid {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.filters button {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 99px;
  padding: 5px 16px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.filters button[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--accent);
}
.about h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  margin: 0 0 12px;
  line-height: 1.15;
}
.about p {
  color: var(--muted);
  max-width: 680px;
}
.about .links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}
.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.skills {
  margin-top: 32px;
}
footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 24px;
}
