* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #000;
  color: #bbb;
  font-family: "JetBrains Mono", monospace;
  line-height: 1.7;
}

main {
  width: min(1100px, 100% - 32px);
  padding: 32px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 48px;
  align-items: center;
}

h1 { font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.2; margin: 16px 0; }
.small { font-size: 0.8rem; letter-spacing: 3px; }

.button {
  display: inline-block;
  padding: 16px 24px;
  border: 1px solid #666;
  color: inherit;
  text-decoration: none;
}
.button:hover { background: #bbb; color: #000; }

.terminal { border: 1px solid #444; }
.bar { display: flex; justify-content: space-between; padding: 8px 16px; border-bottom: 1px solid #444; }
.screen { padding: 16px 24px; }

dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 24px; }
dt { font-weight: 700; color: #fff; }
dd { margin: 0; }

.widgets { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 32px; padding-top: 16px; border-top: 1px solid #333; }
#time { font-size: 2.2rem; font-weight: 700; margin: 0; }
#days { display: grid; grid-template-columns: repeat(7, 2.2em); text-align: center; font-size: 0.8rem; }
.today { background: #bbb; color: #000; }
#rings { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
#toggle { position: fixed; right: 16px; bottom: 16px; padding: 10px 16px; background: #000; color: #bbb; border: 1px solid #666; font: inherit; font-size: 0.8rem; cursor: pointer; }
html { scroll-behavior: smooth; }
body { display: block; }
main { margin: 0 auto; min-height: 100vh; align-content: center; }
#projects { width: min(1100px, 100% - 32px); margin: 0 auto; padding: 48px 0 96px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.cards article { border: 1px solid #444; padding: 16px 24px; background: #000; }
.avatar { display: block; width: 160px; height: 160px; object-fit: cover; border: 1px solid #444; margin: 16px 0; }
.avatar[hidden] { display: none; }
#play { position: fixed; left: 16px; bottom: 16px; padding: 10px 16px; background: #000; color: #bbb; border: 1px solid #666; font: inherit; font-size: 0.8rem; cursor: pointer; }
