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

body {
  margin: 0;
  font-family: monospace;
  background: #fff;
  color: #222;
  min-height: 100vh;
  cursor: none;
}

nav {
  font-family: monospace;
  font-size: 0.85em;
  padding: 12px 20px;
  border-bottom: 1px solid #e0e0e0;
  position: relative;
  z-index: 1;
}

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

nav a:hover {
  text-decoration: underline;
}

/* ---- Custom cursor ---- */
#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 4px;
  height: 4px;
  background: #222;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: width 0.2s, height 0.2s, background 0.2s;
}

#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border: 1.5px solid #222;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              height 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              background 0.25s,
              border-color 0.25s;
  overflow: hidden;
}

#cursor-ring.expanded {
  width: 72px;
  height: 72px;
  background: #222;
  border-color: #222;
}

#cursor-label {
  font-family: monospace;
  font-size: 0.55em;
  color: #fff;
  letter-spacing: 0.08em;
  opacity: 0;
  transition: opacity 0.2s;
  white-space: nowrap;
}

#cursor-ring.expanded #cursor-label {
  opacity: 1;
}

/* ---- Main layout ---- */
main {
  max-width: 700px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

h1 {
  font-size: 1.4em;
  font-weight: normal;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.desc {
  font-size: 0.85em;
  color: #aaa;
  margin: 0 0 64px;
}

/* ---- Magnetic buttons ---- */
.button-group {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.mag-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  background: #f8f8f8;
  border: 1.5px solid #e0e0e0;
  border-radius: 50%;
  font-family: monospace;
  font-size: 1em;
  color: #222;
  cursor: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  outline: none;
  will-change: transform;
}

.mag-btn:hover {
  background: #222;
  color: #fff;
  border-color: #222;
}

/* ---- Info grid ---- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.info-card {
  padding: 20px 16px;
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.info-title {
  font-size: 0.75em;
  color: #aaa;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.info-body {
  font-size: 0.85em;
  color: #222;
  line-height: 1.5;
}
