:root {
  color-scheme: dark;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #f0eee6;
  background: #141513;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid #e3b66e; outline-offset: 5px; }

.top-bar {
  min-height: 76px;
  padding: 14px max(24px, calc((100% - 1000px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #30322c;
}

h1 { margin: 0; font-size: 18px; font-weight: 600; }
.top-bar a { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; color: #a9aca2; }
.top-bar a:hover { color: #f0eee6; }

main {
  width: calc(100% - 48px);
  max-width: 1000px;
  margin: 48px auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project {
  position: relative;
  display: block;
  padding: 28px;
  background: #1c1e1a;
  border: 1px solid #383b32;
  border-radius: 8px;
  transition: border-color 160ms ease, background 160ms ease;
}

.project:hover { background: #23261f; border-color: #9c835b; }
.project-icon { display: block; width: 44px; height: 44px; margin-bottom: 24px; color: #e3b66e; }
h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.4px; }
.project p { max-width: 370px; margin: 0; color: #acafa4; font-size: 14px; line-height: 1.7; }
.project-arrow { position: absolute; right: 28px; top: 28px; color: #acafa4; font-size: 20px; }
.project:hover .project-arrow { color: #e3b66e; }

@media (max-width: 700px) {
  .top-bar { padding-inline: 20px; }
  h1 { font-size: 16px; }
  main { width: calc(100% - 40px); margin-block: 28px; grid-template-columns: 1fr; gap: 18px; }
  .project { padding: 24px; }
  h2 { font-size: 21px; }
  .project-arrow { top: 24px; right: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .project { transition: none; }
}
